/* ============================================================
   Nusantara Family Wellness — style system
   Tokens first, then layout. See BRIEF.md for the content brief.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colour theme updated 24 Nov 2026 to match the client's shop banner
     (warm sand + brown). Token names below are historic: 'olive' is now
     sand, 'rose' pale sand, 'olive-ink' deep brown, 'rose-ink' banner brown.
     Original note: no dark grounds anywhere on the page. milk is the main
     ground, olive is the nav bar / CTA-visit section / alt bands,
     rose is a light accent used sparingly. All three are light — near
     enough in luminance to each other that milk text on olive or rose
     is unreadable (milk on olive: 1.68:1).
     olive-ink is the one dark tone left, and it is TEXT/ICON ONLY —
     never a background, never a section ground, never a button fill.
     Every section, bar, button and card fill in this file resolves to
     milk, olive or rose; olive-ink only ever appears as a `color`,
     `outline-color`, `fill` or inside a border/shadow value.
     Measured: olive-ink on milk 9.38:1, on olive 5.58:1, on rose
     7.73:1 — all safe for body text. rose-ink (small marks, quiet
     accents) is 6.28:1 on milk but only 3.74:1 on olive — below the
     4.5:1 text floor — so anywhere rose-ink used to sit as TEXT on an
     olive ground it has been blended toward olive-ink instead (see
     .field-error below).
     One dimming convention, used everywhere a "quieter but still
     legible" state is needed on a light ground (inactive nav link,
     the enquiry hint line, a stand-in value marked "to be confirmed"):
     opacity: 0.92 on olive-ink text, measured at 4.78:1 on olive — the
     full headroom above 4.5:1 is much thinner than it was with milk
     text on a dark ground (which had room to dim to 0.75 and still
     clear 4.67:1), so the active/inactive contrast is a visibly
     smaller step now. Flagging that as a real consequence of removing
     the dark grounds, not an oversight. */
  --milk:       #FBF5EC;   /* warm cream (main ground) */
  --olive:      #F2CFA8;   /* banner sand (nav, bands, buttons) */
  --rose:       #F6E7D6;   /* pale sand accent */
  --olive-ink:  #3A2416;   /* deep brown text */
  --rose-ink:   #70380A;   /* banner brown accent */

  /* Hairlines and dividers: olive-ink at low opacity, never raw olive
     (olive itself is a fill only — see above). */
  --hairline: color-mix(in srgb, var(--olive-ink) 24%, transparent);

  /* Card ink for text sitting directly on flat rose (the services
     card's no-photo fallback ground): 8.44:1 on the current --rose —
     safe for a name and a description line both. */
  --card-ink: #3A2416;

  /* Type — one family now, client instruction: Fraunces is gone
     entirely. --display is kept as a separate token (rather than
     deleting it and switching every h1/h2/h3/blockquote to --body
     directly) purely so weight/letter-spacing can still be scoped to
     "heading-sized type" without re-touching every selector again if
     this ever changes back. */
  --display: 'Inter', -apple-system, sans-serif;
  --body: 'Inter', -apple-system, sans-serif;

  /* Motion — Emil Kowalski curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* The one page gutter. Every section wrapper's horizontal padding
     reads this — nothing gets its own bespoke left margin — so the
     eyebrow, headline, labels and body copy in every section share one
     left edge. Anywhere that bleeds past .wrap on purpose (the story
     image) or clips at it on purpose (the services rail) derives its
     own math from this same variable, so a future change here doesn't
     silently throw them out of sync with the wrap they're escaping
     from or clipping against. Text max-widths (ch-based, on .lead,
     captions, etc.) are deliberately independent of this value — the
     gutter controls how much room sections get, never how wide a line
     of prose is allowed to run. */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--milk);
  color: var(--olive-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--olive); color: var(--olive-ink); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, blockquote { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out), filter 160ms var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
/* Both buttons are light fills with dark text now — olive-ink can no
   longer be a button fill (never a background, site-wide). Primary is
   olive, invert is milk; hover on both is a brightness filter rather
   than a colour swap, since there's no dark state left to invert to. */
.btn-primary { background: var(--olive); color: var(--olive-ink); }
.btn-primary:hover { filter: brightness(0.88); }
.btn-invert { background: var(--milk); color: var(--olive-ink); }
.btn-invert:hover { filter: brightness(0.94); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* Body-copy-sized, underlined, no border/fill — sits beside the one
   real hero button as a quiet secondary path, not a second button
   competing with it. */
.text-link {
  font-size: 1rem;
  color: var(--olive-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--rose-ink); }

/* ---------- Top bar ---------- */
/* Light olive ground now, not a dark one — olive-ink text throughout
   (5.58:1), never milk (milk on olive is only 1.68:1, unreadable). */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--olive);
  backdrop-filter: none;
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* An <a> now (back to the hero), not a plain <span> — reset so it
   doesn't pick up default link styling on top of the wordmark look. */
