/* Reset, typography, layout primitives, header, mobile menu and footer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--navy-900); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-800); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-700); }
h4 { font-size: var(--fs-600); }
.h-page { font-size: var(--fs-800); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lede { font-size: var(--fs-600); line-height: 1.55; color: var(--ink-700); max-width: 60ch; }
.muted { color: var(--ink-500); }
.small { font-size: var(--fs-300); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
hr { border: 0; height: 1px; background: var(--grey-200); margin: var(--space-8) 0; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime-300); color: var(--navy-900); }
.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; }
/* Honeypot: off-screen, unfocusable, hidden from assistive tech */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Layout */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: var(--space-12); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.86); position: relative; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a:not(.btn) { color: var(--lime-300); }
.section--dark .muted { color: rgba(255, 255, 255, 0.68); }
.section--dark .lede { color: rgba(255, 255, 255, 0.78); }
.section--tint { background: var(--surface-1); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head > p { margin: 0; max-width: 46ch; color: var(--ink-500); }
.section--dark .section-head > p { color: rgba(255, 255, 255, 0.7); }
.grid { display: grid; gap: var(--space-6); }
.grid > *, [class*="-grid"] > *, .split > *, .hero__inner > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* Skip link and scroll progress */
.skip-link { position: absolute; left: var(--space-4); top: -60px; z-index: 200; background: var(--navy-900); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--grad-energy); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; pointer-events: none; box-shadow: 0 0 10px rgba(141, 198, 63, 0.7); }

/* ---------------------------------------------------------------- Header
   Light glass by default. On pages that open with a navy hero (body.hero-dark) it starts navy and
   turns light once the hero has scrolled under it. Compacts after the first scroll. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 248, 0.97);
  border-bottom: 1px solid rgba(14, 42, 71, 0.07);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
  view-transition-name: site-header;
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); transition: min-height var(--dur-base) var(--ease-out); }
.site-header.is-compact .site-header__inner { min-height: var(--header-h-compact); }
.site-header.is-compact { box-shadow: 0 10px 30px -22px rgba(14, 42, 71, 0.45); }
.brand { position: relative; display: block; width: 190px; transition: width var(--dur-base) var(--ease-out); }
.site-header.is-compact .brand { width: 168px; }
.brand img { width: 100%; height: auto; transition: opacity var(--dur-base); }
.brand .brand__light { position: absolute; inset: 0; opacity: 0; }

.site-nav { margin-left: auto; }
.site-nav__list { position: relative; list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: var(--radius-pill); }
.site-nav__list a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-300); color: var(--ink-700); text-decoration: none; transition: color var(--dur-fast); }
.site-nav__list a:hover { color: var(--navy-900); }
.site-nav__list a[aria-current="page"] { color: #fff; }
.nav-pill { position: absolute; z-index: 0; top: 4px; height: calc(100% - 8px); left: 0; width: 0; border-radius: var(--radius-pill); background: var(--navy-900); opacity: 0; pointer-events: none; }
.nav-hover { position: absolute; z-index: 0; top: 4px; height: calc(100% - 8px); left: 0; width: 0; border-radius: var(--radius-pill); background: var(--green-100); opacity: 0; pointer-events: none; }
/* Without Motion the current page still gets its pill */
html:not(.motion-ready) .site-nav__list a[aria-current="page"] { background: var(--navy-900); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-300); color: var(--ink-700); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 0 var(--space-2); }
.header-phone svg { width: 15px; height: 15px; color: var(--green-600); }
.header-phone:hover { color: var(--green-700); }
.cart-link, .account-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--navy-900); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.cart-link:hover, .account-link:hover { background: var(--green-100); }
.cart-link svg, .account-link svg { width: 22px; height: 22px; }
.cart-badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--green-700); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 19px; text-align: center; font-weight: 600; box-shadow: 0 0 0 2px var(--surface-0); }
.cart-badge[data-empty="true"] { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-pill); color: var(--navy-900); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

