/* ── LELI DESIGN SYSTEM — Dalbert × CivicMakers ── */
:root {
  --ink:       #0d0f14;
  --paper:     #f9f8ff;
  --signal:    #e84b2f;
  --signal-lt: #fef0ed;
  --sage:      #3a5c4e;
  --sage-lt:   #eaf1ee;
  --gold:      #c9952a;
  --gold-lt:   #fdf4e3;
  --mist:      #e8e5de;
  --white:     #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', sans-serif;

  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   28px;
  --r-pill: 999px;

  --max: 1100px;
  --gutter: 5vw;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(249,248,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mist);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-dot {
  width: 9px; height: 9px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: .875rem; font-weight: 500; color: #555; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--signal) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 99;
}
.nav-drawer.open { display: block; }
.nav-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(13,15,20,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--ink);
  padding: 24px 0 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,.3);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-close {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
}
.nav-drawer-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--white); display: flex; align-items: center; gap: 10px;
}
.nav-drawer-logo-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }
.nav-drawer-x {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nav-drawer-x:hover { background: rgba(255,255,255,.16); }
.nav-drawer-x svg { width: 16px; height: 16px; color: var(--white); }
.nav-drawer-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
.nav-drawer-links a {
  padding: 14px 24px;
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.75);
  border-left: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.nav-drawer-links a:hover { color: var(--white); background: rgba(255,255,255,.05); border-left-color: rgba(255,255,255,.2); }
.nav-drawer-links a.active { color: var(--white); border-left-color: var(--signal); background: rgba(232,75,47,.1); }
.nav-drawer-cta { margin: 16px 24px 0; }
.nav-drawer-cta a {
  display: block; background: var(--signal); color: var(--white) !important;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 700; text-align: center;
  transition: background .2s; border-left: none !important;
}
.nav-drawer-cta a:hover { background: #c73010; }

/* ── SECTION BASE ── */
section { padding: 100px var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 16px;
}
.section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sage); flex-shrink: 0; }
.section-eyebrow.signal { color: var(--signal); }
.section-eyebrow.signal::before { background: var(--signal); }
.section-eyebrow.gold { color: var(--gold); }
.section-eyebrow.gold::before { background: var(--gold); }
.section-eyebrow.white { color: rgba(255,255,255,.7); }
.section-eyebrow.white::before { background: rgba(255,255,255,.4); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--signal) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-body {
  font-size: 1.05rem; color: #4a4a4a; line-height: 1.7;
  max-width: 640px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--signal); color: var(--white);
  padding: 15px 32px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 24px rgba(232,75,47,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,75,47,.38); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  transition: gap .2s;
}
.btn-secondary:hover { gap: 12px; }

.btn-dark {
  display: inline-block;
  background: var(--ink); color: var(--white);
  padding: 14px 30px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-dark:hover { background: var(--sage); transform: translateY(-1px); }

.btn-white {
  display: inline-block;
  background: var(--white); color: #a82800;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 700; text-align: center;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.15); }

.btn-ghost-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.5); color: var(--white);
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 600; text-align: center;
  transition: border-color .15s, background .15s;
}
.btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,.12); }

.btn-outline-sage {
  display: inline-block;
  border: 2px solid var(--sage); color: var(--sage);
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-outline-sage:hover { background: var(--sage); color: var(--white); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: var(--ink);
  padding: calc(80px + 5vw) 5vw clamp(7rem,12vw,9rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--paper);
  clip-path: ellipse(55% 100% at 50% 100%);
}
@media (max-width: 640px) {
  .page-hero { padding-bottom: calc(80px + 2rem); }
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .section-eyebrow { color: var(--gold); }
.page-hero .section-eyebrow::before { background: var(--gold); }
.page-hero .section-title { color: var(--white); }
.page-hero .section-body { color: rgba(255,255,255,.65); }
.page-hero-bg { position:absolute;right:0;top:50%;transform:translateY(-50%);font-family:var(--font-display);font-weight:800;font-size:clamp(6rem,18vw,14rem);color:rgba(255,255,255,.04);line-height:1;pointer-events:none;white-space:nowrap;letter-spacing:-.04em; }

/* ── DARK BAND ── */
.band-dark {
  background: var(--ink); color: var(--white);
  border-radius: var(--r-lg);
  margin: 0 3vw;
  padding: 80px 6vw;
}
@media (max-width: 640px) { .band-dark { margin: 0; border-radius: 0; padding: 56px var(--gutter); } }
.band-dark .section-title { color: var(--white); }
.band-dark .section-body { color: rgba(255,255,255,.7); }

/* ── SAGE BAND ── */
.band-sage {
  background: var(--sage); color: var(--white);
  border-radius: var(--r-lg);
  margin: 0 3vw;
  padding: 80px 6vw;
}
@media (max-width: 640px) { .band-sage { margin: 0; border-radius: 0; padding: 56px var(--gutter); } }
.band-sage .section-title { color: var(--white); }
.band-sage .section-body { color: rgba(255,255,255,.75); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #c03220 0%, #8f1f0f 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  margin: 0 3vw 80px;
  padding: 72px 8vw;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.025em;
}
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.9); margin-top: 12px; max-width: 500px; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cta-band { margin: 0 0 48px; border-radius: 0; padding: 52px var(--gutter); } }

/* ── TICKER ── */
.ticker {
  background: var(--ink); color: var(--white);
  padding: 14px 0; overflow: hidden;
  display: flex; width: 100%;
}
.ticker-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; flex-shrink: 0;
}
.ticker-dot { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── TAGS ── */
.tag {
  display: inline-block;
  padding: 5px 14px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--mist);
}
.tag-signal { background: var(--signal-lt); color: var(--signal); border-color: transparent; }
.tag-sage   { background: var(--sage-lt);   color: var(--sage);   border-color: transparent; }
.tag-gold   { background: var(--gold-lt);   color: var(--gold);   border-color: transparent; }

/* ── PARTNER BADGES ── */
.partner-badge {
  background: var(--white);
  border: 1.5px solid var(--mist);
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: .875rem; font-weight: 600; color: #555;
  transition: border-color .2s, color .2s;
}
.partner-badge:hover { border-color: var(--sage); color: var(--sage); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,.5);
  padding: 60px var(--gutter) 40px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand-dot { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }
.footer-brand p { font-size: .875rem; line-height: 1.65; max-width: 300px; }
.footer-col h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .8rem;
}
.footer-bottom a:hover { color: var(--white); }

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 14px var(--gutter); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 72px var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .nav-logo-dot { animation: none; }
  .fade-up { transition: none; opacity: 1; transform: none; }
}
