/* ═══════════════════════════════════════════════════════
   Matt Losak for County Council — Shared Styles
   Fonts: DM Serif Display (headings) + Outfit (body)
   ═══════════════════════════════════════════════════════ */

:root {
  --blue: #4A6CF7;
  --blue-dark: #3451C7;
  --blue-deep: #1A2A6C;
  --navy: #0C1333;
  --sky: #E8EDFF;
  --white: #FFFFFF;
  --warm: #F8F6F3;
  --text: #2A2A3C;
  --text-light: #6B6B80;
  --accent: #FF6B35;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--warm);
  overflow-x: hidden;
}

/* ═══════════════ NAV ═══════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(12, 19, 51, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 3rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: white;
  transition: all 0.3s;
}

.nav-monogram:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.08);
}

.nav-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #e85a28 !important; transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  padding: 1rem 2.2rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 108, 247, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #e85a28;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.btn-dark:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

/* ═══════════════ TICKER ═══════════════ */
.ticker {
  background: var(--blue);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

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

.ticker-item {
  white-space: nowrap;
  padding: 0 3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ticker-item span {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--navy);
  padding: 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-left .nav-monogram {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  border-color: rgba(255,255,255,0.2);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: white; }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.footer-social a:hover { color: white; }

.disclaimer {
  text-align: center;
  padding: 1.5rem 5rem;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════ SECTION HELPERS ═══════════════ */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-label.light { color: var(--accent); }

/* ═══════════════ PAGE HEADER (inner pages) ═══════════════ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 50%, var(--blue-dark) 100%);
  padding: 10rem 5rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(74, 108, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  font-weight: 300;
  max-width: 550px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 19, 51, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
  }
  .nav-toggle { display: block; }
  .page-header { padding: 8rem 2rem 3rem; }
  footer { flex-direction: column; gap: 1.5rem; padding: 2rem; }
  .disclaimer { padding: 1.5rem 2rem; }
}

@media (max-width: 768px) {
  .page-header h1 { font-size: 2rem; }
}
