/* ============================================================
   02-hero — scoped under .sec-02-hero
   Two-column hero: copy left, clinic photo right (desktop, >=1024px).
   Below 1024px the photo stacks under the copy. The photo is never
   placed behind the text and is shown at its own aspect ratio.
   ============================================================ */

.sec-02-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3.5rem));
  padding-bottom: clamp(4rem, 10vw, 7rem);
  overflow: clip;
  /* Light hero: flip the on-ink text tokens to dark ink for this section. */
  background: var(--white);
  --text-on-ink: var(--text-on-bone);
  --text-on-ink-dim: var(--text-on-bone-dim);
  color: var(--text-on-bone);
}
.sec-02-hero .eyebrow { color: var(--accent-strong); }
.sec-02-hero .eyebrow::before { background: var(--accent-strong); }

/* --- Backdrop: white sweeping into a warm peach and the brand lavender tint --- */
.sec-02-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 0%, #fff4ec 50%, #eef1ff 100%);
}

.sec-02-hero__glow {
  position: absolute;
  top: 10%;
  left: 55%;
  width: min(60vw, 900px);
  height: min(60vw, 900px);
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--accent-h) 95% 60% / 0.28) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0.9;
  animation: sec-02-hero-drift 16s var(--ease-out) infinite alternate;
}
@keyframes sec-02-hero-drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to   { transform: translate(4%, 5%) scale(1.12); }
}
html.reduced-motion .sec-02-hero__glow { animation: none; }

/* --- Content row (left copy column + right photo column) --- */
.sec-02-hero__inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .sec-02-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
  }
}

.sec-02-hero__content {
  min-width: 0;
}

.sec-02-hero__eyebrow {
  margin-bottom: 1.4rem;
}

.sec-02-hero__headline {
  margin: 0 0 1.4rem;
  max-width: 18ch;
  /* Two-thirds of the site-wide --fs-hero clamp(2.75rem, 1.2rem + 6.5vw, 6rem),
     every term scaled, so it stays proportional at every width. */
  font-size: clamp(1.85rem, 0.8rem + 4.33vw, 4rem);
}

.sec-02-hero__line {
  display: block;
}

.sec-02-hero__line--rotator {
  color: var(--accent-vivid);
}

/* Rotating word: sizer establishes intrinsic width from the widest option */
.sec-02-hero__rotator {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  color: var(--accent-vivid);
}
.sec-02-hero__rotator-sizer {
  visibility: hidden;
  display: grid;
}
.sec-02-hero__rotator-sizer span {
  grid-area: 1 / 1;
}
.sec-02-hero__rotator-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}
.sec-02-hero__rotator-word.is-leaving {
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  opacity: 0;
  transform: translateY(0.35em);
}
.sec-02-hero__rotator-word.is-entering {
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  transform: translateY(0);
}
html.reduced-motion .sec-02-hero__rotator-word {
  transition: none;
}

.sec-02-hero__line--static {
  color: var(--text-on-bone);
}

.sec-02-hero__word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.28em;
}
.sec-02-hero__word {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 700ms var(--ease-out);
}
html.is-loaded .sec-02-hero__word-wrap:nth-of-type(1) .sec-02-hero__word { transition-delay: 260ms; }
html.is-loaded .sec-02-hero__word-wrap:nth-of-type(2) .sec-02-hero__word { transition-delay: 340ms; }
html.is-loaded .sec-02-hero__word { transform: translateY(0); }
html.reduced-motion .sec-02-hero__word { transform: none; transition: none; }

.sec-02-hero__subhead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--text-on-ink-dim);
  margin-bottom: clamp(1.8rem, 3vw, 2.4rem);
}

.sec-02-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}

/* --- Google rating chip --- */
.sec-02-hero__rating {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem 0.7rem 0.75rem;
  box-shadow: var(--shadow-lift);
  animation: sec-02-hero-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes sec-02-hero-float {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
}
html.reduced-motion .sec-02-hero__rating { animation: none; }

.sec-02-hero__rating-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  border-radius: 50%;
  flex-shrink: 0;
}

.sec-02-hero__rating-text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.sec-02-hero__rating-text strong {
  color: var(--text-on-bone);
  font-family: var(--font-display);
  font-weight: 700;
}
.sec-02-hero__rating-dot {
  margin: 0 0.15rem;
  color: var(--text-on-bone-dim);
}

/* --- Right column: the clinic photo, full color, natural aspect ratio --- */
.sec-02-hero__figure {
  position: relative;
  width: min(640px, 100%);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 1024px) {
  .sec-02-hero__figure {
    /* In-flow grid child: vertically centered against the copy column */
    width: 100%;
    margin-top: 0;
    align-self: center;
  }
}

.sec-02-hero__figure-glow {
  position: absolute;
  inset: -22% -30%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 72%);
  filter: blur(30px);
  opacity: 0.8;
  pointer-events: none;
}

.sec-02-hero__figure-ring {
  position: absolute;
  inset: -12px;
  z-index: 1;
  border: 1.5px solid hsl(var(--accent-h) 70% 62% / 0.4);
  border-radius: calc(var(--radius-lg) + 12px);
  transform: translate(14px, 16px);
  pointer-events: none;
}
@media (max-width: 1279px) {
  .sec-02-hero__figure-ring { transform: translate(6px, 10px); }
}

.sec-02-hero__figure-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.sec-02-hero__figure-img {
  display: block;
  width: 100%;
  height: auto;
  /* Frame stays the original 3:2 photo shape whatever the source's aspect;
     the square hero photo is cropped to it, biased up to keep the face. */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.02);
  transition: transform 550ms var(--ease-out);
}

/* Full color at all times; hover only zooms. */
.sec-02-hero__figure:hover .sec-02-hero__figure-img,
.sec-02-hero__figure:focus-within .sec-02-hero__figure-img {
  transform: scale(1.05);
}

/* --- Docked chip: openings (upper-right of the photo) --- */
.sec-02-hero__chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.95rem 0.55rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lift);
  will-change: transform;
}
.sec-02-hero__chip-icon {
  color: var(--accent-strong);
  flex-shrink: 0;
}

.sec-02-hero__chip--openings {
  top: -1rem;
  right: 0.75rem;
  animation: sec-02-hero-float-b 7s ease-in-out infinite;
}
@media (min-width: 1024px) {
  .sec-02-hero__chip--openings {
    right: clamp(-1rem, -3vw, -0.4rem);
  }
}
@keyframes sec-02-hero-float-b {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-5px); }
}
html.reduced-motion .sec-02-hero__chip--openings { animation: none; }

/* --- Curved bottom divider --- */
.sec-02-hero__divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(50px, 8vw, 110px);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 640px) {
  .sec-02-hero__headline { max-width: 100%; }
  .sec-02-hero__cta { flex-direction: column; align-items: stretch; }
  .sec-02-hero__cta .btn { width: 100%; }
  .sec-02-hero__rating { margin-top: 0.5rem; }
}
