/* ==========================================================================
   FCDP Hispanic Caucus — Design System
   Civic / Democratic party look. Public Sans (US gov typeface) + Fraunces.
   ========================================================================== */

:root {
  /* Palette */
  --navy-900: #0a1f3c;
  --navy-800: #0e2a52;
  --navy-700: #143a6b;
  --blue-600: #1d4e9a;
  --blue-500: #2563c4;
  --blue-400: #4f8be8;
  --sky-100: #e8f0fb;
  --sky-50:  #f4f8fd;

  /* Warm Latino-heritage accents */
  --gold-500: #e8a317;
  --gold-400: #f4bd3e;
  --red-600:  #c8102e;
  --red-500:  #e0233f;

  --ink:      #11203a;
  --slate-700:#324563;
  --slate-500:#5b6f8e;
  --slate-300:#aebccf;
  --line:     #dde6f1;
  --white:    #ffffff;
  --cream:    #fbfaf6;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10,31,60,.08), 0 2px 8px rgba(10,31,60,.06);
  --shadow-md: 0 8px 24px rgba(10,31,60,.12);
  --shadow-lg: 0 20px 50px rgba(10,31,60,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 .8rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
.section-head p { font-size: 1.1rem; color: var(--slate-700); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700, #143a6b); box-shadow: var(--shadow-md); }
.btn-donate { background: var(--red-600); color: #fff; }
.btn-donate:hover { background: var(--red-500); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy-900); font-size: 1.02rem; }
.brand-text span { font-size: .72rem; color: var(--slate-500); font-weight: 600; letter-spacing: .03em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--slate-700); font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px;
}
.nav-links a:hover { color: var(--navy-900); background: var(--sky-50); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-toggle button {
  border: 0; background: transparent; font-family: var(--font-body); font-weight: 700;
  font-size: .82rem; padding: .42rem .8rem; cursor: pointer; color: var(--slate-500);
}
.lang-toggle button.active { background: var(--navy-800); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(244,189,62,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(79,139,232,.25), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-600) 130%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 820px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 22px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: .42rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  letter-spacing: .02em; backdrop-filter: blur(6px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(244,189,62,.25); }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02;
  letter-spacing: -.02em; margin-bottom: .35em;
}
.hero h1 .hl { color: var(--gold-400); }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #dce7f6; max-width: 620px; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 2.3rem; color: #fff; display: block; line-height: 1; }
.hero-stats .stat span { font-size: .9rem; color: #b9cae3; font-weight: 600; }

/* ---------- Action cards band ---------- */
.actions { background: var(--cream); border-bottom: 1px solid var(--line); }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.action-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.action-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.action-card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky-100); color: var(--blue-600);
}
.action-card .ico svg { width: 26px; height: 26px; }
.action-card h3 { font-size: 1.25rem; margin: 0; }
.action-card p { margin: 0; color: var(--slate-700); font-size: .97rem; flex: 1; }
.action-card a.more { font-weight: 700; color: var(--blue-600); font-size: .92rem; }

/* ---------- Mission / About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--slate-700); font-size: 1.08rem; }
.values-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.values-list li { display: flex; gap: 12px; align-items: flex-start; }
.values-list .chk {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-100);
  color: var(--blue-600); display: grid; place-items: center; margin-top: 2px;
}
.about-card {
  background: linear-gradient(155deg, var(--navy-800), var(--blue-600));
  border-radius: 20px; padding: 40px; color: #fff; box-shadow: var(--shadow-lg);
}
.about-card .quote { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; }
.about-card .by { margin-top: 22px; font-size: .95rem; color: #cdddf2; }
.about-card .by strong { color: #fff; display: block; }

/* ---------- Priorities ---------- */
.priorities { background: var(--sky-50); }
.pri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pri-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  position: relative; transition: transform .2s var(--ease), box-shadow .2s; overflow: hidden;
}
.pri-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold-500); }
.pri-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pri-card .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 16px; }
.pri-card .ico svg { width: 24px; height: 24px; }
.pri-card h3 { font-size: 1.2rem; }
.pri-card p { margin: 0; color: var(--slate-700); font-size: .96rem; }

