/* ==========================================================
   BERMAN FOR SCHOOL BOARD — Campaign Website
   Colors: Teal #0a4b5e | Yellow #fde16e | Green #81a969
   ========================================================== */

/* --- Variables --- */
:root {
  --teal:        #0a4b5e;
  --teal-dark:   #073847;
  --teal-light:  #1a6e88;
  --yellow:      #fde16e;
  --yellow-dark: #f5ca00;
  --green:       #81a969;
  --white:       #ffffff;
  --off-white:   #f5f7f8;
  --text:        #1c2b33;
  --text-muted:  #4d6472;
  --border:      #d8e5ea;
  --shadow-sm:   0 2px 12px rgba(10, 75, 94, 0.10);
  --shadow-md:   0 6px 24px rgba(10, 75, 94, 0.16);
  --shadow-lg:   0 12px 40px rgba(10, 75, 94, 0.22);
  --radius:      14px;
  --radius-lg:   20px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'League Spartan', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --- Layout --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: var(--teal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img  { height: 52px; width: 52px; object-fit: contain; }

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

.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-donate {
  background: var(--yellow) !important;
  color: var(--teal) !important;
  padding: 9px 26px !important;
  border-radius: 100px;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}
.nav-donate:hover {
  background: var(--yellow-dark) !important;
  color: var(--teal) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(253, 225, 110, 0.45) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: var(--teal);
  padding-top: 72px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-container {
  flex: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
}

/* Headshot */
.hero-image { display: flex; justify-content: center; }

.headshot-placeholder {
  width: 380px;
  height: 480px;
  border-radius: var(--radius-lg);
  border: 3px dashed rgba(253,225,110,0.5);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  text-align: center;
  padding: 24px;
}

.headshot-img {
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow-lg);
}

/* Hero text */
.hero-content { color: var(--white); }

.hero-name {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.hero-first {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: 0.5px;
}

.hero-last {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.hero-district {
  font-family: 'League Spartan', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.05rem);
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
}

.hero-tagline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hero-social-link:hover {
  background: var(--yellow);
  color: var(--teal);
  transform: translateY(-2px);
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 56px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 100px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--teal);
}
.btn-white:hover {
  background: var(--yellow);
  box-shadow: 0 6px 20px rgba(253,225,110,0.4);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--teal);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  box-shadow: 0 6px 20px rgba(253,225,110,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 10px 28px;
  font-size: 0.88rem;
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-lg { padding: 17px 44px; font-size: 1.05rem; }

/* ==========================================================
   SECTION TITLES
   ========================================================== */
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--teal);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 52px;
}

.section-title-light {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.text-teal-light { color: var(--teal-light); }
.text-yellow     { color: var(--yellow); }

/* ==========================================================
   ABOUT / BIO
   ========================================================== */
.about {
  background: var(--white);
  padding: 100px 0 80px;
}

.bio-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.bio-intro p {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

/* Expanded bio */
.bio-expanded {
  max-width: 820px;
  margin: 36px auto 0;
  animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bio-expanded-inner {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  border-left: 5px solid var(--teal);
}

.bio-expanded-inner h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-align: center;
}

.bio-expanded-inner p {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 18px;
}

.bio-closing {
  font-weight: 600 !important;
  color: var(--teal) !important;
  font-size: 1.1rem !important;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 28px !important;
}

.bio-expanded-inner .btn-outline {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ==========================================================
   POLICIES
   ========================================================== */
.policies {
  background: var(--off-white);
  padding: 100px 0;
}

.policies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.policy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.policy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.policy-header { padding: 32px 30px 26px; }

.policy-icon {
  width: 48px;
  height: 48px;
  background: rgba(10, 75, 94, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
}
.policy-icon svg { width: 24px; height: 24px; }

.policy-header h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.policy-summary {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.policy-toggle {
  background: none;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 8px 22px;
  border-radius: 100px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.policy-toggle:hover {
  background: var(--teal);
  color: var(--white);
}

.policy-body {
  padding: 0 30px 30px;
  animation: fadeSlideUp 0.3s ease;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 24px;
}

.policy-body p {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-body blockquote {
  border-left: 4px solid var(--yellow);
  background: rgba(253,225,110,0.12);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--teal-dark);
  line-height: 1.7;
}

.policy-body .policy-toggle { margin-top: 8px; }

.policy-img {
  border-radius: var(--radius);
  margin: 16px 0;
  width: 100%;
  border: 1px solid var(--border);
}

/* ==========================================================
   GET INVOLVED
   ========================================================== */
.get-involved {
  background: var(--teal);
  padding: 100px 0;
}

.involved-lead {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin-bottom: 56px;
}

.involved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.involved-card {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  transition: background 0.25s;
}
.involved-card:hover { background: rgba(255,255,255,0.11); }

.involved-icon {
  width: 60px;
  height: 60px;
  background: rgba(253,225,110,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--yellow);
}
.involved-icon svg { width: 28px; height: 28px; }

.involved-card h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.involved-card p {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}

.social-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 0.18s, box-shadow 0.18s;
}
.social-btn:hover { transform: translateY(-2px); }

.social-btn.facebook  { background: #1877f2; }
.social-btn.facebook:hover  { box-shadow: 0 4px 16px rgba(24,119,242,0.45); }

.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.instagram:hover { box-shadow: 0 4px 16px rgba(204,35,102,0.45); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--teal-dark);
  padding: 44px 0 24px;
}

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

.footer-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--yellow);
  transform: translateY(-2px);
}

.footer-disclaimer {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer-copy {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  text-align: center;
  letter-spacing: 0.5px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 340px 1fr;
    gap: 40px;
  }
  .headshot-placeholder,
  .headshot-img {
    width: 300px;
    height: 380px;
  }
  .bio-expanded-inner { padding: 36px 36px; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  }
  .nav-links.is-open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
  }
  .nav-donate {
    margin: 8px 28px 0 !important;
    border-radius: 100px !important;
    display: block;
    text-align: center;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 88px;
    gap: 32px;
  }
  .hero-image { order: -1; }
  .headshot-placeholder,
  .headshot-img {
    width: 220px;
    height: 280px;
    margin: 0 auto;
  }
  .hero-ctas { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-last {
    letter-spacing: -1px;
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  /* About */
  .bio-expanded-inner {
    padding: 28px 24px;
    border-left-width: 4px;
  }

  /* Policies */
  .policies-grid { grid-template-columns: 1fr; }

  /* Get Involved */
  .involved-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-container { padding: 32px 20px 80px; }
  .policy-header { padding: 24px 20px 20px; }
  .policy-body { padding: 20px 20px 24px; }
  .involved-card { padding: 36px 24px; }
  .social-buttons { flex-direction: column; align-items: center; }
}
