/* ============================================================
   ECOBRIX - Global Stylesheet
   Palette: Near-black, off-white, Ecobrix green
   Fonts: Neue Haas Grotesk via Albert Sans + DM Serif Display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── TOKENS ─── */
:root {
  --g900: #0A1A08;   /* near-black green */
  --g800: #122010;
  --g600: #1F3D1A;
  --g400: #2E5E25;
  --g300: #3D7830;
  --g200: #5A9E48;
  --g100: #8CC87A;
  --g050: #D4EBD0;

  --n900: #111110;
  --n700: #3A3A38;
  --n400: #7A7A76;
  --n200: #C4C2BC;
  --n100: #E8E6E0;
  --n050: #F5F3EE;
  --white: #FAFAF8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Albert Sans', system-ui, sans-serif;

  --nav-h: 64px;
  --max: 1320px;
  --pad: clamp(24px, 5vw, 80px);
}

/* ─── BASE ─── */
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--n900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── UTILITY ─── */
.wrap     { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only  { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: var(--g900);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 24px; }
.nav-logo-mark {
  width: 30px; height: 30px; background: var(--g200);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 5px;
}
.nav-logo-mark span { background: var(--g900); display: block; }
.nav-logo-mark span:nth-child(1),
.nav-logo-mark span:nth-child(4) { background: var(--white); }
.nav-logo-text {
  font-family: var(--font-body); font-weight: 900; font-size: 16px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
}

/* Centred nav list */
.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 100%;
  /* Push to centre between logo and CTA */
  flex: 1;
  justify-content: center;
  gap: 0;
}
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

/* Top-level link / trigger */
.nav-link {
  display: flex; align-items: center; gap: 5px;
  height: 100%; padding: 0 13px;
  font-size: 13px; font-weight: 500;
  color: rgba(250,250,248,0.65);
  white-space: nowrap; cursor: pointer;
  user-select: none; transition: color 0.18s;
}
.nav-link:hover,
.nav-item.open > .nav-link { color: var(--white); }
.nav-link.active { color: var(--white); }

/* Chevron */
.chev { width: 10px; height: 10px; flex-shrink: 0; margin-top: 1px; transition: transform 0.2s; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--g900);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--g200);
  padding: 8px 0;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 700;
}
/* Open state - toggled by JS on hover */
.nav-item.open > .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
/* Wide two-column dropdown */
.nav-dropdown.wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 0;
}
.nav-dropdown.wide .dd-group { padding: 4px 0; }
.dd-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(250,250,248,0.3);
  padding: 6px 20px 8px; display: block;
}
/* Dropdown links */
.nav-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 400;
  color: rgba(250,250,248,0.65);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.dd-arrow {
  width: 14px; height: 14px; margin-left: auto; flex-shrink: 0;
  opacity: 0; transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown a:hover .dd-arrow { opacity: 1; transform: translateX(2px); }
.dd-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 0; }

/* CTA button - right side */
.nav-cta { flex-shrink: 0; }
.nav-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g200); color: var(--white);
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 4px;
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta a:hover { background: var(--g300); }
.nav-cta a svg { flex-shrink: 0; transition: transform 0.2s; }
.nav-cta a:hover svg { transform: translateX(2px); }

/* Mobile burger */
.nav-burger {
  display: none; margin-left: auto;
  flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer; background: none; border: none;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0;
  background: var(--g900); z-index: 499;
  flex-direction: column; padding: 80px 32px 40px; overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 28px; color: var(--white); background: none; border: none; cursor: pointer; line-height: 1;
}
.mob-group { margin-bottom: 24px; }
.mob-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,250,248,0.35); margin-bottom: 10px; display: block;
}
.mob-group a {
  display: block; font-size: 16px; font-weight: 500;
  color: rgba(250,250,248,0.75); padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); transition: color 0.2s;
}
.mob-group a:hover { color: var(--g100); }
.mob-group a.mob-top {
  font-size: 20px; font-weight: 700; color: var(--white); border: none; padding: 4px 0 12px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--g900);
  color: var(--white);
  padding: 72px var(--pad) 32px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(250,250,248,0.45);
  font-weight: 300;
  margin-top: 16px;
  max-width: 300px;
}
.footer-addr {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(250,250,248,0.35);
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.35);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250,250,248,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--g100); }
.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 12px;
  color: rgba(250,250,248,0.25);
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.35);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--g100); }

/* ─── SHARED SECTION HELPERS ─── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g200);
  margin-bottom: 16px;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-green  { background: var(--g200); color: var(--white); }
.btn-green:hover  { background: var(--g300); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-dark   { background: var(--n900); color: var(--white); }
.btn-dark:hover   { background: var(--g600); }
.btn-ghost  { background: transparent; color: var(--n900); border: 1.5px solid var(--n200); }
.btn-ghost:hover  { border-color: var(--n900); }
.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ─── REVEAL ANIMATIONS ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ─── STAT PILL ─── */
.stat-block {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: rgba(250,250,248,0.5);
  margin-top: 6px;
  line-height: 1.4;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--n100);
  margin: 0;
}
.divider-dark { background: rgba(255,255,255,0.08); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .nav-list { display: none; }
  .nav-cta  { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
