/* ==========================================================================
   Cura Dental — Core stylesheet
   Values transcribed directly from Figma "Cura Dental — Website" (V2.1 UI Design).
   Design frame width: 1280px · content width: 1136px · gutter: 72px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font face — Archivo variable (self-hosted, wght 100–900, wdth 100)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — sampled from Figma */
  --c-navy: #264b66;          /* primary brand / buttons / dark bands */
  --c-navy-deep: #18364b;     /* footer background */
  --c-ink: #404751;           /* headings + primary body text */
  --c-muted: #6b7178;         /* secondary body text */
  --c-terracotta: #ac4e35;    /* eyebrow / accent label */
  --c-cream: #f4f2ec;         /* cream section background */
  --c-cream-alt: #f0ede4;     /* headline cream on navy */
  --c-border: #e6e6e6;        /* header hairline */
  --c-white: #ffffff;
  --c-on-navy-soft: rgba(255, 255, 255, 0.64);  /* benefit body copy */
  --c-rule-on-navy: rgba(255, 255, 255, 0.14);  /* footer divider */
  --c-cta-ghost-text: #a9b6c0;                  /* CTA light button label */

  /* Typography */
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --fs-eyebrow: 12px;
  --fs-h1: 72px;
  --fs-h2-xl: 52px;
  --fs-h2-lg: 44px;
  --fs-h2: 40px;
  --fs-h2-sm: 38px;
  --fs-h3: 36px;
  --fs-benefit: 24px;
  --fs-card-title: 21px;
  --fs-step-title: 20px;
  --fs-name: 19px;
  --fs-lead-lg: 19px;
  --fs-lead: 17px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 13px;

  /* Layout */
  --container: 1280px;
  --content: 1136px;
  --gutter: 72px;

  /* Radii */
  --r-card: 20px;
  --r-btn: 4px;
  --r-faq: 6px;
  --r-pill: 30px;
  --r-tile: 14px;

  /* Motion — long, soft, expo-out easing for a luxurious settle */
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-reveal: 1150ms;
  --dur-hover: 480ms;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-variation-settings: 'wdth' 100;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.cura-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--c-navy);
  color: var(--c-white);
  font-size: var(--fs-label);
  font-weight: 600;
}

.cura-skip-link:focus {
  left: 12px;
  top: 12px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Narrower measure used by centred section intros */
.container--tight {
  max-width: calc(var(--content) + var(--gutter) * 2);
}

.section {
  position: relative;
}

.section--cream { background: var(--c-cream); }
.section--navy  { background: var(--c-navy); }
.section--faq   { background: rgba(244, 242, 236, 0.3); }

/* --------------------------------------------------------------------------
   5. Typography components
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.96px;
  color: var(--c-terracotta);
  text-transform: uppercase;
  line-height: normal;
}

.eyebrow--on-navy {
  color: var(--c-white);
  font-size: var(--fs-label);
  letter-spacing: 0.78px;
}

.eyebrow--wide {
  color: var(--c-white);
  letter-spacing: 1.68px;
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  color: var(--c-ink);
  letter-spacing: -0.5px;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.08;
  color: var(--c-ink);
}

.h2--xl { font-size: var(--fs-h2-xl); line-height: 1.06; color: var(--c-white); }
.h2--lg { font-size: var(--fs-h2-lg); line-height: 1.06; color: var(--c-cream-alt); }
.h2--sm { font-size: var(--fs-h2-sm); line-height: 1.1; }
.h3     { font-size: var(--fs-h3); font-weight: 800; line-height: 1.12; color: var(--c-ink); }

.lead-lg {
  font-size: var(--fs-lead-lg);
  line-height: 1.58;
  color: var(--c-muted);
}

.lead {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-muted);
}

.lead--on-navy {
  font-size: var(--fs-lead);
  line-height: 1.58;
  color: var(--c-white);
}

/* Centred section intro block (eyebrow → heading → lead) */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head__title { margin-top: 18px; }
.section-head__lead  { margin-top: 16px; }

.section-head--left {
  align-items: flex-start;
  text-align: left;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: var(--r-btn);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14px;
  line-height: normal;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition:
    background-color var(--dur-hover) var(--ease-gentle),
    border-color var(--dur-hover) var(--ease-gentle),
    color var(--dur-hover) var(--ease-gentle),
    transform var(--dur-hover) var(--ease-soft),
    box-shadow var(--dur-hover) var(--ease-soft);
}

.btn__arrow {
  font-size: 15px;
  font-weight: 400;
  transition: transform var(--dur-hover) var(--ease-soft);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

.btn--primary:hover {
  background: #1d3d55;
  border-color: #1d3d55;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(38, 75, 102, 0.55);
}

/* Outlined dark — "View All FAQs" */
.btn--outline {
  border-color: var(--c-ink);
  color: var(--c-ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--c-ink);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* Outlined light on navy — "Contact Us" */
.btn--ghost-light {
  border-color: var(--c-white);
  color: var(--c-white);
  background: transparent;
}

.btn--ghost-light:hover {
  background: var(--c-white);
  color: var(--c-navy);
  transform: translateY(-2px);
}

/* Solid white on navy with navy label — highlighted pricing tier */
.btn--white {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-navy);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.35);
}

/* Solid white on navy — CTA primary */
.btn--light {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-cta-ghost-text);
  min-width: 190px;
}

