/* ===== Vote DEED — base styles ===== */
:root {
  --navy: #10284f;
  --navy-dark: #0b1e3c;
  --navy-soft: #eef2f8;
  --orange: #f2a13b;
  --orange-dark: #e08e22;
  --text: #1c2b3a;
  --text-muted: #55657a;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(16, 40, 79, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: var(--navy-dark);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { width: 34px; height: 34px; color: var(--navy); }
.logo-text {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo-text strong { color: var(--orange-dark); }

.header-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--orange-dark);
  border-bottom-color: var(--orange-dark);
}

.btn-header {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11,30,60,0.55), rgba(11,30,60,0.15) 55%, rgba(11,30,60,0.05)),
    url("hero-skyline.jpg");
  background-size: cover;
  background-position: center;
  background-color: #2c5f8a;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,30,60,0.85) 0%, rgba(11,30,60,0.55) 42%, rgba(11,30,60,0.15) 70%, rgba(11,30,60,0) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 70px; padding-bottom: 70px; }
.hero-content { max-width: 620px; }

.hero h1 {
  color: var(--white);
  font-size: 3.4rem;
  margin-bottom: 0.35em;
}
.hero h1 .accent { color: var(--orange); }

.hero-lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1em;
}
.hero-lede:last-of-type { margin-bottom: 1.8em; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 14px 0 0;
  max-width: 540px;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

/* ===== Sections ===== */
.section {
  padding: 88px 0;
}
.section-tint { background: var(--navy-soft); }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-heading h2 { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col.reverse { grid-template-columns: 1fr 1.15fr; }
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }

.two-col h2 { font-size: 2rem; }

.check-list { margin: 1.4em 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}
.check-icon, .bullet-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.8rem;
  margin-top: 1px;
}
.check-icon {
  color: var(--orange-dark);
  border: 2px solid var(--orange);
  background: #fff6e8;
}
.bullet-icon {
  color: var(--white);
  background: var(--navy);
  font-size: 0.5rem;
}

.goal-callout {
  margin-top: 1.4em;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: var(--white);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.92rem;
}
.goal-callout strong { color: var(--navy); }

/* Stat card */
.stat-card {
  background: var(--navy-soft);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fce8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.stat-icon svg { width: 32px; height: 32px; color: var(--navy); }
.stat-number {
  font-family: Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1;
}
.stat-number span {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.stat-label {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-top: 10px;
}
.stat-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px auto;
  width: 60%;
}
.stat-note { font-size: 0.92rem; color: var(--text); margin-bottom: 0.6em; }
.stat-source { font-size: 0.78rem; color: var(--text-muted); margin: 10px 0 0; }
.stat-source a { color: var(--orange-dark); text-decoration: underline; }
.stat-source a:hover { color: var(--navy); }

/* Why-referendum media */
.why-media {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(11,30,60,0.35), rgba(11,30,60,0.5)),
    url("why-referendum-crowd.jpg");
  background-size: cover;
  background-position: center;
  background-color: #2f668f;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.media-quote {
  margin: 0;
  padding: 28px 32px;
  background: rgba(11, 30, 60, 0.88);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  width: 100%;
}
.quote-mark {
  color: var(--orange);
  font-size: 1.8rem;
  font-style: normal;
  margin-right: 4px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-card svg { width: 44px; height: 44px; color: var(--navy); margin-bottom: 16px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.info-card p { font-size: 0.88rem; margin: 0; }

/* How the Petition Will Work */
.process-copy {
  max-width: 780px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-copy p { font-size: 0.95rem; margin: 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-step {
  text-align: center;
  padding: 30px 24px;
  background: var(--navy-soft);
  border-radius: var(--radius);
}
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.process-step p { font-size: 0.88rem; margin: 0; color: var(--text-muted); }

/* Timeline */
.timeline {
  position: relative;
  margin-top: 1.5em;
  padding-left: 34px;
  border-left: 2px solid var(--border);
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
}
.timeline h4 { font-size: 1.02rem; margin-bottom: 0.25em; color: var(--navy); }
.timeline li p { margin: 0; font-size: 0.92rem; }
.timeline-current::before { border-color: var(--orange); background: var(--orange); }
.timeline-current h4 { color: var(--orange-dark); }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5em; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy);
  cursor: pointer;
}
.accordion-icon {
  color: var(--orange-dark);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding: 0 20px 18px; margin: 0; font-size: 0.92rem; }

/* CTA banner */
.cta-banner { background: var(--navy-dark); color: var(--white); padding: 56px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.cta-icon {
  width: 64px; height: 64px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-icon svg { width: 30px; height: 30px; color: var(--orange); }
.cta-text { flex: 1; }
.cta-text h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-text p { color: rgba(255,255,255,0.8); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 40px 0 0; }
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-about { max-width: 480px; }
.footer-social { text-align: right; }
.logo-light .logo-text { color: var(--white); }
.logo-light .logo-icon { color: var(--white); }
.footer-about p { font-size: 0.9rem; margin-top: 14px; }
.footer-about p.footer-legal-name { font-size: 0.8rem; opacity: 0.7; margin-top: 4px; }
.footer-tagline { font-style: italic; }

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }

.social-links { display: flex; gap: 12px; justify-content: flex-end; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.social-icon svg { width: 18px; height: 18px; }
.social-fb { background: #3b5998; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
  font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 10px; }
.footer-legal a:hover { color: var(--orange); }

/* ===== Support modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 30, 60, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: 0 25px 60px rgba(11, 30, 60, 0.35);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); }

.modal h3 {
  font-size: 1.2rem;
  margin: 0 28px 0.6em 0;
}
.modal p.modal-legal {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.modal-step[hidden] { display: none; }

#support-form, #verify-form { display: flex; flex-direction: column; gap: 2px; }
#support-form label, #verify-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 10px;
}
#support-form label .field-hint { font-weight: 400; color: var(--text-muted); }
.field-note {
  margin: 4px 0 0;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-muted);
}
#support-form input:not([type="checkbox"]), #verify-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
}
#support-form input:focus, #verify-form input:focus {
  outline: none;
  border-color: var(--orange);
}
#support-form .btn, #verify-form .btn { margin-top: 16px; padding: 11px 18px; justify-content: center; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row > div { min-width: 0; }
.form-row label { margin-top: 0; }

.modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.modal-checkbox[hidden] { display: none; }
.modal-checkbox input {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.modal-checkbox span { min-width: 0; }

.modal-privacy-note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.modal-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecea;
  border-left: 3px solid #c0392b;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #c0392b;
}
.modal-error[hidden] { display: none; }

.modal-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--orange-dark); }

.modal-success { text-align: center; padding: 10px 0; }
.modal-success[hidden] { display: none; }
.modal-success p { color: var(--navy); font-weight: 600; margin: 0; }
.modal-success p.modal-error { color: #c0392b; font-weight: 400; text-align: left; }
.modal-success .modal-links { justify-content: center; margin-top: 16px; }

/* ===== Legal pages ===== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { font-size: 2.2rem; margin-bottom: 0.2em; }
.legal-content .legal-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.6em; }
.legal-content h2 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.legal-content p { margin-bottom: 1em; }
.legal-list { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.legal-list li { margin-bottom: 0.5em; color: var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1180px) {
  .header-tagline { display: none; }
  .main-nav {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .btn-header { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse > *:first-child,
  .two-col.reverse > *:last-child { order: 0; }

  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-social { text-align: left; }
  .social-links { justify-content: flex-start; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 60px 0; }
}
