/* ============================================================
   Amazonian Reserve Peru — white / Amazon-green theme
   ============================================================ */

:root {
  --green-deep:  #1b4332;
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-soft:  #95d5b2;
  --mint:        #f0faf4;
  --mint-border: #c8ebd8;
  --cream:       #f6f4ef;
  --amber:       #d4a017;
  --ink:         #1f2937;
  --ink-soft:    #4b5563;
  --ink-faint:   #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Type scale ─────────────────────────────────────────── */
h1, h2, h3, .display { font-family: var(--font-display); color: var(--green-deep); line-height: 1.18; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--green); margin-bottom: .6rem;
}

.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 46rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .7rem 1.5rem; border-radius: 6px;
  font-size: .85rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--mint); }

/* ── Header / nav ───────────────────────────────────────────
   Transparent over the hero video; turns white once the page
   scrolls past the top (.scrolled added by app.js). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: none;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 108px; }
/* Header spans the full viewport width; the logo sits 24px from the left,
   the nav items 14px from the right (top right bottom left). */
.site-header .container { max-width: none; padding: 0 14px 0 24px; }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 58px; width: auto; transition: filter .25s ease; }
/* Only the white logo exists — darken it once the header turns white
   (replace with the real dark logo when AR-L01 is delivered). */
.site-header.scrolled .nav-logo { filter: brightness(0) sepia(1) hue-rotate(110deg) saturate(3) brightness(.55); }

.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.92); transition: color .2s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--amber); text-decoration: none; }
.nav-links a.active { color: var(--amber); }
.site-header.scrolled .nav-links a { color: var(--ink); }
.site-header.scrolled .nav-links a:hover { color: var(--amber); }
.site-header.scrolled .nav-links a.active { color: var(--amber); }

.nav-links .nav-cta {
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 6px;
  padding: .45rem 1.1rem; color: #fff;
}
.nav-links .nav-cta:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header.scrolled .nav-links .nav-cta { border-color: var(--green); color: var(--green); }
.site-header.scrolled .nav-links .nav-cta:hover { background: var(--mint); color: var(--green-deep); }

