/* Terra — tokeni templata, scopovani na .sec-terra-header. */

/* ============================================================
   DESIGN TOKENS — Template 12 "Terra"
   Niche variant: K — holistic / biological dentistry
   >>> NEW variant, not in the original style guide. Rules and
       reasoning live in the BUILDER-LOG, §4h. <<<

   Register: materials and evidence, not philosophy. The risk in
   this segment is overclaiming, so the copy is built around what
   can be shown — and around one sentence that refuses a claim.

   First TWO-TONE template in the series: bronze is primary and
   accent at once, graphite carries the text, everything else is
   a cool neutral. Add a third colour and this stops being this
   template.
   ============================================================ */

.sec-terra-header {
  /* ---------- Color ---------- */
  --c-bg:          #F2F4F4;   /* cool white, faint green-grey */
  --c-bg-alt:      #E7ECEC;
  --c-white:       #FFFFFF;
  --c-surface:     #D6E0E0;   /* cool ceramic fill */

  /* Bronze on a COOL neutral. Bronze on a warm cream is exactly the
     "cream + terracotta" look the style guide rules out; the cold
     ground is what separates the two. */
  --c-primary:     #7A4A1E;   /* 6.7:1 on --c-bg, white on it 7.4:1 */
  --c-primary-dk:  #57330F;
  --c-primary-lt:  #C08A54;
  --c-primary-08:  rgba(122, 74, 30, 0.08);
  --c-primary-16:  rgba(122, 74, 30, 0.16);

  --c-ink:         #232A2C;   /* graphite — headings, 13:1 */
  --c-text:        #2B3335;
  --c-text-muted:  #55605F;   /* 6.6:1 on --c-bg */
  --c-on-dark:     #EDF1F1;
  --c-on-dark-mu:  rgba(237, 241, 241, 0.74);

  --c-line:        rgba(35, 42, 44, 0.12);
  --c-line-strong: rgba(35, 42, 44, 0.22);
  --c-line-dark:   rgba(237, 241, 241, 0.22);

  --c-whatsapp:    #0E7C6F;   /* deeper than the brand green so white
                                 text on it clears AA at 5.1:1 */
  --c-whatsapp-dk: #0B6357;
  --c-star:        #A9772C;

  /* ---------- Elevation — flat by default, this page is a lab ---------- */
  --sh-xs: 0 1px 2px rgba(20, 30, 32, 0.05);
  --sh-sm: 0 3px 12px -6px rgba(20, 30, 32, 0.16);
  --sh-md: 0 12px 30px -14px rgba(20, 30, 32, 0.24);
  --sh-lg: 0 24px 50px -20px rgba(20, 30, 32, 0.30);
  --sh-xl: 0 40px 84px -30px rgba(20, 30, 32, 0.36);

  /* ---------- Radius ---------- */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* Gallery tiles: 12px, inside the 10–15px band the brief asks for. */
  --r-gallery: 12px;

  /* L-frame: how far the bronze rule sits off the media edge. */
  --lframe: 14px;

  /* ---------- 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;
  --sp-9: 128px;

  --section-y: clamp(68px, 8.5vw, 120px);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1220px;

  /* ---------- Typography ---------- */
  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body:    "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.42vw + 1.05rem, 1.28rem);
  --fs-h4:   clamp(1.25rem, 0.7vw + 1.08rem, 1.5rem);
  --fs-h3:   clamp(1.5rem, 1.1vw + 1.22rem, 2rem);
  --fs-h2:   clamp(2.0625rem, 2.6vw + 1.4rem, 3.375rem);
  --fs-h1:   clamp(2.5rem, 3.8vw + 1.4rem, 4.375rem);

  --lh-tight: 1.06;
  --lh-snug:  1.16;
  --lh-body:  1.62;

  --ls-tight: -0.015em;   /* a serif needs far less negative tracking */
  --ls-label:  0.18em;

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast: 160ms;
  --t-base: 300ms;
  --t-slow: 700ms;

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

@media (max-width: 900px) { .sec-terra-header { --header-h: 64px; --lframe: 10px; } }

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

/* ============================================================
   BASE — Template 12 "Terra"
   Signature: the L-frame (.u-lframe — a bronze rule set off two
   sides of a media block) and the round seal (.u-seal). Both are
   drawn with borders and radii, no extra elements, no images.
   ============================================================ */

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

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

.sec-terra-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-terra-header img, .sec-terra-header svg, .sec-terra-header video { display: block; max-width: 100%; }
.sec-terra-header img { height: auto; }

.sec-terra-header h1, .sec-terra-header h2, .sec-terra-header h3, .sec-terra-header h4 {
  font-family: var(--ff-display);
  font-weight: 400;          /* a serif carries weight without bolding */
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-terra-header h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.sec-terra-header h2 { font-size: var(--fs-h2); line-height: 1.1; }
.sec-terra-header h3 { font-size: var(--fs-h3); }
.sec-terra-header h4 { font-size: var(--fs-h4); font-weight: 500; }

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

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

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

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

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

.sec-terra-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-terra-header .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-ink); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-terra-header .u-skip-link:focus { transform: translateY(0); }

/* ============================================================
   DARK SCOPE — .u-dark on any section on the graphite. Fixes
   headings, paragraphs and labels in one place. (BUILDER-LOG §4.)
   ============================================================ */
.sec-terra-header .u-dark { color: var(--c-on-dark); }
.sec-terra-header .u-dark h1, .sec-terra-header .u-dark h2, .sec-terra-header .u-dark h3, .sec-terra-header .u-dark h4 { color: var(--c-on-dark); }
.sec-terra-header .u-dark p { color: var(--c-on-dark-mu); }
/* bronze is 3.4:1 on graphite — too low for a 13px label, so on dark the
   label takes the light bronze */
.sec-terra-header .u-dark .u-label { color: var(--c-primary-lt); }
.sec-terra-header .u-dark .u-head p { color: var(--c-on-dark-mu); }

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

.sec-terra-header .u-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-primary);
}
.sec-terra-header .u-label::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none;
}

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

