/* Fernhill — tokeni templata, scopovani na .sec-fernhill-header. */

/* ============================================================
   DESIGN TOKENS — Template 18 "Fernhill"
   Niche variant: Q — dental treatment under general anaesthetic,
   for people with disabilities or in care.
   >>> NEW variant, not in the original style guide. Rules and
       reasoning live in the BUILDER-LOG, §4n. <<<

   The reader here is often not the patient but a guardian or a
   carer, and the subject is a procedure with real medical risk.
   The palette is warm and low-contrast on purpose — calm without
   being soft-spoken, because the copy has to say difficult things
   plainly and the page should not fight it.

   Shape language: a colour bar across the TOP of a card.
   Change ONLY this file to re-skin the whole template.
   ============================================================ */

.sec-fernhill-header {
  /* ---------- Color ---------- */
  --c-bg:          #F6F4F1;   /* warm greige */
  --c-bg-alt:      #EDEAE4;
  --c-white:       #FFFFFF;
  --c-surface:     #E3E0D8;   /* indigo tint for cards / fills */

  --c-primary:     #40584F;   /* deep pine grey-green — 6.9:1 on --c-bg */
  --c-primary-dk:  #2A3B34;   /* headings, dark sections */
  --c-primary-lt:  #93A199;
  --c-primary-08:  rgba(64, 88, 79, 0.08);
  --c-primary-14:  rgba(64, 88, 79, 0.14);

  /* Caramel is the only warm colour and never covers a large
     surface. White on it clears about 3.6:1 — enough for large text
     and UI, never for body copy. For caramel TEXT use --c-accent-dk,
     and for a small chip use --c-accent-dk as the BACKGROUND.
     (T16 shipped that bug and had to measure its way out of it.) */
  --c-accent:      #C08552;
  --c-accent-dk:   #8A5626;   /* 6.5:1 on --c-bg */
  --c-accent-soft: #F3E4D3;
  --c-accent-tint: rgba(192, 133, 82, 0.16);

  --c-text:        #232823;
  --c-text-muted:  #5C625B;   /* 5.8:1 on --c-bg */
  --c-on-dark:     #F1F3EF;
  --c-on-dark-mu:  rgba(241, 243, 239, 0.78);

  --c-line:        rgba(35, 40, 35, 0.12);
  --c-line-strong: rgba(35, 40, 35, 0.24);
  --c-line-dark:   rgba(241, 243, 239, 0.24);

  --c-whatsapp:    #128C7E;
  --c-whatsapp-dk: #0E6F63;
  --c-star:        #C98A22;

  /* ---------- Elevation ---------- */
  --sh-sm: 0 4px 14px -8px rgba(42, 59, 52, 0.20);
  --sh-md: 0 14px 32px -16px rgba(42, 59, 52, 0.28);
  --sh-lg: 0 26px 56px -22px rgba(42, 59, 52, 0.32);
  --sh-xl: 0 44px 90px -32px rgba(42, 59, 52, 0.36);

  /* ---------- Radius ----------
     The window shape is a single shorthand so a card only needs
     one class. Everything else uses the plain scale. */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* One radius everywhere. The card device is the 4px bar on top,
     not the corner, so the corners stay quiet. */
  --r-card:    16px;
  --r-card-lg: 24px;

  /* Gallery tiles are pinned at 12px: the brief asks for 10–15px
     there, and it keeps a grid of pictures from reading as arches. */
  --r-gallery: 12px;

  /* ---------- Spacing — 8px base ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;

  --section-y: clamp(64px, 8vw, 112px);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1200px;

  /* ---------- Typography ---------- */
  --ff-display: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.875rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-h4:   clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
  --fs-h3:   clamp(1.375rem, 0.9vw + 1.15rem, 1.75rem);
  --fs-h2:   clamp(1.875rem, 2.1vw + 1.35rem, 2.875rem);
  --fs-h1:   clamp(2.25rem, 3.2vw + 1.4rem, 3.75rem);

  --lh-tight: 1.1;
  --lh-snug:  1.22;
  --lh-body:  1.64;

  --ls-tight: -0.02em;
  --ls-label:  0.14em;

  /* ---------- Motion ---------- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 260ms;

  /* ---------- Layout ---------- */
  --header-h:  72px;
  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 95;
  --z-lightbox: 200;

  --tap: 44px;
}

@media (max-width: 900px) {
  .sec-fernhill-header { --header-h: 62px; }
}

/* Fernhill — reset i zajedničke primitive (base.css). */

/* ============================================================
   BASE — Template 18 "Fernhill"
   Signature device: .u-card — a 4px colour bar across the top of a card.
   corners only. One rule, used on every card on the page. That is
   the whole shape language, on purpose: this template was ordered
   simple and a second device would only compete with it.
   ============================================================ */

