/* ============================================================
   KIDstruction Week 2026 — IBEW Local 1 landing page
   Brand palette (KIDstruction lead, NO red anywhere):
     --navy:   #102a5b   /* deep SLCH navy from KIDstruction wordmark
     --yellow: #ffc72c   /* KIDstruction safety yellow
   ============================================================ */

:root {
  --navy: #102a5b;
  --navy-deep: #0a1d44;
  --navy-soft: #e8edf6;
  --yellow: #ffc72c;
  --yellow-deep: #e7a800;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16,42,91,0.06), 0 1px 3px rgba(16,42,91,0.08);
  --shadow-md: 0 4px 12px rgba(16,42,91,0.08), 0 2px 4px rgba(16,42,91,0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* a11y skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px;
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { left: 8px; z-index: 1000; }

/* ============== HEADER ============== */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-line-1 { font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.brand-line-2 { font-size: 11px; letter-spacing: 0.12em; color: var(--yellow); font-weight: 600; }

.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
}
.header-nav a:hover { color: var(--yellow); }
.cta.cta-sm { padding: 8px 14px; font-size: 14px; }

@media (max-width: 640px) {
  .header-nav a:not(.cta) { display: none; }
  .brand-line-2 { display: none; }
}

/* ============== CTA BUTTONS ============== */
.cta {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.12s ease, background 0.12s ease;
  line-height: 1;
  white-space: nowrap;
}
.cta:active { transform: translateY(1px); }

.cta-primary {
  background: var(--yellow);
  color: var(--navy-deep);
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); color: var(--navy-deep); }

.cta-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.cta-secondary:hover { background: var(--navy); color: #fff; }

/* On dark hero/header, secondary needs inversion */
.hero .cta-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .cta-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }

.cta-lg { padding: 16px 28px; font-size: 16px; }

/* ============== HERO ============== */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.lede {
  font-size: 17px;
  max-width: 56ch;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

.hero-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.david-photo {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(at 30% 30%, rgba(255,199,44,0.4), transparent 60%),
    linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 13px;
}
/* When you drop a real photo at /assets/david.jpg, this rule will apply it
   automatically. Just save the file and uncomment the line below.
.david-photo { background: url('/assets/david.jpg') center/cover no-repeat; }
*/
.david-photo-placeholder { background: rgba(255,255,255,0.85); padding: 6px 12px; border-radius: 999px; }

.david-caption { padding: 20px 22px 22px; }
.david-caption .tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--yellow); color: var(--navy-deep);
  padding: 4px 10px; border-radius: 999px; font-weight: 700; margin-bottom: 10px;
}
.david-caption h2 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.david-caption p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
}

/* ============== STATS ============== */
.stats {
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 28px 0 12px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1; }
.stat-label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.stats-footnote { margin: 12px auto 0; font-size: 12px; color: var(--navy-deep); opacity: 0.7; text-align: center; }

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ============== SECTIONS ============== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section .muted { color: var(--muted); }
.small { font-size: 14px; }

/* ============== WHY GRID ============== */
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.why-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.why-grid h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.why-grid p { margin: 0; color: var(--ink); font-size: 15px; }

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============== PLEDGE FORM ============== */
.pledge-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.pledge-intro p { font-size: 16px; }
.pledge-form {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pledge-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.pledge-form fieldset:last-of-type { margin-bottom: 16px; }
.pledge-form legend {
  font-weight: 700; font-size: 15px; color: var(--navy);
  padding: 0; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--yellow-deep); margin-left: 2px; }
.field .help { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .muted.small { font-weight: 400; color: var(--muted); margin-left: 4px; }

.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,42,91,0.18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #b91c1c; }

.row { display: grid; gap: 16px; }
.row.two-col { grid-template-columns: 1fr 1fr; }
.row.three-col { grid-template-columns: 2fr 1fr 1fr; }

@media (max-width: 600px) {
  .row.two-col, .row.three-col { grid-template-columns: 1fr; }
}

/* radio amount chips */
.radio-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}
.radio-grid label {
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.1s ease, background 0.1s ease;
  font-size: 14px;
  text-align: center;
}
.radio-grid label:hover { border-color: var(--navy); }
.radio-grid input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-grid label:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy-soft);
  color: var(--navy-deep);
}
.radio-grid label.custom span { display: flex; align-items: center; gap: 4px; }
.custom-amount {
  width: 56px;
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

@media (max-width: 600px) {
  .radio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* honeypot — hidden from real users */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 8px; margin-bottom: 12px;
}
button.cta { border: 2px solid transparent; font-family: inherit; }
#form-status { font-size: 14px; color: var(--muted); }
#form-status.ok { color: #047857; font-weight: 600; }
#form-status.err { color: #b91c1c; font-weight: 600; }

@media (max-width: 880px) {
  .pledge-grid { grid-template-columns: 1fr; }
}

/* ============== LADDER ============== */
.ladder {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.ladder li {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  gap: 16px;
}
.ladder .amt {
  font-weight: 800;
  color: var(--navy);
  background: var(--yellow);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}
.ladder .reward { color: var(--ink); }

@media (max-width: 540px) {
  .ladder li { grid-template-columns: 1fr; gap: 6px; }
  .ladder .amt { justify-self: start; }
}

/* ============== FAQ ============== */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq details[open] { border-color: var(--navy); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--navy); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink); }

/* ============== DAVID FULL ============== */
.david-full { max-width: 760px; }
.david-full p { font-size: 16px; }
.cta-inline { margin-top: 24px; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy-deep);
  color: #d4dcec;
  padding: 48px 0 24px;
}
.site-footer a { color: var(--yellow); }
.site-footer p { margin: 0 0 8px; }
.site-footer strong { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.presented { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; }
.footer-bottom .muted { color: rgba(255,255,255,0.55); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