/* Dark state over a navy hero */
body.hero-dark .site-header:not(.is-light) { background: var(--navy-900); border-bottom-color: rgba(255, 255, 255, 0.06); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.hero-dark .site-header:not(.is-light) .brand__dark { opacity: 0; }
body.hero-dark .site-header:not(.is-light) .brand__light { opacity: 1; }
body.hero-dark .site-header:not(.is-light) .site-nav__list a { color: rgba(255, 255, 255, 0.78); }
body.hero-dark .site-header:not(.is-light) .site-nav__list a:hover { color: #fff; }
body.hero-dark .site-header:not(.is-light) .site-nav__list a[aria-current="page"] { color: var(--navy-900); }
body.hero-dark .site-header:not(.is-light) .nav-pill { background: var(--lime-300); }
body.hero-dark .site-header:not(.is-light) .nav-hover { background: rgba(255, 255, 255, 0.1); }
html:not(.motion-ready) body.hero-dark .site-header:not(.is-light) .site-nav__list a[aria-current="page"] { background: var(--lime-300); }
body.hero-dark .site-header:not(.is-light) .header-phone { color: rgba(255, 255, 255, 0.8); }
body.hero-dark .site-header:not(.is-light) .cart-link,
body.hero-dark .site-header:not(.is-light) .account-link,
body.hero-dark .site-header:not(.is-light) .nav-toggle { color: #fff; }
body.hero-dark .site-header:not(.is-light) .cart-link:hover,
body.hero-dark .site-header:not(.is-light) .account-link:hover { background: rgba(255, 255, 255, 0.1); }
body.hero-dark .site-header:not(.is-light) .cart-badge { box-shadow: 0 0 0 2px var(--navy-900); }

@media (max-width: 1140px) { .header-phone { display: none; } }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn { display: none; }
  .brand, .site-header.is-compact .brand { width: 164px; }
}

/* ---------------------------------------------------------------- Mobile menu (full-screen panel) */
.menu { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-rows: auto 1fr auto; background: var(--grad-hero); color: #fff; padding: var(--space-4) var(--gutter) var(--space-8); visibility: hidden; opacity: 0; transition: opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu.is-open { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease-out), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu__top img { width: 160px; }
.menu__close { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: var(--radius-pill); background: var(--glass-light); color: #fff; cursor: pointer; }
.menu__close svg { width: 22px; height: 22px; }
.menu__nav { align-self: center; }
.menu__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.menu__nav a { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-2) 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 9vw, 2.75rem); letter-spacing: -0.015em; color: #fff; text-decoration: none; }
.menu__nav a span { font-family: var(--font-body); font-size: var(--fs-200); font-weight: 600; color: var(--lime-300); }
.menu__nav a[aria-current="page"] { color: var(--lime-300); }
.menu__foot { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--glass-border); }
.menu__foot a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.menu__foot .btn { justify-self: start; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- Footer */
.site-footer { position: relative; background: var(--navy-900); color: rgba(255, 255, 255, 0.8); padding-block: 0 var(--space-8); margin-top: var(--space-8); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -180px; bottom: -220px; width: 560px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(141, 198, 63, 0.16), transparent 62%); pointer-events: none; }
.site-footer > .live-line { margin-bottom: var(--space-16); }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--lime-300); }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: var(--space-10); }
.site-footer__brand img { width: 220px; margin-bottom: var(--space-4); }
.site-footer h4 { color: #fff; font-size: var(--fs-400); font-family: var(--font-display); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-300); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-300); color: rgba(255, 255, 255, 0.62); }
.social-links { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social-links a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring); }
.social-links a:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* WhatsApp button */
.whatsapp-fab { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 90; display: inline-flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-5) 0 var(--space-4); height: 52px; border-radius: var(--radius-pill); background: #25D366; color: var(--navy-900); font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.7); transition: transform var(--dur-fast) var(--ease-spring), bottom var(--dur-base) var(--ease-out); }
.whatsapp-fab:hover { transform: translateY(-2px); color: var(--navy-900); }
.whatsapp-fab svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  body.has-buybar .whatsapp-fab { bottom: calc(var(--space-4) + 76px); }
  body.has-buybar .site-footer { padding-bottom: calc(var(--space-8) + 84px); }
}
@media (max-width: 600px) { .whatsapp-fab span { display: none; } .whatsapp-fab { width: 52px; padding: 0; justify-content: center; } }

/* ---------------------------------------------------------------- Motion states
   Elements are visible by default. Only when the motion module has loaded (html.motion-ready)
   or is about to (html.motion-pending, set inline in <head>) do hero parts start hidden. */
html.motion-pending [data-anim="hero"] .hero__word,
html.motion-pending [data-anim="hero"] .hero__fade { opacity: 0; }
html.motion-off [data-anim], html.motion-off [data-anim] > *, html.motion-off .hero__word, html.motion-off .hero__fade { opacity: 1 !important; transform: none !important; clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
