@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   PRESIDENTIAL CORE BRAND VARIABLE TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --brand-navy: #050B14;
  --brand-navy-light: #0B1424;
  --brand-gold: #E5B25D;
  --brand-gold-rgb: 229, 178, 93;
  --brand-green: #217C46;
  --brand-green-rgb: 33, 124, 70;
  --brand-red: #D92D20;
  --brand-red-rgb: 217, 45, 32;
  --brand-white: #FFFFFF;
  --brand-slate-light: #F8F9FA;
  --brand-slate-border: rgba(15, 23, 42, 0.08);
  
  /* Fonts */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Glass Systems */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(229, 178, 93, 0.2);
  --glass-shadow: 0 8px 32px rgba(5, 11, 20, 0.05), 0 0 1px rgba(5, 11, 20, 0.05);
  
  /* Contrast helpers */
  --color-heading: #0F172A;
  --color-body: #334155;
  --color-muted: #64748B;
}

html.dark {
  --glass-bg: rgba(8, 16, 28, 0.72);
  --glass-border: rgba(229, 178, 93, 0.16);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(229, 178, 93, 0.06);
  
  --color-heading: #FFFFFF;
  --color-body: #E2E8F0;
  --color-muted: #94A3B8;
}

/* ==========================================================================
   GLOBAL RESET & FONTS OVERWRITES
   ========================================================================== */
.font-sans, body {
  font-family: var(--font-sans) !important;
}

.font-heading, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.serif-heading {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   PREMIUM GLASSMORPHIC SURFACES
   ========================================================================== */
.ec-land-glass {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: var(--color-body);
}

.ec-land-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-gold-rgb), 0.35) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 32px rgba(var(--brand-gold-rgb), 0.15) !important;
}

/* Specific Glass variants for Light mode styling override */
html.light .ec-land-glass {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

html.light .ec-land-glass:hover {
  border-color: rgba(var(--brand-green-rgb), 0.25) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 12px rgba(var(--brand-green-rgb), 0.05) !important;
}

/* ==========================================================================
   ASYNCHRONOUS BACKGROUND & ATMOSPHERE
   ========================================================================== */
body {
  background-color: var(--brand-navy);
  color: var(--color-body);
}

html.light body {
  background-color: var(--brand-slate-light);
}

/* Custom Backdrop mesh layer */
.ec-land-bg {
  background: radial-gradient(circle at 10% 20%, rgba(11, 20, 36, 0.95), transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(5, 11, 20, 1), transparent 60%);
  background-size: cover;
}

html.light .ec-land-bg {
  background: radial-gradient(circle at 10% 20%, #F5F3EF, transparent 50%),
              radial-gradient(circle at 90% 80%, #FCFAF7, transparent 50%);
  background-color: #FAF9F6;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.ec-land-header {
  border-bottom: 1px solid rgba(var(--brand-gold-rgb), 0.15) !important;
  background: rgba(8, 16, 28, 0.85) !important;
  backdrop-filter: blur(20px);
}

html.light .ec-land-header {
  border-bottom: 1px solid var(--brand-slate-border) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

/* Nav Item Hover States */
.ec-land-header nav a {
  position: relative;
  transition: color 250ms ease;
  color: var(--color-muted) !important;
}

.ec-land-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-gold);
  transition: width 250ms ease;
}

.ec-land-header nav a:hover {
  color: var(--color-heading) !important;
}

.ec-land-header nav a:hover::after {
  width: 100%;
}

html.light .ec-land-header nav a:hover::after {
  background-color: var(--brand-green);
}

/* ==========================================================================
   HERO LAYOUT SYSTEM
   ========================================================================== */
.ec-land-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 0rem 0;
}

@media (max-width: 1024px) {
  .ec-land-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* Hero logo strip — full grid row above copy + globe; does not affect column layout */
.ec-land-hero-logos {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 10;
}

.ec-land-hero-copy {
  grid-column: 1;
  grid-row: 2;
}

.ec-land-hero-globe {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 1024px) {
  .ec-land-hero-logos {
    margin-bottom: 0.5rem;
  }

  .ec-land-hero-copy,
  .ec-land-hero-globe {
    grid-column: 1;
  }

  .ec-land-hero-copy {
    grid-row: 2;
  }

  .ec-land-hero-globe {
    grid-row: 3;
  }
}

.ec-land-hero-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.ec-land-hero-logo--campaign {
  /* width: clamp(3.25rem, 8vw, 5.5rem);
  height: clamp(3.25rem, 8vw, 5.5rem); */
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ec-land-hero-logo--party {
  /* width: clamp(3rem, 7vw, 5rem);
  height: auto; */
  /* max-height: clamp(2.75rem, 6.5vw, 4.5rem); */
  object-fit: contain;
  border-radius: 10%;
  filter: drop-shadow(0 6px 16px rgba(0, 135, 81, 0.2));
}

html.dark .ec-land-hero-logo--campaign {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Elegant floating brand badge */
.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--brand-gold-rgb), 0.3);
  background: rgba(var(--brand-gold-rgb), 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(var(--brand-gold-rgb), 0.05);
  margin-top: 0;
}

html.light .hero-brand-badge {
  border-color: rgba(var(--brand-green-rgb), 0.25);
  background: rgba(var(--brand-green-rgb), 0.05);
  color: var(--brand-green);
}

/* Action button design with glows */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-premium-primary {
  background: linear-gradient(135deg, var(--brand-red), #F04438);
  color: white !important;
  border: 1px solid rgba(var(--brand-red-rgb), 0.3);
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--brand-red-rgb), 0.45);
  filter: brightness(1.05);
}

.btn-premium-secondary {
  background: transparent;
  color: var(--color-heading) !important;
  border: 1px solid rgba(var(--color-heading), 0.18);
  backdrop-filter: blur(10px);
}

.btn-premium-secondary:hover {
  transform: translateY(-2px);
  background: rgba(var(--color-heading), 0.05);
  border-color: rgba(var(--color-heading), 0.35);
}

.btn-premium-gold {
  background: linear-gradient(135deg, rgba(var(--brand-gold-rgb), 0.12), rgba(var(--brand-gold-rgb), 0.05));
  color: var(--brand-gold) !important;
  border: 1px solid rgba(var(--brand-gold-rgb), 0.35);
  backdrop-filter: blur(10px);
}

.btn-premium-gold:hover {
  transform: translateY(-2px);
  background: rgba(var(--brand-gold-rgb), 0.2);
  box-shadow: 0 10px 24px rgba(var(--brand-gold-rgb), 0.2);
}

html.light .btn-premium-gold {
  color: #8A651E !important;
  border-color: rgba(138, 101, 30, 0.4);
}

/* Dynamic Scroll Indicator */
.ec-land-scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 250ms ease;
}