/* ---------- Map ---------- */
.map-section { background: var(--navy-900); color: #fff; }
.map-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.map-section h2 { color: #fff; }
.map-section .section-head p { color: #c4d3e8; }
.map-copy .eyebrow { color: var(--gold-400); }
.map-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.map-points li { display: flex; gap: 12px; align-items: flex-start; color: #d7e2f1; }
.map-points .pin { flex: none; color: var(--gold-400); margin-top: 3px; }
.map-wrap {
  background: linear-gradient(160deg, #0e2a52, #143a6b); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg);
}
.map-wrap svg { width: 100%; height: auto; }
.map-cap { text-align: center; margin-top: 14px; color: #aebfd8; font-size: .88rem; }

/* ---------- Press ---------- */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.press-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff;
  display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s var(--ease);
}
.press-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.press-card .date { font-size: .82rem; font-weight: 700; color: var(--blue-600); letter-spacing: .04em; text-transform: uppercase; }
.press-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--sky-100); color: var(--blue-600); }
.press-card h3 { font-size: 1.15rem; margin: 4px 0; }
.press-card p { margin: 0; color: var(--slate-700); font-size: .95rem; flex: 1; }
.press-card .more { font-weight: 700; font-size: .9rem; }

/* ---------- Get involved / Form ---------- */
.involve { background: var(--cream); }
.involve-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: block; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--slate-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,196,.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.checks { display: grid; gap: 10px; margin-bottom: 20px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; color: var(--slate-700); }
.checks input { margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 14px; }
.form-success { display: none; padding: 16px; border-radius: var(--radius-sm); background: #e8f7ee; border: 1px solid #b6e3c6; color: #1c6b3a; font-weight: 600; margin-bottom: 16px; }

.involve-copy ul.commit { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.involve-copy ul.commit li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-700); }
.involve-copy .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; }
.news-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #d4e1f3; }
.news-form { display: flex; gap: 12px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 220px; padding: .9rem 1rem; border: 0; border-radius: 999px; font-size: 1rem; font-family: var(--font-body); }
.news-mini { font-size: .8rem; color: #b9cae3; margin-top: 12px; }

/* ---------- Leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(140deg, var(--sky-100), var(--blue-400));
  display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; color: var(--navy-800); font-weight: 600;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: 1.1rem; margin: 0; }
.team-card .role { color: var(--blue-600); font-weight: 700; font-size: .88rem; }

/* ---------- Contact / CTA strip ---------- */
.cta-strip { background: var(--gold-500); }
.cta-strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--navy-900); margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-strip p { color: var(--navy-800); margin: 6px 0 0; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4d3e8; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c4d3e8; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--blue-600); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8da4c4; }
.disclaimer { background: var(--navy-800); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .82rem; color: #aebfd8; margin-top: 30px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 90px; }
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .updated { color: var(--slate-500); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h3 { font-size: 1.15rem; margin-top: 26px; }
.legal p, .legal li { color: var(--slate-700); }
.legal ul { padding-left: 22px; }
.legal a { font-weight: 600; }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 28px; }

/* ---------- i18n helpers ---------- */
[data-lang-block] { display: none; }
[data-lang-block].lang-active { display: block; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .map-grid, .involve-grid, .news-inner { grid-template-columns: 1fr; gap: 36px; }
  .actions-grid, .pri-grid, .press-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { height: 64px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: .9rem; line-height: 1.1; }
  .brand-text span { display: none; }
  .nav-actions { gap: 8px; }
  .lang-toggle button { padding: .38rem .6rem; font-size: .78rem; }
  .nav-actions .btn-donate { padding: .55rem 1rem; font-size: .9rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: .8rem; }
  .nav-toggle { display: block; }
  section { padding: 60px 0; }
  .actions-grid, .pri-grid, .press-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-stats { gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
