/* =========================================================
   Melissa Rutland for State Representative — HD 60 (2026)
   Splash page (v1 DRAFT). Framework: Bilirakis CD12 →
   Bostock SB D6 lineage, flat restyle (no shadows).
   Palette sampled from campaign logo:
   navy #042E65 · red #AC3131
   ========================================================= */

:root {
  --navy:      #042E65;
  --navy-dark: #021D44;
  --navy-deep: #011330;
  --red:       #AC3131;
  --red-dark:  #8C2525;
  --offwhite:  #F7F5F0;
  --bone:      #FCFBF7;
  --ink:       #122036;
  --slate:     #4A5468;
  --rule:      #DAD5C8;
  --max:       1100px;
  --gutter:    clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, .display {
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  color: var(--navy);
  letter-spacing: 0;
}

h1, .display {
  font-weight: 500;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.06;
  margin: 0 0 0.4em;
}

h2 {
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; font-weight: 300; }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--slate);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(56px, 8vw, 100px) 0; }

.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2 { color: #fff; }
.section-navy .lede { color: rgba(255,255,255,.88); }
.section-offwhite { background: var(--offwhite); }
.section-red { background: var(--red); color: #fff; }
.section-red h1, .section-red h2 { color: #fff; }
.section-red .lede { color: rgba(255,255,255,.9); }

.section-pattern {
  background-color: #fff;
  background-image: radial-gradient(rgba(4, 46, 101, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.section-white { background: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover { color: var(--red); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: #fff; }

.nav .btn { padding: 10px 22px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 0;
  background:
    linear-gradient(rgba(2,21,48,.42), rgba(4,46,101,.5)),
    url("../img/hero-stpete.jpg") center 35% / cover no-repeat;
  color: #fff;
  text-align: left;
}

.hero-grid {
  position: relative;
}

.hero-copy {
  max-width: 56%;
  padding-bottom: clamp(64px, 9vw, 120px);
}

.hero h1 { font-size: clamp(38px, 4.8vw, 58px); }

.hero-portrait-wrap {
  position: absolute;
  top: 50%;
  right: clamp(8px, 3vw, 44px);
  transform: translateY(-50%);
  width: clamp(260px, 30vw, 400px);
  height: clamp(260px, 30vw, 400px);
}

.hero-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #f4f1e8; /* off-white frame behind the cutout */
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}

.hero h1 { color: #fff; margin-bottom: 0.3em; }

.hero .lede { max-width: 640px; color: #fff; }

.hero-logo {
  display: block;
  margin: 0 0 34px;
  height: clamp(110px, 14vw, 160px);
  width: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: flex-start;
}

/* ---------- Announcement ---------- */

.announce-body {
  max-width: 820px;
  margin: 0 auto;
}

.announce-date {
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--slate);
  margin-bottom: 14px;
  text-align: center;
}

.announce-title { text-align: center; }

.pull-quote {
  margin: 28px 0;
  padding: 4px 0;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

.check-back {
  text-align: center;
  margin: clamp(36px, 5vw, 60px) 0 0;
}

/* ---------- Endorsements ---------- */

.endorse-heading { text-align: center; margin-bottom: clamp(24px, 3.5vw, 38px); }

.endorser-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  text-align: center;
}

.endorser {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.endorser:first-child { border-top: 1px solid rgba(255,255,255,.22); }

.endorser .e-name {
  display: block;
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.endorser .e-office {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-top: 4px;
}

.endorse-cta { text-align: center; margin-top: clamp(28px, 4vw, 42px); }

/* ---------- CTA strip ---------- */

.cta-strip { text-align: center; }

.cta-strip .hero-actions { justify-content: center; }

/* ---------- Form ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 44px);
  max-width: 720px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-card label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
}

.form-card input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.form-card .btn { width: 100%; margin-top: 18px; }

.consent-block {
  margin-top: 18px;
  padding: 16px;
  background: var(--offwhite);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.consent-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.consent-checkbox input { margin-top: 3px; }

.consent-fineprint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
}

.volunteer-block { margin-top: 18px; }

.volunteer-block .vol-heading {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin: 0 0 10px;
}

.volunteer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.volunteer-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
}
.volunteer-check input { margin: 0; flex: none; }

.embed-note {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 13.5px;
  color: var(--slate);
  text-align: center;
}

.thanks-panel { display: none; text-align: center; padding: 30px 0 0; }
.thanks-panel.show { display: block; }

/* ---------- Signup split layout ---------- */

#signup { padding: 0; }

.signup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.signup-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px) clamp(48px, 6vw, 80px) var(--gutter);
}

.signup-title { margin-bottom: .25em; }
.signup-lede { max-width: 520px; margin-bottom: 28px; }

.signup-left .form-card { margin: 0; max-width: none; width: 100%; }

.signup-image-wrap {
  position: sticky;
  top: 96px; /* clears the sticky header */
  align-self: start;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px) clamp(40px, 6vw, 80px) 0;
}

/* Whole photo always shown — Melissa and the Florida House sign are never
   cropped at any breakpoint. */
.signup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.85);
  padding: 44px 0 36px;
  font-size: 14.5px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: rgba(255,255,255,.7); }

.footer-legal-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.disclaimer-box {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

.disclaimer-box .paid-for {
  display: block;
  font-weight: 700;
  color: #fff;
}

/* ---------- Page hero banner (secondary pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0;
  background:
    linear-gradient(rgba(2,21,48,.55), rgba(4,46,101,.64)),
    url("../img/hero-stpete.jpg") center 42% / cover no-repeat;
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .22em; }
.page-hero .lede { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto; }

/* ---------- Endorsement form ---------- */

.endorse-statement {
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  text-align: center;
  margin: 0 0 10px;
}

.endorse-consent {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 26px;
}

.sig-field { margin-top: 4px; }

.sig-pad-wrap {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bone);
  overflow: hidden;
}

.sig-pad {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
}

.sig-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--slate);
  font-size: 14px;
  font-style: italic;
  pointer-events: none;
}

.sig-pad-wrap.signed .sig-hint { display: none; }

.sig-clear {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--red);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.sig-clear:hover { color: var(--red-dark); }

/* ---------- Legal pages ---------- */

.legal-body { background: #fff; }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 1.6em; }
.legal-body ul, .legal-body ol { margin: 0 0 1em; padding-left: 24px; }
.legal-body li { margin-bottom: .5em; }
.legal-body .updated { margin-top: 2em; color: var(--slate); font-size: 14.5px; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero-copy { max-width: 100%; padding-bottom: 0; }
  .hero-portrait-wrap { display: block; position: static; transform: none; width: clamp(220px, 64vw, 300px); height: clamp(220px, 64vw, 300px); margin: 32px auto 0; }
  .hero-portrait { width: 100%; height: 100%; }
}

@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
  .brand-logo { height: 52px; }
  .form-grid { grid-template-columns: 1fr; }
  .volunteer-options { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .signup-layout { grid-template-columns: 1fr; max-width: 640px; min-height: 0; }
  .signup-left { padding: clamp(40px, 8vw, 64px) var(--gutter) 0; }
  .signup-image-wrap { position: static; padding: clamp(28px, 6vw, 44px) var(--gutter) clamp(40px, 8vw, 64px); }
  .signup-image { height: auto; }
}