.ec-land-scroll-down:hover {
  color: var(--brand-gold);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-muted);
  border-radius: 9999px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 6px;
  background-color: var(--brand-gold);
  border-radius: 9999px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes mouse-scroll-wheel {
  0% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* ==========================================================================
   OFFLINE INTERACTIVE SVG NEURAL MAP FALLBACK
   ========================================================================== */
.tactical-map-container {
  width: 100%;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  background: radial-gradient(circle at center, rgba(11, 20, 36, 0.7), rgba(5, 11, 20, 0.95));
}

html.light .tactical-map-container {
  background: radial-gradient(circle at center, rgba(255,255,255,0.7), #EBE8E2);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.06);
}

.tactical-fallback-svg {
  width: 90%;
  height: 90%;
  max-width: 580px;
}

/* Pulsing node animation */
.tactical-node {
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tactical-node:hover {
  filter: brightness(1.2) drop-shadow(0 0 16px rgba(var(--brand-gold-rgb), 0.8));
}

.pulse-ring {
  transform-origin: center;
  animation: pulse-hotspot 2.5s infinite ease-out;
}

@keyframes pulse-hotspot {
  0% { transform: scale(0.6); opacity: 1; stroke-width: 6px; }
  100% { transform: scale(2.8); opacity: 0; stroke-width: 0.5px; }
}

/* Custom interactive state tooltip */
.tactical-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(5, 11, 20, 0.95);
  border: 1px solid rgba(var(--brand-gold-rgb), 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(var(--brand-gold-rgb), 0.15);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.75rem;
  z-index: 100;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -100%) scale(0.9);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 200px;
  backdrop-filter: blur(10px);
}

.tactical-tooltip-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
}

.tactical-tooltip-stat {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.tactical-tooltip-stat strong {
  color: var(--brand-gold);
}

/* ==========================================================================
   THEME SWITCH COMPONENT (HEADER)
   ========================================================================== */
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--brand-gold-rgb), 0.12);
  border: 1px solid rgba(var(--brand-gold-rgb), 0.25);
  color: var(--brand-gold);
  cursor: pointer;
  transition: all 250ms ease;
}

.theme-switch-btn:hover {
  background: rgba(var(--brand-gold-rgb), 0.2);
  transform: scale(1.05);
}

html.light .theme-switch-btn {
  background: rgba(var(--brand-green-rgb), 0.08);
  border-color: rgba(var(--brand-green-rgb), 0.2);
  color: var(--brand-green);
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.sparkline-svg {
  width: 100%;
  height: 40px;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-sparkline 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes draw-sparkline {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   VISION PILLARS SECTION
   ========================================================================== */
.pillar-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--brand-gold-rgb), 0.12);
  border: 1px solid rgba(var(--brand-gold-rgb), 0.25);
  color: var(--brand-gold);
  margin-bottom: 1.2rem;
}

