/* =====================================================================
   base.css — STRUCTURE & COMPONENTS (shared, never edited per client).
   All colours/fonts come from theme.css variables.
   ===================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* The `hidden` attribute must always win — a component's own `display` (e.g.
   .cart-layout{display:grid}) otherwise overrides the UA [hidden] rule and the
   element stays visible. This makes JS `el.hidden = true` reliable everywhere. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

/* ---------- accessibility: focus, skip-link, motion ---------- */
/* Visible keyboard focus on every interactive element. --accent (3.15:1 on
   light, 5.3:1 on dark) clears the 3:1 bar for graphical focus indicators in
   both contexts; keyboard-only so it never shows on mouse click. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* anchored sections clear the sticky header */
[id] { scroll-margin-top: 6rem; }

.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 100;
  background: var(--bg-deep); color: var(--on-dark);
  padding: .7rem 1.1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .005em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 400;
}
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--band { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-top: .4rem; }
.section-head p { margin-top: .9rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.9rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--text);
  background: var(--text); color: var(--bg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--light { border-color: var(--on-dark); background: var(--on-dark); color: var(--bg-deep); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.link-underline {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px; color: var(--text);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-underline:hover { color: var(--accent); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--bg-deep); color: var(--on-dark);
  text-align: center; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: .65rem 1rem;
}

/* ---------- header ----------
   Two-tier, centred boutique masthead: a balanced utility row (search · wordmark
   · cart) over a centred nav row. Condenses on scroll. Mobile collapses tier 2
   into the burger dropdown. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

/* tier 1 — utilities + wordmark */
.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-block: clamp(1rem, 2.2vw, 1.5rem);
  transition: padding-block .4s var(--ease);
}
.header-cluster { display: flex; align-items: center; gap: .35rem; }
.header-cluster--right { justify-content: flex-end; }

.brand {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1;
  letter-spacing: .26em; text-indent: .26em;   /* compensate trailing tracking → optically centred */
  text-align: center; text-transform: uppercase; white-space: nowrap;
  color: var(--text); transition: font-size .4s var(--ease), color .25s var(--ease);
}
.brand:hover { color: var(--accent-ink); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--text);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.icon-btn:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 3px;
  font-size: .62rem; font-weight: 500; letter-spacing: 0;
  background: var(--accent); color: var(--bg); border-radius: 999px;
  display: inline-grid; place-items: center;
}
.burger { display: none; }

/* tier 2 — primary nav */
.nav {
  display: flex; justify-content: center; gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-block: .85rem; border-top: 1px solid var(--line-soft);
  transition: padding-block .4s var(--ease);
}
.nav a {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .25s var(--ease);
  position: relative; padding-block: .15rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { transform: scaleX(1); }

/* condensed state once the page scrolls */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: 0 14px 34px -30px rgba(34, 30, 24, .55);
}
.site-header.is-scrolled .header-bar { padding-block: .7rem; }
.site-header.is-scrolled .brand { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.site-header.is-scrolled .nav { padding-block: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .header-bar, .brand, .nav, .nav a::after, .icon-btn { transition: none; }
}

/* ---------- hero ----------
   Split composition: a calm dark text panel guarantees legibility (no more
   copy fighting a busy photo), and the imagery lives in its own crossfading
   gallery alongside. Stacks to image-over-text on phones. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: min(90vh, 820px);
  background: var(--bg-deep);
  overflow: hidden;
}
.hero__text {
  display: grid; align-items: center;
  background: var(--bg-deep); color: var(--on-dark);
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter);
}
.hero__text-inner { max-width: 34rem; margin-inline: auto; width: 100%; }
.hero__text .eyebrow { color: var(--accent); opacity: 1; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin: .7rem 0 1.2rem; }
.hero p { color: rgba(244,239,230,.92); max-width: 40ch; margin-bottom: 1.9rem; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .65rem 1.7rem; }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(244,239,230,.94); }
.hero__trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* gallery / slideshow */
.hero__gallery { position: relative; overflow: hidden; background: var(--bg-deep); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity 1.1s var(--ease), visibility 0s;
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  filter: grayscale(.06) brightness(.96);
}
/* slow, restrained drift on the active slide — the "hand-finished" touch */
.hero__slide.is-active img { animation: heroDrift 7s var(--ease) forwards; }
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1); } }
/* hairline seam so the panel and gallery read as one considered object */
.hero__gallery::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; z-index: 3;
  background: linear-gradient(rgba(168,136,78,0), var(--accent), rgba(168,136,78,0));
  opacity: .5;
}
.hero__dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(1rem, 2.4vw, 1.8rem);
  display: flex; justify-content: center; gap: .6rem;
}
.hero__dot {
  width: 30px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(244,239,230,.4); border-radius: 2px;
  transition: background .35s var(--ease);
}
.hero__dot:hover { background: rgba(244,239,230,.7); }
.hero__dot.is-active { background: var(--accent); }
.hero__dot:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .001s; }
  .hero__slide.is-active img { animation: none; transform: none; }
}

