/* ============================================================
   CAMPAIGN WEBSITE TEMPLATE — SINGLE PAGE
   Color Palette System
   ============================================================
   HOW TO SWAP PALETTES:
   1. Uncomment ONE palette block below
   2. Comment out all other palette blocks
   3. Save — that's it!
   ============================================================ */

/* --- PALETTE 1: Classic Navy & Red (ACTIVE) --- */
:root {
  --color-primary: #1B3A5C;
  --color-primary-dark: #122840;
  --color-primary-light: #E8EEF4;
  --color-secondary: #C42032;
  --color-secondary-dark: #9A1826;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-white: #ffffff;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* --- PALETTE 2: Modern Blue & Copper ---
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-secondary: #D97706;
  --color-secondary-dark: #B45309;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-white: #ffffff;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
*/

/* --- PALETTE 3: Forest Green & Cream ---
:root {
  --color-primary: #1E6B45;
  --color-primary-dark: #155235;
  --color-primary-light: #ECFDF5;
  --color-secondary: #B45309;
  --color-secondary-dark: #92400E;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-bg: #fffdf7;
  --color-bg-alt: #f5f0e8;
  --color-white: #ffffff;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
*/

/* --- PALETTE 4: Slate & Teal ---
:root {
  --color-primary: #334155;
  --color-primary-dark: #1E293B;
  --color-primary-light: #F1F5F9;
  --color-secondary: #0D9488;
  --color-secondary-dark: #0F766E;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-white: #ffffff;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
*/

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-primary-dark);
}

h1 { font-size: 2.75rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; font-weight: 700; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ============================================================
   SECTION HEADING STYLE
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn-donate {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.btn-donate:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-donate-btn {
  background-color: var(--color-secondary) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
/* Hero image: recommended 1920x800px or similar wide format.
   For side-by-side layout, candidate photo: 600x750px portrait. */
.hero {
  margin-top: 70px;
  background-color: var(--color-primary);
  color: var(--color-white);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-office {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.25rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Candidate photo placeholder — replace with actual image */
/* Recommended: 600x750px portrait, high quality headshot */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4 / 5;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 500;
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background-color: var(--color-bg-alt);
}

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

/* About photo placeholder — recommended: 500x600px portrait */
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 5 / 6;
  background-color: #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   ISSUES / PRIORITIES SECTION
   ============================================================ */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.issue-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.issue-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.issue-card h3 {
  margin-bottom: 0.75rem;
}

.issue-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   ENDORSEMENTS SECTION
   ============================================================ */
.endorsements {
  background-color: var(--color-bg-alt);
}

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

.endorsement-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.endorsement-card::before {
  content: '\201C';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--color-primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.endorsement-quote {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.endorsement-name {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.endorsement-title {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ============================================================
   GET INVOLVED / VOLUNTEER SECTION
   ============================================================ */
.get-involved {
  text-align: center;
}

.get-involved p {
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* ============================================================
   DONATE SECTION
   ============================================================ */
.donate {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.donate .section-title h2::after {
  background-color: var(--color-white);
}

.donate p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.95;
}

.donate .btn-donate {
  background-color: var(--color-white);
  color: var(--color-secondary-dark);
  font-size: 1.3rem;
  padding: 1.1rem 3rem;
}

.donate .btn-donate:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events {
  background-color: var(--color-bg-alt);
}

.events-list {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

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

.event-date-box {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 80px;
}

.event-date-box .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date-box .day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.event-details h3 {
  margin-bottom: 0.35rem;
}

.event-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.event-meta span {
  margin-right: 1rem;
}

.event-description {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1.15rem;
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Back to top */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
  min-height: 44px;
}

.back-to-top:hover {
  color: var(--color-white);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-buttons { justify-content: center; }

  .hero-image { order: -1; }

  .hero-image-placeholder {
    max-width: 300px;
    margin: 0 auto;
  }

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

  .about-image-placeholder {
    max-width: 350px;
    margin: 0 auto;
  }

  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .endorsements-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

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

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1.1rem; }

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

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date-box {
    margin: 0 auto;
  }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.75rem; }

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

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


/* ============================================================
   PALETTE PICKER — Demo floating bubble
   ============================================================ */

.palette-picker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.palette-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.palette-picker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.palette-picker-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.palette-picker-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.palette-picker-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: none;
  min-width: 180px;
}

.palette-picker-panel.open {
  display: block;
}

.palette-picker-panel h4 {
  margin: 0 0 12px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  font-family: inherit;
}

.palette-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: none;
  width: 100%;
  font-family: inherit;
}

.palette-option:hover {
  background: #f5f5f5;
}

.palette-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.palette-swatches {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.palette-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.palette-option-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .palette-picker { bottom: 16px; right: 16px; }
  .palette-picker-btn { padding: 10px 12px; border-radius: 14px; }
  .palette-picker-btn svg { width: 24px; height: 24px; }
}