.btn--light:hover {
  color: var(--c-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.4);
}

/* Cream on navy — footer "Refer a Patient" */
.btn--cream {
  background: var(--c-cream);
  border-color: var(--c-white);
  color: var(--c-navy);
}

.btn--cream:hover {
  background: var(--c-white);
  transform: translateY(-2px);
}

/* Compact header button */
.btn--sm {
  padding: 12px 22px;
  font-size: var(--fs-label);
  letter-spacing: 0.13px;
}

.btn--sm .btn__arrow { font-size: var(--fs-small); }

/* Inline text link with arrow — "Learn more" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.13px;
  color: var(--c-ink);
  line-height: normal;
}

.link-arrow__arrow {
  font-size: var(--fs-small);
  font-weight: 400;
  transition: transform var(--dur-hover) var(--ease-soft);
}

.link-arrow:hover .link-arrow__arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Media frame — rounded image with soft zoom on hover
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-cream);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms var(--ease-soft);
}

a:hover > .media img,
.card:hover .media img {
  transform: scale(1.035);
}

/* --------------------------------------------------------------------------
   7b. Video card — cover image, play and pause controls (Figma "Video poster")
   The Vimeo player is created on the first play and then kept alive: pausing
   brings the cover back over the held frame and the next play resumes from
   the same second. See initVideos() in app.js.
   -------------------------------------------------------------------------- */

.video-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  border-radius: var(--r-card);
  background: var(--c-navy-deep);
  container-type: size;
}

/* Cover: above the player, fading out while the film plays and back the
   moment it pauses so the player's frozen frame is never on show. */
.video-card__poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: opacity 320ms var(--ease-gentle), visibility 0s linear 0s;
}

.video-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms var(--ease-soft);
}

.video-card:not(.is-playing):hover .video-card__poster img { transform: scale(1.035); }

.video-card.is-playing .video-card__poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-gentle), visibility 0s linear 320ms;
}

/* Player: under the cover. The film fills the card the same way the cover
   image does (object-fit: cover), so cover and film line up with no bars. */
.video-card__player {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  transition: opacity 320ms var(--ease-gentle);
}

.video-card__player[hidden] { display: none; }

.video-card.is-playing .video-card__player { opacity: 1; }

.video-card__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@supports (width: 1cqw) {
  .video-card__player iframe {
    top: 50%;
    left: 50%;
    width: max(100cqw, calc(100cqh * (var(--video-ratio, 16 / 9))));
    height: max(100cqh, calc(100cqw / (var(--video-ratio, 16 / 9))));
    transform: translate(-50%, -50%);
  }
}

/* Play and pause are both whole-card controls, so the target is generous on
   touch; only their glyphs differ. */
.video-card__play,
.video-card__pause {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: inherit;
}

.video-card__play  { z-index: 4; }
.video-card__pause { z-index: 5; }

.video-card__play[hidden],
.video-card__pause[hidden] { display: none; }

.video-card__play:focus-visible,
.video-card__pause:focus-visible {
  outline: 3px solid var(--c-white);
  outline-offset: -9px;
}

.video-card:has(.video-card__play:focus-visible),
.video-card:has(.video-card__pause:focus-visible) {
  box-shadow: 0 0 0 3px var(--c-navy);
}

.video-card__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding-left: 4px; /* optical centring of the triangle */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--dur-hover) var(--ease-soft),
    box-shadow var(--dur-hover) var(--ease-soft),
    opacity 260ms var(--ease-gentle);
}