/* Products dropdown — opens on hover, same pattern as the language menu */
.nav-dropdown { position: relative; }
.nav-caret { font-size: .6rem; opacity: .7; }
.nav-submenu {
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  padding-top: 12px; list-style: none; min-width: 170px; display: none; z-index: 60;
}
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { display: block; }
/* Frosted-glass dropdown: dark glass over the video, light glass once scrolled */
.nav-submenu li {
  background: rgba(13, 38, 26, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav-submenu li:first-child { border-radius: 8px 8px 0 0; overflow: hidden; }
.nav-submenu li:last-child { border-radius: 0 0 8px 8px; overflow: hidden; }
.nav-submenu a, .site-header .nav-links .nav-submenu a {
  display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem;
  font-size: .76rem; color: rgba(255,255,255,.92); text-transform: none; letter-spacing: .02em; font-weight: 600;
}
.nav-submenu a:hover, .site-header .nav-links .nav-submenu a:hover { background: rgba(255,255,255,.12); color: var(--amber); }
.site-header.scrolled .nav-submenu li { background: rgba(255,255,255,.75); }
.site-header.scrolled .nav-links .nav-submenu a { color: var(--ink); }
.site-header.scrolled .nav-links .nav-submenu a:hover { background: rgba(45,106,79,.08); color: var(--green); }
.nav-badge {
  font-size: .58rem; font-weight: 700; background: rgba(212,160,23,.18); color: var(--amber);
  border: 1px solid rgba(212,160,23,.45); border-radius: 4px; padding: .08rem .4rem; letter-spacing: .04em;
}
.site-header.scrolled .nav-badge { background: var(--cream); color: #92400e; border-color: #e5d5b5; }

/* Language: globe icon, dropdown opens on hover */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-globe {
  background: none; border: none; cursor: pointer; padding: .3rem;
  color: rgba(255,255,255,.92); display: flex; align-items: center; gap: .45rem;
  transition: color .2s ease;
}
.lang-current { font-size: .74rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.lang-globe:hover { color: #fff; }
.site-header.scrolled .lang-globe { color: var(--ink); }
.site-header.scrolled .lang-globe:hover { color: var(--green); }
.lang-menu {
  position: absolute; right: 0; top: 100%; padding-top: 10px; background: transparent;
  list-style: none; min-width: 140px; display: none; z-index: 60;
}
.lang-menu li {
  background: rgba(13, 38, 26, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang-menu li:first-child { border-radius: 8px 8px 0 0; overflow: hidden; }
.lang-menu li:last-child { border-radius: 0 0 8px 8px; overflow: hidden; }
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: .55rem; padding: .5rem 1rem;
  font-size: .78rem; color: rgba(255,255,255,.92) !important;
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.lang-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lang-menu a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: var(--amber) !important; }
.lang-menu a.active { color: var(--amber) !important; font-weight: 700; }
.site-header.scrolled .lang-menu li { background: rgba(255,255,255,.75); }
.site-header.scrolled .lang-menu a { color: var(--ink) !important; }
.site-header.scrolled .lang-menu a:hover { background: rgba(45,106,79,.08); color: var(--green) !important; }
.site-header.scrolled .lang-menu a.active { color: var(--green) !important; }

/* Footer variant: same component, opens upward, solid light panel on dark green */
.footer-lang { margin-top: 1.2rem; }
.lang-switch--footer .lang-globe {
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: .5rem .8rem;
}
.lang-switch--footer .lang-globe:hover { color: #fff; border-color: var(--green-soft); }
.lang-switch--footer .lang-menu { top: auto; bottom: 100%; padding-top: 0; padding-bottom: 10px; min-width: 170px; }
.lang-switch--footer .lang-menu li { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.lang-switch--footer .lang-menu a { color: var(--ink) !important; }
.lang-switch--footer .lang-menu a:hover { background: var(--mint); color: var(--green) !important; }
.lang-switch--footer .lang-menu a.active { color: var(--green) !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #fff; cursor: pointer; }
.site-header.scrolled .nav-toggle { color: var(--green-deep); }
/* Hidden on desktop; the mobile media query reveals them. */
.nav-close, .nav-backdrop { display: none; }

/* ── Hero (video + poster fallback) ─────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--green-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-poster { background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,38,26,.82) 0%, rgba(27,67,50,.55) 50%, rgba(27,67,50,.25) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 6rem; padding-bottom: 3rem; }
.hero-kicker { font-size: .72rem; font-weight: 700; color: var(--green-soft); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .7rem; }
.hero h1 { color: #fff; max-width: 36rem; margin-bottom: .4rem; font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.hero h1 em { font-style: italic; color: var(--green-soft); }
.hero-tagline { font-size: .74rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.hero-lead { color: rgba(255,255,255,.85); font-size: .94rem; max-width: 33rem; margin-bottom: 1.3rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-place {
  position: absolute; right: 24px; bottom: 26px; z-index: 2; text-align: right;
  color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600;
}
.hero-place small { display: block; color: rgba(255,255,255,.55); font-weight: 400; font-size: .68rem; }

/* Hero — pin the text block to the bottom-left of the window with an equal
   inset from the left border and the bottom (applies to every page). */
:root { --hero-inset: clamp(1.6rem, 4vw, 3.4rem); }
.hero-inner {
  max-width: none; margin: 0;
  padding: 0 24px var(--hero-inset) var(--hero-inset);
}
/* keep the location tag clear of the bottom-left block */
.hero-place { bottom: var(--hero-inset); right: var(--hero-inset); }

/* Page hero (interior pages — image only, shorter) */
.page-hero { min-height: 100vh; min-height: 100svh; }

/* ── Heritage band (after hero) ─────────────────────────── */
.heritage-band { background: var(--cream); padding-top: 3.4rem; }
.heritage-top { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; padding: 0 24px; }
.heritage-kicker {
  font-size: .7rem; font-weight: 700; color: #92400e;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: .7rem;
}
.heritage-quote {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic; color: var(--green-deep); line-height: 1.5;
}
.heritage-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid #e5dfd2; }
.heritage-col { padding: 1.8rem 1.8rem 2.2rem; border-right: 1px solid #e5dfd2; text-align: center; }
.heritage-col:last-child { border-right: none; }
.heritage-label {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--amber);
  text-transform: uppercase; letter-spacing: .15em; margin-bottom: .6rem;
}
.heritage-col h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.heritage-col p { font-size: .85rem; color: #5b554a; line-height: 1.6; }

/* ── Menu-ready spec strip ──────────────────────────────── */
.specs-section { padding: 3.4rem 0; }
.specs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.specs-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--green-deep); }
.specs-sub { font-size: .8rem; color: var(--ink-faint); }
.specs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.spec-chip { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; padding: 1.15rem .7rem; text-align: center; }
.spec-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green); line-height: 1.1; margin-bottom: .25rem; }
.spec-chip h5 { font-size: .66rem; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.spec-chip p { font-size: .66rem; color: var(--ink-faint); line-height: 1.45; }
.specs-foot { margin-top: 1.3rem; text-align: center; font-size: .82rem; font-style: italic; color: var(--ink-faint); }

/* ── Future development band (Doncella) ─────────────────── */
.future-band { background: var(--green-deep); color: #fff; }
.future-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-top: 3.4rem; padding-bottom: 3.4rem; }
.future-band .eyebrow { color: var(--green-soft); }
.future-band h2 { color: #fff; margin-bottom: .7rem; }
.future-band p { color: rgba(255,255,255,.78); font-size: .94rem; line-height: 1.7; margin-bottom: 1.4rem; }
.future-media { border-radius: 12px; overflow: hidden; position: relative; }
.future-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-mint { background: var(--mint); }
.section-head { margin-bottom: 2.2rem; }
.section-head .lead { margin-top: .7rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split-media { border-radius: 12px; overflow: hidden; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .caption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(13,38,26,.72);
  color: rgba(255,255,255,.92); font-size: .7rem; font-style: italic;
  padding: .35rem .8rem; border-radius: 5px;
}
.split-body p { color: var(--ink-soft); font-size: .94rem; margin-bottom: .9rem; }

.place-tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream);
  border: 1px solid #e5e0d5; border-radius: 20px; padding: .35rem .9rem;
  font-size: .74rem; color: #6b5b3e; font-weight: 600; margin-bottom: .9rem;
}

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: 1rem; }
.check-item { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 500; }
.check-item::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: #d1fae5; color: var(--green); font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Cards ──────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-media { height: 230px; position: relative; background: var(--green-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem; }
.card-kicker { font-size: .68rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem; }
.card h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.card-body p { font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; }

.badge {
  position: absolute; top: 12px; right: 12px; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 4px;
}
.badge-amber { background: var(--amber); color: #fff; }
.badge-gray { background: #374151; color: #d1d5db; }

.attr-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.attr {
  font-size: .65rem; font-weight: 600; background: var(--mint); color: var(--green);
  border: 1px solid var(--mint-border); border-radius: 4px; padding: .15rem .5rem;
}
.attr.muted { background: #f3f4f6; color: var(--ink-faint); border-color: var(--border); }

.more-link { font-size: .82rem; font-weight: 700; color: var(--green); }
.more-link:hover { text-decoration: underline; }

/* ── Spec table ─────────────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec-table th, .spec-table td { text-align: left; padding: .4rem .9rem .4rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.spec-table td:first-child { font-weight: 700; color: var(--green-deep); white-space: nowrap; padding-right: 1.4rem; }
.spec-table td:last-child { width: 100%; }

/* Compact spec table defined by neutral lines only (no fills) */
.spec-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-grid { width: 100%; border-collapse: collapse; }
.spec-grid tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.spec-grid th, .spec-grid td { padding: .42rem .9rem; vertical-align: top; text-align: left; }
.spec-grid th {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--green-deep); white-space: nowrap; width: 1%;
  border-right: 1px solid var(--border); background: var(--cream);
}
.spec-grid td { font-size: .82rem; color: var(--ink-soft); line-height: 1.45; }

/* ── Process timeline ───────────────────────────────────── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin-top: 2.5rem; }
.process::before {
  content: ""; position: absolute; top: 21px; left: 10%; right: 10%;
  height: 2px; background: #d1fae5;
}
.process-step { text-align: center; padding: 0 .7rem; position: relative; }
.process-num {
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  border: 2px solid var(--green); color: var(--green); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem;
  position: relative; z-index: 1; font-size: 1rem;
}
.process-step h4 { font-size: .85rem; font-weight: 700; color: var(--green-deep); margin-bottom: .25rem; }
.process-step p { font-size: .72rem; color: var(--ink-faint); line-height: 1.45; }

/* ── Stats ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; background: var(--mint); border-radius: 10px; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--green); }
.stat-label { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }

/* ── Certifications ─────────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cert-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; background: #fff; position: relative; }
.cert-status { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 4px; display: inline-block; margin-bottom: .8rem; }
.cert-status.held { background: #d1fae5; color: var(--green-deep); }
.cert-status.progress { background: #fef3c7; color: #92400e; }
.cert-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.cert-card p { font-size: .76rem; color: var(--ink-soft); }

/* certs strip (homepage) */
.certs-strip {
  background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.certs-strip-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.certs-strip-label { font-size: .64rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; margin-right: auto; }
.certs-strip-item { display: flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 600; color: var(--ink); }
.certs-strip-item .dot-ic {
  width: 20px; height: 20px; border-radius: 50%; background: var(--amber); color: #fff;
  font-size: .6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.certs-strip-item .dot-ic.soft { background: #c9b079; }

/* ── Quote block ────────────────────────────────────────── */
.quote-block { max-width: 50rem; margin: 0 auto; text-align: center; }
.quote-block blockquote { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--green-deep); line-height: 1.5; margin-bottom: 1.2rem; }
.quote-block cite { font-size: .82rem; color: var(--ink-faint); font-style: normal; font-weight: 600; }

/* ── Distributor band ───────────────────────────────────── */
.distributor-band { background: var(--green-deep); color: #fff; padding: 3rem 0; }
.distributor-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.distributor-band .eyebrow { color: var(--green-soft); }
.distributor-band h2 { color: #fff; margin-bottom: .5rem; }
.distributor-band p { color: rgba(255,255,255,.72); font-size: .9rem; max-width: 33rem; }
.distributor-side { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.distributor-logo {
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  border-radius: 8px; padding: .7rem 1.4rem; font-weight: 700; letter-spacing: .06em; font-size: .92rem;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .76rem; font-weight: 700; color: var(--green-deep); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: .88rem; padding: .65rem .8rem;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--green-soft); border-color: var(--green);
}
.form-field textarea { min-height: 140px; resize: vertical; }
/* Light-gray hint text inside fields */
.form-field input::placeholder, .form-field textarea::placeholder { color: #9ca3af; opacity: 1; }
/* Dropdowns read gray while showing their hint, dark once a real option is picked */
.form-field select { color: var(--ink); cursor: pointer; }
.form-field select.is-placeholder { color: #9ca3af; }
/* Live character counter under the message box */
.char-counter { display: block; text-align: right; font-size: .68rem; color: #9ca3af; margin-top: .25rem; }
.char-counter.is-near { color: #b45309; }
.form-hint { font-size: .7rem; color: var(--ink-faint); }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.form-errors li { color: #b91c1c; font-size: .82rem; margin-left: 1rem; }
.form-success { background: #d1fae5; border: 1px solid #86efac; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; color: var(--green-deep); font-size: .88rem; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Spec table + nutrition label, side by side ─────────── */
.spec-layout { display: grid; grid-template-columns: 1fr 270px; gap: 3rem; align-items: start; }
.spec-layout-main { min-width: 0; }
.spec-layout-side { width: 270px; }
.nutrition-intro h3, .spec-intro h3 { font-size: 1.4rem; margin: .1rem 0 .5rem; }
.nutrition-intro p, .spec-intro p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.2rem; }

/* Faithful FDA label: white box, black rules, Helvetica, per 21 CFR 101.9 */
.nutrition-facts {
  width: 270px; box-sizing: border-box; background: #fff; color: #000;
  border: 1px solid #000; padding: 6px 9px;
  font-family: Helvetica, Arial, "Liberation Sans", sans-serif;
  line-height: 1.05; letter-spacing: 0; flex-shrink: 0;
}
.nutrition-facts * { box-sizing: border-box; margin: 0; }
.nutrition-facts b { font-weight: 700; }
.nf-title { font-family: "Franklin Gothic Heavy", "Arial Black", Helvetica, sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: .95; margin-bottom: 2px; }
.nf-thin { border-bottom: 1px solid #000; }
.nf-serving { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; padding: 2px 0; }
.nf-bar { height: 10px; background: #000; margin: 1px 0; }
.nf-amount { font-size: .66rem; font-weight: 700; padding-top: 2px; }
.nf-calories { display: flex; justify-content: space-between; align-items: flex-end; font-weight: 800; border-bottom: 4px solid #000; padding-bottom: 1px; }
.nf-cal-label { font-size: 1.05rem; }
.nf-cal-num { font-size: 1.7rem; line-height: 1; }
.nf-dv { text-align: right; font-size: .66rem; font-weight: 700; padding: 2px 0; border-bottom: 1px solid #000; }
.nf-row { display: flex; justify-content: space-between; font-size: .78rem; padding: 1.5px 0; border-bottom: 1px solid #000; }
.nf-row.nf-sub span:first-child { padding-left: 1rem; }
.nf-row.nf-protein { border-bottom: none; }
.nf-foot { font-size: .58rem; line-height: 1.25; padding-top: 4px; }
@media (max-width: 760px) {
  .spec-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .spec-layout-side { width: 100%; max-width: 270px; }
}

/* ── Award card ─────────────────────────────────────────── */
.award-card { display: flex; gap: 1.4rem; align-items: flex-start; max-width: 46rem; margin: 0 auto; border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: 12px; padding: 1.6rem 1.8rem; background: var(--cream); }
.award-medal { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1.5px solid var(--amber); color: var(--amber); display: flex; align-items: center; justify-content: center; }
.award-date { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #92400e; margin-bottom: .2rem; }
.award-body h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.award-issuer { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .6rem; }
.award-body p:last-child { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }

/* ── News ───────────────────────────────────────────────── */
.news-date { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green); margin-bottom: .3rem; }
.news-card { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.news-card:hover { text-decoration: none; box-shadow: 0 8px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.news-article { margin-bottom: 2.5rem; }
.news-article-media { border-radius: 12px; overflow: hidden; margin-bottom: 1.2rem; max-height: 340px; }
.news-article-media img { width: 100%; height: 100%; object-fit: cover; }
.news-article-body h2 { margin-bottom: .6rem; }
.news-article-body p { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; margin-bottom: .9rem; }

/* News pager — small, discreet row below the article list. JS reveals it
   only when there is more than one page. */
.news-pager {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin: 2.6rem 0 .4rem;
}
.news-pager[hidden] { display: none; }
.news-pager-btn, .news-pager-num {
  background: none; border: 1px solid var(--border); color: var(--ink-soft);
  min-width: 30px; height: 30px; padding: 0 .35rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600; line-height: 1; transition: border-color .18s ease, color .18s ease;
}
.news-pager-btn:hover, .news-pager-num:hover { border-color: var(--green); color: var(--green); }
.news-pager-btn[hidden], .news-pager-num[hidden] { display: none; }
.news-pager-status {
  font-size: .72rem; letter-spacing: .08em; color: var(--ink-faint);
  min-width: 3rem; text-align: center; font-variant-numeric: tabular-nums;
}

/* ── Cookie consent banner ──────────────────────────────── */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--green-deep); color: rgba(255,255,255,.9);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 24px; flex-wrap: wrap;
}
.cookie-consent-text { font-size: .82rem; line-height: 1.55; flex: 1 1 28rem; margin: 0; }
.cookie-consent-text a { color: var(--green-soft); font-weight: 600; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-consent-actions .btn { padding: .55rem 1.3rem; }
.cookie-consent-actions .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cookie-consent-actions .btn-outline:hover { background: rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; text-align: center; }
}

/* ── Legal pages ────────────────────────────────────────── */
.legal-content { max-width: 50rem; }
.legal-content .legal-intro { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.2rem; color: var(--green-deep); margin: 2rem 0 .7rem; }
.legal-content p { font-size: .92rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }

/* ── Contact CTA (pre-footer) ───────────────────────────── */
.contact-cta { background: var(--cream); border-top: 1px solid var(--border); padding: 3.6rem 0; }
.contact-cta-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.contact-cta-text h2 { margin-bottom: .7rem; }
.contact-cta-text p { font-size: .94rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.1rem; max-width: 28rem; }
.contact-cta-email {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 700;
  color: var(--green-deep); background: #fff; border: 1px solid var(--mint-border);
  border-radius: 8px; padding: .6rem 1rem;
}
.contact-cta-email:hover { text-decoration: none; border-color: var(--green); color: var(--green); }
.contact-cta-email svg { color: var(--green); }
.contact-cta-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.78); }
/* Full-bleed footer: span the whole window. Logo + text sit at the left
   border, the link columns spread toward the right edge, and the copyright
   lines up on the same left border — all sharing the hero's left inset. */
.site-footer .container { max-width: none; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 2.4rem;
  padding-top: 3.2rem; padding-bottom: 2.4rem;
  padding-left: var(--hero-inset); padding-right: var(--hero-inset);
}
.footer-bottom .container {
  padding-left: var(--hero-inset); padding-right: var(--hero-inset);
}
.footer-logo { height: 42px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: .84rem; line-height: 1.6; color: rgba(255,255,255,.65); margin-bottom: 1rem; max-width: 22rem; }
.footer-distrib { font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-distrib a { color: var(--green-soft); font-weight: 600; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); transition: all .2s ease;
}
.footer-social a:hover { color: var(--green-deep); background: var(--green-soft); border-color: var(--green-soft); }
.footer-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; margin-bottom: 1rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-list li { font-size: .84rem; color: rgba(255,255,255,.78); line-height: 1.4; }
.footer-list a { color: rgba(255,255,255,.78); }
.footer-list a:hover { color: var(--amber); text-decoration: none; }
.footer-label { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.45); margin-bottom: .1rem; }
.footer-langs { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: 1.2rem; }
.footer-langs a {
  font-size: .66rem; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: .18rem .5rem;
}
.footer-langs a:hover { text-decoration: none; border-color: var(--green-soft); color: #fff; }
.footer-langs a.active { background: var(--green-soft); color: var(--green-deep); border-color: var(--green-soft); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; font-size: .74rem; color: rgba(255,255,255,.5); }
.footer-entity { display: block; margin-top: .3rem; color: rgba(255,255,255,.4); }

/* ── Responsive ─────────────────────────────────────────── */
/* Nav switches to the burger earlier than the content layout collapses,
   because the wide logo + full menu need ~1185px to sit on one line. */
@media (max-width: 1200px) {
  /* Slide-in panel from the right, opened by the burger button */
  .nav-links {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(82vw, 330px); flex-direction: column; align-items: flex-start;
    background: #fff; padding: 5rem 1.8rem 2rem; gap: 1.2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; z-index: 70;
    box-shadow: -10px 0 40px rgba(0,0,0,.18);
  }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  /* The open mobile panel is always white — force dark links regardless of header state. */
  .nav-links a, .site-header:not(.scrolled) .nav-links a { color: var(--ink); }
  .nav-links a.active, .site-header:not(.scrolled) .nav-links a.active { color: var(--green); }
  .nav-links .nav-cta, .site-header:not(.scrolled) .nav-links .nav-cta {
    border-color: var(--green); color: #fff; background: var(--green); text-align: center;
  }

  /* Backdrop + close button */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(13,38,26,.45); z-index: 65;
    opacity: 0; visibility: hidden; transition: opacity .3s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-close {
    display: none; position: fixed; top: 1.1rem; right: 1.3rem; z-index: 80;
    background: none; border: none; font-size: 2.1rem; line-height: 1; color: var(--green-deep); cursor: pointer;
  }
  body.nav-open .nav-close { display: block; }
  body.nav-open { overflow: hidden; }
  .site-header .lang-globe, .site-header:not(.scrolled) .lang-globe { color: var(--ink); }
  .site-header .lang-menu { position: static; padding-top: .4rem; box-shadow: none; }
  .site-header .lang-switch:hover .lang-menu, .site-header .lang-switch:focus-within .lang-menu { box-shadow: none; }
  .site-header .lang-menu li { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header .lang-menu a { color: var(--ink) !important; }
  /* In the mobile panel the products submenu is always expanded, indented under Products. */
  .nav-submenu { display: block; position: static; transform: none; padding: .3rem 0 0 1rem; min-width: 0; }
  .nav-submenu li { box-shadow: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-col { border-right: none; border-bottom: 1px solid #e5dfd2; }
  .heritage-col:last-child { border-bottom: none; }
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
  .future-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-cta-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 1.8rem; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 1.4rem; }
  .process::before { display: none; }
  .process-step { display: flex; text-align: left; gap: 1rem; align-items: flex-start; }
  .process-num { margin: 0; flex-shrink: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-place { display: none; }
}

@media (max-width: 540px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-cta-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
