/* ═══════════════════════════════════════════════════
   Kay Lokey for District 17 — Campaign Site Styles
   ═══════════════════════════════════════════════════ */

/* ─── Custom Properties ───────────────────────────── */
:root {
  --navy:      #2c4a6e;
  --green:     #4d7c5e;
  --bg:        #f7f4ef;
  --text:      #2d2d2d;
  --amber:     #c87a2a;
  --tan:       #e8e0d4;
  --white:     #ffffff;
  --navy-dark: #1a2e47;
}

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

/* ─── Base ────────────────────────────────────────── */
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

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

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

/* ─── Layout ──────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section     { padding: 5rem 0; }
.section-alt { background: var(--tan); }

.section-title {
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

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

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

.btn-outline:hover { background: rgba(255,255,255,0.12); }

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

.btn-sm {
  font-size: 0.875rem;
  padding: 0.55rem 1.25rem;
}

/* ─── Navigation ──────────────────────────────────── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.nav-logo {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.nav-logo span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--amber);
}

/* Mobile hamburger (CSS-only) */
.nav-toggle { display: none; }

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

.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ─── Hero (home) ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(44, 74, 110, 0.88) 40%,
    rgba(44, 74, 110, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 620px;
  color: var(--white);
  padding: 3rem 0;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* ─── Intro Strip ─────────────────────────────────── */
.intro-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid var(--green);
  flex-shrink: 0;
}

.intro-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

/* ─── Issue Cards (home preview) ─────────────────── */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.issue-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(44, 74, 110, 0.08);
  border-top: 4px solid var(--green);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(44, 74, 110, 0.14);
}

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

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

.issue-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ─── Full Issue Sections (issues page) ───────────── */
.issues-intro {
  padding: 4rem 0 2rem;
  border-bottom: 2px solid var(--tan);
  margin-bottom: 1rem;
}

.issues-intro p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
}

.issue-section {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--tan);
}

.issue-section:last-child { border-bottom: none; }

.issue-section-icon {
  font-size: 3.5rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.5rem;
}

.issue-section h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.issue-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
}

/* ─── Quote Banner ────────────────────────────────── */
.quote-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 2rem;
}

.quote-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.quote-banner cite {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

/* ─── Page Hero (inner pages) ─────────────────────── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.8;
  font-size: 1.1rem;
  max-width: 600px;
}

/* ─── About Page ──────────────────────────────────── */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}

.about-bio img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(44, 74, 110, 0.15);
}

.about-bio-text .tagline {
  color: var(--green);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.about-bio-text h2 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-bio-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.social-link:hover { opacity: 0.85; color: var(--white); }

.community-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.community-block img {
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(44, 74, 110, 0.12);
}

.community-block h3 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.community-block p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1rem;
}

/* ─── Events Page ─────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.event-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--tan);
  border-left: 5px solid var(--amber);
  border-radius: 6px;
  padding: 2rem;
  align-items: flex-start;
}

.event-date-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  min-width: 4.5rem;
  text-align: center;
}

.event-month {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.event-day {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.event-details {
  flex: 1;
}

.event-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.event-meta {
  font-size: 0.95rem;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.event-description {
  color: #555;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .event-card {
    flex-direction: column;
    gap: 1.25rem;
  }
  .event-date-badge {
    flex-direction: row;
    gap: 0.5rem;
    align-items: baseline;
    width: auto;
  }
  .event-day { font-size: 1.75rem; }
}

/* ─── Volunteer Page ──────────────────────────────── */
.volunteer-hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
}

.volunteer-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.volunteer-hero p {
  max-width: 680px;
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.85;
}

.form-section { padding: 5rem 0; }

.form-section h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-intro {
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.signup-form { max-width: 560px; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--tan);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

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

.address-row {
  display: grid;
  grid-template-columns: 1fr 60px 120px;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.checkbox-group-stacked {
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #444;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

/* ─── Donate Banner ───────────────────────────────── */
.donate-banner {
  background: var(--amber);
  padding: 2.5rem 0;
}

.donate-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.donate-banner h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.donate-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
}

.donate-banner .btn {
  background: var(--white);
  color: var(--amber);
  border-color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.donate-banner .btn:hover { opacity: 0.92; }

/* ─── Community Page ──────────────────────────────── */
.election-callout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.election-callout-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  border-right: 2px solid rgba(255,255,255,0.2);
  padding-right: 2.5rem;
}

.election-month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.election-day {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}

.election-year {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.75;
}

.election-callout-text h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.election-callout-text p {
  opacity: 0.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.community-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--tan);
}

.community-section:last-child { border-bottom: none; }

.community-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  max-width: 720px;
  margin-bottom: 1.75rem;
}

.community-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.community-note {
  font-size: 0.9rem;
  color: #666;
}

.community-note a {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 600px) {
  .election-callout {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .election-callout-date {
    border-right: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-right: 0;
    padding-bottom: 1.5rem;
    width: 100%;
  }
  .donate-banner-inner { flex-direction: column; text-align: center; }
}

/* ─── Video Card ──────────────────────────────────── */
.video-thumb-card {
  display: block;
  max-width: 800px;
  margin: 2rem auto 0;
  text-decoration: none;
  text-align: center;
}

.video-thumb-card .video-thumb-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 74, 110, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-thumb-card:hover .video-thumb-wrap {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 74, 110, 0.22);
}

.video-thumb-card img {
  width: 100%;
  display: block;
}

.video-thumb-card .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
  background: rgba(44, 74, 110, 0.45);
  transition: background 0.2s;
}

.video-thumb-card:hover .video-play { background: rgba(44, 74, 110, 0.6); }

.video-yt-label {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Statement Block ─────────────────────────────── */
.statement-block { max-width: 760px; }

.statement-body {
  border-left: 4px solid var(--green);
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.statement-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.25rem;
}

.statement-sig {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.1rem;
  margin-top: 2rem;
  font-style: italic;
}

/* ─── Form Result Message ─────────────────────────── */
.form-result {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  display: none;
}

.form-result:not(:empty) { display: block; }

.form-result--success {
  background: #eaf5ee;
  color: #2d6a4f;
  border: 1px solid #b7dfc8;
}

.form-result--error {
  background: #fdf0f0;
  color: #b91c1c;
  border: 1px solid #f5c6c6;
}

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.45;
}

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

  .hero { min-height: 80vh; padding: 3rem 0; }
  .hero-overlay { background: rgba(44, 74, 110, 0.82); }

  .intro-strip {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .intro-photo { margin: 0 auto; }
  .intro-text blockquote {
    border-left: none;
    padding-left: 0;
    border-top: 4px solid var(--green);
    padding-top: 1.25rem;
  }

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

  .about-bio { grid-template-columns: 1fr; gap: 2rem; }
  .community-block { grid-template-columns: 1fr; gap: 2rem; }

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

  .issue-section { grid-template-columns: 1fr; gap: 1rem; }
  .issue-section-icon { font-size: 2.5rem; }

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