.video-card__btn--pause { padding-left: 0; }

.video-card__btn svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: var(--c-navy);
  transition: opacity 200ms var(--ease-gentle);
}

.video-card__play:hover .video-card__btn,
.video-card__play:focus-visible .video-card__btn,
.video-card__pause:hover .video-card__btn,
.video-card__pause:focus-visible .video-card__btn {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

/* Between the click and the first frame the play glyph becomes a spinner. */
.video-card.is-loading .video-card__btn svg { opacity: 0; }

.video-card.is-loading .video-card__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(38, 75, 102, 0.18);
  border-top-color: var(--c-navy);
  animation: video-spin 900ms linear infinite;
}

@keyframes video-spin {
  to { transform: rotate(360deg); }
}

/* The pause glyph keeps the frame clean: it appears while the pointer rests
   on the film or the control has keyboard focus, and for a moment after play
   starts so it is discoverable. */
.video-card__pause .video-card__btn {
  opacity: 0;
  transform: scale(0.9);
}

.video-card.is-playing:hover .video-card__pause .video-card__btn,
.video-card.is-fresh .video-card__pause .video-card__btn,
.video-card__pause:focus-visible .video-card__btn {
  opacity: 1;
  transform: scale(1);
}

.video-card__pause:hover .video-card__btn { transform: scale(1.08); }

/* No hover on touch: a smaller pause disc stays in the corner instead. */
@media (hover: none) {
  .video-card__pause {
    place-items: end;
    padding: 16px;
  }

  .video-card.is-playing .video-card__pause .video-card__btn {
    width: 48px;
    height: 48px;
    opacity: 0.88;
    transform: none;
  }

  .video-card.is-playing .video-card__pause .video-card__btn svg {
    width: 20px;
    height: 20px;
  }
}

.video-card__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 6;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24px;
  line-height: normal;
  color: var(--c-navy-deep);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 260ms var(--ease-gentle);
}

.video-card.is-playing .video-card__caption { opacity: 0; }

/* Last resort when the browser refuses a scripted start: Vimeo's own controls
   become the interface, so the card's cover and controls step aside. */
.video-card.has-native-controls .video-card__poster,
.video-card.has-native-controls .video-card__play,
.video-card.has-native-controls .video-card__pause { display: none; }

.video-card.has-native-controls .video-card__player { opacity: 1; }

/* Without JavaScript the play control can do nothing, so link out instead. */
.video-card__fallback {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 56px;
  z-index: 7;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  background: var(--c-navy);
  color: var(--c-white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
}

/*
 * Expanding layouts (How it works, Our story). While the film plays the card
 * takes the whole content width at the film's own proportions and the copy
 * beside it steps aside; on pause the split layout returns with the cover.
 * The size change itself is driven by app.js between measured values, so the
 * stylesheet only describes the two resting states.
 */
.split__body,
.story__body {
  transition: opacity 180ms var(--ease-gentle);
}

.is-expanding > .split__body,
.is-expanding > .story__body { opacity: 0; }

.split__inner.is-expanded,
.story__inner.is-expanded { display: block; }

.split__inner.is-expanded > .split__body,
.story__inner.is-expanded > .story__body { display: none; }

.is-expanded > .video-card {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: var(--video-ratio, 16 / 9);
}

/* --------------------------------------------------------------------------
   8. Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 600ms var(--ease-gentle);
}

.site-header.is-stuck {
  box-shadow: 0 6px 28px -18px rgba(38, 75, 102, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.site-header__logo {
  display: block;
  width: 140px;
  height: 44px;
  flex-shrink: 0;
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-ink);
  line-height: normal;
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-hover) var(--ease-gentle);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--c-navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 560ms var(--ease-soft);
}

.site-nav__link:hover { color: var(--c-navy); }

.site-nav__link:hover::after,
.site-nav__link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   8b. Treatments mega menu
   -------------------------------------------------------------------------- */

/*
 * Deliberately not positioned: the panel below is anchored to .site-header
 * (the nearest positioned ancestor, via its sticky positioning) so it spans
 * the full header width and lines up with the site gutter, rather than being
 * centred on this nav item.
 */
.site-nav__item {
  display: flex;
  align-items: center;
}

.site-nav__link--mega {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav__caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 460ms var(--ease-soft), opacity 300ms var(--ease-gentle);
  opacity: 0.55;
}

.has-mega.is-open .site-nav__caret {
  transform: translateY(1px) rotate(-135deg);
  opacity: 1;
}

/*
 * The panel spans the full viewport width and hangs off the bottom edge of the
 * sticky header, so it is pinned to the header rather than the nav item.
 */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 24px 48px -32px rgba(38, 75, 102, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Sits a touch higher when closed so it settles downward on open */
  transform: translateY(-10px);
  transition:
    opacity 520ms var(--ease-gentle),
    transform 620ms var(--ease-soft),
    visibility 0s linear 620ms;
}

.has-mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.mega__inner { padding-block: 32px 28px; }

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mega__card {
  display: block;
  border-radius: 12px;
  transition: transform 520ms var(--ease-soft);
}

.mega__card:hover { transform: translateY(-3px); }

/*
 * The tile is the landscape photos' own 3:2 shape, so they fill it whole. A
 * photo of another shape (General Dentistry is a 2:3 portrait) is trimmed to
 * fit, framed by the treatment's "Menu image framing" (see header.php).
 */
.mega__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
}

