/* ==========================================================================
   Sarah Preu for Congress — Campaign Site Styles
   Palette: Deep navy + warm coral accent + clean whites
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ========================================================================== */

/* --- CUSTOM PROPERTIES --- */
:root {
  --color-navy: #1a2744;
  --color-navy-light: #243352;
  --color-coral: #e85d4a;
  --color-coral-dark: #d04a38;
  --color-gold: #f0b429;
  --color-cream: #faf8f5;
  --color-white: #ffffff;
  --color-gray-100: #f3f4f6;
  --color-gray-400: #9ca3af;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
  --nav-height: 72px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-coral-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: 0.2s;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-navy);
}

.btn-donate-nav {
  background: var(--color-coral);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
}

.btn-donate-nav:hover {
  background: var(--color-coral-dark);
  color: var(--color-white) !important;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--color-coral);
}

.hero-tagline {
  font-size: 1.25rem;
  max-width: 560px;
  margin: 1.5rem auto 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- ABOUT --- */
.about {
  background: var(--color-cream);
}

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

.about-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.about-lede {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
}

/* --- ISSUES --- */
.issues {
  background: var(--color-white);
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.issue-card {
  padding: 2rem;
  background: var(--color-cream);
  border-radius: 8px;
  border-left: 4px solid var(--color-coral);
  transition: transform 0.2s;
}

.issue-card:hover {
  transform: translateY(-2px);
}

.issue-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.issue-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.issue-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- VOLUNTEER --- */
.volunteer {
  background: var(--color-navy);
  color: var(--color-white);
}

.volunteer .section-title {
  color: var(--color-white);
}

.volunteer .section-intro {
  color: rgba(255, 255, 255, 0.7);
}

.volunteer-form {
  max-width: 600px;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--color-white);
  transition: border-color 0.2s;
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-row input:focus {
  outline: none;
  border-color: var(--color-coral);
}

.form-options {
  border: none;
  margin: 1.5rem 0;
}

.form-options legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.form-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.form-options input[type="checkbox"] {
  accent-color: var(--color-coral);
  width: 18px;
  height: 18px;
}

.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- DONATE --- */
.donate {
  background: var(--color-cream);
  text-align: center;
}

.donate-container {
  max-width: 640px;
}

.donate-disclaimer {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-gray-800);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.footer-district {
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-weight: 700;
}

.footer-social a:hover {
  color: var(--color-white);
}

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
}

.footer-legal p {
  margin-bottom: 0.25rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-img {
    aspect-ratio: 16 / 9;
    max-height: 300px;
  }

  .issues-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .form-options label {
    display: flex;
    margin-right: 0;
  }
}
