/* =============================================================================
   CSDH public site — shared styles for the CSDH landing, ACRI and the
   Improved Resource Recovery Kits pages.

   Rebuilt from the Figma design rather than using the Figma HTML export: that
   export positions every element absolutely at fixed pixel offsets and ships
   none of the images its CSS references, so it renders as a clipped, mostly
   blank page. Palette, typography and copy here are taken from that design.
   ========================================================================== */

:root {
  --ink:        #114151;   /* deep teal — headings, nav, buttons          */
  --ink-2:      #1C5262;
  --paper:      #FAFBFD;
  --white:      #FFFFFF;
  --muted:      #5A6B73;
  --line:       #DCE3E7;
  --tint:       #EEF3F5;
  --accent:     #4398B4;
  --radius:     10px;
  --maxw:       1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow, .nav-brand { font-family: Poppins, Montserrat, sans-serif; }

img { max-width: 100%; display: block; }

a { color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .02em; text-decoration: none;
  color: var(--ink); font-size: 17px; flex-shrink: 0;
}
.nav-brand img { width: 30px; height: 30px; }
.nav-brand small {
  display: block; font-size: 9px; letter-spacing: .08em;
  font-weight: 600; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-links a:hover { border-bottom-color: var(--accent); }
.nav-links a.active { border-bottom-color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 9px 18px !important; border-radius: 6px; font-weight: 600 !important;
  border-bottom: 0 !important;
}
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  font-size: 24px; color: var(--ink); cursor: pointer; padding: 4px 8px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--white);
  background: var(--ink) center/cover no-repeat;
  min-height: 520px; display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,32,41,.88) 0%, rgba(9,32,41,.62) 55%, rgba(9,32,41,.45) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; margin: 0 0 16px;
  font-weight: 700; letter-spacing: -.01em;
}
.hero p { font-size: clamp(15px, 1.6vw, 19px); max-width: 620px; margin: 0 0 28px; opacity: .94; }
.hero-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.hero-brand img { width: 74px; height: 74px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; font-size: 14px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section.alt { background: var(--paper); }
.section.ink { background: var(--ink); color: var(--white); }
.section.ink h2, .section.ink h3 { color: var(--white); }
.section.ink p { color: rgba(255,255,255,.86); }

.eyebrow {
  display: inline-block; background: var(--ink); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 4px; margin-bottom: 16px;
}
.section.ink .eyebrow { background: var(--white); color: var(--ink); }

h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; margin: 0 0 18px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.lede { font-size: 17px; color: var(--muted); max-width: 760px; }
.section.ink .lede { color: rgba(255,255,255,.86); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.narrow-left { grid-template-columns: .95fr 1.05fr; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.section.alt .card { background: var(--white); }
.section.ink .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.section.ink .card p { color: rgba(255,255,255,.8); }
.card .dot {
  width: 38px; height: 38px; border-radius: 8px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 18px;
}
.section.ink .card .dot { background: rgba(255,255,255,.14); }

.step .num {
  font-family: Poppins, sans-serif; font-size: 26px; font-weight: 700;
  color: var(--accent); display: block; margin-bottom: 6px;
}

/* Initiative rows */
.initiative {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.initiative h3 { margin-bottom: 6px; }
.initiative p { color: var(--muted); font-size: 14.5px; margin: 0; }
.initiative .btn { flex-shrink: 0; }

/* Stat tiles */
.stat { text-align: left; }
.stat .figure {
  font-family: Poppins, sans-serif; font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700; line-height: 1.1; color: var(--ink);
}
.section.ink .stat .figure { color: var(--white); }
.stat .src { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ── Contact + footer ───────────────────────────────────────────────────── */
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.footer {
  background: var(--ink); color: rgba(255,255,255,.8);
  padding: 30px 0; font-size: 13px;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 54px 0; }
  .hero { min-height: 440px; }
  .initiative { flex-direction: column; align-items: stretch; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 10px; }
}
@media (max-width: 560px) {
  .hero-brand img { width: 52px; height: 52px; }
  .wrap { padding: 0 18px; }
}