.mega__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No hover zoom here, so each photo keeps the framing chosen for it.
   The card still lifts and the title still changes colour. */
.mega__card:hover .mega__media img { transform: none; }

.mega__title {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  transition: color var(--dur-hover) var(--ease-gentle);
}

.mega__card:hover .mega__title { color: var(--c-navy); }

.mega__text {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--c-muted);
}

.mega__footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-ink);
}

.mega__footer span { transition: transform var(--dur-hover) var(--ease-soft); }
.mega__footer:hover span { transform: translateX(4px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-right: -10px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 520ms var(--ease-soft), opacity 320ms var(--ease-gentle);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. Site footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-navy-deep);
  color: var(--c-white);
  padding-block: 56px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}

.site-footer__logo {
  display: block;
  width: 231px;
  height: 74px;
  margin-bottom: 16px;
}

.site-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer__blurb {
  max-width: 280px;
  font-size: var(--fs-small);
  line-height: 1.58;
  color: var(--c-white);
}

.site-footer__heading {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  line-height: normal;
  margin-bottom: 14px;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__list a,
.site-footer__detail {
  font-size: var(--fs-small);
  line-height: 1.72;
  color: var(--c-white);
}

.site-footer__list a {
  transition: opacity var(--dur-hover) var(--ease-gentle);
  width: fit-content;
}

.site-footer__list a:hover { opacity: 0.68; }

.site-footer__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-rule-on-navy);
  font-size: var(--fs-label);
  line-height: normal;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__sep { opacity: 0.4; }

.site-footer__credit {
  opacity: 0.7;
  transition: opacity var(--dur-hover) var(--ease-gentle);
}

a.site-footer__credit:hover { opacity: 1; }

.site-footer__legal-link {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur-hover) var(--ease-gentle);
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible { opacity: 1; }

.site-footer__socials {
  display: flex;
  gap: 6px;
  font-weight: 500;
}

.site-footer__socials a {
  transition: opacity var(--dur-hover) var(--ease-gentle);
  padding-inline: 6px;
}

.site-footer__socials a:hover { opacity: 0.68; }

.site-footer__socials span { opacity: 0.5; }

/* --------------------------------------------------------------------------
   10. Floating widgets — WhatsApp pill + chat bubble
   -------------------------------------------------------------------------- */

.widget-whatsapp {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px 14px 18px;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-white);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: normal;
  box-shadow: 0 14px 34px -16px rgba(38, 75, 102, 0.7);
  transition: transform var(--dur-hover) var(--ease-soft),
    box-shadow var(--dur-hover) var(--ease-soft);
}

.widget-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(38, 75, 102, 0.8);
}

.widget-whatsapp__icon {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--c-white);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.widget-whatsapp__icon svg {
  width: 13px;
  height: 13px;
  fill: var(--c-navy);
}

.widget-chat {
  position: fixed;
  right: 32px;
  bottom: 30px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -16px rgba(38, 75, 102, 0.7);
  transition: transform var(--dur-hover) var(--ease-soft);
}

.widget-chat:hover { transform: translateY(-3px) scale(1.04); }

.widget-chat svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.6;
}

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 33px;
  overflow: hidden;
}

/* Cream band that sits behind the lower portion of the hero image */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 178px;
  background: var(--c-cream);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title { margin-top: 26px; }

