/*
Theme Name: Miller for Senate
Theme URI: https://example.com/miller-theme
Author: Campaign Web Team
Description: A clean, bold campaign theme for Alec Miller — Georgia State Senate, District 31. Fully editable via the WordPress Customizer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miller
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --navy:        #0B1D3A;
  --navy-deep:   #071328;
  --navy-light:  #132D54;
  --red:         #E63946;
  --red-hover:   #CF2F3C;
  --white:       #FFFFFF;
  --off-white:   #F4F6F9;
  --gray-light:  #DDE3EB;
  --gray-text:   #6B7A8D;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --max-width:    1180px;
  --section-pad:  5rem 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.section-heading--white {
  color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.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(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(11, 29, 58, 0.3);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
}
.site-logo span {
  color: var(--red);
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

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

.nav-primary a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}
.nav-primary a:hover {
  color: var(--white);
}

.nav-primary .donate-link a {
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1.4rem;
  border-radius: 4px;
}
.nav-primary .donate-link a:hover {
  background: var(--red-hover);
}

/* Desktop dropdown submenu */
.nav-primary li {
  position: relative;
}
.nav-primary ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  border-radius: 0 0 6px 6px;
  padding: 0.75rem 0;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-direction: column;
  gap: 0;
  z-index: 100;
}
.nav-primary li:hover > ul {
  display: flex;
}
.nav-primary ul ul li {
  padding: 0;
}
.nav-primary ul ul a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.nav-primary ul ul a:hover {
  background: rgba(255,255,255,0.08);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  overflow: hidden;
  padding-top: 72px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 19, 40, 0.92) 0%,
    rgba(11, 29, 58, 0.75) 50%,
    rgba(19, 45, 84, 0.6) 100%
  );
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 800px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero__name span {
  color: var(--red);
}

.hero__office {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Subtle animated accent bar */
.hero__accent {
  width: 80px;
  height: 4px;
  background: var(--red);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-pad);
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}
.about__image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 3px solid var(--red);
  border-radius: 6px;
  z-index: 0;
}
.about__image-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
  background: var(--gray-light);
}

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

.about__text .btn {
  margin-top: 0.5rem;
}

/* ============================================
   ISSUES SECTION
   ============================================ */
.issues {
  padding: var(--section-pad);
  background: var(--off-white);
}

.issues__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.issues__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.issue-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(11, 29, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(11, 29, 58, 0.1);
}

.issue-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
}

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

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

/* ============================================
   GET INVOLVED SECTION
   ============================================ */
.get-involved {
  padding: var(--section-pad);
  background: var(--navy);
  color: var(--white);
}

.get-involved__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.get-involved__header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}

.get-involved__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.involve-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s ease, transform 0.25s ease;
}
.involve-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.involve-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

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

.involve-card p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ============================================
   NEWSLETTER (under Get Involved)
   ============================================ */
.newsletter {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.newsletter h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.newsletter p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.newsletter__form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 0;
}

.newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter__form input[type="email"]:focus {
  border-color: var(--red);
}

.newsletter__form button {
  padding: 0.85rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter__form button:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  text-align: center;
  border-top: 3px solid var(--red);
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}
.site-footer a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer__social a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__legal {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   QUICK-LINKS STRIP (homepage)
   ============================================ */
.quick-links {
  background: var(--off-white);
  padding: 3.5rem 0;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quick-link {
  display: block;
  background: var(--white);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(11, 29, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(11, 29, 58, 0.1);
}

.quick-link h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.quick-link p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 0;
}

.quick-link__arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1.2rem;
  color: var(--red);
  transition: transform 0.2s ease;
}
.quick-link:hover .quick-link__arrow {
  transform: translateX(4px);
}

/* ============================================
   GENERIC PAGE
   ============================================ */
.page-content {
  padding: 8rem 0 5rem;
  min-height: 60vh;
}

.page-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.page-content p {
  margin-bottom: 1.25rem;
}

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

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 0;
  }

  .site-header {
    z-index: 3000;
  }

  .site-header .container {
    position: relative;
    z-index: 3001;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 3002;
  }

  .nav-primary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 19, 40, 0.98);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 110px 1.5rem 2rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s ease,
      opacity 0.28s ease,
      visibility 0.28s ease;
    z-index: 2999;
    overflow-y: auto;
  }

  .nav-primary.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-primary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .nav-primary li {
    width: 100%;
    text-align: center;
  }

  .nav-primary a {
    display: block;
    width: 100%;
    font-size: 1.35rem;
    padding: 0.45rem 0;
    color: rgba(255,255,255,0.92);
  }

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

  /* Mobile submenus stack inline */
  .nav-primary ul ul {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0.35rem 0 0;
    min-width: 0;
    display: none;
  }

  .nav-primary li.submenu-open > ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-primary ul ul a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    padding: 0.2rem 0;
  }

  .quick-links__grid {
    grid-template-columns: 1fr;
  }

  .hero__name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .get-involved__cards {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter__form input[type="email"] {
    border-right: 2px solid rgba(255,255,255,0.2);
    border-radius: 4px;
  }

  .newsletter__form button {
    border-radius: 4px;
  }
}