/* ============================================================
   Yes for WCC — campaign site styles
   Brand palette matched to the official "VOTE YES! WCC" logo:
   green #006E37, yellow #FFDA00, white.
   (Note: legacy variable names --navy / --blue now hold green tones.)
   ============================================================ */

:root {
  --navy: #006e37;        /* primary green */
  --navy-deep: #00481f;   /* deep green */
  --navy-soft: #0b8043;   /* medium green */
  --blue: #0a7a3a;        /* link / accent green */
  --blue-bright: #25a85a; /* decorative light green */
  --gold: #ffda00;        /* logo yellow */
  --gold-deep: #cf9e00;   /* darker gold */
  --gold-soft: #fff2c0;   /* pale yellow */
  --cream: #f3f8f3;
  --cream-2: #e7f1e7;
  --paper: #ffffff;
  --ink: #15271c;
  --muted: #51675a;
  --muted-light: #bcd0c2;
  --line: #e3ece5;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(0, 60, 30, .06), 0 4px 14px rgba(0, 60, 30, .07);
  --shadow-md: 0 10px 30px rgba(0, 60, 30, .13);
  --shadow-lg: 0 24px 60px rgba(0, 50, 25, .24);

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Plus Jakarta Sans", var(--ff-sans);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(207, 158, 0, .38); }
.btn-gold:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ghost--dark { color: var(--navy); border-color: rgba(0, 72, 31, .3); }
.btn-ghost--dark:hover { background: rgba(0, 72, 31, .06); border-color: var(--navy); }

.yes {
  color: var(--gold); font-style: normal;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) {
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  padding: 6px 2px; position: relative;
}
.site-nav > a:not(.btn):hover { color: var(--navy); text-decoration: none; }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold);
  transition: width .2s ease;
}
.site-nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 13px 4px; font-family: var(--ff-head); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 218, 0, .16), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 9vw, 108px);
}
.hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.hero-shape--1 { width: 360px; height: 360px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(255,218,0,.22), transparent 70%); }
.hero-shape--2 { width: 280px; height: 280px; left: -110px; bottom: -120px; background: radial-gradient(circle, rgba(37,168,90,.45), transparent 70%); }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
  background: rgba(255, 218, 0, .12); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 218, 0, .32);
}
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 800; margin: 22px 0 0;
}
.lede { font-size: clamp(1.06rem, 1.8vw, 1.22rem); color: var(--muted-light); margin-top: 22px; max-width: 36em; }
.lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted-light); font-weight: 500; }

.countdown-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 26px; text-align: center;
  backdrop-filter: blur(6px);
}
.countdown-label { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 14px; }
.cd-unit { background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 4px; }
.cd-num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: 1.9rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-light); margin-top: 6px; }
.countdown-date { font-size: .85rem; color: var(--muted-light); margin-bottom: 18px; }

/* ---------- serves band ---------- */
.serves { background: var(--gold); color: var(--navy-deep); padding: 40px 0; }
.serves-text {
  font-family: var(--ff-head); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.45; text-align: center; max-width: 30em; margin: 0 auto; letter-spacing: -.01em;
}
.serves-text strong { font-weight: 800; }
.serves-text .hl { white-space: nowrap; border-bottom: 3px solid rgba(0,72,31,.32); }

