@import url("https://use.typekit.net/lsg3cvj.css");

/* ── COLORS ── */
:root {
  --coral:  #f3563c;
  --yellow: #ffcc08;
  --purple: #461f83;
  --dark:   #330e25;
  --cream:  #e9e7df;
  --black:  #111111;
  --white:  #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--dark); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: "pf-venue", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.07em;
}

/* Tight fluid type — mobile and desktop stay close in feel */
h1 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3vw,   3.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.7rem); }
h4 { font-size: clamp(0.9rem, 1.2vw, 1.1rem); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.7em 1.4em;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--purple);
  color: var(--yellow);
  border-color: var(--purple);
  box-shadow: -4px 4px 0 0 var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--purple);
  border-color: var(--yellow);
  box-shadow: -4px 4px 0 0 var(--purple);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
  box-shadow: -4px 4px 0 0 var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
  box-shadow: -4px 4px 0 0 var(--yellow);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

.btn-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35em;
  width: 0.9em;
  height: 0.9em;
}

/* ── LAYOUT ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section    { padding: 3.5rem 0; }
.section-lg { padding: 4.5rem 0; }
.section-sm { padding: 2rem 0; }

.split-40-60 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.split-40-60 h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  position: sticky;
  top: calc(68px + 1.5rem);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: "pf-venue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.07em;
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo .coral { color: var(--coral); }
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--dark);
  padding: 0.4em 0.8em;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.12s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--coral); }

.nav-links .nav-cta a {
  background: var(--coral);
  color: var(--white);
  border-radius: 2px;
}
.nav-links .nav-cta a:hover { background: #d4412a; color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
}

/* ── HERO ── */
.hero {
  background: var(--coral);
  padding: 5rem 0 4rem;
  min-height: 55vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-split > div:first-child {
  max-width: 560px;
}

.hero-graphic {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  max-width: 680px;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero {
    min-height: 65vh;
    align-items: flex-start;
  }
  .hero-graphic {
    width: 50%;
    max-width: 50%;
  }
}
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }
  .hero-graphic {
    position: static;
    width: 100%;
    max-width: 100%;
  }
}

.hero-super {
  font-family: "pf-venue", sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(233,231,223,0.8);
  display: block;
  margin-bottom: 0.4em;
}

.hero h1 {
  color: var(--dark);
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.88;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: var(--coral);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 { color: var(--dark); }
.page-hero--black { background: #000; }
.page-hero--black h1 { color: var(--coral); }
.page-hero .page-hero-sub {
  font-size: 1rem;
  color: rgba(233,231,223,0.85);
  margin-top: 1.25rem;
  font-style: italic;
  max-width: 50ch;
  line-height: 1.6;
}

/* ── SECTION BACKGROUNDS ── */
.bg-yellow { background: var(--yellow); }
.bg-coral  { background: var(--coral); }
.bg-cream  { background: var(--cream); }
.bg-white  { background: var(--white); }
.bg-black  { background: var(--black); color: rgba(255,255,255,0.7); }
.bg-purple { background: var(--purple); color: rgba(255,255,255,0.85); }

/* ── ROW C BADGE ── */
.row-c {
  display: inline-block;
  background: var(--purple);
  color: var(--yellow);
  font-family: "pf-venue", sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  padding: 0.05em 0.4em 0;
  border-radius: 2px;
  vertical-align: middle;
}

/* ── ICONS ── */
.action-icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--purple);
}
.guarantee-icon svg { width: 1.4rem; height: 1.4rem; color: var(--purple); }
.social-link svg { display: block; width: 1rem; height: 1rem; }

/* ── CIVICENGINE WIDGET ── */
.civicengine-container {
  background: rgba(0,0,0,0.08);
  margin: 0 0 2rem;
  max-width: 480px;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  border: 1px dashed rgba(0,0,0,0.18);
}
.civicengine-container::before {
  content: "Enter your address to find WFP candidates on your ballot";
  font-size: 0.82rem;
  color: rgba(0,0,0,0.4);
  font-style: italic;
  display: block;
  margin-bottom: 0.4rem;
}
body.page-civicengine-embed-loaded .civicengine-container {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 520px;
}
body.page-civicengine-embed-loaded .civicengine-container::before {
  display: none;
}

/* ── CANDIDATES SPLIT LAYOUT ── */
.candidates-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.candidates-label {
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dark);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}
.candidates-headline {
  font-family: "pf-venue", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 0.9;
  color: var(--dark);
  margin-bottom: 2.5rem;
}
.polling-links {
  border-top: 1px solid rgba(0,0,0,0.2);
  padding-top: 1.5rem;
}
.polling-links .polling-intro {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.polling-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 0.35rem;
}
.polling-links a:hover { color: var(--purple); }