.topbar-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--olive-ink);
  text-decoration: none;
}
.topbar-name:hover { text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
/* Dimmed by default (opacity 0.92, the site's one dimming convention —
   see the root comment — measures 4.78:1 on the olive bar) so the
   .is-active link, at full olive-ink (5.58:1), reads as the one the
   visitor is currently on. The active/inactive gap is real but much
   narrower than it was on the old dark bar (there was room to dim to
   0.75 there and still clear 4.67:1); on this light ground, full
   strength is only 5.58:1 to begin with, so there isn't room for a
   bigger step without failing 4.5:1. script.js's scroll-spy
   IntersectionObserver is the only thing that ever toggles
   .is-active — nothing here decides it. */
.topbar-link {
  font-size: 0.9rem;
  color: var(--olive-ink);
  opacity: 0.92;
  text-decoration: none;
  transition: color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
/* Underline only, no color shift — a "darken on hover" treatment has
   no headroom left to work with on this light a bar (see the root
   comment on how thin the margin above 4.5:1 already is), so hover
   stays a shape change rather than another colour step. */
.topbar-link:hover { text-decoration: underline; }
.topbar-link.is-active { opacity: 1; }

/* Hidden by default at every width — only the html.js + <768px rule
   further down ever shows this. Without JS there is no hamburger and
   no menu to fail to open; the four links above just render inline,
   full stop. 44x44 is the tap-target floor, not a visual choice. */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--olive-ink);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
/* Hamburger becomes a close mark — the top and bottom bars rotate into
   an X at the middle bar's position (one bar-height + the gap, 7px),
   the middle bar just fades out rather than trying to fold into the
   crossing point too. */
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: 3px; }

@media (max-width: 767px) {
  html.js .menu-toggle { display: flex; }
  /* Closed state, declared here in CSS — script.js only ever toggles
     .is-open; it never sets display/height/opacity directly. Without
     html.js this rule never applies at all, so the base .topbar-links
     rule above (plain inline flex) is what a no-JS visitor gets, full
     width and already open, nothing to fail to expand. */
  html.js .topbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--olive);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 250ms var(--ease-out), opacity 250ms var(--ease-out);
  }
  /* Generous cap, not a measured height — four short links never get
     close to it, and a cap that's larger than the real content only
     costs a slightly eased-out (not linear) reveal, invisible at this
     small a height difference. */
  html.js .topbar-links.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
  html.js .topbar-link {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar { transition: none; }
  html.js .topbar-links { transition: opacity 120ms linear; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 100svh, not 100vh: on iOS Safari 100vh is taller than what's
     actually visible (it ignores the address bar), which pushes the
     CTAs below the fold on load. svh is the guaranteed-visible height.
     min-height, not height, so a short viewport can still push this
     taller to fit its content rather than clipping it — --nav-height
     is measured in script.js, with a static fallback here in case JS
     hasn't run yet. */
  min-height: calc(100svh - var(--nav-height, 70px));
  padding: 96px 0 72px;
  text-align: center;
  /* Milk fallback: if the image fails to load, the hero still looks
     right — same ground as the rest of the page, no broken-image gap. */
  background: var(--milk);
}
/* Full-bleed, behind the content wrap, not inside it. Decorative only
   (alt="" — the ripple carries no information text doesn't already), so
   sized purely by the hero's own box via inset:0 + object-fit:cover. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.85rem;
  /* Olive-ink, not the site's usual rose-ink eyebrow colour: both clear
     the 4.5:1 text floor over the hero photo now (worst-case pixel
     measured: rose-ink 4.64:1, olive-ink 6.94:1), but olive-ink keeps
     the wider margin, so it stays the one exception. Scoped to this one
     eyebrow only — every other eyebrow on the page stays rose-ink. */
  color: var(--olive-ink);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 0 auto;
  color: var(--olive-ink);
}
/* <em> defaults to italic in every browser's UA stylesheet — normal
   here overrides that rather than just omitting a rule that used to
   set italic on purpose. */
.hero-headline em { font-style: normal; color: var(--olive-ink); }

/* Line 1 is plain static text — it can center normally, its width never
   changes. Line 2 is forced onto its own line (never relies on where it
   happens to wrap) and is NOT allowed to auto-center: its width is fixed
   by script.js to what "to restore." (the middle-width word) measures,
   then centered as a block via margin auto. That fixed width is what
   lets it read centred against line 1 without ever re-centring itself
   as the rotating word's width changes — "to" sits at the block's own
   left edge, which never moves; only the word grows from it, rightward.
*/
.hero-headline-line1,
.hero-headline-line2 { display: block; }
/* Hidden only once we know JS is actually running (the html.js class is
   set from a head script before anything renders) — so a JS failure or
   a blocked script never leaves the headline stuck invisible; it just
   shows normally, with no entrance. While hidden, script.js measures
   line 2 and locks its width BEFORE revealing it, which is what stops
   the sideways jump line 2 used to make: it used to render at its
   natural auto width, get centred, and only then get resized once JS
   measured it — visibly, because that used to happen after it was
   already on screen. */
html.js .hero-headline-line1,
html.js .hero-headline-line2 {
  visibility: hidden;
}
.hero-headline-line1 {
  /* Rose-ink, not the headline's usual olive-ink — matches the dark
     rose used elsewhere on the page. Large text only needs 3:1 against
     the hero photo; rose-ink measures 4.64:1 there (worst-case pixel),
     so no scrim needed. */
  color: var(--rose-ink);
}
.hero-headline-line2 {
  margin: 0 auto;
  white-space: nowrap;
  text-align: left;
}
.hero-headline-to {
  color: var(--olive-ink);
  margin-right: 0.28em;
}

/* Word rotator — relax / restore / reconnect, rolling upward on a loop.
   Box width and the vertical roll are driven together by script.js
   (GSAP): widths are measured from the actual rendered words, not
   guessed, so the box is never wider or narrower than the word asks
   for. Height is the one thing CSS can fix without measurement, since
   it only depends on the line-height already set below. Color inherits
   the olive-ink above — the rotating word stays in olive-ink, not olive. */
.word-rotator {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
  height: 1.08em;
}
.word-rotator-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* The only thing here GSAP actually animates (yPercent, a transform) —
     promoted to its own layer so the roll doesn't repaint the headline
     around it every frame. */
  will-change: transform;
}
.word-rotator-word { white-space: nowrap; line-height: 1.08; }