/* light-on-dark ghost button — pairs with .btn--light over imagery / dark bands */
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(244,239,230,.55); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--bg-deep); border-color: var(--on-dark); }

/* ---------- section flourish (brand cadence in place of repeated eyebrows) ---------- */
.flourish { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; color: var(--accent); margin-bottom: .25rem; }
.flourish::before, .flourish::after { content: ""; width: clamp(26px, 6vw, 52px); height: 1px; }
.flourish::before { background: linear-gradient(90deg, transparent, currentColor); }
.flourish::after  { background: linear-gradient(90deg, currentColor, transparent); }
.flourish svg { width: 11px; height: 11px; flex: none; }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; display: grid; align-items: end; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: grayscale(.1); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20,17,13,.62)); }
.tile__label { position: relative; z-index: 2; color: var(--on-dark); padding: 1.6rem; width: 100%; }
.tile__label h3 { font-size: 1.7rem; }
.tile__label span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

/* ---------- product card / grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; }
.card { position: relative; }
.card__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-alt); margin-bottom: .9rem; }
.card__link { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card__media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img.alt { opacity: 1; }
.card:hover .card__media img.main { transform: scale(1.03); }
.card__quick { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.card:hover .card__quick { opacity: 1; transform: none; }
.card__quick .btn { width: 100%; justify-content: center; padding-block: .75rem; }
.badges { position: absolute; top: .9rem; left: .9rem; z-index: 2; display: flex; flex-direction: column; gap: .4rem; }
.badge { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .55rem; background: var(--bg); color: var(--text); }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new  { background: var(--text); color: var(--bg); }
.badge--soldout { background: var(--muted); color: #fff; }
.card__name { font-family: var(--font-body); font-size: .92rem; font-weight: 400; letter-spacing: .02em; }
.card__cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.price { margin-top: .35rem; font-size: .95rem; }
.price .was { color: var(--muted); text-decoration: line-through; margin-right: .5rem; }
.price .now { color: var(--accent-text); }
.swatches { display: flex; gap: .35rem; margin-top: .55rem; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- collections strip ---------- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.coll { position: relative; aspect-ratio: 4/5; overflow: hidden; display: grid; place-items: center; text-align: center; }
.coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) brightness(.78); transition: transform .8s var(--ease); }
.coll:hover img { transform: scale(1.06); }
.coll__txt { position: relative; z-index: 2; color: var(--on-dark); }
.coll__txt h3 { font-size: 1.6rem; }
.coll__txt span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

/* ---------- length guide feature ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.feature__media { aspect-ratio: 4/5; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.12); }
.feature h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0 1rem; }
.feature ul.ticks { margin: 1.4rem 0 2rem; display: grid; gap: .7rem; }
.feature ul.ticks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.feature ul.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

/* ---------- trust bar ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.trust__item h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; margin-bottom: .4rem; }
.trust__item p { font-size: .85rem; color: var(--muted); }
.trust__icon { color: var(--accent); margin-bottom: .85rem; display: flex; justify-content: center; }
.trust__icon svg { width: 30px; height: 30px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote { text-align: center; }
.quote .stars { color: var(--accent); letter-spacing: .28em; font-size: .82rem; margin-bottom: 1rem; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--text); }
.quote cite { display: block; margin-top: 1.1rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- newsletter / CTA ---------- */
.cta { background: var(--bg-deep); color: var(--on-dark); text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta p { color: rgba(244,239,230,.78); max-width: 44ch; margin: 1rem auto 2rem; }
.cta__form { display: flex; gap: .6rem; max-width: 26rem; margin: 0 auto; }
.cta__form input { flex: 1; min-width: 0; padding: .9rem 1rem; background: transparent; border: 1px solid rgba(244,239,230,.4); color: var(--on-dark); font: inherit; transition: border-color .25s var(--ease); }
.cta__form input::placeholder { color: rgba(244,239,230,.6); }
.cta__form input:focus { outline: none; border-color: var(--accent); }
.cta__msg { color: var(--accent); font-size: .82rem; letter-spacing: .04em; margin: 1.1rem auto 0; max-width: 30rem; }
.cta__msg.is-error { color: #E8A0A0; }
@media (max-width: 480px) {
  .cta__form { flex-direction: column; }
  .cta__form .btn { justify-content: center; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--on-dark); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid p { color: rgba(244,239,230,.6); font-size: .9rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; margin-bottom: 1.1rem; color: rgba(244,239,230,.85); }
.footer-col a { display: block; color: rgba(244,239,230,.62); font-size: .9rem; padding: .3rem 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { border-top: 1px solid rgba(244,239,230,.14); margin-top: 2.5rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: rgba(244,239,230,.5); }
.socials { display: flex; gap: 1rem; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .announce { letter-spacing: .1em; font-size: .68rem; padding: .55rem .9rem; }
  .header-bar { padding-block: .9rem; }
  .burger { display: inline-flex; }
  .header-cluster--left .icon-btn:not(.burger) { display: none; } /* search collapses into the menu on mobile */
  .nav { display: none; }
  /* full-height boutique drawer: anchored to the sticky masthead (absolute, not
     fixed — the header's backdrop-filter is a containing block that would trap a
     fixed child). Fills the viewport below the bar, scrolls internally, and the
     page behind it is locked (body.is-nav-open) so nothing bleeds through.
     --header-h is measured + set by ui.js on open. */
  .nav--open {
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100dvh - var(--header-h, 6.4rem));
    background: var(--bg); padding: 0 0 2rem;
    overflow-y: auto; overscroll-behavior: contain; z-index: 49;
  }
  /* every top-level entry is a full-width, left-aligned, divided row */
  .nav--open > a,
  .nav--open > .nav-search,
  .nav--open > .nav-item {
    width: 100%; border-bottom: 1px solid var(--line-soft);
  }
  .nav--open > a,
  .nav--open > .nav-search,
  .nav--open > .nav-item > a {
    display: flex; align-items: center; min-height: 56px;
    padding: .95rem var(--gutter);
    font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--text);
  }
  .nav--open a::after { content: none; } /* no underline sweep in the drawer */
  .tiles { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem .8rem; }
  .feature { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 2.5rem; }
  .trust { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .hero { min-height: min(82vh, 680px); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .card__quick { opacity: 1; transform: none; }

  /* hero stacks: gallery on top, text panel below. Cap the image height so the
     headline + CTA stay near the fold instead of being pushed off-screen. */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__gallery { order: -1; aspect-ratio: auto; height: 42vh; min-height: 260px; max-height: 420px; }
  .hero__gallery::before { display: none; }
  .hero__slide img { object-position: 50% 22%; }
  .hero__text { padding-block: clamp(1.8rem, 7vw, 3rem); }
  .hero__text-inner { max-width: 32rem; }
}

/* ---------- nav dropdowns (injected by ui.js for items with sub-types) ----------
   A nav entry that has children is wrapped in .nav-item; the top-level link stays
   clickable (goes to the category page) and a caret button opens the panel. On
   desktop hover/focus also opens it; on mobile it behaves as an inline accordion. */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: .25rem; }
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; color: var(--muted);
  transition: color .25s var(--ease), transform .3s var(--ease);
}
.nav-caret svg { width: 11px; height: 11px; }
.nav-item:hover .nav-caret, .nav-item.is-open .nav-caret { color: var(--text); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%;
  min-width: 200px; padding: .6rem 0; margin-top: .55rem;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 55;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: .55rem 1.4rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease);
}
.dropdown a::after { content: none; }
.dropdown a:hover, .dropdown a:focus-visible {
  color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ---------- search overlay (injected by ui.js) ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; }
.search-overlay[hidden] { display: none; }
.search-overlay__backdrop {
  position: absolute; inset: 0; background: rgba(20, 17, 13, .42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.search-panel {
  position: relative; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.4rem) var(--gutter);
  transform: translateY(-100%); transition: transform .35s var(--ease);
}
.search-overlay.is-open .search-overlay__backdrop { opacity: 1; }
.search-overlay.is-open .search-panel { transform: translateY(0); }
.search-form {
  display: flex; align-items: center; gap: .8rem;
  max-width: var(--maxw); margin: 0 auto;
  border-bottom: 1px solid var(--text); padding-bottom: .8rem;
}
.search-form svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); padding: .2rem 0;
}
.search-input::placeholder { color: var(--muted); opacity: .7; }
.search-input:focus { outline: none; }
.search-close {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: .4rem; transition: color .2s var(--ease);
}
.search-close:hover { color: var(--text); }
.search-hint {
  max-width: var(--maxw); margin: .9rem auto 0;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* mobile-only search trigger inside the burger menu */
.nav-search { display: none; }

/* when the mobile drawer is open: lock the page behind it and get the floating
   WhatsApp button out of the way (both set by ui.js via body.is-nav-open). */
body.is-nav-open { overflow: hidden; }
body.is-nav-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .dropdown, .search-overlay__backdrop, .search-panel, .nav-caret { transition: none; }
}