/* ---------- sections ---------- */
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section--navy { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.section--cream { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 56px); text-align: center; }
.kicker { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--navy); margin-bottom: 14px; }
.kicker--light { color: var(--gold); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 800; }
.h2-light { color: #fff; }
.section-sub { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }
.section-sub--light { color: var(--muted-light); }

/* ---------- ballot ---------- */
.ballot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ballot-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: left;
  border-top: 4px solid var(--gold);
}
.ballot-num { font-family: var(--ff-head); font-weight: 800; font-size: 3rem; color: var(--navy); line-height: 1; }
.ballot-unit { display: inline-block; font-family: var(--ff-head); font-weight: 700; color: var(--navy); margin-left: 8px; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.ballot-card p { margin-top: 14px; color: var(--muted); font-size: .98rem; }
.ballot-foot { text-align: center; max-width: 660px; margin: 30px auto 0; color: var(--muted); }

/* cost illustration (static) */
.calc {
  margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.calc-intro { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.calc-intro h3 { color: #fff; font-size: 1.5rem; }
.calc-intro p { margin-top: 14px; color: var(--muted-light); font-size: 1rem; }
.calc-intro em { color: var(--gold); font-style: normal; font-weight: 700; }
.calc-tool { padding: 38px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: center; }
.cost-eyebrow { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--gold); margin-bottom: 12px; }
.calc-result { display: flex; align-items: center; gap: 26px; }
.calc-big { display: block; font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.calc-cap { display: block; font-size: .82rem; color: var(--muted-light); margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; }
.calc-div { width: 1px; align-self: stretch; background: rgba(255,255,255,.2); }
.calc-disclaimer { margin-top: 20px; font-size: .8rem; color: var(--muted-light); }

/* ---------- impact stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 26px;
}
.stat-num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3rem); color: var(--gold); line-height: 1; }
.stat-desc { display: block; margin-top: 12px; color: var(--muted-light); font-size: 1rem; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 14px; background: var(--gold-soft); color: var(--navy); margin-bottom: 18px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.28rem; font-weight: 800; }
.pillar ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.pillar li { position: relative; padding-left: 28px; color: var(--muted); font-size: .98rem; }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006e37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.pillar li strong { color: var(--ink); }

.pillar--cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center;
}
.pillar--cta h3 { color: #fff; font-size: 1.5rem; }
.pillar--cta p { color: var(--muted-light); margin: 14px 0 24px; }

/* ---------- how to vote ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.vote-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); margin-bottom: 18px; }
.vote-icon svg { width: 28px; height: 28px; }
.vote-card h3 { font-size: 1.3rem; font-weight: 800; }
.vote-card p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.vote-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ---------- pledge ---------- */
.section--pledge { background: linear-gradient(165deg, var(--navy-soft) 0%, var(--navy) 60%, var(--navy-deep) 100%); color: #fff; }
.pledge-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pledge-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pledge-list li { position: relative; padding-left: 32px; color: var(--muted-light); }
.pledge-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffda00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.pledge-form { background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--ff-sans); font-size: 1rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,110,55,.16); }
.field input.invalid { border-color: #d8443c; box-shadow: 0 0 0 4px rgba(216,68,60,.12); }
.pledge-form .btn { margin-top: 6px; }
.form-fine { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; }
.form-success { margin-top: 16px; padding: 14px; background: var(--gold-soft); color: var(--navy-deep); border-radius: 11px; font-weight: 600; text-align: center; }

/* ---------- share ---------- */
.section--share { background: var(--cream-2); }
.share-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.section--share h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section--share p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.share-btn {
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 22px;
  cursor: pointer; transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.share-btn:hover { transform: translateY(-2px); border-color: var(--navy); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--muted-light); padding: 56px 0 36px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.footer-logo-chip { display: inline-flex; background: #fff; padding: 9px 14px; border-radius: 12px; }
.footer-logo-chip img { height: 44px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted-light); font-family: var(--ff-head); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-cta { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; text-align: center; padding: 32px 0; letter-spacing: -.01em; }
.footer-legal { text-align: center; font-size: .85rem; line-height: 1.7; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.footer-legal .disclaimer { color: #fff; font-weight: 600; }
.footer-legal .affiliation { margin-top: 8px; color: var(--muted-light); max-width: 620px; margin-left: auto; margin-right: auto; }
.footer-legal .copyright { margin-top: 14px; color: #7a9685; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .countdown-card { max-width: 420px; }
  .calc, .pledge-inner { grid-template-columns: 1fr; }
  .calc-intro { padding-bottom: 8px; }
  .ballot-grid, .stats-grid, .pillars, .vote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand-logo { height: 42px; }
  .ballot-grid, .stats-grid, .pillars, .vote-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .vote-actions .btn { width: 100%; }
  .calc-result { gap: 16px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar, .share-btn { transition: none; }
}