.hero-cta-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Full-viewport was the right call on desktop, wrong on mobile — it
   pushed the entire next section below the fold with no hint there
   was more page. 72svh (svh, not vh — vh ignores iOS Safari's address
   bar and overshoots) leaves a deliberate slice of the next section
   visible as a scroll cue, as long as content actually fits inside
   that height with this padding — which is why the headline also
   drops a step here rather than being left to overflow it. */
@media (max-width: 767px) {
  .hero {
    min-height: 72svh;
    padding: 56px 0 40px;
  }
  .hero-headline { font-size: clamp(2.1rem, 9vw, 2.6rem); }
}

/* ---------- Sections, generally ---------- */
.section { padding: 88px 0; }
.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-ink);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.lead {
  font-size: 1.05rem;
  color: var(--rose-ink);
  max-width: 62ch;
  line-height: 1.7;
}

/* ---------- Story: the problem, the founder's own words, a portrait ---------- */
.story { padding: 32px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 64px;
  /* Was align-items:start — with a short two-line headline + quote next
     to a much taller image, that pinned the text to the image's top
     edge and left a lot of image running on below it. Centring both
     columns to each other means the text block now sits at the
     image's vertical middle instead. */
  align-items: center;
}
.story-title { margin-bottom: 24px; }
/* The rose rule and the indent (not italic any more — that was a
   serif-quote convention with no equivalent reason to keep in Inter)
   are what still mark this as the founder's own voice, the only one
   on the page, rather than folding it into plain body copy. Sized to
   sit clearly below the headline (max 1.3rem vs. the headline's
   1.7–2.5rem) while still reading as a statement, not a paragraph. */
.founder-quote {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--olive-ink);
  border-left: 2px solid var(--rose-ink);
  padding-left: 22px;
  max-width: 46ch;
  margin: 0 0 16px;
}
.founder-attribution {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rose-ink);
  padding-left: 22px;
}

/* No box: no radius, no border, no fill, no shadow on the container —
   the image itself dissolves into the page via the mask below, rather
   than sitting inside a contained shape. 1:1 now, not 4:5 — the previous
   portrait needed real height for its top/bottom fade to read gradually,
   which is what was driving the section tall. A square with a radial
   fade (below) resolves entirely within its own box regardless of size,
   so max-width is just a sensible cap, not something the fade depends
   on. justify-self:end keeps it right-aligned in its column — no more
   bleed past the wrap; contained is the point here. */
.story-media {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  justify-self: end;
}
/* Radial vignette, not a directional gradient — with the image now
   square and centred against a short text block rather than a tall
   portrait the text runs alongside, there's no longer a single edge
   (like "where it meets the quote") that needs the strongest fade.
   All four sides dissolve into the milk ground equally instead, and
   because it's one gradient anchored to the box's own centre, it
   always resolves inside the square — no minimum height required for
   it to read, unlike the old top/bottom pair. */
.story-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 78%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: radial-gradient(circle, black 40%, transparent 78%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-media { max-width: none; justify-self: stretch; }
}

/* ---------- Services: the page's visual peak ---------- */
#services { padding: 48px 0 56px; }
.svc-eyebrow {
  font-size: 0.85rem;
  color: var(--rose-ink);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.services-title {
  max-width: none;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

/* ---------- Services rail — native horizontal scroll, clipped at the
   gutter ---------- */
/* .svc-rail sits inside a completely normal .wrap (max-width:1160px,
   padding:0 var(--gutter) — no override here anymore). overflow-x:auto
   clips scrollable content at the ELEMENT'S OWN border-box, which is
   exactly that wrap's content box — i.e. the gutter line on both
   sides, always, regardless of scroll position. That's the difference
   from padding: padding on the scrolling element itself only insets
   the very start and end of the scrollable range (rest, and full
   scroll) — mid-scroll, content would still reach the container's own
   edge. Nesting inside a narrower, gutter-padded wrap instead makes
   that edge BE the gutter line at every scroll position, including
   the whole time the marquee is auto-scrolling. Cards keep their own
   size; only the window they're clipped by got narrower. */
.svc-rail-wrap { margin-top: 28px; }
.svc-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  /* This is the marquee track — script.js drives it continuously via
     scrollLeft while auto-scrolling. */
  will-change: scroll-position;
  /* No scroll-snap here: this rail auto-scrolls continuously, and
     Chromium applies scroll-snap the instant it becomes active even
     with no new scroll input — re-enabling it on pause (to snap-assist
     manual scrolling) was jumping the stationary rail to the nearest
     card the moment a hover paused it. Free continuous positioning,
     as the brief asks for, means snap has to stay off entirely. */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  cursor: grab;
  scrollbar-width: none;
}
.svc-rail::-webkit-scrollbar { display: none; }
.svc-rail.is-dragging { cursor: grabbing; }

/* Under 768px script.js never starts the marquee at all (see the
   isDesktop check there) — no rAF, no scrollLeft writes fighting a
   thumb mid-drag. This is a plain native scroller instead: scroll-snap
   gives it the same card-by-card rhythm the marquee had, driven by
   touch alone. touch-action:pan-x tells the browser this element's
   horizontal gesture is scrolling, not something to hesitate over. */
@media (max-width: 767px) {
  .svc-rail {
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    cursor: auto;
    will-change: auto;
  }
  .svc-card { scroll-snap-align: start; }
}

/* Cards are sized off height first — the dominant visual element the
   brief wants — with aspect-ratio deriving width, so they widen rather
   than stretch into narrow columns as they grow. The rail's own
   scrollLeft simply starts at 0 (native default), which is what
   actually keeps the first card flush at rest — no snap involved in
   that guarantee. */
.svc-card {
  flex: 0 0 auto;
  height: clamp(420px, 64vh, 680px);
  width: auto;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--rose);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--card-ink);
}
@media (max-width: 767px) {
  .svc-card { height: 70vh; width: 78vw; aspect-ratio: unset; }
}
/* Every card now carries a real photo, so this drawn wave is currently
   dormant — kept scoped to :not(.has-photo) rather than deleted, so a
   future card added without a photo yet (a new service, a reshoot gap)
   still gets a placeholder instead of a blank rose card. */