.sec-fernhill-header *, .sec-fernhill-header *::before, .sec-fernhill-header *::after { box-sizing: border-box; }

.sec-fernhill-header {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

.sec-fernhill-header {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

.sec-fernhill-header img, .sec-fernhill-header svg, .sec-fernhill-header video { display: block; max-width: 100%; }
.sec-fernhill-header img { height: auto; }

.sec-fernhill-header h1, .sec-fernhill-header h2, .sec-fernhill-header h3, .sec-fernhill-header h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--c-primary-dk);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-fernhill-header h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; }
.sec-fernhill-header h2 { font-size: var(--fs-h2); line-height: 1.14; font-weight: 600; }
.sec-fernhill-header h3 { font-size: var(--fs-h3); }
.sec-fernhill-header h4 { font-size: var(--fs-h4); }

.sec-fernhill-header p { margin: 0; text-wrap: pretty; }
.sec-fernhill-header ul, .sec-fernhill-header ol { margin: 0; padding: 0; list-style: none; }

.sec-fernhill-header a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.sec-fernhill-header button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sec-fernhill-header :focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-xs); }
.sec-fernhill-header :focus:not(:focus-visible) { outline: none; }
.sec-fernhill-header ::selection { background: var(--c-accent-soft); color: var(--c-primary-dk); }

.sec-fernhill-header .u-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Layout primitives ---------- */

.sec-fernhill-header .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-fernhill-header .u-section { position: relative; padding-block: var(--section-y); }
.sec-fernhill-header .u-section--alt { background: var(--c-bg-alt); }

.sec-fernhill-header .u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sec-fernhill-header .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-primary-dk); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-fernhill-header .u-skip-link:focus { transform: translateY(0); }

/* ============================================================
   DARK SCOPE
   A section on a brand-coloured background inherits the wrong
   text colours: h2 defaults to --c-primary-dk and .u-label to
   --c-accent-dk, both tuned for light backgrounds. Put .u-dark on
   the section and the whole subtree is corrected in one place.
   (BUILDER-LOG section 4 — missed in T6, fixed from a screenshot.)
   ============================================================ */
.sec-fernhill-header .u-dark { color: var(--c-on-dark); }
.sec-fernhill-header .u-dark h1, .sec-fernhill-header .u-dark h2, .sec-fernhill-header .u-dark h3, .sec-fernhill-header .u-dark h4 { color: var(--c-on-dark); }
.sec-fernhill-header .u-dark p { color: var(--c-on-dark-mu); }
.sec-fernhill-header .u-dark .u-label { color: var(--c-accent-soft); }
.sec-fernhill-header .u-dark .u-head p { color: var(--c-on-dark-mu); }

/* ---------- Eyebrow + section head ---------- */

.sec-fernhill-header .u-label {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-accent-dk);
}

.sec-fernhill-header .u-head > * + * { margin-top: var(--sp-3); }
.sec-fernhill-header .u-head--center { text-align: center; margin-inline: auto; }
.sec-fernhill-header .u-head h2 { max-width: 20ch; }
.sec-fernhill-header .u-head--center h2 { margin-inline: auto; }
.sec-fernhill-header .u-head p { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.sec-fernhill-header .u-head--center p { margin-inline: auto; }

/* The "smile arc" the style guide suggests, drawn as a soft curve
   under one word rather than a straight rule. */
.sec-fernhill-header .u-arc { position: relative; white-space: nowrap; }
.sec-fernhill-header .u-arc::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: -0.14em;
  height: 0.3em;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  border-bottom: 5px solid var(--c-accent);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

/* ---------- Signature: the top bar card ----------
   The bar is a pseudo-element rather than a border-top so the card
   can still have its own border without the two doubling up. */

.sec-fernhill-header .u-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;          /* keeps the bar inside the radius */
}
.sec-fernhill-header .u-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar, var(--c-accent));
}
.sec-fernhill-header .u-card--lg { border-radius: var(--r-card-lg); }
/* Second and third tones, so a row of cards is not four identical
   stripes. Nothing else changes between them. */
.sec-fernhill-header .u-card--alt { --bar: var(--c-primary); }
.sec-fernhill-header .u-card--calm { --bar: var(--c-primary-lt); }

/* ---------- Pills ---------- */

.sec-fernhill-header .u-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--pill-bg, var(--c-white));
  color: var(--pill-fg, var(--c-primary-dk));
  border: 1px solid var(--pill-bd, var(--c-line));
  font-family: var(--ff-display);
  font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap;
}
.sec-fernhill-header .u-pill--accent { --pill-bg: var(--c-accent-soft); --pill-bd: transparent; --pill-fg: var(--c-accent-dk); }
.sec-fernhill-header .u-pill--indigo { --pill-bg: var(--c-surface); --pill-bd: transparent; --pill-fg: var(--c-primary-dk); }