.pledge-box {
  background: #000;
  padding: 2rem 2.25rem;
}
.pledge-box p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  color: var(--yellow);
}
.pledge-box .btn { margin-top: 0.5rem; }

/* ── CANDIDATE CARDS ── */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.candidate-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.35);
}
.candidate-photo {
  background: rgba(0,0,0,0.12);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}
.candidate-name-band {
  background: var(--yellow);
  padding: 0.5rem 0.75rem;
  font-family: "pf-venue", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple);
  line-height: 1.1;
}
.candidate-info {
  background: var(--cream);
  padding: 0.4rem 0.75rem 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* ── ACTION CARDS ── */
.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.action-card {
  background: var(--white);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 4px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.2);
}
.action-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.action-icon { flex-shrink: 0; color: var(--dark); }
.action-card h3 {
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.action-card p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

/* ── GUARANTEE GRID ── */
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.guarantee-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
}
.guarantee-item:nth-child(odd)  { padding-right: 2.5rem; }
.guarantee-item:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid rgba(0,0,0,0.1); }
.guarantee-icon { padding-top: 0.25rem; }
.guarantee-body h3 {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.guarantee-body ul { list-style: none; padding: 0; }
.guarantee-body li {
  font-size: 0.9rem;
  color: #555;
  padding-left: 1em;
  position: relative;
  margin-bottom: 0.15rem;
  line-height: 1.5;
}
.guarantee-body li::before { content: '–'; position: absolute; left: 0; color: #999; }

/* ── PULL QUOTE ── */
.pull-quote {
  border-top: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  padding: 1.25rem 0.5rem;
  margin: 2rem 0;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
}

/* ── FUSION DIAGRAM ── */
.fusion-diagram {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.15);
  padding: 1.5rem;
  margin: 1.75rem 0;
  border-radius: 3px;
}
.fusion-diagram-label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 1.25rem;
}
.fusion-steps { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.fusion-step {
  border: 1.5px solid var(--dark);
  padding: 0.6rem 1rem;
  font-family: "pf-venue", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 110px;
  line-height: 1.2;
}
.fusion-step-sub {
  font-family: "neue-haas-grotesk-text", "Helvetica Neue", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #999;
  display: block;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}
.fusion-step.wfp-step { background: var(--coral); border-color: var(--coral); color: var(--cream); }
.fusion-step.wfp-step .fusion-step-sub { color: rgba(233,231,223,0.6); }
.fusion-step.result-step { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.fusion-op { color: #ccc; flex-shrink: 0; }
.fusion-note { margin-top: 1rem; font-size: 0.85rem; color: #666; max-width: 52ch; }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.75rem;
}
.footer-logo {
  font-family: "pf-venue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-logo .coral { color: var(--coral); }
.footer-logo-img { width: 80px; height: auto; display: block; margin-bottom: 0.75rem; }
.footer-org {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.footer-brand p {
  font-size: 0.85rem;
  max-width: 28ch;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.footer-social { display: flex; gap: 0.5rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
  border-radius: 2px;
}
.social-link:hover { border-color: var(--coral); color: var(--white); }
.footer-col h5 {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.85rem; transition: color 0.1s; }
.footer-col a:hover { color: var(--white); }
.footer-legal {
  display: table;
  margin: 0 auto;
  border: 0.5px solid rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.4em 1.25em;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ── TABLET (≤900px) ── */
@media (max-width: 900px) {
  .split, .split-40-60, .candidates-split { grid-template-columns: 1fr; gap: 2rem; }
  .split-40-60 h2 { position: static; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-item:nth-child(even) { padding-left: 0; border-left: none; }
  .guarantee-item:nth-child(odd)  { padding-right: 0; }
  .action-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
    padding: 0.75rem 2rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-hamburger { display: flex; }
}

/* ── MOBILE (≤600px) ── */
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section    { padding: 2.5rem 0; }
  .section-lg { padding: 3.5rem 0; }

  .hero {
    min-height: auto;
    padding: 3rem 0 0;
    align-items: stretch;
    flex-direction: column;
  }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-actions { margin-top: 1.5rem; gap: 0.75rem; }
  .hero-actions .btn { white-space: normal; }

  .nav-logo { font-size: 1.25rem; }
  .nav-logo-img { height: 40px; }

  .action-card { padding: 1.5rem 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand p { max-width: 100%; }

  .civicengine-container { max-width: 100%; }
  body.page-civicengine-embed-loaded .civicengine-container { max-width: 100%; }

  .fusion-steps { gap: 0.35rem; }
  .fusion-step { min-width: 90px; font-size: 0.85rem; padding: 0.5rem 0.75rem; }

  .page-hero { padding: 2.5rem 0 2rem; }
}