.svc-card:not(.has-photo)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60 Q30 20 60 60 T120 60' stroke='rgba(112,56,10,0.16)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 90 Q30 50 60 90 T120 90' stroke='rgba(112,56,10,0.11)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 130px 130px;
}
/* Photo + scrim stack underneath the text, in DOM order: img first,
   then the scrim, then the name/desc spans (already position:relative
   from the earlier baseline fix, which is what keeps them painting on
   top of these two new absolutely-positioned layers instead of under
   them). */
.svc-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Flipped from a dark scrim + milk text to a light scrim + olive-ink
   text: olive-ink can't be a background any more (see the root
   comment), so the caption can't sit on a dark wash. A milk scrim
   does the same job in the other direction — it converges toward milk
   as it opacifies, regardless of what the photo underneath is doing,
   which is what makes it reliable over seven different, unpredictable
   photographs. The risk direction flips too: before, the danger was a
   bright patch of photo punching through; now it's a DARK patch (a
   shadow, a dark wood grain) not being covered enough for olive-ink
   text to hold contrast against it. Same stops as before (opaque
   through the bottom 30%, transparent by 65%) — measured against a
   theoretical pure-black pixel, 0.9 alpha holds 7.49:1, so there's
   margin even in the worst case no real photo actually reaches. */
.svc-card-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(251, 245, 236, 0.9) 0%,
    rgba(251, 245, 236, 0.9) 30%,
    rgba(251, 245, 236, 0) 65%);
}
.svc-card.has-photo .svc-card-name,
.svc-card.has-photo .svc-card-desc {
  color: var(--olive-ink);
}
.svc-card-name {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.18;
  margin-bottom: 12px;
}
/* min-height reserves room for the longest caption's two lines, so
   every card's name sits the same distance from the card's bottom
   edge regardless of whether THIS card's own caption wraps to one
   line or two — without it, a short caption (e.g. "Manicure and
   pedicure care.") leaves less total block height above the shared
   flex-end anchor, and its name visibly sits lower than a card whose
   longer caption pushes its name further up. */
.svc-card-desc {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 34ch;
  min-height: 2.8em;
  margin-bottom: 10px;
}
/* Duration and price are identical text on every card ("1 hour",
   "RM88" — the client's instruction, not a placeholder), so unlike
   .svc-card-desc above this row never needs a min-height trick: same
   string, same rendered height, on all seven, every time.
   Rose FILL with olive-ink text, not a plain olive fill — this sits on
   top of the caption's own light scrim (now near-milk by the time it
   reaches this row), and an olive pill there reads as barely-there
   against a background that similar in value. Rose is the accent
   token reserved for exactly this — a small, sparing surface that
   needs to stand apart from its surroundings — and olive-ink on rose
   still measures 7.73:1, comfortably safe. Small and quiet on purpose —
   this is information, not a price shouted at the visitor. */
.svc-card-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-card-meta-item {
  display: inline-flex;
  align-items: center;
  background: var(--rose);
  color: var(--olive-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
}
.svc-card:focus-visible {
  outline: 2px solid var(--card-ink);
  outline-offset: 3px;
}

.svc-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--rose-ink);
}

/* ---------- Package deals: the ratio itself is the graphic — no
   percentage badge, no "limited time", no invented savings figure.
   Two plain cards, left-aligned like the rest of the page (never
   centred/boxed-in like a promo strip), each showing paid sessions as
   olive marks and free ones as rose-ink marks with a visible gap
   between the two counts. Quiet band, not a pitch. */
.pkg-band {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 767px) {
  .pkg-band { grid-template-columns: 1fr; }
}
.pkg-card {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px;
}
/* The better deal, and it looks like it: rose-tinted ground (the same
   token used elsewhere for a warm alt section background) instead of
   a plain hairline box, and a little more of everything — padding,
   heading size — rather than a badge or a colour trick to say "this
   one's better". */