/* ---------- L-frame (signature device) ---------- */

/* A bronze rule along two sides of a media block, offset by --lframe.
   Drawn on a ::before of the wrapper, so the picture itself is never
   bordered and the rule can sit outside it. Set --lframe-x/-y to flip
   which corner it hugs. */
.sec-terra-header .u-lframe { position: relative; }
.sec-terra-header .u-lframe::before {
  content: "";
  position: absolute;
  inset: var(--lframe-y, calc(var(--lframe) * -1)) auto auto var(--lframe-x, calc(var(--lframe) * -1));
  width: 42%; height: 46%;
  border-top: 2px solid var(--c-primary);
  border-left: 2px solid var(--c-primary);
  border-radius: var(--r-md) 0 0 0;
  pointer-events: none;
}
/* mirrored: the rule hugs the bottom-right instead */
.sec-terra-header .u-lframe--br::before {
  inset: auto auto var(--lframe-y, calc(var(--lframe) * -1)) auto;
  right: var(--lframe-x, calc(var(--lframe) * -1));
  left: auto;
  border-top: 0; border-left: 0;
  border-bottom: 2px solid var(--c-primary);
  border-right: 2px solid var(--c-primary);
  border-radius: 0 0 var(--r-md) 0;
}

/* ---------- Seal (signature device) ---------- */

.sec-terra-header .u-seal {
  display: grid; place-items: center;
  width: var(--seal-size, 104px); height: var(--seal-size, 104px);
  border-radius: var(--r-circle);
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.35;
  background: var(--seal-bg, transparent);
}
.sec-terra-header .u-seal strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.375rem; font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink);
}
.sec-terra-header .u-seal--solid { --seal-bg: var(--c-white); border-color: var(--c-line); }

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