html.light .pillar-icon-container {
  background: rgba(var(--brand-green-rgb), 0.08);
  border-color: rgba(var(--brand-green-rgb), 0.25);
  color: var(--brand-green);
}

/* ==========================================================================
   VOTER EDUCATION ACCORDIONS
   ========================================================================== */
.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary {
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-gold);
  transition: transform 250ms ease;
}

.faq-accordion[open] summary::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   SITUATION MONOSPACE TELEMETRY TICKER
   ========================================================================== */
.telemetry-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: rgba(5, 11, 20, 0.35);
  border: 1px solid rgba(255,255,255,0.04);
  font-family: 'Courier New', Courier, monospace;
}

html.light .telemetry-row {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.04);
}

.telemetry-time {
  font-weight: 700;
  color: var(--brand-gold);
}

.telemetry-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.telemetry-badge--info {
  background: rgba(110, 198, 232, 0.15);
  color: #6EC6E8;
  border: 1px solid rgba(110, 198, 232, 0.25);
}

.telemetry-badge--stable {
  background: rgba(33, 124, 70, 0.15);
  color: #52C480;
  border: 1px solid rgba(33, 124, 70, 0.25);
}

.telemetry-badge--warning {
  background: rgba(229, 178, 93, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(229, 178, 93, 0.25);
}

.telemetry-badge--danger {
  background: rgba(217, 45, 32, 0.15);
  color: #FF5E54;
  border: 1px solid rgba(217, 45, 32, 0.25);
}

/* ==========================================================================
   BREAKING NEWS ROLLING TICKER
   ========================================================================== */
.ec-news-ticker-container {
  display: flex;
  align-items: center;
  background: rgba(8, 16, 28, 0.8);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

html.light .ec-news-ticker-container {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
}

.ec-news-ticker-label {
  background: var(--brand-red);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 1.5rem;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(var(--brand-red-rgb), 0.35);
  flex-shrink: 0;
}

.ec-news-ticker-window {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ec-news-ticker-track-anim {
  display: inline-block;
  white-space: nowrap;
  animation: rolling-ticker-track 32s linear infinite;
  padding-left: 100%;
}

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

@keyframes rolling-ticker-track {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ec-news-ticker-item {
  display: inline-flex;
  align-items: center;
  color: var(--color-body);
  font-size: 0.825rem;
  font-weight: 500;
  margin-right: 3rem;
}

.ec-news-ticker-item::before {
  content: '✦';
  color: var(--brand-gold);
  margin-right: 0.75rem;
}

/* ==========================================================================
   TESTIMONIALS INTERACTIVE TRANSITIONS
   ========================================================================== */
.testimonials-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--brand-gold-rgb), 0.12);
  border: 1px solid rgba(var(--brand-gold-rgb), 0.25);
  color: var(--brand-gold);
  cursor: pointer;
  transition: all 250ms ease;
}

.testimonials-nav-btn:hover {
  background: rgba(var(--brand-gold-rgb), 0.2);
  transform: scale(1.08);
}

/* ==========================================================================
   SYSTEM TELEMETRY DISPLAY (FOOTER)
   ========================================================================== */
.footer-system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(33, 124, 70, 0.12);
  border: 1px solid rgba(33, 124, 70, 0.35);
  color: #52C480;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(33, 124, 70, 0.05);
}

.footer-system-dot {
  width: 6px;
  height: 6px;
  background-color: #52C480;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #52C480;
  animation: pulse-telemetry-dot 2s infinite ease-in-out;
}

@keyframes pulse-telemetry-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

/* ==========================================================================
   TYPOGRAPHY CONTRAST ADJUSTMENTS
   ========================================================================== */
html.dark .text-slate-900,
html.dark .text-slate-800 {
  color: #FFFFFF !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
  color: #94A3B8 !important;
}

html.light .text-white {
  color: #0F172A !important;
}

html.light .text-white\/70,
html.light .text-white\/65,
html.light .text-white\/60,
html.light .text-white\/55,
html.light .text-white\/50 {
  color: #475569 !important;
}

/* WCAG Contrast Fixes for Light Theme Subheadings & Small Elements */
html.light .text-slate-500,
html.light .text-slate-400 {
  color: #475569 !important;
}

html.light .text-slate-600 {
  color: #334155 !important;
}

html.light .text-emerald-400,
html.light .text-emerald-500 {
  color: #166534 !important; /* Rich readable dark green */
}

html.light p.text-slate-500,
html.light p.text-slate-400 {
  color: #334155 !important;
}

/* Theme-reactive color variables for interactive SVG maps labels */
.tactical-node text {
  fill: #FFFFFF !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.05em !important;
}

html.light .tactical-node text {
  fill: #0F172A !important;
}