.pkg-card-featured {
  background: var(--rose);
  border-color: transparent;
  padding: 40px;
}
.pkg-name {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--olive-ink);
  margin: 0 0 20px;
}
.pkg-card-featured .pkg-name { font-size: 1.45rem; }
.pkg-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.pkg-mark {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.pkg-mark-paid { background: var(--olive); }
.pkg-mark-free { background: var(--rose-ink); }
/* The visible gap the brief asks for, between the paid marks and the
   free ones — an adjacency selector rather than :first-of-type, which
   (being tag-based, not class-based) can't tell a free mark from a
   paid one; this only matches a free mark that directly follows a
   paid one, which is exactly the one seam in the row. */
.pkg-mark-paid + .pkg-mark-free { margin-left: 16px; }
/* Marks stagger in individually (each is its own .reveal target,
   observed the same way every other staggered group on this page is)
   — 40ms apart, in the same left-to-right order they're drawn in. A
   card never has more than 12 marks, so this covers every case. */
.pkg-marks .pkg-mark:nth-child(1) { transition-delay: 0ms; }
.pkg-marks .pkg-mark:nth-child(2) { transition-delay: 40ms; }
.pkg-marks .pkg-mark:nth-child(3) { transition-delay: 80ms; }
.pkg-marks .pkg-mark:nth-child(4) { transition-delay: 120ms; }
.pkg-marks .pkg-mark:nth-child(5) { transition-delay: 160ms; }
.pkg-marks .pkg-mark:nth-child(6) { transition-delay: 200ms; }
.pkg-marks .pkg-mark:nth-child(7) { transition-delay: 240ms; }
.pkg-marks .pkg-mark:nth-child(8) { transition-delay: 280ms; }
.pkg-marks .pkg-mark:nth-child(9) { transition-delay: 320ms; }
.pkg-marks .pkg-mark:nth-child(10) { transition-delay: 360ms; }
.pkg-marks .pkg-mark:nth-child(11) { transition-delay: 400ms; }
.pkg-marks .pkg-mark:nth-child(12) { transition-delay: 440ms; }
.pkg-total {
  color: var(--olive-ink);
  font-size: 1rem;
  margin: 0 0 24px;
}

/* ---------- Inside: concept rooms — a click-driven tab set ----------
   Base CSS below is the complete, safe, no-JS state: a plain vertical
   stack of name/image/caption per room. The interactive tab rewrite
   lives entirely under the html.js guard further down — html.js is
   set synchronously in <head>, before anything paints, so the
   tablist's visibility and each panel's active/inactive state are
   both true from the very first painted frame, decided by CSS alone,
   never by a JS class arriving however-many-hundred-ms later. This
   section used to depend on GSAP/ScrollTrigger for a scroll-pinned
   version and had a separate "GSAP failed to load" fallback for that;
   the tab set below is plain vanilla JS with no external library and
   no CDN dependency, so that failure mode no longer exists here. */
/* Tight — small margin-bottom so it sits ON "Step inside." rather than
   floating away from it. This is now the section's ONLY concept-
   imagery notice; the second one that used to float above the room
   list has been removed outright rather than left duplicated. */
.inside-eyebrow {
  font-size: 0.85rem;
  color: var(--rose-ink);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
/* .inside-list holds real <button> tabs — without JS, clicking one
   would do nothing, so it stays hidden until html.js confirms the
   click handlers actually exist. Each room's own heading (.inside-name
   below) carries the name in that no-JS state instead. */
.inside-list { display: none; }
.inside-stage {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.inside-room { display: flex; flex-direction: column; }
.inside-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--olive-ink);
  margin: 0 0 10px;
}
/* 4/3, not the services cards' 4/5 — these room photos are landscape
   (1600x~1180, ~4:3), the service photos are portrait 3:4. Matching
   the frame to its own source is what keeps object-fit:cover from
   upscaling to fill a taller box than the image actually is — that
   upscale was the source of the blur here. Shared frame language
   elsewhere on the page is the radius/gutter/caption treatment, never
   a single forced aspect ratio across differently-shaped sources. */
.inside-frame {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rose);
}
.inside-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.inside-caption {
  margin: 12px 0 0;
  color: var(--rose-ink);
  font-size: 1rem;
  max-width: 40ch;
}

/* ---------- Interactive tabs — CSS-decided, gated on html.js ----------
   Everything below only ever applies once html.js is on the root
   element, so the plain stacked list above is exactly what ships if
   JS never runs at all. Tabs now work the same way at every viewport
   width — the only thing that changes by width is whether the list
   sits beside the panel or above it (see the layout rules at the
   bottom of this section). */
