/* ============================================================
   Walker for PA — Main Stylesheet
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:        #1a3a6b;
  --blue-dark:   #0f2347;
  --blue-light:  #2756a8;
  --red:         #c0392b;
  --red-light:   #e74c3c;
  --white:       #ffffff;
  --off-white:   #f4f6fb;
  --gray-light:  #e8ecf4;
  --gray:        #6b7280;
  --gray-dark:   #374151;
  --text:        #1f2937;

  --font:        'Inter', system-ui, sans-serif;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.16);
  --transition:  0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  color: var(--blue-dark);
}

.btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: var(--red-light);
  color: var(--white) !important;
}

.full-width { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--gray-light); }

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

.nav-links li a {
  color: var(--white);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.nav-links li a:hover {
  color: var(--gray-light);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(192,57,43,0.15) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 320px 24px 60px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-content h1 span {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin: 24px 0 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 16px;
}

.section-label {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label.light {
  color: rgba(255,255,255,0.7);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.photo-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-text .section-label { display: block; }

.about-text h2 {
  margin: 8px 0 24px;
}

.about-text p {
  color: var(--gray-dark);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text .btn { margin-top: 8px; }

/* ============================================================
   ISSUES
   ============================================================ */

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

.issue-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--blue-light);
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.issue-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.issue-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

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

/* ============================================================
   DONATE
   ============================================================ */

.section-donate {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

.section-donate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.2) 0%, transparent 60%);
}

.donate-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.donate-inner h2 {
  color: var(--white);
  margin: 8px 0 20px;
}

.donate-inner > p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.donate-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.donate-btn {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all var(--transition);
  cursor: pointer;
  min-width: 90px;
}

.donate-btn:hover,
.donate-btn.featured {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: scale(1.05);
}

.donate-btn.featured {
  transform: scale(1.08);
}

.section-donate .btn-white {
  margin-top: 8px;
}

.donate-disclaimer {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  margin-top: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   VOLUNTEER
   ============================================================ */

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.volunteer-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 12px;
  border: 2px solid var(--gray-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.volunteer-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
}

.volunteer-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.volunteer-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.volunteer-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.family-photo {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.volunteer-photo {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 48px;
}

.volunteer-form {
  background: var(--off-white);
  border-radius: 16px;
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.volunteer-form h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 28px;
  text-align: center;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-social {
  margin-top: 8px;
}

.contact-social strong {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ============================================================
   FORMS
   ============================================================ */

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
}

/* ============================================================
   VOTE
   ============================================================ */

.section-vote {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

.section-vote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(192,57,43,0.15) 0%, transparent 55%);
}

.section-vote .container { position: relative; z-index: 1; }

.section-vote .section-header h2 {
  color: var(--white);
}

.section-vote .section-header p {
  color: rgba(255,255,255,0.75);
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.vote-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 32px 24px;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.vote-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}

.vote-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.vote-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.vote-date {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.vote-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  line-height: 1.6;
}

.vote-link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.vote-link:hover {
  color: var(--white);
  border-color: var(--white);
}

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

@media (max-width: 900px) {
  .vote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .vote-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE HERO (sub-page banner)
   ============================================================ */

/* Navbar always visible on sub-pages */
#navbar.solid {
  background: var(--blue-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 80px 0 8px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* First section on pages without a page-hero (vote, donate) */
.page-first {
  padding-top: 160px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

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

@media (max-width: 900px) {
  .issues-grid,
  .volunteer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    padding: 16px 24px;
    gap: 4px;
  }

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

  .nav-toggle { display: block; }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .volunteer-form {
    padding: 28px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

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

  .donate-amounts {
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