.sec-terra-header .u-pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--pill-bg, var(--c-white));
  color: var(--pill-fg, var(--c-ink));
  border: 1px solid var(--pill-bd, var(--c-line));
  font-size: var(--fs-sm); font-weight: 500;
}
.sec-terra-header .u-pill--bronze { --pill-bg: var(--c-primary-08); --pill-bd: transparent; --pill-fg: var(--c-primary-dk); }
.sec-terra-header .u-pill--cool { --pill-bg: var(--c-surface); --pill-bd: transparent; --pill-fg: var(--c-ink); }
.sec-terra-header .u-pill--ghost {
  --pill-bg: rgba(237, 241, 241, 0.12);
  --pill-bd: var(--c-line-dark);
  --pill-fg: var(--c-on-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sec-terra-header .u-pill svg { width: 17px; height: 17px; flex: none; }

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

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

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

.sec-terra-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: 54px;
  padding: 15px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-size: var(--fs-md); font-weight: 500;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.sec-terra-header .u-btn svg { flex: none; width: 20px; height: 20px; }
.sec-terra-header .u-btn:hover { transform: translateY(-2px); }
.sec-terra-header .u-btn:active { transform: translateY(0); transition-duration: 70ms; }

.sec-terra-header .u-btn--solid { box-shadow: var(--sh-sm); }
.sec-terra-header .u-btn--solid:hover { --btn-bg: var(--c-primary-dk); box-shadow: var(--sh-md); }

.sec-terra-header .u-btn--ink { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); }
.sec-terra-header .u-btn--ink:hover { --btn-bg: #121819; }

.sec-terra-header .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong); }
.sec-terra-header .u-btn--line:hover { --btn-bd: var(--c-primary); --btn-bg: var(--c-white); }

.sec-terra-header .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); box-shadow: var(--sh-md); }
.sec-terra-header .u-btn--white:hover { --btn-bg: var(--c-bg-alt); }

.sec-terra-header .u-btn--ghost { --btn-bg: rgba(237, 241, 241, 0.1); --btn-fg: var(--c-on-dark); --btn-bd: var(--c-line-dark); }
.sec-terra-header .u-btn--ghost:hover { --btn-bg: rgba(237, 241, 241, 0.2); --btn-bd: rgba(237, 241, 241, 0.55); }

.sec-terra-header .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; box-shadow: var(--sh-sm); }
.sec-terra-header .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); box-shadow: var(--sh-md); }

.sec-terra-header .u-btn--lg { min-height: 62px; padding: 19px 34px; font-size: var(--fs-lg); }
.sec-terra-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-terra-header.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-terra-header.has-js [data-reveal].is-in { opacity: 1; transform: none; }

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

@media print {
  .sec-terra-header .site-head, .sec-terra-header .mobile-bar, .sec-terra-header .cta, .sec-terra-header .slices { display: none !important; }
  .sec-terra-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:

     image tag:  src="_shared/img/hero-bg.svg" width="2400" height="1500" alt="..."
     video tag:  src="_shared/video/hero.mp4" poster="_shared/img/hero-bg.svg"
                 width="2400" height="1500" data-inline muted loop playsinline
                 aria-label="..."

   `data-inline` hands the element to app.js, which plays it only
   while it is on screen, pauses it when the tab is hidden, adds a
   pause control (WCAG 2.2.2) and skips autoplay entirely under
   prefers-reduced-motion — the poster stays in that case.
   ============================================================ */

.sec-terra-header video { width: 100%; height: auto; }

.sec-terra-header .has-inline-video { position: relative; }

.sec-terra-header .u-mediactl {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-size: var(--fs-xs); font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease);
}
.sec-terra-header .u-mediactl:hover { background: #fff; }
.sec-terra-header .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-terra-header .u-mediactl__ic::before, 
.sec-terra-header .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-terra-header .u-mediactl__ic::before { left: 0; }
.sec-terra-header .u-mediactl__ic::after { right: 0; }

.sec-terra-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-terra-header .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }

.sec-terra-header .u-mediactl--compact { padding: 0; width: 44px; justify-content: center; }
.sec-terra-header .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija header. */

/* ============================================================
   SECTION: HEADER — graphite over the hero, white after it
   Two states of one bar, driven by .is-past on the element.
   Everything inside inherits `currentColor`, so the inversion is
   one colour change rather than a rule per child.
   ============================================================ */

.sec-terra-header .site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
/* set by header.js once the hero has scrolled past */
.sec-terra-header .site-head.is-past {
  background: rgba(242, 244, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--c-ink);
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-xs);
}

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

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

.sec-terra-header .brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; }
.sec-terra-header .brand__mark { width: 34px; height: 34px; color: var(--c-primary-lt); flex: none; }
.sec-terra-header .site-head.is-past .brand__mark { color: var(--c-primary); }
.sec-terra-header .brand__mark svg { width: 100%; height: 100%; }
.sec-terra-header .brand__tx { display: flex; flex-direction: column; line-height: 1.12; }
.sec-terra-header .brand__tx strong {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.01em;
  color: currentColor;
}
.sec-terra-header .brand__tx small {
  font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.7;
}

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

