/* ============================================================
   Alabama Progress — Deep Civic Blue + Gold
   Flat / geometric single-page site
   ============================================================ */

:root {
  /* Palette */
  --navy-900: #081F38;   /* deepest */
  --navy-800: #0B2A4A;   /* base navy */
  --navy-700: #11365E;   /* panel navy */
  --sky:      #2F86E0;   /* accent, shifted toward the logo's blue */
  --sky-soft: #62A9EE;
  --logo-blue:#2A7DE1;   /* logo blue (handshake) */
  --logo-red: #E23744;   /* logo red — used only as a whisper */
  --gold:     #F2B705;   /* gold accent */
  --gold-deep:#D89F00;
  --paper:    #F5F7FA;   /* light bg / text on dark */
  --paper-2:  #E9EEF4;
  --ink:      #0B2A4A;   /* text on light */
  --ink-soft: #3E5572;

  /* Type */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-900);
  padding: .6rem 1rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Brand mark — echoes the logo's red→blue gradient ---------- */
.brand-mark {
  display: inline-block;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--logo-red) 0%, var(--logo-blue) 100%);
  position: relative;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
/* small up-left chevron inside, nodding to the logo's rising arrows */
.brand-mark::before {
  content: "";
  position: absolute;
  top: 53%; left: 50%;
  width: 8px; height: 8px;
  border-top: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.brand-mark.small { width: 34px; height: 34px; margin: 0 auto .9rem; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8, 31, 56, 0);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 31, 56, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
  font-size: 1.08rem;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.7rem);
  list-style: none;
}
.primary-nav a {
  color: rgba(245,247,250,.82);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .2rem;
  position: relative;
  transition: color .2s var(--ease);
}
.primary-nav a:hover { color: var(--paper); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a.active::after { width: 100%; }
.primary-nav a.active { color: var(--paper); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-900) !important;
  font-weight: 600;
  padding: .5rem 1.1rem !important;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ PANELS (shared) ============ */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  min-height: 86vh;
}
.panel-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

/* Light panels */
.panel-light { background: var(--paper); color: var(--ink); }
.panel-light:nth-of-type(even) { background: var(--paper-2); }

/* Deep panel */
.panel-deep {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--paper);
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(45,156,219,.28), transparent 60%),
    linear-gradient(165deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--paper);
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 3rem);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}
.hero-title .accent {
  color: var(--sky-soft);
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .07em;
  background: var(--gold);
  border-radius: 3px;
  transform-origin: left center;
}

/* ---- Hero on-load entrance (polished, staggered) ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-logo,
  .hero .eyebrow,
  .hero .hero-title,
  .hero .lead,
  .hero .hero-actions {
    opacity: 0;
    animation: heroUp .7s var(--ease) both;
  }
  .hero .hero-logo    { animation-delay: 0s; }
  .hero .eyebrow      { animation-delay: .12s; }
  .hero .hero-title   { animation-delay: .22s; }
  .hero .lead         { animation-delay: .36s; }
  .hero .hero-actions { animation-delay: .48s; }

  .hero-title .accent::after {
    transform: scaleX(0);
    animation: underlineSweep .6s var(--ease) .7s both;
  }
  .hero .scroll-cue { animation: fadeIn .7s var(--ease) 1.1s both; }
}

/* ---- Logo lockup (assets/logo.png) — white badge so the logo's
   own white background reads as intentional on dark surfaces ---- */
