/* ==========================================================================
   ALABAMA DRIVES FWD - shared styles
   Used by index.html and news.html
   ========================================================================== */

:root {
  /* Palette matched to the Alabama Drives FWD logo */
  --black: #000000;   /* "ALABAMA DRIVES" wordmark */
  --red: #ee0c16;     /* Alabama state silhouette */
  --blue: #25b1f3;    /* "FWD" */
  --dark: #222222;    /* body text */
  --light: #f2f2f2;
  --panel: #f0f0f0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f4f4;
  color: var(--dark);
  font-family: "effra-cc", Arial, Helvetica, sans-serif;
  line-height: 1.25;
}

.page {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: var(--white);
  padding: 34px 32px 30px;
  min-height: 100vh;
}

.page img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Header: nav link + social icons, then the logo
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 0 0 14px;
}

.nav-link {
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--red);
  transition: color .15s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--red); }

.nav-link[aria-current="page"] { color: var(--red); }

.logo-link { display: block; }

.social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: background .15s ease;
}

.social a:hover,
.social a:focus-visible { background: var(--red); }

.social svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Footer version: white icons on the black bar, red on hover */
.social-footer {
  justify-content: center;
  margin: 0;
  padding: 4px 20px 16px;
  background: var(--black);
  border-bottom: 5px solid var(--red);
}

.social-footer a {
  background: transparent;
  color: var(--white);
  transition: color .15s ease;
}

.social-footer a:hover,
.social-footer a:focus-visible {
  background: transparent;
  color: var(--red);
}

.social-footer svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Text hero (alternative to the logo image)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 24px 32px 18px 132px;
  border-bottom: 5px solid var(--red);
  overflow: hidden;
}

.state-shape {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 92px;
  height: 150px;
  background: var(--red);
  clip-path: polygon(14% 0, 88% 0, 99% 63%, 94% 67%, 100% 72%, 89% 78%, 82% 100%, 67% 96%, 53% 100%, 39% 95%, 25% 99%, 22% 82%, 0 82%, 8% 0);
  transform: rotate(-1deg);
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 7vw, 78px);
  line-height: .9;
  letter-spacing: -3px;
  text-transform: uppercase;
  font-weight: 900;
}

h1 .fwd {
  color: var(--blue);
  font-style: italic;
  letter-spacing: -4px;
}

.chevrons { color: var(--blue); letter-spacing: -10px; }

.tagline {
  margin-top: 9px;
  font-size: clamp(20px, 2.8vw, 29px);
  font-style: italic;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Section ribbon
   -------------------------------------------------------------------------- */

.section-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 25px 0 40px;
}

/* Tighter gap when the ribbon sits directly above body copy */
.section-ribbon.tight { margin-bottom: 28px; }

.section-ribbon h2 {
  position: relative;
  margin: 0;
  background: var(--black);
  color: var(--white);
  padding: 8px 34px 8px 20px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

.section-ribbon h2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -18px;
  width: 18px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 1;
}

.section-ribbon .line {
  flex: 1;
  height: 4px;
  background: var(--red);
  margin-left: 16px; /* tucks under the arrow tip so there's no gap */
}

/* --------------------------------------------------------------------------
   Home page: intro, stats, panels
   -------------------------------------------------------------------------- */

.intro {
  max-width: 940px;
  margin: 28px auto 18px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 27px);
}

.intro strong { font-weight: 800; color: var(--black); }
.intro em { font-weight: 800; color: var(--red); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 38px;
  padding: 0 18px 34px;
  text-align: center;
}

.stat-value {
  color: var(--blue);
  font-size: clamp(46px, 7vw, 76px);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -3px;
  font-style: italic;
}

.stat-value .small { font-size: .55em; vertical-align: .28em; letter-spacing: -1px; }

.stat-label {
  margin-top: 5px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.02;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 4px;
}

.panel {
  background: var(--panel);
  min-height: 428px;
  border-top: 5px solid var(--red);
}

