/* ===== BASE & VARIABLES ===== */
:root {
  --primary: #0d4ecf;
  --primary-dark: #083a9d;
  --primary-light: #eef3ff;
  --accent: #f4f7ff;
  --text: #1d2433;
  --text-light: #5a687c;
  --muted: #667085;
  --border: #d9e2f2;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(13, 78, 207, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1280px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fafcff;
  line-height: 1.5;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn i {
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* ===== CARDS & SECTIONS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(13, 78, 207, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== HEADER & NAVIGATION ===== */
.topbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 78, 207, 0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0;
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(145deg, #f0f6ff 0%, #ffffff 60%);
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(13, 78, 207, 0.1);
  color: var(--primary-dark);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  
}

/* Responsive video container for hero-media */
.hero-media {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.hero-media iframe,
.hero-media video,
.hero-media embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 24px;
}

/* Optional: remove the pseudo‑element that shows placeholder text */
.hero-media::before {
  display: none;
}

.hero-media::before {
  content: "📸 Campaign Photo / Video";
  position: absolute;
  inset: auto 1.5rem 1.5rem auto;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* ===== INTRO CARD ===== */
.intro-box {
  padding: 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.portrait-placeholder {
  background: linear-gradient(145deg, #e2ecfe, #cddefa);
  border-radius: 1.5rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ===== PRIORITIES (index) ===== */
.priorities {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}

.priorities .section-title,
.priorities .section-subtitle {
  color: white;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.priority-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.priority-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
}

.priority-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.priority-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--white);
  padding: 3rem 0;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 2rem;
}

.qr-box {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #aaa;
  border: 1px dashed var(--primary);
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.text-panel p {
  margin-bottom: 1rem;
}

/* Media Panel with Image Support */
.media-panel {
  background: linear-gradient(135deg, #e9f0fe, #dce6fa);
  border-radius: var(--radius);
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Image inside media panel */
.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius);
}

/* If image exists, hide the placeholder text */
.media-panel img + span,
.media-panel:has(img)::before {
  display: none;
}

/* Optional overlay for text on images */
.media-panel .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

/* Hover effect for image panels */
.media-panel:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background: linear-gradient(145deg, #f5f9ff, #eef2fa);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===== FORMS (Contact, Lawn Sign, Get Involved) ===== */
.form-card {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.full {
  grid-column: span 2;
}

.form-group label,
label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 78, 207, 0.1);
}

.form-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background: #e6f7ec;
  color: #0e6b2e;
  border-left: 4px solid #0e6b2e;
}

.alert-error {
  background: #fee9e6;
  color: #b42b1a;
  border-left: 4px solid #b42b1a;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #f0f6ff, #ffffff);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h2 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background: #0b1c2e;
  color: #b8c7dd;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: #b8c7dd;
}

.footer a:hover {
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .two-col,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .full {
    grid-column: span 1;
  }
  
  .contact-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== EXTRAS ===== */
.required-star {
  color: #e53e3e;
}

.footer i, .topbar i {
  margin-right: 0.3rem;
}