.logo-badge {
  display: inline-block;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  line-height: 0;
  box-shadow: 0 14px 34px rgba(8,31,56,.28);
}
.logo-badge img { display: block; height: auto; }
.hero-logo { margin-bottom: 1.5rem; }
.hero-logo img { width: 88px; }
.footer-logo { margin: 0 auto 1.3rem; }
.footer-logo img { width: 132px; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes underlineSweep { to { transform: scaleX(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lead {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: rgba(245,247,250,.86);
  max-width: 60ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(242,183,5,.25);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242,183,5,.32); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245,247,250,.35);
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn-lg { font-size: clamp(.95rem, 2.4vw, 1.18rem); padding: 1rem 2rem; word-break: break-word; }

/* ============ SECTION TEXT ============ */
.section-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 1.1rem;
}
.section-eyebrow.gold { color: var(--gold); }
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
  max-width: 22ch;
}
.section-body {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  max-width: 62ch;
  color: var(--ink-soft);
}
.panel-deep .section-body { color: rgba(245,247,250,.85); }

/* ============ VALUES LIST ============ */
.values-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 2.4rem;
  max-width: 760px;
}
.values-grid li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid rgba(11,42,74,.08);
  border-left: 4px solid var(--sky);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  font-weight: 500;
  font-size: 1.08rem;
  box-shadow: 0 2px 10px rgba(11,42,74,.04);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.values-grid li:has(.tag.anti) { border-left-color: var(--gold-deep); }
.values-grid li:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(11,42,74,.10);
}
.tag {
  flex: none;
  width: 64px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .4rem .55rem;
  border-radius: 6px;
  line-height: 1;
}
.tag.pro  { background: rgba(45,156,219,.14); color: var(--sky); }
.tag.anti { background: rgba(216,159,0,.16); color: var(--gold-deep); }

/* ============ JOIN / CTA ============ */
.panel-cta {
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(242,183,5,.16), transparent 55%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--paper);
  text-align: center;
}
.join-inner { max-width: 640px; margin: 0 auto; }
.join-inner .section-title { margin-left: auto; margin-right: auto; }
.join-inner .section-body { margin: 0 auto 2.2rem; }

/* ============ GEOMETRIC SHAPES ============ */
.shape { position: absolute; z-index: 1; pointer-events: none; }
.shape-circle {
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(45,156,219,.35), transparent 70%);
  top: -120px; right: -120px;
}
.shape-circle.big {
  width: 540px; height: 540px;
  background: radial-gradient(circle at 50% 50%, rgba(242,183,5,.14), transparent 70%);
  bottom: -200px; left: -160px; top: auto; right: auto;
}
.shape-ring {
  width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(242,183,5,.22);
  bottom: 8%; left: -90px;
}
.shape-bar {
  width: 6px; height: 180px;
  background: linear-gradient(var(--gold), var(--sky));
  border-radius: 6px;
  top: 22%; right: 8%;
  opacity: .8;
}
.shape-diagonal {
  width: 360px; height: 360px;
  background: linear-gradient(135deg, rgba(45,156,219,.16), transparent 60%);
  transform: rotate(20deg);
  top: -80px; left: -80px;
  border-radius: 32px;
}
.shape-square {
  width: 150px; height: 150px;
  border: 3px solid rgba(45,156,219,.18);
  border-radius: 20px;
  transform: rotate(14deg);
  bottom: 10%; right: 6%;
}

/* ============ SCROLL CUE ============ */
.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(245,247,250,.4);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ============ REVEAL ON SCROLL ============ */
.reveal .panel-inner > * {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.in-view .panel-inner > * {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view .panel-inner > *:nth-child(2) { transition-delay: .07s; }
.reveal.in-view .panel-inner > *:nth-child(3) { transition-delay: .14s; }
.reveal.in-view .panel-inner > *:nth-child(4) { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal .panel-inner > * { opacity: 1 !important; transform: none !important; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-900);
  color: rgba(245,247,250,.7);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--paper);
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.footer-tag { color: var(--gold); font-size: .95rem; margin: .2rem 0 1.3rem; }
.footer-copy { font-size: .82rem; opacity: .7; }

/* ============ RESPONSIVE / MOBILE NAV ============ */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(8,31,56,.98);
    backdrop-filter: blur(10px);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem 1.1rem 1.4rem;
  }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-nav a { display: block; padding: 1rem .2rem; font-size: 1.05rem; }
  .primary-nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; }
  .shape-circle, .shape-circle.big { opacity: .6; }
}