/* ---------- Stars ---------- */

.sec-fernhill-header .u-stars { display: inline-flex; gap: 2px; }
.sec-fernhill-header .u-stars svg { width: 17px; height: 17px; color: var(--c-star); }
.sec-fernhill-header .u-stars--lg svg { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */

.sec-fernhill-header .u-btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-display);
  font-size: var(--fs-md); font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.sec-fernhill-header .u-btn svg { flex: none; width: 20px; height: 20px; }
.sec-fernhill-header .u-btn:hover { transform: translateY(-2px); }
.sec-fernhill-header .u-btn:active { transform: none; transition-duration: 60ms; }

.sec-fernhill-header .u-btn--solid:hover { --btn-bg: var(--c-primary-dk); }
.sec-fernhill-header .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-primary-dk); --btn-bd: var(--c-line-strong); }
.sec-fernhill-header .u-btn--line:hover { --btn-bd: var(--c-primary); --btn-bg: var(--c-white); }
.sec-fernhill-header .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-primary-dk); }
.sec-fernhill-header .u-btn--white:hover { --btn-bg: var(--c-bg-alt); }
.sec-fernhill-header .u-btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: var(--c-line-dark); }
.sec-fernhill-header .u-btn--ghost:hover { --btn-bg: rgba(242, 243, 248, 0.14); --btn-bd: rgba(242, 243, 248, 0.5); }
.sec-fernhill-header .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; }
.sec-fernhill-header .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); }
.sec-fernhill-header .u-btn--lg { min-height: 58px; padding: 17px 32px; font-size: var(--fs-lg); }
.sec-fernhill-header .u-btn--block { width: 100%; }

/* ---------- Scroll reveal ---------- */

/* Hidden start state gated on .has-js (set by app.js) so a script
   failure can never leave a blank hole where content should be. */
.sec-fernhill-header.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-fernhill-header.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-fernhill-header { scroll-behavior: auto; }
  .sec-fernhill-header *, .sec-fernhill-header *::before, .sec-fernhill-header *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sec-fernhill-header.has-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .sec-fernhill-header .site-head, .sec-fernhill-header .mobile-bar, .sec-fernhill-header .stage { display: none !important; }
  .sec-fernhill-header { background: #fff; }
}

/* ============================================================
   MEDIA SLOTS — every image slot also takes a <video>

   Each slot rule is written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing, crop and radius stay identical:

     <img   src="_shared/img/hero.svg" width="1800" height="1100" alt="...">
     <video src="_shared/video/hero.mp4" poster="_shared/img/hero.svg"
            width="1800" height="1100" data-inline muted loop playsinline
            aria-label="..."></video>

   `data-inline` hands the element to app.js: it plays only while on
   screen, pauses when the tab is hidden, gets a pause control (WCAG
   2.2.2), and under prefers-reduced-motion the file is never
   fetched — the poster stays.

   NOTE: the parallax section is the one slot this does NOT cover.
   It uses a CSS background-image (that is what a fixed-attachment
   parallax is), and a background cannot be a video. To put a video
   there, rebuild that section as a positioned <video> — and you
   lose the fixed effect, because the two techniques are different
   things. See parallax/parallax.css.
   ============================================================ */

.sec-fernhill-header video { width: 100%; height: auto; }
.sec-fernhill-header .has-inline-video { position: relative; }

.sec-fernhill-header .u-mediactl {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
}
.sec-fernhill-header .u-mediactl:hover { background: #fff; }
.sec-fernhill-header .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-fernhill-header .u-mediactl__ic::before, 
.sec-fernhill-header .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-fernhill-header .u-mediactl__ic::before { left: 0; }
.sec-fernhill-header .u-mediactl__ic::after { right: 0; }
.sec-fernhill-header .u-mediactl[aria-pressed="true"] .u-mediactl__ic::before {
  left: 1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sec-fernhill-header .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }
.sec-fernhill-header .u-mediactl--compact { padding: 0; width: var(--tap); justify-content: center; }
.sec-fernhill-header .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija header. */

/* ============================================================
   HEADER — plain sticky bar + mobile drawer
   ============================================================ */

.sec-fernhill-header .site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
@supports not (backdrop-filter: blur(4px)) { .sec-fernhill-header .site-head { background: var(--c-bg); } }
.sec-fernhill-header .site-head.is-stuck { border-bottom-color: var(--c-line); box-shadow: var(--sh-sm); }

.sec-fernhill-header .site-head__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* ---------- Brand ---------- */

.sec-fernhill-header .brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); flex: none; }
.sec-fernhill-header .brand__mark { color: var(--c-primary); width: 36px; height: 36px; flex: none; }
.sec-fernhill-header .brand__mark svg { width: 100%; height: 100%; }
.sec-fernhill-header .brand__tx { display: flex; flex-direction: column; line-height: 1.16; }
.sec-fernhill-header .brand__tx strong {
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-primary-dk);
}
.sec-fernhill-header .brand__tx small { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* ---------- Nav ---------- */

.sec-fernhill-header .site-nav { margin-inline: auto; }
.sec-fernhill-header .site-nav ul { display: flex; align-items: center; gap: 4px; }
/* Without flex: none the links get squeezed and their labels wrap to
   three lines, which quietly doubles the height of the bar. (T9.) */
.sec-fernhill-header .site-nav li { flex: none; }
.sec-fernhill-header .site-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: var(--tap);
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-text);
}
.sec-fernhill-header .site-nav a:hover { background: var(--c-primary-08); color: var(--c-primary-dk); }

