/* =========================================
   Wells County Democrats — Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy:      #1b2f52;
  --blue:      #2e5fa3;
  --blue-mid:  #3a72c1;
  --gold:      #f0b429;
  --gold-dark: #d4960f;
  --cream:     #f2ead8;
  --sky:       #c8d9ee;
  --white:     #ffffff;
  --gray-light:#f5f7fa;
  --gray:      #6b7280;
  --gray-dark: #374151;
  --text:      #1a2340;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

  --shadow-sm: 0 2px 8px rgba(27,47,82,0.10);
  --shadow-md: 0 6px 24px rgba(27,47,82,0.15);
  --shadow-lg: 0 16px 48px rgba(27,47,82,0.20);

  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

/* ---- UTILITY ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--cream { background: var(--cream); }

.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 18px;
}
.section--navy .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 100%;
  margin-bottom: 48px;
}
.section--navy .section-subtitle { color: var(--sky); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; max-width: 100%; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn + .btn { margin-left: 12px; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--navy);
  color: var(--sky);
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--sky); }
.topbar a:hover { color: var(--gold); }
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a { font-size: 0.8rem; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand img {
  height: 54px;
  width: auto;
}
.navbar-brand-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.navbar-brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--gray-light);
  color: var(--blue);
}
/* Dropdown */
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  list-style: none;
  padding: 6px 0;
  z-index: 200;
  /* Push the visible menu down visually with margin, not top gap */
  margin-top: 6px;
}
/* Invisible bridge fills the gap between nav link and dropdown menu */
.nav-links .dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}
.nav-links .dropdown:hover .dropdown-menu { display: block; }
.nav-links .dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}
.nav-links .dropdown-menu li a:hover {
  background: var(--gray-light);
  color: var(--blue);
}
.nav-donate {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.nav-donate:hover {
  background: var(--gold-dark) !important;
  color: var(--navy) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(240,180,41,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,217,238,0.06) 0%, transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-title span { color: var(--gold); }
.hero-desc {
  font-size: 1.15rem;
  color: var(--sky);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 100%;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-wrap {
  background: transparent;
  border: none;
  padding: 0;
  animation: floatUp 0.8s ease both;
}
.hero-logo-wrap img {
  width: 320px;
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

.hero-stat-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(4px);
  animation: floatUp 0.8s ease both;
}
.hero-bold-statement {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  text-align: center;
  font-style: italic;
}

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

/* ---- MISSION STRIP ---- */
.mission-strip {
  background: var(--gold);
  padding: 22px 0;
}
.mission-strip .container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.mission-strip p {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* ---- PILLARS (3-up cards) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 28px;
  border-top: 4px solid var(--blue);
  transition: all var(--transition);
  cursor: pointer;
  color: var(--text);
}
.pillar-card h3 { color: var(--navy); }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar-card p { font-size: 0.95rem; color: var(--gray); line-height: 1.65; }
.pillar-card a { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.pillar-card a:hover { color: var(--gold-dark); }

/* ---- EVENTS ---- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--sky);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-date-bar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.event-date-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}
.event-date-info { font-size: 0.85rem; line-height: 1.4; color: var(--sky); }
.event-date-info strong { display: block; color: var(--white); font-size: 0.9rem; }
.event-body { padding: 20px; flex: 1; }
.event-body h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.event-body p { font-size: 0.9rem; color: var(--gray); }
.event-body .event-loc { font-size: 0.85rem; color: var(--blue); margin-top: 8px; font-weight: 600; }
.event-footer { padding: 14px 20px; border-top: 1px solid var(--sky); }
.event-footer a { font-size: 0.88rem; font-weight: 700; color: var(--blue); }

/* ---- VOTER INFO ---- */
.voter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.voter-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voter-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }
.voter-card-icon { font-size: 1.6rem; }
.voter-card h4 { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.voter-card p { font-size: 0.85rem; color: var(--sky); flex: 1; }
.voter-card a.voter-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}
.voter-card a.voter-link:hover { color: var(--white); }

/* ---- NEWSLETTER ---- */
.newsletter-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}
.newsletter-wrap p { color: var(--gray); font-size: 0.97rem; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border: 2px solid var(--sky);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
}

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: var(--sky);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(200,217,238,0.2);
  margin-bottom: 28px;
}
.footer-brand img { height: 60px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p { font-size: 0.88rem; color: var(--sky); line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--sky); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--sky);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(200,217,238,0.6);
}
.footer-bottom a { color: rgba(200,217,238,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 56px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -60px;
  width: 320px; height: 320px;
  background: rgba(240,180,41,0.06);
  border-radius: 50%;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--sky);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.6;
}
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(200,217,238,0.6);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--white); }

/* ---- CONTENT CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--sky);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { color: var(--gray); font-size: 0.95rem; }

/* ---- LEADERSHIP GRID ---- */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  text-align: center;
  border-top: 4px solid var(--gold);
  transition: all var(--transition);
}
.leader-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.leader-avatar {
  width: 72px; height: 72px;
  background: var(--navy);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white);
}
.leader-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.leader-card p { font-size: 0.82rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-graphic { display: none; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .pillars { grid-template-columns: 1fr; }
  .newsletter-wrap { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-md); padding: 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .nav-toggle { display: flex; }
  .navbar .container { position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }
}