.hero__lead {
  margin-top: 24px;
  max-width: 620px;
  font-size: var(--fs-lead-lg);
  line-height: 1.58;
  color: var(--c-muted);
}

.hero__cta { margin-top: 34px; }

.hero__media {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  height: 420px;
}

/* --------------------------------------------------------------------------
   12. Results — two-up image grid on cream
   -------------------------------------------------------------------------- */

.results {
  background: var(--c-cream);
  padding-block: 62px 100px;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.results__grid .media,
.results__grid .video-card { height: 360px; }

/* --------------------------------------------------------------------------
   13. Stats band
   -------------------------------------------------------------------------- */

.stats {
  background: var(--c-navy);
  padding-block: 64px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stats__value {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: normal;
  color: var(--c-cream-alt);
}

.stats__label {
  margin-top: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.26px;
  line-height: normal;
  color: var(--c-cream);
}

/* --------------------------------------------------------------------------
   14. Treatments — 4-up card grid
   -------------------------------------------------------------------------- */

.treatments { padding-block: 80px; }

.treatments__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
  align-items: start;
}

.card-treatment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* The cream plate reaches 5px beyond the image and 14px below the link;
     the negative margins keep the grid exactly where the design put it. */
  padding: 5px 5px 14px;
  margin: -5px -5px -14px;
  border-radius: var(--r-card);
  transition: background-color 620ms var(--ease-gentle);
}

/* The cream backing plate (Figma "Treatment Card / Hover") appears only on
   interaction — pointer hover or keyboard focus — never at rest. */
.card-treatment:hover,
.card-treatment:focus-visible {
  background: var(--c-cream);
}

/* Copy sits 16px in from the plate's edge, as the hover state draws it, in
   both states so nothing shifts when the plate appears. */
.card-treatment > :not(.media) { margin-inline: 11px; }

.card-treatment .media {
  width: 100%;
  height: 360px;
}

.card-treatment__title {
  margin-top: 18px;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: normal;
  color: var(--c-ink);
}

.card-treatment__text {
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.52;
  color: var(--c-muted);
}

.card-treatment .link-arrow { margin-top: 14px; }

.treatments__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 52px;
  font-size: var(--fs-body);
  color: var(--c-ink);
  line-height: normal;
}

.treatments__footer-note { font-weight: 500; }
.treatments__footer-link { font-weight: 700; }

.treatments__footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   15. Split section — text beside a tall image (Why Choose Us / How It Works)
   -------------------------------------------------------------------------- */

.split {
  padding-block: 85px;
}

.split__inner {
  display: grid;
  justify-content: start;
  align-items: center;
}

/*
 * These two sections are inset further than the standard 72px gutter in the
 * Figma frame, and each uses its own column widths and gap. Reproduced here
 * exactly; the responsive layer relaxes them below 1280px.
 */

/* Why Choose Us — copy 170→640, image 709→1140 */
.split--why > .container {
  padding-left: 170px;
  padding-right: 140px;
}

.split--why .split__inner {
  grid-template-columns: 470px 431px;
  gap: 69px;
}

/* How It Works — image 169→599, copy 695→1111 */
.split--how > .container {
  padding-left: 169px;
  padding-right: 169px;
}

.split--how .split__inner {
  grid-template-columns: 430px 416px;
  gap: 96px;
}

.split__media {
  height: 560px;
  width: 100%;
}

.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split__title { margin-top: 18px; }
.split__lead  { margin-top: 16px; }

/* Measures taken from the Figma text frames */
.split--why .split__title { max-width: 353px; }
.split--why .split__lead  { max-width: 414px; }

.split__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.feature__title {
  font-size: var(--fs-name);
  font-weight: 700;
  line-height: normal;
  color: var(--c-ink);
}

.feature__text {
  margin-top: 7px;
  font-size: var(--fs-small);
  line-height: 1.52;
  color: var(--c-muted);
}

.split__cta { margin-top: 35px; }

/* Numbered steps — How It Works */
.steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 34px;
  width: 100%;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.step__num {
  font-size: 34px;
  font-weight: 800;
  line-height: normal;
  color: var(--c-navy);
  flex-shrink: 0;
}

.step__title {
  font-size: var(--fs-step-title);
  font-weight: 700;
  line-height: normal;
  color: var(--c-ink);
}

