/* ===================================================
   Jake for WI – Campaign Site Styles
   Color Palette:
     Navy:   #0f2744
     Blue:   #1a4b8c
     Red:    #b22234
     White:  #ffffff
     Light:  #f4f6fa
     Accent: #d4a84b (gold)
   =================================================== */

/* ---------- Root & Custom Properties ---------- */
:root {
  --c-navy: #0f2744;
  --c-blue: #1a4b8c;
  --c-blue-light: #2563a8;
  --c-red: #b22234;
  --c-red-hover: #8b1a29;
  --c-gold: #d4a84b;
  --c-light: #f4f6fa;
  --c-white: #ffffff;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

/* ---------- Base ---------- */
html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: 80px;          /* space for footer */
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background-color: var(--c-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.25;
}

a {
  color: var(--c-blue);
  transition: color 0.2s;
}
a:hover {
  color: var(--c-blue-light);
}

/* ---------- Focus ring ---------- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(26, 75, 140, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background-color: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--c-red-hover);
  border-color: var(--c-red-hover);
  color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline-primary {
  color: var(--c-blue);
  border-color: var(--c-blue);
  background: transparent;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  color: var(--c-white);
  background-color: var(--c-blue);
  border-color: var(--c-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
.site-navbar {
  background: var(--c-navy);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-navbar .navbar-brand {
  color: var(--c-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-navbar .navbar-brand:hover {
  color: var(--c-gold);
}
.site-navbar .navbar-brand .brand-accent {
  color: var(--c-red);
}
.site-navbar .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--c-white) !important;
  background: rgba(255,255,255,0.1);
}
.site-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.site-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background-image:
    linear-gradient(160deg, rgba(15,39,68,0.88) 0%, rgba(26,75,140,0.72) 50%, rgba(178,34,52,0.55) 100%),
    url('/images/wi-usa-background.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  color: var(--c-white);
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--c-light));
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6.5rem 2rem 5.5rem;
  }
}

.hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  color: var(--c-gold);
  background: rgba(0,0,0,0.2);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
}

.hero-section h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--c-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.2rem;
  }
}

.hero-lead {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  background-color: var(--c-red);
  border-color: var(--c-red);
  padding: 0.7rem 2rem;
  font-size: 1rem;
}
.hero-actions .btn-primary:hover {
  background-color: var(--c-red-hover);
  border-color: var(--c-red-hover);
}
.hero-actions .btn-outline-primary {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.6);
  padding: 0.7rem 2rem;
  font-size: 1rem;
}
.hero-actions .btn-outline-primary:hover {
  color: var(--c-navy);
  background-color: var(--c-white);
  border-color: var(--c-white);
}

/* ---------- Main Content Container ---------- */
.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Content Section (card panels) ---------- */
.content-section {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 1.75rem auto;
  max-width: 860px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.content-section h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.content-section h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--c-red);
  border-radius: 3px;
  margin-top: 0.6rem;
}
.content-section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.content-section p {
  color: var(--c-text-muted);
  font-size: 1.02rem;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--c-light);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: all 0.25s ease;
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-red));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--c-navy);
}
.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Callout Section ---------- */
.callout-section {
  text-align: center;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  border: none;
  padding: 2.5rem 2rem;
  margin: 1.75rem auto;
  max-width: 860px;
  box-shadow: var(--shadow-md);
}
.callout-section h2 {
  color: var(--c-white);
  margin-bottom: 0.6rem;
}
.callout-section p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 1.25rem;
}
.callout-section .btn-primary {
  background: var(--c-red);
  border-color: var(--c-red);
}
.callout-section .btn-primary:hover {
  background: var(--c-white);
  color: var(--c-red);
  border-color: var(--c-white);
}

/* ---------- Simple List ---------- */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.simple-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--c-text-muted);
}
.simple-list li:last-child {
  border-bottom: none;
}
.simple-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-blue);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Priority List ---------- */
.priority-list article {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.priority-list article:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.priority-list article h2 {
  font-size: 1.25rem;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.priority-list article p {
  margin-bottom: 0;
}

/* ---------- Timeline ---------- */
.timeline-list {
  border-left: 3px solid var(--c-blue);
  padding-left: 1.75rem;
  margin-left: 0.5rem;
}

.timeline-item {
  margin-bottom: 1.75rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 2px solid var(--c-white);
  box-shadow: 0 0 0 2px var(--c-blue);
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item h2,
.timeline-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.timeline-date {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-blue);
  background: rgba(26,75,140,0.08);
  padding: 0.15rem 0.65rem;
  border-radius: 2rem;
  margin-bottom: 0.4rem;
}

/* ---------- Contact Meta ---------- */
.campaign-contact-meta {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--c-light);
  border-left: 4px solid var(--c-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.campaign-contact-meta p {
  margin-bottom: 0.4rem;
  color: var(--c-text);
}
.campaign-contact-meta p:last-child {
  margin-bottom: 0;
}
.campaign-contact-meta strong {
  color: var(--c-navy);
}

/* ---------- Contact Form ---------- */
.contact-form {
  margin-top: 1.5rem;
}
.contact-form .form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-navy);
}
.contact-form .form-control {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form .form-control:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(26,75,140,0.12);
}

/* ---------- Volunteer Card ---------- */
.volunteer-card {
  border: 1px solid rgba(26,75,140,0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(26,75,140,0.03), rgba(26,75,140,0.06));
}
.volunteer-card .form-check-label {
  font-weight: 600;
  color: var(--c-navy);
}

/* ---------- Footer ---------- */
.site-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--c-navy);
  color: rgba(255,255,255,0.65);
  padding: 1.2rem 0;
  font-size: 0.88rem;
  text-align: center;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
}
.site-footer a:hover {
  color: var(--c-white);
}

/* ---------- Misc Utilities ---------- */
.text-center .content-section h1::after {
  margin-left: auto;
  margin-right: auto;
}

/* Form floating placeholders */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--c-text-muted);
  text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------- Responsive Fine-tuning ---------- */
@media (max-width: 575.98px) {
  .content-section {
    padding: 1.5rem 1.25rem;
    margin: 1rem 0.5rem;
    border-radius: var(--radius);
  }
  .hero-section {
    padding: 3.5rem 1rem 3rem;
  }
  .hero-section h1 {
    font-size: 1.85rem;
  }
  .callout-section {
    margin: 1rem 0.5rem;
    padding: 2rem 1.25rem;
  }
}