html.js .inside-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
html.js .inside-item {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 26px;
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.25;
  color: var(--olive-ink);
  opacity: 0.45;
  cursor: pointer;
  transition: color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
html.js .inside-item:last-of-type { margin-bottom: 0; }
html.js .inside-item[aria-selected="true"] { opacity: 1; }
/* Real <button>s keep their focus ring by default; this just makes it
   match the palette instead of the browser's native blue. Never
   removed outright — Tab-only visitors need it. */
html.js .inside-item:focus-visible {
  outline: 2px solid var(--olive-ink);
  outline-offset: 4px;
}
/* Hover is a preview, not a commitment, and only for pointers that
   actually hover — wrapped so a touch tap never leaves a label stuck
   mid-hover with no mouse to move away and clear it. */
@media (hover: hover) {
  html.js .inside-item {
    transition: color 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  html.js .inside-item:not([aria-selected="true"]):hover {
    color: var(--olive-ink);
    opacity: 1;
    transform: translateX(4px);
  }
}
/* A short horizontal rule, not a vertical bar — reads as an indicator,
   not a text cursor. script.js only ever moves its transform: never
   its width/height. Sits left of the list's own text (negative
   offset) rather than indenting the labels to make room for it —
   --gutter is wide enough at every width for that not to crowd
   anything. */
html.js .inside-marker {
  position: absolute;
  left: -40px;
  top: 0;
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: var(--rose-ink);
  pointer-events: none;
  transition: transform 200ms var(--ease-out);
}
/* The button carries the name now. */
html.js .inside-name { display: none; }

/* All five rooms stacked in the same grid cell rather than absolutely
   positioned: grid-area:1/1 stacking still overlaps them, but (unlike
   position:absolute) the grid track's own size still comes from the
   tallest overlapping item, so the stage never needs a hand-measured
   or hardcoded height — it just holds steady at whichever room is
   tallest, which is exactly "the frame never resizes" in practice
   since all five frames share one aspect-ratio and captions run one
   line. Specificity here ((0,3,1) for the active rule, (0,2,1) for the
   rest) beats .js-armed .reveal and .reveal.is-visible ((0,2,0) each)
   outright, no !important needed — that's what keeps .reveal's own
   translateY off a room that's also being cross-faded by this. */
html.js .inside-stage { display: grid; gap: 0; }
html.js .inside-room {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease-out);
}
html.js .inside-room[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 450ms var(--ease-out);
}
/* Only the incoming image scales — the outgoing one has no motion of
   its own, it just fades under the crossfade above. Giving the
   1.02-scale rule a transition ONLY on the active state means an
   outgoing room's image resets to 1.02 instantly the moment it goes
   inactive (imperceptible: it's already fading to transparent at that
   exact moment) and is re-armed for its next entrance. */
html.js .inside-image { transform: scale(1.02); }
html.js .inside-room[aria-hidden="false"] .inside-image {
  transform: scale(1);
  transition: transform 450ms var(--ease-out);
}

/* Layout: list above the panel by default (mobile-first), list beside
   the panel from 768px up — the same breakpoint the rest of the page
   uses for its two-column sections. */
html.js .inside-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  html.js .inside-layout {
    grid-template-columns: 34fr 66fr;
    gap: 56px;
    align-items: center;
  }
}
@media (max-width: 767px) {
  /* A little more air between the eyebrow and "Step inside." — they
     were sitting as tight as the eyebrow sits on its own heading,
     which reads fine there but too tight once the heading is this
     much bigger below it. */
  .inside-eyebrow { margin-bottom: 14px; }
  /* The headline was almost touching the image; this is the gap
     between the eyebrow+heading .wrap and the image/caption/list
     .wrap right after it. */
  .inside-layout-wrap { margin-top: 32px; }
  /* Image, then caption, then the list of room buttons — .inside-stage
     (frame+caption together, per active room) moves ahead of
     .inside-list in reading order. Both are direct children of the
     same single-column grid, so order alone does this; nothing is
     duplicated. */
  html.js .inside-stage { order: 1; }
  html.js .inside-list { order: 2; }
  /* The caption and the list belong together, not read as two
     separate blocks — cut hard from the desktop 56px (32px is this
     rule's own mobile default before the 768px-up override further
     up applies). Room-button spacing itself (the gap *within* the
     list) is untouched here — that part was already right. */
  html.js .inside-layout { gap: 12px; }
  /* Tightened from the desktop 26px so five names read as one list,
     not five separate headings — the tap target still comes from
     min-height, never from shrinking this margin below what the gap
     itself needs. */
  html.js .inside-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    /* "Prenatal & Postnatal Care" nearly fills the line at the desktop
       clamp's floor (1.25rem) — this is a hard override, not a lower
       clamp bound, since the label column is now full viewport width
       minus the gutter, not a fixed 34fr desktop track. */
    font-size: 1.05rem;
  }
  /* The marker's -40px left offset assumes a gutter wide enough to
     hold it (true from 768px up, where --gutter grows past 40px) —
     under 768px the gutter shrinks to as little as ~20px, which put
     the marker off the left edge of the viewport entirely. The active
     label's own full contrast already shows which room is selected,
     so the marker just isn't needed here rather than needing a new
     position. */
  html.js .inside-marker { display: none; }
  /* Positive outline-offset (desktop's 4px) pushes the ring outward
     from an already-narrow left edge — inset it instead so it's
     guaranteed to sit inside the button's own box, which is itself
     safely inside the gutter, rather than trusting exact pixel math
     at every possible mobile width. */
  html.js .inside-item:focus-visible { outline-offset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .inside-item,
  html.js .inside-item:not([aria-selected="true"]):hover,
  html.js .inside-marker {
    transition: none;
    transform: none;
  }
  html.js .inside-room,
  html.js .inside-room[aria-hidden="false"] {
    transition: opacity 120ms linear;
  }
  html.js .inside-image,
  html.js .inside-room[aria-hidden="false"] .inside-image {
    transform: none;
    transition: none;
  }
}

/* ---------- Enquiry: composes a WhatsApp message client-side, sends
   nowhere else. Light olive ground now (like the topbar and Visit
   section), olive-ink text throughout — milk is reserved for the
   fields themselves, which stay milk/olive-ink regardless of what the
   section ground is doing. The form itself is hidden until script.js
   confirms it actually attached its submit handler — see
   .enquiry-ready below — never html.js alone: html.js is set
   synchronously before any feature script runs, so an unrelated error
   elsewhere on the page could leave it true while this specific
   handler never attached, which would otherwise show a form that
   silently does nothing. Without it (or without JS at all), the plain
   WhatsApp button + phone number fallback is what ships instead. */
.enquiry {
  background: var(--olive);
  color: var(--olive-ink);
}
.enquiry-col {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
/* Overrides the shared .section-label rose-ink — rose-ink only
   measures 3.74:1 on olive (below the 4.5:1 floor), so this one
   eyebrow stays olive-ink instead, same as .visit's below. */
.enquiry .section-label { color: var(--olive-ink); }
/* max-width/margin only now — colour is dropped: the section's own
   color: olive-ink (above) already gives this heading the right text
   colour, the same way every other heading on the page inherits it
   from body, so no override is needed here any more. */
.enquiry-title {
  max-width: none;
  margin: 0 0 32px;
}
.enquiry-form { text-align: left; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--olive-ink);
}
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--milk);
  color: var(--olive-ink);
  font-family: var(--body);
  font-size: 1rem;
  box-sizing: border-box;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--olive-ink);
  outline-offset: 2px;
}
/* A 30% rose-ink / 70% olive-ink mix, not plain --rose-ink or plain
   --rose — plain rose-ink alone is already the section's default text
   colour in spirit but reads too close to the labels to register as
   an error; plain --rose is a light fill that would nearly disappear
   against the milk field below it. This mix measures 4.98:1 on the
   section's olive ground: warm/alarm-coloured enough to read as an
   error, still clearly past the 4.5:1 floor (there is very little
   headroom above it here — see the root comment on how thin the
   margin is on a light ground). */
.field-error {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--rose-ink) 30%, var(--olive-ink));
}
.enquiry-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
/* Olive-ink at the site's one dimming convention (opacity 0.92 — see
   the root comment), same as the nav's inactive link state: 4.78:1 on
   this section's olive ground, quiet without failing contrast. */