@media (max-width: 760px) {
  /* nav becomes a vertical column; dropdowns turn into inline accordions */
  .nav-search { gap: .6rem; color: var(--muted); }
  .nav-search svg { width: 18px; height: 18px; }

  /* a section with sub-types: label fills the row, caret is a bordered toggle */
  .nav-item {
    display: grid; grid-template-columns: 1fr 56px; align-items: center; gap: 0;
    width: 100%;
  }
  .nav-item > a { grid-column: 1; grid-row: 1; }
  .nav-caret {
    grid-column: 2; grid-row: 1; align-self: stretch;
    width: 56px; height: auto; color: var(--muted);
    border-left: 1px solid var(--line-soft);
  }
  .nav-caret svg { width: 13px; height: 13px; }

  /* inline accordion: tinted, indented, left-aligned. Animate grid-template-rows
     0fr→1fr (no layout thrash); only the explicit caret tap (.is-open) opens it. */
  .dropdown {
    grid-column: 1 / -1;
    position: static; transform: none; box-shadow: none; border: 0;
    min-width: 0; padding: 0; margin: 0; text-align: left;
    background: var(--bg-alt);
    opacity: 1; visibility: visible;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--ease);
  }
  /* neutralise the desktop translateX(-50%) that otherwise drags the panel
     ~half its width off the left edge (specificity: .is-open beat the reset). */
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown,
  .nav-item.is-open .dropdown { transform: none; opacity: 1; visibility: visible; }
  .dropdown > ul { overflow: hidden; min-height: 0; }
  .nav-item.is-open .dropdown { grid-template-rows: 1fr; }
  .dropdown a {
    padding: .8rem var(--gutter) .8rem calc(var(--gutter) + 1.2rem);
    font-size: .74rem; letter-spacing: .16em; color: var(--muted);
    white-space: normal; text-align: left;
  }
  .dropdown li + li a { border-top: 1px solid var(--line); }
}
