/* The preview uses the same photographs and copy for both compositions. */
.hero-compare[hidden], .hero-controls[hidden], .hero-pause svg[hidden] { display: none !important; }
.hero-compare { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-block: 12px 0; font-size: 11px; }
.hero-compare-label { color: var(--clinic-green); font-weight: 500; }
.hero-compare-options { display: flex; padding: 3px; border: 1px solid #dce3d5; border-radius: 30px; background: #fffdf8; }
.hero-compare-options button { background: transparent; padding: 6px 19px; border-radius: 24px; font-size: 11px; }
.hero-compare-options button[aria-pressed="true"] { background: var(--clinic-green); color: white; }
.hero-compare-note { color: #718174; font-size: 10px; }
.home-page main .hero-slideshow { height: 690px; min-height: 0; background: #f8f5ed; isolation: isolate; }
.hero-photos, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 800ms ease; background: #f7f5ed; pointer-events: none; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; max-width: none; }
.hero-slide[data-slide="interior"] img { object-position: 60% center; }
.hero-slide[data-slide="consultation"] img { object-position: 50% 42%; }
.hero-slide[data-slide="dog"] img { left: 22%; width: 78%; object-position: left 46%; mask-image: linear-gradient(90deg,transparent,#000 16%); }
.hero-slide[data-slide="cats"] img { object-position: center 38%; }
/* Omit the restored image's white bands through the display crop only. */
.hero-slide[data-slide="surgery"] img { height: 133.1%; top: -16.55%; object-position: 85% center; }
.home-page main .hero-slideshow .hero-shade { z-index: 1; background: linear-gradient(90deg,#faf8f1 0%,rgba(250,248,241,.97) 22%,rgba(250,248,241,.84) 36%,rgba(250,248,241,.3) 56%,rgba(250,248,241,0) 77%); }
.home-page main .hero-slideshow .hero-copy { z-index: 2; width: 60%; padding-top: 85px; }
.home-page main .hero-slideshow h1 { font-size: clamp(34px,4vw,58px); line-height: 1.65; letter-spacing: .055em; margin-top: 23px; }
.home-page main .hero-slideshow .hero-description { font-size: 14px; line-height: 2.2; margin-top: 23px; }
.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 29px; }
.home-page main .hero-slideshow .hero-button { margin: 0; min-width: 242px; }
.home-page main .hero-slideshow .hero-medical-button { color: var(--clinic-green); background: rgba(255,253,247,.86); border: 1px solid #b0c0ad; box-shadow: none; min-width: 158px; }
.home-page main .hero-slideshow .hero-medical-button:hover { background: #fff; border-color: var(--clinic-green); }
.hero-specialties { display: flex; align-items: center; gap: 18px; margin-top: 17px; font-size: 11px; }
.hero-specialties > span { color: #6f806f; font-size: 10px; }
.hero-specialties a { border-bottom: 1px solid #cbd5c2; padding-block: 2px; color: var(--clinic-green); }
.hero-specialties a span { color: var(--clinic-orange-deep); margin-left: 7px; }
.hero-specialties a:hover { border-color: var(--clinic-orange); }
.home-page main .hero-slideshow .hero-bottom { bottom: 30px; z-index: 2; }
.hero-controls { position: absolute; z-index: 3; right: max(5%,32px); bottom: 23px; display: flex; align-items: center; gap: 19px; padding: 3px 8px; border: 1px solid #e0e5d8; border-radius: 40px; background: rgba(255,253,247,.94); }
.hero-pagination { display: flex; gap: 3px; }
.hero-pagination button { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 45px; padding: 8px 7px; background: transparent; color: #405e4c; font-family: Arial,sans-serif; font-size: 11px; letter-spacing: .04em; }
.hero-pagination button i { display: block; width: 0; height: 2px; background: var(--clinic-orange); transition: width 200ms ease; }
.hero-pagination button[aria-pressed="true"] { color: #9c481b; }
.hero-pagination button[aria-pressed="true"] i { width: 24px; }
.hero-pause { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #aabb9f; border-radius: 50%; background: rgba(255,253,248,.86); color: var(--clinic-green); }
.hero-pause:hover { background: white; border-color: var(--clinic-orange); }
.hero-pause svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-slideshow[data-layout="center"] .hero-shade { background: linear-gradient(180deg,rgba(250,248,241,0) 10%,rgba(250,248,241,.2) 29%,rgba(250,248,241,.91) 56%,#faf8f1 88%) !important; }
.home-page main .hero-slideshow[data-layout="center"] .hero-copy { margin: 0 auto; width: calc(100% - 100px); max-width: 1200px; text-align: center; padding-top: 300px; }
.hero-slideshow[data-layout="center"] .hero-copy > .eyebrow { justify-content: center; }
.home-page main .hero-slideshow[data-layout="center"] h1 { font-size: clamp(31px,3.1vw,48px); margin-top: 15px; }
.hero-slideshow[data-layout="center"] .hero-title-line { display: inline; }
.home-page main .hero-slideshow[data-layout="center"] .hero-description { margin-top: 16px; line-height: 2; }
.hero-slideshow[data-layout="center"] .hero-intro-break { display: none; }
.hero-slideshow[data-layout="center"] .hero-actions { justify-content: center; margin-top: 23px; }
.hero-slideshow[data-layout="center"] .hero-specialties { justify-content: center; }
@media (min-width: 701px) {
  .hero-slideshow[data-layout="center"] .hero-photos { height: 420px; mask-image: linear-gradient(#000 60%,transparent); }
  .hero-slideshow[data-layout="center"] .hero-slide { overflow: hidden; }
  .hero-slide[data-slide="interior"] { --slide-photo: url('/assets/hero/interior-enhanced.webp'); }
  .hero-slide[data-slide="consultation"] { --slide-photo: url('/assets/hero/consultation.webp'); }
  .hero-slide[data-slide="dog"] { --slide-photo: url('/assets/hero/dog.webp'); }
  .hero-slide[data-slide="surgery"] { --slide-photo: url('/assets/hero/surgery.webp'); }
  .hero-slide[data-slide="cats"] { --slide-photo: url('/assets/hero/cats.webp'); }
  .hero-slideshow[data-layout="center"] .hero-slide::before { content: ''; position: absolute; inset: -60px; background: var(--slide-photo) center / cover; filter: blur(50px); opacity: .18; }
  .hero-slideshow[data-layout="center"] .hero-slide img { height: 100%; width: auto; left: 50%; top: 0; transform: translateX(-50%); object-fit: contain; mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); }
  .hero-slideshow[data-layout="center"] .hero-slide[data-slide="surgery"] img { height: 133.1%; top: -16.55%; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .home-page main .hero-slideshow { height: 670px; }
  .home-page main .hero-slideshow .hero-copy { padding-top: 90px; }
  .home-page main .hero-slideshow .hero-description { font-size: 12px; }
  .home-page main .hero-slideshow .hero-button { min-width: 212px; }
  .home-page main .hero-slideshow .hero-medical-button { min-width: 135px; }
  .hero-actions .button { padding-inline: 22px; font-size: 12px; gap: 12px; }
  .hero-controls { right: 24px; gap: 9px; }
  .hero-pagination { gap: 0; }
  .hero-pagination button { min-width: 35px; padding-inline: 5px; }
  .hero-pagination button[aria-pressed="true"] i { width: 15px; }
  .home-page main .hero-slideshow .hero-bottom { font-size: 10px; left: 5%; }
  .hero-slideshow .hero-bottom > span, .hero-slideshow .hero-bottom > a { padding-inline: 12px; }
  .home-page main .hero-slideshow[data-layout="center"] .hero-copy { padding-top: 290px; }
  .home-page main .hero-slideshow[data-layout="center"] h1 { font-size: clamp(29px,3.15vw,35px); }
}
@media (max-width: 700px) {
  .hero-compare { width: calc(100% - 28px); justify-content: space-between; gap: 8px; padding-block: 9px 2px; }
  .hero-compare-label { font-size: 10px; }
  .hero-compare-note { display: none; }
  .hero-compare-options button { padding: 7px 16px; font-size: 10px; }
  .home-page main .hero-slideshow { height: 736px; margin-top: 6px; border-radius: 4px 4px 38px 4px; }
  .hero-photos { height: 320px; }
  .hero-slide img { height: 100%; object-position: center; }
  .hero-slide[data-slide="interior"] img { object-position: 55% center; }
  .hero-slide[data-slide="consultation"] img { object-position: 88% 35%; }
  .hero-slide[data-slide="dog"] img { width: 100%; left: 0; object-position: 68% 45%; mask-image: none; }
  .hero-slide[data-slide="cats"] img { object-position: 100% 40%; }
  .hero-slide[data-slide="surgery"] img { object-position: 15% center; }
  .home-page main .hero-slideshow .hero-shade, .hero-slideshow[data-layout="center"] .hero-shade { background: linear-gradient(180deg,transparent 220px,rgba(248,245,237,.3) 265px,#f8f5ed 322px) !important; }
  .home-page main .hero-slideshow .hero-copy { margin: 0 27px; padding-top: 300px; width: auto; }
  .home-page main .hero-slideshow h1 { font-size: clamp(23px,7.4vw,42px); line-height: 1.65; letter-spacing: .04em; margin-top: 14px; }
  .home-page main .hero-slideshow .hero-description { font-size: 11px; line-height: 2.15; margin-top: 18px; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .home-page main .hero-slideshow .hero-button { min-width: 0; padding: 13px 16px; gap: 8px; min-height: 52px; font-size: 11px; }
  .home-page main .hero-slideshow .hero-medical-button { min-width: 0; padding: 13px 15px; gap: 7px; min-height: 52px; font-size: 11px; }
  .hero-actions .button .icon { width: 17px; margin-left: 0; }
  .hero-specialties { gap: 14px; margin-top: 13px; font-size: 10px; }
  .hero-specialties > span { font-size: 9px; }
  .hero-specialties a span { margin-left: 3px; }
  .home-page main .hero-slideshow .hero-bottom { left: 27px; bottom: 16px; font-size: 8px; }
  .hero-slideshow .hero-bottom > span, .hero-slideshow .hero-bottom > a { padding-inline: 10px; }
  .hero-controls { left: 24px; right: 24px; bottom: 52px; justify-content: space-between; gap: 12px; }
  .hero-pagination { gap: 2px; }
  .hero-pagination button { min-width: 34px; font-size: 10px; padding-inline: 6px; }
  .hero-pagination button[aria-pressed="true"] i { width: 21px; }
  .hero-pause { width: 38px; height: 38px; }
  .home-page main .hero-slideshow .hero-side-note { display: none; }
  .home-page main .hero-slideshow[data-layout="center"] .hero-copy { width: auto; max-width: none; margin: 0 27px; padding-top: 300px; }
  .home-page main .hero-slideshow[data-layout="center"] h1 { font-size: clamp(23px,7.4vw,42px); margin-top: 14px; }
  .hero-slideshow[data-layout="center"] .hero-title-line { display: block; }
  .hero-slideshow[data-layout="center"] .hero-intro-break { display: initial; }
  .home-page main .hero-slideshow[data-layout="center"] .hero-description { margin-top: 18px; line-height: 2.15; }
  .hero-slideshow[data-layout="center"] .hero-actions { margin-top: 22px; }
}
@media (min-width: 500px) and (max-width: 700px) {
  .home-page main .hero-slideshow { height: 782px; }
}
/* Keep the reading position fixed; give the two clinical scenes their own
   natural proportions instead of enlarging them to fill the whole hero. */
.hero-slideshow[data-layout="left"] .hero-slide[data-slide="consultation"] img,
.hero-slideshow[data-layout="left"] .hero-slide[data-slide="surgery"] img {
  inset: auto 0 auto auto;
  top: 50%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg,transparent,#000 8%);
}
.hero-slideshow[data-layout="left"] .hero-slide[data-slide="consultation"] img {
  width: 65%;
  border-top-left-radius: 52px;
}
.hero-slideshow[data-layout="left"] .hero-slide[data-slide="surgery"] img {
  width: 87%;
  right: -6%;
  /* Only the previous restoration's blank bands are omitted. */
  clip-path: inset(12.45% 0 12.45% 0);
}
@media (max-width: 700px) {
  .hero-slideshow[data-layout="left"] .hero-slide[data-slide="consultation"] img,
  .hero-slideshow[data-layout="left"] .hero-slide[data-slide="surgery"] img {
    inset: auto;
    top: 44%;
    left: 50%;
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: contain;
    transform: translate(-50%,-50%);
    border-radius: 0;
    mask-image: none;
  }
  .hero-slideshow[data-layout="left"] .hero-slide[data-slide="surgery"] img {
    width: 120%;
    left: 56%;
    max-height: none;
  }
}
@media (max-width: 370px) {
  .home-page main .hero-slideshow .hero-copy, .home-page main .hero-slideshow[data-layout="center"] .hero-copy { margin-inline: 20px; }
  .home-page main .hero-slideshow .hero-description { font-size: 10px; }
  .home-page main .hero-slideshow .hero-button { padding-inline: 12px; font-size: 10px; }
  .home-page main .hero-slideshow .hero-medical-button { padding-inline: 11px; font-size: 10px; }
  .hero-specialties { gap: 10px; }
  .home-page main .hero-slideshow .hero-bottom { left: 20px; }
  .hero-controls { left: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-pagination button i { transition: none; }
}
