/* =========================================================================
   Vote for Millburn — Stylesheet
   Brand palette sampled from the lawn sign / logo:
     navy  #21409A   red #D63A48   off-white #EAEBEF
   ========================================================================= */

:root {
  --navy:        #21409a;
  --navy-deep:   #18306e;
  --royal:       #2c46a8;
  --red:         #d63a48;
  --red-dark:    #b82c39;
  --cream:       #f7f8fa;
  --offwhite:    #eaebef;
  --ink:         #1a1f30;
  --muted:       #5b6175;
  --line:        #d9dce6;
  --white:       #ffffff;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(24, 48, 110, 0.14);
  --shadow-lg: 0 14px 48px rgba(24, 48, 110, 0.22);
  --nav-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .4em; color: var(--navy); }

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

.section { padding: 88px 0; }
.section--tint { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--offwhite); }
.section--navy h2 { color: var(--white); }
/* "Get Involved" sits right above the footer — use the deeper navy so the two
   navy blocks read as distinct bands instead of one solid color. */
#involved { background: var(--navy-deep); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__head p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section--navy .section__head p { color: rgba(234,235,239,.8); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  color: var(--red); margin-bottom: 14px;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red   { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.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,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 17px 38px; font-size: 1.08rem; }

/* ---- Header / Nav ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 3px solid var(--red);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Transparent sign logo (white text + red bars) sits directly on the navy header */
.nav__brand img { height: 64px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav__links a:hover { color: #fff; border-color: var(--red); }
/* CTA button in nav must keep its button colors, not inherit the link rule above */
.nav__links .nav__cta a.btn--red { color: #fff; border: 2px solid transparent; padding: 10px 32px; }
.nav__links .nav__cta a.btn--red:hover { color: #fff; background: var(--red-dark); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,48,110,.80) 0%, rgba(33,64,154,.78) 55%, rgba(16,30,72,.92) 100%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; text-align: center; padding: 64px 0; width: 100%; }
.hero__stars { color: var(--red); letter-spacing: .35em; font-size: 1.1rem; margin-bottom: 12px; }
.hero__tagline {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--offwhite); margin: 0 0 10px; letter-spacing: .3px;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 5.4vw, 3.9rem); margin: 0 0 .18em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35); letter-spacing: -.3px; line-height: 1.08;
}
.hero__sub { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.7rem); margin: 0 0 6px; color: #fff; }
.hero__names { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.4rem); color: #fff; margin: 18px 0 4px; }
.hero__office { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .95rem; color: var(--offwhite); }
.hero__rule { width: 90px; height: 4px; background: var(--red); border: 0; margin: 26px auto; border-radius: 2px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero__date {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 10px 20px; border-radius: 999px; font-size: .95rem; font-weight: 600;
}
.hero__date strong { color: #fff; }

/* ---- Candidate cards -------------------------------------------------- */
.candidates { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cand {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cand__photo { aspect-ratio: 1/1; width: 100%; object-fit: cover; }
.cand__body { padding: 26px 28px 30px; }
.cand__name { font-size: 1.7rem; margin: 0 0 2px; }
.cand__role { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; }
.cand__body p { margin: 0 0 12px; color: #333a4d; }
.cand__body p:last-child { margin-bottom: 0; }

/* ---- Platform grid ---------------------------------------------------- */
.platform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.issue {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.issue__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 14px; }
.issue h3 { font-size: 1.25rem; margin-bottom: 8px; }
.issue p { margin: 0; color: var(--muted); font-size: .98rem; }
.todo { color: #9aa0b4; font-style: italic; }

/* ---- Record / accomplishments ---------------------------------------- */
.stats {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin: 0 0 52px;
}
.stat {
  flex: 1 1 180px; max-width: 260px; text-align: center;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 26px 20px; box-shadow: var(--shadow);
}
.stat__num { font-family: var(--serif); font-weight: 700; font-size: 2.7rem; line-height: 1; color: #fff; }
.stat__num span { color: var(--red); }
.stat__label { display: block; margin-top: 8px; font-size: .9rem; color: rgba(234,235,239,.85); }

.record { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.win {
  display: flex; gap: 18px; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.win__icon { flex: 0 0 auto; font-size: 1.9rem; line-height: 1.1; }
.win h3 { font-size: 1.22rem; margin: 0 0 6px; }
.win p { margin: 0; color: #333a4d; font-size: .98rem; }

/* ---- Get involved ----------------------------------------------------- */
.involve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.involve__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 32px 28px; text-align: center;
}
.involve__card h3 { color: #fff; font-size: 1.4rem; }
.involve__card p { color: rgba(234,235,239,.82); margin: 0 0 22px; }
.involve__icon { font-size: 2.2rem; margin-bottom: 12px; }

/* ---- Footer ----------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(234,235,239,.78); padding: 56px 0 28px; font-size: .92rem; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.footer__brand img { height: 84px; margin-bottom: 16px; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.footer__col a { display: block; color: rgba(234,235,239,.78); text-decoration: none; margin-bottom: 8px; }
.footer__col a:hover { color: #fff; }
.footer__disclaimer { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; color: rgba(234,235,239,.6); font-size: .82rem; line-height: 1.7; }

/* ---- Donate page ------------------------------------------------------ */
.donate-hero { background: var(--navy); color: #fff; text-align: center; padding: 40px 0 32px; }
.donate-hero h1 { color: #fff; font-size: clamp(2.2rem,5vw,3.4rem); }
.donate-hero p { color: rgba(234,235,239,.85); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }
.donate-embed {
  max-width: 720px; margin: 40px auto 0; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; position: relative; z-index: 2;
}
/* Fixed height keeps the Anedot form tight (no inner scroll), matching
   yesmillburn.com's approach. Our form is taller than theirs — adjust these
   values so the whole form shows with no inner scrollbar. */
#anedot-frame {
  width: 100%; display: block; border: 0; border-radius: 8px;
  overflow: hidden; height: 2250px;
}
@media (min-width: 640px) { #anedot-frame { height: 2300px; } }
.embed-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 64px 28px;
  text-align: center; color: var(--muted);
}
.embed-placeholder strong { color: var(--navy); display: block; font-size: 1.2rem; margin-bottom: 8px; font-family: var(--serif); }
.donate-options { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.donate-options .btn { min-width: 96px; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 880px) {
  .nav__links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 3px solid var(--red);
    padding: 10px 24px 20px; transform: translateY(-160%); transition: transform .32s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__links a { display: block; padding: 14px 0; }
  .nav__links .nav__cta { margin-top: 12px; }
  .nav__links .nav__cta a { text-align: center; }
  .nav__toggle { display: block; }
  .candidates { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 1fr 1fr; }
  .record { grid-template-columns: 1fr; }
  .involve { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .platform { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
}