.enquiry-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--olive-ink);
  opacity: 0.92;
}
.enquiry-fallback-text { margin: 0 0 16px; }
.enquiry-phone {
  margin: 16px 0 0;
  font-size: 0.95rem;
}
/* Closed by default — see the comment above this block for why this
   is its own class rather than html.js. */
.enquiry-form { display: none; }
.enquiry-fallback { display: block; }
.enquiry-ready .enquiry-form { display: block; }
.enquiry-ready .enquiry-fallback { display: none; }

/* ---------- Visit: the closing argument and the booking CTA merged
   into one section — the old "Looking after your family..." close and
   the separate "Ready when you are." booking block used to run back
   to back, reading as two endings in a row. One headline now carries
   both jobs. Light olive ground, like the topbar and the enquiry
   section — olive-ink text throughout (5.58:1), which matters since
   this section carries real address and hours text, not just
   decorative type. There's much less contrast headroom on this light
   a ground than the old dark one had, which is why the milk-at-various-
   alphas hierarchy below (label vs. value vs. "to be confirmed") has
   been flattened to plain olive-ink plus weight/style, rather than
   several different dimmed steps stacked on top of each other — see
   the root comment on why that headroom shrank. */
.visit {
  background: var(--olive);
  color: var(--olive-ink);
}
/* Centred — deliberately different from every other section's shared
   left edge, since this is the page's one closing statement, not
   another content section reading down the same column. Caps at 60ch
   (under the 68ch ceiling) so the centred lead doesn't run long lines,
   which read worse centred than left-aligned. */
.visit-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
/* Overrides the shared .section-label rose-ink — see the same override
   on .enquiry above; rose-ink only clears 3.74:1 on olive. */
.visit .section-label { color: var(--olive-ink); }
/* The biggest type in the section, on purpose — this now carries the
   weight the old separate "Ready when you are." headline and the
   closing section's headline used to split between them. No colour
   override needed any more — .visit's own color: olive-ink (above)
   already reaches this heading, the same way body's colour reaches
   every other heading on the page. */
.visit-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 20px;
}
/* Overrides the shared .lead rose-ink (same reason as the two
   .section-label overrides above): rose-ink is only 3.74:1 on this
   section's olive ground. An explicit color on .lead always wins over
   .visit's inherited olive-ink regardless of source order — inherited
   values never outrank an explicit rule — so this needs its own
   explicit override, the same way the two .section-label rules above
   already have one. Caught by measuring the rendered page, not by
   assuming the removal was safe. */
.visit-lead {
  max-width: 60ch;
  margin: 0 auto 28px;
  color: var(--olive-ink);
}

/* Three info blocks in a row — full width, left-aligned within
   themselves (centring address/hours text reads worse than a headline
   does), stacking to one column under 768px. */
.visit-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  text-align: left;
}
.visit-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.visit-value { font-size: 1.02rem; }
/* Opacity, not colour — the site's one dimming convention (see the
   root comment), same 0.92 used for the nav's inactive link and the
   enquiry hint. Marks this as a stand-in value (CLAUDE.md requires
   stand-ins be visibly marked) via italic plus this quieter weight;
   there isn't room to dim further and still clear 4.5:1 on this light
   a ground. */
.visit-value.tbc { opacity: 0.92; font-style: italic; }

/* The map, full content width — a wide rectangle, not the small
   floated box it shared a row with before. 21:9 on desktop, 4:3 under
   768px (see the responsive block). Lazy-loaded on the iframe itself
   (index.html) so it can never block first paint. */
.visit-map {
  margin-top: 56px;
  aspect-ratio: 21/9;
  border-radius: 6px;
  overflow: hidden;
  /* Reuses --hairline (olive-ink at low opacity) rather than a bespoke
     value — a milk border at low alpha would be nearly invisible
     against this section's own light olive ground. */
  border: 1px solid var(--hairline);
}
.visit-map iframe { width: 100%; height: 100%; display: block; border: 0; }
.visit-map iframe:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: -2px; }

/* ---------- Footer ---------- */
/* Left-aligned now, not centred — a centred line's own leftmost
   character doesn't land on the page's shared left edge, which is
   exactly the thing every section is being measured against here.
   The border-top stays full-bleed (footer itself keeps no max-width),
   but the actual content is now wrapped in a plain .wrap (see index.html)
   instead of using footer's own padding directly — padding alone,
   with no max-width cap, sits flush at --gutter on wide viewports
   while every .wrap-based section sits at --gutter PLUS the extra
   centring margin .wrap's own 1160px cap adds past ~1160+2*gutter
   wide. Only .wrap reproduces that correctly. */
footer {
  padding: 48px 0;
  font-size: 0.85rem;
  color: var(--rose-ink);
  border-top: 1px solid var(--hairline);
}
.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--olive-ink);
  margin-bottom: 8px;
}

/* ---------- Floating WhatsApp ---------- */
/* Icon-only now — 56px is the floor for an easy tap target, and this
   is the one action still visible once the hero (and its own button)
   has scrolled past, so it can't be small. z-index 50 is the highest
   on the page on purpose — this stays above everything, always. Light
   olive fill with an olive-ink icon (currentColor on the SVG) — same
   pairing as every other button on the page now; the drop shadow
   keeps a dark, low-opacity olive-ink tint since it's a shadow, not a
   fill or a ground. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  color: var(--olive-ink);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(58, 36, 22, 0.28);
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}
.wa-float:hover { transform: translateY(-2px); filter: brightness(0.88); }
.wa-float:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: 3px; }
.wa-float-icon { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
/* Progressive enhancement: content is visible by default. JS adds
   .js-armed as soon as it confirms IntersectionObserver is available,
   which is the only state that actually hides .reveal before it enters
   view — so a JS failure never hides content. */