.step__text {
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: 1.52;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   16. Wide practice image band
   -------------------------------------------------------------------------- */

/*
 * The image is 1012px wide and centred, and a cream band carries the colour
 * of the preceding section down over its top 121px.
 */
.practice-band {
  position: relative;
  padding-block: 0;
}

.practice-band::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 121px;
  background: var(--c-cream);
}

.practice-band > .container { position: relative; }

.practice-band .media {
  max-width: 1012px;
  margin-inline: auto;
  height: 420px;
}

/* --------------------------------------------------------------------------
   17. Benefits — arched centre image flanked by two feature columns
   -------------------------------------------------------------------------- */

.benefits {
  background: var(--c-navy);
  padding-block: 61px 80px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 440px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.benefits__col {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.benefits__col--left { text-align: right; }

.benefit__title {
  font-size: var(--fs-benefit);
  font-weight: 500;
  line-height: normal;
  color: var(--c-white);
}

.benefit__text {
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-on-navy-soft);
}

.benefits__media {
  position: relative;
  height: 620px;
  border-radius: 220px 220px 24px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 15px;
}

.benefits__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits__badge {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--r-tile);
  background: var(--c-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.benefits__badge img {
  position: static;
  width: 30px;
  height: 37px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq {
  background: rgba(244, 242, 236, 0.3);
  padding-block: 80px;
}

/* FAQ — intro 198→560, accordion 623→1159 */
.faq > .container {
  padding-left: 198px;
  padding-right: 121px;
}

.faq__inner {
  display: grid;
  grid-template-columns: 362px 536px;
  justify-content: start;
  gap: 63px;
  align-items: start;
}

.faq__intro { max-width: 362px; }
.faq__title { margin-top: 18px; max-width: 333px; }
.faq__lead  { margin-top: 16px; max-width: 349px; }
.faq__cta   { margin-top: 28px; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--c-white);
  border-radius: var(--r-faq);
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: normal;
  color: var(--c-ink);
}

.faq-item__icon {
  font-size: var(--fs-step-title);
  font-weight: 500;
  color: var(--c-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 520ms var(--ease-soft);
}

.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 620ms var(--ease-soft);
}

.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

.faq-item__panel-inner { overflow: hidden; }

.faq-item__answer {
  padding: 0 24px 20px;
  font-size: var(--fs-small);
  line-height: 1.58;
  color: var(--c-muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 520ms var(--ease-gentle) 80ms,
    transform 520ms var(--ease-soft) 80ms;
}

.faq-item.is-open .faq-item__answer {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Team — 5-up card grid
   -------------------------------------------------------------------------- */

.team { padding-block: 80px; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.card-team { display: block; }

.card-team .media { height: 320px; }

/* Team portraits keep heads in view when the card turns landscape on phones */
.card-team .media img { object-position: 50% 12%; }

.card-team__name {
  margin-top: 16px;
  font-size: var(--fs-name);
  font-weight: 700;
  line-height: normal;
  color: var(--c-ink);
}

.card-team__role {
  margin-top: 4px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.13px;
  line-height: normal;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   20. Closing CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--c-navy);
  padding-block: 80px;
}

.cta-band__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: 962px;
  margin-inline: auto;
}

.cta-band__title { margin-top: 18px; }

.cta-band__lead {
  margin-top: 16px;
  max-width: 458px;
  font-size: var(--fs-body);
  line-height: 1.58;
  color: var(--c-white);
}

.cta-band__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   21. Entrance animations — long, soft, expo-out
   -------------------------------------------------------------------------- */

/* Base reveal state. Applied by JS only when motion is allowed, so
   no-JS visitors always see fully rendered content. */
.js-anim [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity var(--dur-reveal) var(--ease-gentle),
    transform var(--dur-reveal) var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Default — a soft rise into place */
.js-anim [data-reveal='fade-up'] {
  transform: translate3d(0, 26px, 0);
}

/* Pure opacity, no movement */
.js-anim [data-reveal='fade'] {
  opacity: 0;
}

.js-anim [data-reveal='fade-left'] {
  transform: translate3d(-28px, 0, 0);
}

.js-anim [data-reveal='fade-right'] {
  transform: translate3d(28px, 0, 0);
}

/* Images settle out of a gentle scale rather than a slide */
.js-anim [data-reveal='media'] {
  transform: scale(1.045);
}

.js-anim [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Release the compositor hint once the animation has settled */
.js-anim [data-reveal].is-settled { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js-anim [data-reveal],
  .js-anim [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