.panel h3 {
  margin: 0;
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1;
  padding: 10px 22px;
  font-weight: 900;
}

.panel ul {
  list-style: none;
  margin: 0;
  padding: 12px 22px 20px 38px;
}

.panel li {
  position: relative;
  margin: 0 0 15px;
  font-size: 20px;
  line-height: 1.18;
}

.panel li::before {
  content: "›";
  position: absolute;
  left: -23px;
  top: -10px;
  color: var(--red);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.panel li strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--black);
}

/* --------------------------------------------------------------------------
   News article
   -------------------------------------------------------------------------- */

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article h1 {
  margin: 0 0 14px;
  color: var(--black);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: .98;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  font-weight: 900;
}

.article h1 .accent { color: var(--red); }

.byline {
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--red);
  font-size: clamp(16px, 1.9vw, 20px);
  font-style: italic;
  line-height: 1.3;
}

.byline strong {
  font-style: normal;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.article h2 {
  margin: 40px 0 14px;
  color: var(--black);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.5px;
  font-weight: 900;
}

.article h2 .fwd {
  color: var(--blue);
  font-style: italic;
}

.article p {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.95vw, 21px);
  line-height: 1.45;
}

.article p strong { font-weight: 800; color: var(--black); }

.pull {
  margin: 30px 0;
  padding: 18px 0 18px 24px;
  border-left: 6px solid var(--blue);
  background: var(--panel);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.16;
  font-weight: 800;
  color: var(--black);
}

.ladder {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  border-top: 3px solid var(--red);
}

.ladder li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid #ddd;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.15;
}

.ladder li::before {
  content: "›";
  position: absolute;
  left: 6px;
  top: 2px;
  color: var(--red);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.ladder li strong {
  font-weight: 900;
  color: var(--black);
}

.kicker {
  margin: 30px 0 0;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: -1px;
}

.kicker .hit { color: var(--red); font-style: italic; }

.sources {
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 3px solid var(--red);
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
  color: #555;
}

.sources strong {
  font-style: normal;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.back-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  border-bottom: 3px solid var(--red);
  padding-bottom: 2px;
}

.back-link:hover,
.back-link:focus-visible { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer: join / contact
   -------------------------------------------------------------------------- */

.join {
  margin: 28px 0 0;
  padding-top: 23px;
  border-top: 3px solid var(--red);
  text-align: center;
}

/* Extra breathing room when the footer follows body copy */
.join.spaced { margin-top: 42px; }

.join h2 {
  margin: 0 0 4px;
  color: var(--black);
  font-size: clamp(38px, 6vw, 63px);
  line-height: .95;
  text-transform: uppercase;
  font-weight: 900;
}

.join h2 .fwd {
  color: var(--blue);
  font-style: italic;
}

.join p {
  margin: 0 auto 22px;
  max-width: 900px;
  font-size: clamp(18px, 2.7vw, 28px);
  line-height: 1.18;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 11px 20px;
  font-size: clamp(14px, 2.5vw, 24px);
  flex-wrap: wrap;
}

.contact a {
  color: var(--white);
  text-decoration: none;
}

.contact a:hover { color: var(--blue); }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {
  .page { padding: 16px; }
  .topbar { gap: 12px; }
  .hero { padding: 26px 18px 18px; }
  .state-shape { opacity: .18; left: 10px; top: 10px; }
  h1 { letter-spacing: -2px; }
  .stats, .columns { grid-template-columns: 1fr 1fr; }
  .columns { gap: 18px; }
  .panel { min-height: auto; }
}

@media (max-width: 560px) {
  .topbar { justify-content: space-between; gap: 12px; }
  .nav-link { font-size: 15px; }
  .stats, .columns { grid-template-columns: 1fr; }
  .section-ribbon h2::after, .section-ribbon .line { display: none; }
  .section-ribbon h2 { width: 100%; padding-right: 20px; text-align: center; }
  .pull { padding-left: 16px; }
}

@media print {
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
