/* ============================================================
   Southside Leads — palette drawn from the badge logo:
   deep teal field, retro red script, cream lettering, gold star
   ============================================================ */

:root {
  --teal: #1d6478;
  --teal-dark: #14505f;
  --red: #e04b33;
  --red-dark: #c73a24;
  --cream: #f5e9d3;
  --cream-bright: #fdf6e8;
  --gold: #e8a820;
  --gold-bright: #f6bd3c;
  --ink: #22333b;

  --font-script: "Yellowtail", cursive;
  --font-slab: "Bevan", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-bright);
  line-height: 1.65;
  font-size: 1.0625rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--cream-bright);
  border-bottom: 3px solid var(--teal);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
}

.wordmark-script {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--red);
}

.wordmark-slab {
  font-family: var(--font-slab);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.topnav a:hover { color: var(--red); }

.topnav .nav-cta {
  background: var(--red);
  color: var(--cream-bright);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.topnav .nav-cta:hover { background: var(--red-dark); color: var(--cream-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 130% 80% at 50% 100%, rgba(232, 168, 32, 0.40) 0%, rgba(232, 168, 32, 0.14) 38%, rgba(232, 168, 32, 0) 68%),
    radial-gradient(ellipse 120% 90% at 50% 32%, rgba(120, 190, 210, 0.30) 0%, rgba(60, 140, 160, 0.12) 50%, rgba(20, 80, 95, 0.35) 100%),
    var(--teal) url("assets/hero-texture.jpg") center / cover;
  color: var(--cream-bright);
  text-align: center;
  padding: 4.5rem 1.5rem 0;
  overflow: hidden;
}

.hero-inner { position: relative; }

.hero-kicker {
  font-family: var(--font-slab);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 1px 3px rgba(9, 34, 46, 0.55), 0 2px 14px rgba(9, 34, 46, 0.45);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

/* triple speed-lines, borrowed from the neon variation */
.speedline {
  display: inline-block;
  width: 44px;
  height: 14px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 1px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 6px / 72% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 11px / 100% 2px no-repeat;
  opacity: 0.8;
}

.hero-kicker .speedline:last-child { transform: scaleX(-1); }

/* twinkling four-point sparks */
.sparks { position: absolute; inset: 0; pointer-events: none; }

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--cream);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  opacity: 0.35;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}

.spark.s1 { top: 12%; left: 7%;  width: 12px; height: 12px; animation-delay: 0s; }
.spark.s2 { top: 30%; left: 15%; width: 9px;  height: 9px;  animation-delay: 1.2s; }
.spark.s3 { top: 65%; left: 5%;  width: 15px; height: 15px; animation-delay: 2.4s; }
.spark.s4 { top: 12%; right: 9%; width: 16px; height: 16px; background: var(--gold); animation-delay: 0.6s; }
.spark.s5 { top: 42%; right: 5%; width: 10px; height: 10px; animation-delay: 3s; }
.spark.s6 { top: 74%; right: 13%; width: 12px; height: 12px; animation-delay: 1.8s; }
.spark.s7 { top: 84%; left: 22%; width: 9px; height: 9px; background: var(--gold); animation-delay: 3.8s; }
.spark.s8 { top: 6%;  left: 38%; width: 10px; height: 10px; animation-delay: 2s; }

@keyframes twinkle {
  0%   { opacity: 0.12; transform: scale(0.7); }
  55%  { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.2;  transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; opacity: 0.3; }
}

.hero-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding-bottom: 4.5rem;
}

.banner {
  width: min(530px, 86vw);
  height: auto;
  margin-bottom: 2.5rem;
  filter:
    drop-shadow(0 0 22px rgba(224, 75, 51, 0.30))
    drop-shadow(0 0 55px rgba(232, 168, 32, 0.16));
}

.hero h1 {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(9, 34, 46, 0.45), 0 4px 22px rgba(9, 34, 46, 0.35);
}

.hero h1 .accent { color: var(--gold-bright); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  color: var(--cream-bright);
  text-shadow: 0 1px 3px rgba(9, 34, 46, 0.5), 0 2px 12px rgba(9, 34, 46, 0.35);
}

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

/* Gold/red/cream stripe under the hero, like a pennant trim */
.hero-stripe {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 80px,
    var(--red) 80px 160px,
    var(--cream) 160px 240px
  );
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  transition: transform 120ms ease, background 120ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--cream-bright);
  text-shadow: 0 1px 2px rgba(90, 15, 5, 0.4);
  box-shadow: 0 4px 0 var(--red-dark), 0 8px 22px rgba(9, 34, 46, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 0 var(--red-dark), 0 8px 22px rgba(9, 34, 46, 0.35), 0 0 24px rgba(224, 75, 51, 0.5);
}

.btn-ghost {
  color: var(--cream-bright);
  border: 3px solid var(--cream-bright);
  background: rgba(9, 34, 46, 0.22);
  text-shadow: 0 1px 2px rgba(9, 34, 46, 0.5);
}