.sec-terra-header .site-nav { margin-left: auto; }
.sec-terra-header .site-nav ul { display: flex; align-items: center; gap: 4px; }
.sec-terra-header .site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: currentColor;
  border-bottom: 1px solid transparent;
}
.sec-terra-header .site-nav a:hover { border-bottom-color: currentColor; }
/* set by header.js while that section is in view */
.sec-terra-header .site-nav a.is-current { border-bottom-color: var(--c-primary-lt); }
.sec-terra-header .site-head.is-past .site-nav a.is-current { border-bottom-color: var(--c-primary); }

.sec-terra-header .site-head__act { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.sec-terra-header .head-tel {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: currentColor;
  opacity: 0.86;
}
.sec-terra-header .head-tel:hover { opacity: 1; }

.sec-terra-header .head-cta {
  min-height: 46px;
  padding: 11px 24px;
  font-size: var(--fs-sm);
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: var(--c-line-dark);
}
.sec-terra-header .head-cta:hover { --btn-bg: rgba(237, 241, 241, 0.12); --btn-bd: rgba(237, 241, 241, 0.5); }
.sec-terra-header .site-head.is-past .head-cta { --btn-bg: var(--c-primary); --btn-fg: var(--c-white); --btn-bd: transparent; }
.sec-terra-header .site-head.is-past .head-cta:hover { --btn-bg: var(--c-primary-dk); }

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

.sec-terra-header .burger {
  display: none;
  width: 46px; height: 46px;
  color: currentColor;
  place-items: center;
}
.sec-terra-header .burger > span { display: block; width: 22px; }
.sec-terra-header .burger i {
  display: block; height: 1.6px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.sec-terra-header .burger i + i { margin-top: 6px; }
.sec-terra-header .burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.sec-terra-header .burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .sec-terra-header .site-nav, .sec-terra-header .head-tel { display: none; }
  .sec-terra-header .burger { display: grid; }
  .sec-terra-header .head-cta { display: none; }
}

/* ---------- Full menu ---------- */

.sec-terra-header .fmenu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  background: var(--c-ink);
  color: var(--c-on-dark);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
/* an author `display`/`opacity` beats the browser's [hidden] rule, and a
   closed overlay would swallow every click (BUILDER-LOG §4) */
.sec-terra-header .fmenu[hidden] { display: none; }
.sec-terra-header .fmenu.is-open { opacity: 1; }

.sec-terra-header .fmenu__inner {
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-6);
  min-height: 100%;
  padding-block: calc(var(--header-h) + var(--sp-5)) var(--sp-6);
}

.sec-terra-header .fmenu__list { display: grid; }
.sec-terra-header .fmenu__list a {
  display: flex; align-items: center;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 300;
  color: var(--c-on-dark);
}
.sec-terra-header .fmenu__list li:last-child a { border-bottom: 0; }
.sec-terra-header .fmenu__list a:hover { color: var(--c-primary-lt); }

.sec-terra-header .fmenu__foot { display: grid; gap: 12px; max-width: 420px; }
.sec-terra-header .fmenu__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-terra-header .fmenu__note { font-size: var(--fs-sm); color: var(--c-on-dark-mu); }

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

.sec-terra-header .mobile-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-mobilebar);
  display: none;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
  transform: translateY(150%);
  transition: transform var(--t-base) var(--ease-out);
}
.sec-terra-header .mobile-bar.is-visible { transform: none; }

.sec-terra-header .mobile-bar__i {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-ink);
}
.sec-terra-header .mobile-bar__i svg { width: 19px; height: 19px; }
.sec-terra-header .mobile-bar__i--wa { color: var(--c-whatsapp-dk); }
.sec-terra-header .mobile-bar__i--cta { background: var(--c-primary); color: var(--c-white); }

@media (max-width: 900px) {
  .sec-terra-header .mobile-bar { display: grid; }
}
@media (max-width: 380px) {
  .sec-terra-header .mobile-bar__i span { display: none; }
  .sec-terra-header .mobile-bar__i--cta span { display: inline; }
}