/* ---------- Actions ---------- */

.sec-fernhill-header .site-head__act { display: flex; align-items: center; gap: 12px; flex: none; }
.sec-fernhill-header .head-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-primary-dk);
}
.sec-fernhill-header .head-tel svg { width: 18px; height: 18px; flex: none; color: var(--c-accent-dk); }
.sec-fernhill-header .head-tel:hover { background: var(--c-accent-soft); }
.sec-fernhill-header .head-cta { min-height: var(--tap); padding: 12px 24px; font-size: var(--fs-sm); }

/* ---------- Burger ---------- */

.sec-fernhill-header .burger {
  display: none;
  width: var(--tap); height: var(--tap);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-primary-dk);
}
.sec-fernhill-header .burger span { display: grid; gap: 5px; justify-items: center; }
.sec-fernhill-header .burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; }

/* ---------- Drawer ---------- */

.sec-fernhill-header .drawer { position: fixed; inset: 0; z-index: var(--z-menu); }
/* Without this the panel keeps its own display and stays clickable. */
.sec-fernhill-header .drawer[hidden] { display: none; }

.sec-fernhill-header .drawer__scrim { position: absolute; inset: 0; background: rgba(35, 40, 35, 0.46); }

.sec-fernhill-header .drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--c-bg);
  box-shadow: var(--sh-xl);
}

.sec-fernhill-header .drawer__top { display: flex; align-items: center; justify-content: space-between; }
.sec-fernhill-header .drawer__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.sec-fernhill-header .drawer__x {
  display: grid; place-items: center;
  width: var(--tap); height: var(--tap);
  border-radius: var(--r-circle);
  background: var(--c-surface);
  color: var(--c-primary-dk);
}
.sec-fernhill-header .drawer__x svg { width: 22px; height: 22px; }

.sec-fernhill-header .drawer__list { display: grid; gap: 2px; }
.sec-fernhill-header .drawer__list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-primary-dk);
}
.sec-fernhill-header .drawer__list a:hover { background: var(--c-surface); }

.sec-fernhill-header .drawer__foot { margin-top: auto; display: grid; gap: 12px; }
.sec-fernhill-header .drawer__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sec-fernhill-header .drawer__hours { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text-muted); text-align: center; }

/* ---------- Sticky mobile bar ---------- */

.sec-fernhill-header .mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-mobilebar);
  display: none;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease-out);
}
.sec-fernhill-header .mobile-bar.is-on { transform: none; }
.sec-fernhill-header .mobile-bar__i {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--c-surface);
  color: var(--c-primary-dk);
}
.sec-fernhill-header .mobile-bar__i svg { width: 20px; height: 20px; flex: none; }
.sec-fernhill-header .mobile-bar__i--wa { background: var(--c-whatsapp); color: #fff; }
.sec-fernhill-header .mobile-bar__i--cta { background: var(--c-primary); color: var(--c-white); }

/* ---------- Breakpoints ----------
   Four short nav labels and a compact bar, so the links survive
   further down than in T9/T11/T13. Checked against the container's
   inner edge, not the viewport — a header can overflow its column
   without overflowing the window, and only the first is visible. */

@media (max-width: 980px) {
  .sec-fernhill-header .site-nav { display: none; }
  .sec-fernhill-header .burger { display: grid; place-items: center; }
  .sec-fernhill-header .site-head__act { margin-left: auto; }
}

@media (max-width: 720px) {
  .sec-fernhill-header .head-tel span { display: none; }
  .sec-fernhill-header .head-tel { padding: 10px; }
  .sec-fernhill-header .head-cta { display: none; }
  .sec-fernhill-header .mobile-bar { display: flex; }
}

@media (max-width: 400px) { .sec-fernhill-header .brand__tx small { display: none; } }