.btn-ghost:hover { background: rgba(9, 34, 46, 0.38); }

.btn-cream {
  background: var(--cream-bright);
  color: var(--red-dark);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.btn-cream:hover {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 0 26px rgba(253, 246, 232, 0.45);
}

.fine-print {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(253, 246, 232, 0.85);
  max-width: 34rem;
  margin: 1.75rem auto 0;
}

/* ---------- Sections ---------- */

.section { padding: 5rem 1.5rem; }

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.section-inner.narrow { max-width: 46rem; }

.section-inner.center { text-align: center; }

.kicker {
  font-family: var(--font-slab);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

/* speed-line accent on every section kicker, drawn in the kicker's own color */
.kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 12px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 72% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
  opacity: 0.75;
}

.center .kicker::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 12px;
  margin-left: 0.8rem;
  vertical-align: middle;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 72% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
  opacity: 0.75;
  transform: scaleX(-1);
}

.kicker-gold { color: var(--gold); }
.kicker-cream { color: var(--cream); }

.section h2 {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.25;
  color: var(--teal-dark);
  margin-bottom: 1.4rem;
}

.section p { margin-bottom: 1.1rem; }

.pullquote {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.4;
  color: var(--red);
  margin-top: 2rem;
}

.pullquote::before {
  content: "\2726";
  display: block;
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Why section stat tiles */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 2.5rem;
  margin: 2.75rem 0 2.5rem;
}

.stat {
  border-top: 4px solid var(--gold);
  padding-top: 1.1rem;
}

.stat-num {
  font-family: var(--font-slab);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.stat p {
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.stats-bridge {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin: 3rem 0 0.25rem;
}

.stats-prose {
  max-width: 46rem;
}

.sources {
  font-size: 0.85rem;
  color: rgba(34, 51, 59, 0.7);
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.sources a {
  color: var(--teal-dark);
}

/* Your Story section: deeper cream band to set it apart */

.section-story {
  background: var(--cream);
}

.section-story .btn {
  margin-top: 0.75rem;
}

/* Teal section (What We Do) */

.section-teal {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 130% 100% at 50% 0%, rgba(29, 100, 120, 0) 40%, rgba(12, 45, 58, 0.55) 100%),
    var(--teal);
}

/* a pair of quiet sparks in the deep sections */
.section-teal::before,
.section-teal::after,
.section-red::before,
.section-red::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  background: var(--cream);
  opacity: 0.3;
  animation: twinkle 6.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.section-teal::before { top: 18%; left: 6%; background: var(--gold); animation-delay: 1s; }
.section-teal::after  { bottom: 14%; right: 7%; animation-delay: 3.2s; }
.section-red::before  { top: 22%; left: 9%; animation-delay: 0.4s; }
.section-red::after   { top: 30%; right: 8%; width: 16px; height: 16px; background: var(--gold); animation-delay: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  .section-teal::before, .section-teal::after,
  .section-red::before, .section-red::after { animation: none; opacity: 0.25; }
}

.section-teal .on-teal {
  color: var(--cream-bright);
  text-shadow: 0 1px 3px rgba(9, 34, 46, 0.4);
}

.section-teal .kicker-gold { color: var(--gold-bright); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--cream-bright);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border-top: 6px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), 0 0 26px rgba(232, 168, 32, 0.28);
}

.card-num {
  font-family: var(--font-slab);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.card-num::before {
  content: "\2726";
  margin-right: 0.45rem;
}

.card h3 {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.card p { margin-bottom: 0; font-size: 1rem; }

/* Red section (Get Involved) */

.section-red {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 100% at 50% 15%, rgba(255, 235, 210, 0.10) 0%, rgba(140, 30, 15, 0.25) 100%),
    var(--red);
}

.section-red .on-red { color: var(--cream-bright); }

.on-red-sub {
  color: var(--cream-bright);
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  text-shadow: 0 1px 2px rgba(120, 25, 10, 0.4);
}

/* ---------- Footer ---------- */

.footer {
  background:
    radial-gradient(ellipse 130% 120% at 50% 0%, rgba(29, 100, 120, 0.35) 0%, rgba(9, 34, 46, 0.55) 100%),
    var(--teal-dark);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.footer .wordmark-script { font-size: 2rem; }

.footer .wordmark-slab { color: var(--gold); }

.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.footer-tagline::before,
.footer-tagline::after {
  content: "\2726";
  font-family: var(--font-body);
  font-size: 0.9rem;
  vertical-align: middle;
  opacity: 0.8;
}

.footer-tagline::before { margin-right: 0.7rem; }
.footer-tagline::after { margin-left: 0.7rem; }

.footer p { margin: 0.2rem 0; }

.footer-fine {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
  }

  .topnav { justify-content: center; gap: 1rem; }

  .section { padding: 3.5rem 1.25rem; }
}
