/* ═══════════════════════════════════════════════════════
   UPTOWN COMMUNITY PLANNING GROUP — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --navy:    #1c2b4a;
  --navy-dk: #141e35;
  --navy-md: #253557;
  --navy-lt: #2e4170;
  --bg:      #e4e9f0;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,.55);
  --text-mid:#4a5e78;
  --rule:    #d0d8e4;
  --pill-bg: rgba(255,255,255,.09);
  --pill-border: rgba(255,255,255,.18);
  --radius-pill: 14px;
  --radius-card: 22px;
  --terra:   #c0703a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text .city {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a8fa8;
}

.brand-text .org {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.1rem;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--bg); color: var(--navy); }
.nav-links a.active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem clamp(1.25rem, 5vw, 2.5rem);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid #e8edf3;
}

.mobile-menu a:last-child { border-bottom: none; }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 0.55rem 0;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.1rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HERO ── */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid #b0bdd0;
  background: transparent;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-decoration: none;
  cursor: default;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

a.hero-badge:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.65); }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-lt); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.22); }

/* ── MAIN ── */
main {
  flex: 1;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 8vw, 6rem);
}

.content-wrap { max-width: 960px; margin: 0 auto; }

.section { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.section-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

/* ── DARK CARD ── */
.card-dark {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
}

.card-mid {
  background: var(--navy-md);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.card-light {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1.5px solid var(--rule);
}

.card-dark .section-label,
.card-mid .section-label { color: var(--muted); }

.card-dark .section-title,
.card-mid .section-title { color: var(--white); }

.card-dark p,
.card-mid p { color: rgba(255,255,255,.65); line-height: 1.65; }

/* ── PILL LIST ── */
.pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  margin-top: 1.25rem;
}

.pill-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--pill-bg);
  border: 1.5px solid var(--pill-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
  gap: 0.75rem;
}

.pill-item a:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  transform: translateX(4px);
}

.pill-left { display: flex; flex-direction: column; gap: 0.15rem; }
.pill-name { font-weight: 600; font-size: 0.95rem; color: var(--white); line-height: 1.2; }
.pill-sub  { font-size: 0.72rem; color: rgba(255,255,255,.45); }

.pill-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.pill-item a:hover .pill-arrow {
  background: rgba(255,255,255,.22);
  transform: translateX(3px);
}

.pill-arrow svg {
  width: 12px;
  height: 12px;
  stroke: rgba(255,255,255,.8);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── TWO-COLUMN GRID ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.col-wide { grid-column: 1 / -1; }

/* ── ENTRANCE ANIMATION ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.55);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 2.5rem);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }

.footer-logo { width: 32px; height: 32px; opacity: 0.7; }
.footer-logo svg { width: 100%; height: 100%; filter: brightness(0) invert(1); }

.footer-org {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  line-height: 1.3;
}

.footer-tag { font-size: 0.78rem; line-height: 1.6; max-width: 300px; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,.25);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 960px;
  margin-inline: auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .col-wide { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem 1.25rem; }
}

/* ── Social media footer row ── */
.footer-social {
  max-width: 960px;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-social .social-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.social-icon:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px; height: 16px;
  fill: rgba(255,255,255,.65);
  transition: fill 0.18s;
}

.social-icon:hover svg { fill: var(--white); }

.footer-copy { border-top: none; margin-top: 1.25rem; }