.js-armed .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar-links { gap: 12px; }
}

/* This used to unconditionally hide every link under 768px, from
   before the hamburger menu existed — stale since that menu was
   built: html.js .topbar-link (see the hamburger rules further up)
   already handles the interactive mobile case, and without html.js
   this rule was hiding the four links with nothing (no menu, since
   .menu-toggle is also html.js-gated) able to reveal them again —
   exactly the "menu that can't be opened" that build was meant to
   avoid. Removed outright rather than reworked, since the correct
   no-JS behaviour (inline, visible) already falls out of the base,
   non-html.js .topbar-links rule with no override needed here at all. */
@media (max-width: 767px) {
  /* Inter is wider than the Fraunces this was sized for — "Reflexology
     & Head Spa" and "Prenatal & Postnatal Care" started wrapping to a
     second line at 1.7rem, which breaks the shared caption baseline
     the .svc-card-desc min-height trick depends on (it assumes the
     name is one line for every card, so the caption sits the same
     distance from the card's bottom regardless of which service it
     is). Sized down until the longest names fit on one line again at
     this card width. */
  .svc-card-name { font-size: 1.2rem; }
  .visit-info-row { grid-template-columns: 1fr; }
  .visit-map { aspect-ratio: 4/3; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
}

/* ============================================================
   Hero rebuild (Nov 2026) — full-screen tree hero, transparent nav.
   Sits last in the file on purpose: it overrides the earlier
   topbar + hero rules above without touching the rest of the page.
   ============================================================ */
:root {
  --sand:       var(--olive);   /* solid nav bar once past the hero (banner sand) */
  --brand-brown: var(--rose-ink);  /* emblem / shopfront banner brown */
  --deep-brown:  #4A2608;  /* solid button fill */
  --hero-ink:    var(--olive-ink);  /* headline + small text over the image */
}

/* --- Nav: fixed, transparent over the hero, sand after it ---
   Base state is solid sand, so with no JS the bar is still readable.
   Only html.js pages start transparent; script.js adds .is-solid
   once the hero has scrolled out from under the bar. */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--sand);
  transition: background-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
html.js .topbar:not(.is-solid) { background: transparent; }
.topbar.is-solid { box-shadow: 0 1px 0 var(--hairline); }
.topbar-inner {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.topbar-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--hero-ink);
}
.topbar-emblem { height: 37px; width: auto; display: block; flex-shrink: 0; }
.topbar-name-text { line-height: 1.15; }
.topbar-links { justify-self: center; gap: 30px; }
.topbar-link { color: var(--hero-ink); font-weight: 500; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--deep-brown);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}
.topbar-pill:hover { background: var(--brand-brown); }
.topbar-pill:active { transform: scale(0.97); }
.topbar-pill:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 3px; }

/* --- Buttons for the hero --- */
.btn-brown { background: var(--deep-brown); color: #fff; }
.btn-brown:hover { background: var(--brand-brown); }
.btn-outline {
  background: color-mix(in srgb, var(--milk) 40%, transparent);
  color: var(--deep-brown);
  border-color: var(--deep-brown);
}
.btn-outline:hover { background: var(--deep-brown); color: #fff; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-end;
  padding: 120px 0 36px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--olive) 55%, var(--milk)) 0%, color-mix(in srgb, var(--olive) 30%, var(--milk)) 55%, var(--milk) 100%); /* stand-in if the image fails */
  overflow: hidden;
}
/* The bottom of the photo melts into the page's cream. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 38%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--milk) 0%, transparent) 0%, color-mix(in srgb, var(--milk) 70%, transparent) 55%, var(--milk) 100%);
}
.hero-bg-img { object-position: center 30%; }
.hero-content { position: relative; z-index: 1; }
/* Soft cream glow behind the copy so it stays readable on the photo. */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 50%;
  width: min(1000px, 130%);
  height: 125%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--milk) 80%, transparent) 0%, color-mix(in srgb, var(--milk) 50%, transparent) 45%, color-mix(in srgb, var(--milk) 0%, transparent) 72%);
  pointer-events: none;
}
.hero-headline {
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  color: var(--hero-ink);
  max-width: none;
}
.hero-headline-line1,
.hero-headline-to { color: var(--hero-ink); }
.hero-headline em,
.hero-headline .word-rotator { color: var(--brand-brown); }
.hero-sub {
  max-width: 40ch;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  color: var(--hero-ink);
}
.hero-cta-row { align-items: center; gap: 14px; margin-top: 28px; }
.hero-services {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  max-width: 980px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--hero-ink);
}
.hero-services li { white-space: nowrap; }
.hero-services li:not(:last-child)::after {
  content: "\00B7";
  margin: 0 0.7em;
  color: var(--brand-brown);
  font-weight: 700;
}

@media (max-width: 767px) {
  .topbar-inner { display: flex; padding: 10px var(--gutter); gap: 8px; }
  .topbar-name { flex: 1; min-width: 0; gap: 8px; font-size: 0.85rem; }
  .topbar-emblem { height: 32px; }
  .topbar-pill { padding: 8px 14px; font-size: 0.8rem; }
  html.js .topbar-links { background: var(--sand); }
  .hero { min-height: 100svh; padding: 96px 0 28px; }
  .hero-bg-img { object-position: center 25%; }
  .hero-headline { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-sub { margin-top: 16px; }
  .hero-cta-row { margin-top: 22px; }
  .hero-cta-row .btn { padding: 13px 20px; font-size: 0.9rem; }
  .hero-services { margin-top: 28px; font-size: 0.8rem; max-width: 340px; }
  .hero-content::before { width: 150%; height: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar-pill { transition: none; }
}
