/* ════════════════════════════════════════════════════
   PANUKUPETA.FAMILY — Duolingo-Style Design System
   ════════════════════════════════════════════════════ */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');

/* ─── Design Tokens ─── */
:root {
  --color-ecto-green: #58cc02;
  --color-lingot-lime: #a5ed6e;
  --color-eel-light: #d7ffb8;
  --color-macaw-blue: #1cb0f6;
  --color-eel-dark-blue: #042c60;
  --color-midnight: #000437;
  --color-graphite: #3c3c3c;
  --color-ash: #777777;
  --color-charcoal: #4b4b4b;
  --color-paper: #ffffff;
  --color-ink: #000000;

  --font-primary: 'Nunito', ui-sans-serif, system-ui, sans-serif;

  --text-caption: 13px;
  --text-body: 15px;
  --text-heading-sm: 19px;
  --text-heading: 32px;
  --text-display: 64px;

  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-96: 96px;

  --radius: 12px;
  --section-gap: 100px;
  --page-max: 1200px;
}

/* ════════════════════════════════
   ROUTE ANIMATION BANNER
════════════════════════════════ */
.route-banner {
  width: 100%;
  background: var(--color-eel-dark-blue);
  position: relative;
  border-bottom: 3px solid var(--color-lingot-lime);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  max-height: 500px;
}
.route-banner.hidden {
  max-height: 0;
  opacity: 0;
  border: none;
  pointer-events: none;
}
.route-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
}

/* ── Route draw-on animation ── */
.route-draw-line {
  animation: drawRoute 5.5s ease-in-out forwards;
}
@keyframes drawRoute {
  0%   { stroke-dashoffset: 960; }
  100% { stroke-dashoffset: 0; }
}

/* Dashed line fades in with route */
.route-dashes {
  opacity: 0;
  animation: fadeIn 1s ease-in 2s forwards;
}

/* ── Via dots & labels appear progressively ── */
.via-dot {
  animation: popIn 0.4s ease-out forwards;
}
.via-label {
  animation: fadeIn 0.5s ease-out forwards;
}
.milestone-dot {
  animation: popIn 0.4s ease-out forwards;
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Destination marker ── */
.dest-glow {
  animation: destGlow 0.6s ease-out forwards;
  animation-delay: 4.8s;
}
@keyframes destGlow {
  0%   { opacity: 0; r: 10; }
  60%  { opacity: 0.4; r: 24; }
  100% { opacity: 0.15; r: 20; }
}
.dest-marker {
  animation: popIn 0.5s ease-out forwards;
}
.dest-pin {
  animation: popIn 0.4s ease-out forwards;
}
.dest-label {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Burst rings expanding outward */
.dest-burst {
  opacity: 0;
  animation: burstRing 1.2s ease-out infinite;
}
@keyframes burstRing {
  0%   { opacity: 0.8; r: 12; stroke-width: 2; }
  100% { opacity: 0;   r: 36; stroke-width: 0.5; }
}

/* ── Destination ring pulse ── */
.dest-ring {
  opacity: 0;
  animation: destRingPulse 1.5s ease-in-out infinite;
  animation-delay: 5.2s;
}
@keyframes destRingPulse {
  0%, 100% { opacity: 0.6; r: 14; }
  50%       { opacity: 1;   r: 18; }
}

/* ── Origin city pulse ── */
.city-pulse-blue {
  animation: cityPulse 2s ease-in-out infinite;
}
@keyframes cityPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.city-ring-blue {
  animation: cityRingExpand 2s ease-out infinite;
}
@keyframes cityRingExpand {
  0%   { opacity: 0.8; r: 14; stroke-width: 2; }
  100% { opacity: 0;   r: 28; stroke-width: 0.5; }
}

/* ── Bus bounce ── */
.bus-emoji {
  animation: busBounce 0.6s ease-in-out infinite alternate;
}
@keyframes busBounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}

/* ── Info bar at bottom of banner ── */
.route-info-bar {
  background: rgba(4, 44, 96, 0.92);
  border-top: 1px solid rgba(165, 237, 110, 0.3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.route-badge-chip {
  background: rgba(88, 204, 2, 0.15);
  border: 1.5px solid var(--color-lingot-lime);
  color: var(--color-lingot-lime);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.route-stats-pills {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.r-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
}
.r-icon { font-size: 15px; }
.r-val {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: white;
}
.r-lbl {
  font-family: var(--font-primary);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.r-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

/* ── Close button ── */
.route-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  font-family: var(--font-primary);
}
.route-close:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .route-info-bar { gap: 8px; padding: 8px 12px; }
  .r-stat { padding: 4px 8px; }
  .r-lbl { display: none; }
  .route-badge-chip { font-size: 11px; padding: 3px 10px; }
}

/* ════════════════════════════════
   RESET & BASE
════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--color-charcoal);
  background: var(--color-paper);
  line-height: 1.47;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Layout ─── */
.page-width {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--spacing-24);
}

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: var(--color-ecto-green);
  color: var(--color-midnight);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: var(--spacing-16) var(--spacing-32);
  border-radius: var(--radius);
  border: none;
  border-bottom: 3px solid #3da800;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px); border-bottom-width: 1px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: transparent;
  color: var(--color-macaw-blue);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: var(--spacing-16) var(--spacing-32);
  border-radius: var(--radius);
  border: 2px solid var(--color-macaw-blue);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-secondary:hover { background: rgba(28,176,246,0.08); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  background: transparent;
  color: var(--color-ecto-green);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: var(--spacing-16) var(--spacing-32);
  border-radius: var(--radius);
  border: 2px solid var(--color-lingot-lime);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-outline:hover { background: var(--color-eel-light); transform: translateY(-2px); }

.btn-large { font-size: var(--text-heading-sm); padding: var(--spacing-24) var(--spacing-48); }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 2px solid var(--color-graphite);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--spacing-24);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  font-size: 20px;
  font-weight: 900;
  color: var(--color-ecto-green);
  letter-spacing: -0.01em;
}
.logo-icon { font-size: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-32);
}
.nav-link {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--color-ecto-green); }
.nav-cta-btn {
  background: var(--color-ecto-green);
  color: var(--color-midnight);
  font-weight: 700;
  font-size: var(--text-body);
  padding: 10px var(--spacing-24);
  border-radius: var(--radius);
  border-bottom: 3px solid #3da800;
  transition: transform 0.1s;
}
.nav-cta-btn:hover { transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-8);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-graphite);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--color-paper);
  border-bottom: 2px solid var(--color-graphite);
  position: sticky;
  top: 64px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  display: block;
  padding: var(--spacing-16) var(--spacing-24);
  font-weight: 700;
  color: var(--color-charcoal);
  border-bottom: 1px solid #eee;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.mobile-link:hover { background: var(--color-eel-light); color: var(--color-ecto-green); }
.mobile-cta {
  background: var(--color-ecto-green);
  color: var(--color-midnight);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #f0fff0 0%, #e8ffe0 100%);
  position: relative;
  padding: var(--spacing-80) 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--spacing-24) var(--spacing-64);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-64);
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--color-eel-light);
  color: var(--color-ecto-green);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-lingot-lime);
  margin-bottom: var(--spacing-16);
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--color-ecto-green);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-16);
}
.hero-subtext {
  font-size: var(--text-heading-sm);
  color: var(--color-charcoal);
  line-height: 1.55;
  margin-bottom: var(--spacing-32);
  max-width: 480px;
}
.hero-btn-stack {
  display: flex;
  gap: var(--spacing-16);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-32);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-12);
}
.stat-pill {
  background: var(--color-paper);
  border: 2px solid var(--color-lingot-lime);
  color: var(--color-charcoal);
  font-size: var(--text-caption);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hero-illustration { display: flex; justify-content: center; align-items: center; }
.hero-img {
  border-radius: 20px;
  border: 3px solid var(--color-lingot-lime);
  box-shadow: 0 0 0 6px var(--color-eel-light);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-wave { line-height: 0; margin-top: -2px; }
.hero-wave svg { width: 100%; display: block; }

/* ════════════════════════════════
   ABOUT STRIP
════════════════════════════════ */
.about-strip {
  background: #f8fff0;
  padding: var(--spacing-80) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-24);
}
.about-card {
  background: var(--color-paper);
  border: 2px solid var(--color-graphite);
  border-radius: var(--radius);
  padding: var(--spacing-24);
  transition: transform 0.2s, border-color 0.2s;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-lingot-lime);
}
.about-icon { font-size: 36px; margin-bottom: var(--spacing-12); }
.about-card h3 {
  font-size: var(--text-heading-sm);
  font-weight: 700;
  color: var(--color-eel-dark-blue);
  margin-bottom: var(--spacing-8);
}
.about-card p { font-size: var(--text-body); color: var(--color-charcoal); line-height: 1.55; }

/* ════════════════════════════════
   FEATURE SECTIONS
════════════════════════════════ */
.feature-section {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
}
.feature-alt { background: #f8fff0; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-80);
  align-items: center;
}
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }

.section-tag {
  display: inline-block;
  background: var(--color-eel-light);
  color: var(--color-ecto-green);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-lingot-lime);
  margin-bottom: var(--spacing-16);
  text-transform: uppercase;
}
.feature-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--color-ecto-green);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-16);
}
.feature-body {
  font-size: var(--text-heading-sm);
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: var(--spacing-24);
}
.feature-list { display: flex; flex-direction: column; gap: var(--spacing-12); margin-bottom: var(--spacing-32); }
.feature-list li {
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: 1.5;
  padding-left: var(--spacing-8);
  border-left: 3px solid var(--color-lingot-lime);
}
.feature-illustration img {
  border-radius: 20px;
  border: 3px solid var(--color-lingot-lime);
  box-shadow: 0 0 0 6px var(--color-eel-light);
  width: 100%;
  object-fit: cover;
}

/* Section Center Header */
.section-center-header {
  text-align: center;
  margin-bottom: var(--spacing-64);
}
.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--color-ecto-green);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-12);
}
.section-subtext {
  font-size: var(--text-heading-sm);
  color: var(--color-ash);
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════
   LANDMARKS
════════════════════════════════ */
.landmarks-section {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
}
.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-24);
}
.landmark-card {
  background: var(--color-paper);
  border: 2px solid var(--color-graphite);
  border-radius: var(--radius);
  padding: var(--spacing-24);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.landmark-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-macaw-blue);
}
.landmark-emoji { font-size: 40px; margin-bottom: var(--spacing-12); }
.landmark-card h4 {
  font-size: var(--text-heading-sm);
  font-weight: 700;
  color: var(--color-eel-dark-blue);
  margin-bottom: var(--spacing-8);
}
.landmark-card p { font-size: var(--text-body); color: var(--color-charcoal); line-height: 1.55; }
.landmark-distance {
  display: inline-block;
  margin-top: var(--spacing-12);
  background: var(--color-eel-light);
  color: var(--color-ecto-green);
  font-size: var(--text-caption);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--color-lingot-lime);
}

/* ════════════════════════════════
   STATS BANNER
════════════════════════════════ */
.stats-banner {
  background: var(--color-ecto-green);
  padding: var(--spacing-64) 0;
  border-top: 3px solid #3da800;
  border-bottom: 3px solid #3da800;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-32);
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--color-paper);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--spacing-8);
}
.stat-label {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-eel-dark-blue);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════
   LOCATION
════════════════════════════════ */
.location-section {
  padding: var(--section-gap) 0;
  background: #f8fff0;
}
.location-content {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--spacing-48);
  align-items: start;
}
.location-info { display: flex; flex-direction: column; gap: var(--spacing-16); }
.location-detail-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  background: var(--color-paper);
  border: 2px solid var(--color-graphite);
  border-radius: var(--radius);
  padding: var(--spacing-16);
  transition: border-color 0.2s;
}
.location-detail-card:hover { border-color: var(--color-lingot-lime); }
.loc-icon { font-size: 24px; flex-shrink: 0; }
.location-detail-card div {
  display: flex;
  flex-direction: column;
}
.location-detail-card strong {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.location-detail-card span {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-eel-dark-blue);
}
.map-embed-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--color-lingot-lime);
  box-shadow: 0 0 0 6px var(--color-eel-light);
  height: 420px;
}
.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(88, 204, 2, 0.92);
  color: var(--color-midnight);
  font-size: var(--text-body);
  font-weight: 700;
  text-align: center;
  padding: var(--spacing-12) var(--spacing-24);
  transition: background 0.2s;
  letter-spacing: 0.04em;
}
.map-cta-overlay:hover { background: var(--color-ecto-green); }

/* ════════════════════════════════
   CONTACT SECTION
════════════════════════════════ */
.contact-section {
  padding: var(--section-gap) 0;
  background: var(--color-eel-dark-blue);
}
.contact-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  margin-top: var(--spacing-48);
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-16);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-eel-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(165, 237, 110, 0.5);
  border-radius: var(--radius);
  padding: var(--spacing-16);
  color: var(--color-paper);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-lingot-lime);
  background: rgba(255,255,255,0.12);
}
.contact-form .btn-primary { align-self: center; }

/* ════════════════════════════════
   FAQ SECTION (SEO & Voice Search)
════════════════════════════════ */
.faq-section {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-24);
}
.faq-card {
  background: #fbfdf9;
  border: 2px solid var(--color-graphite);
  border-radius: var(--radius);
  padding: var(--spacing-24);
  transition: transform 0.2s, border-color 0.2s;
}
.faq-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-ecto-green);
}
.faq-card h4 {
  font-size: var(--text-heading-sm);
  font-weight: 800;
  color: var(--color-eel-dark-blue);
  margin-bottom: var(--spacing-12);
  line-height: 1.4;
}
.faq-card p {
  font-size: var(--text-body);
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* Contact section tag — visible on dark background */
.contact-tag {
  background: rgba(165, 237, 110, 0.15);
  color: var(--color-lingot-lime);
  border-color: var(--color-lingot-lime);
}

/* Pre-filled village field — readonly look */
.input-readonly {
  background: rgba(165, 237, 110, 0.1) !important;
  border-color: var(--color-lingot-lime) !important;
  color: var(--color-lingot-lime) !important;
  font-weight: 700 !important;
  cursor: default;
  letter-spacing: 0.04em;
}

/* Live Registry Stats Badge */
.live-registry-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(88, 204, 2, 0.15);
  border: 2px solid var(--color-lingot-lime);
  color: var(--color-lingot-lime);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-ecto-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(88, 204, 2, 0.7);
  animation: pulseGreen 1.6s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 204, 2, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(88, 204, 2, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(88, 204, 2, 0); }
}

/* Form Section Titles */
.form-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-lingot-lime);
  border-bottom: 1.5px solid rgba(165, 237, 110, 0.3);
  padding-bottom: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Select dropdown */
.form-group select {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(165, 237, 110, 0.5);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--color-paper);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a5ed6e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 12px auto;
  transition: border-color 0.2s, background-color 0.2s;
}
.form-group select option {
  background: var(--color-eel-dark-blue);
  color: white;
}
.form-group select:focus {
  border-color: var(--color-lingot-lime);
  background-color: rgba(255,255,255,0.12);
}

/* Family Members Container */
.family-members-wrapper {
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(165, 237, 110, 0.45);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.family-members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.fm-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.fm-icon { font-size: 32px; }
.fm-title-block h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-eel-light);
  margin-bottom: 2px;
}
.fm-title-block p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.btn-add-member {
  background: var(--color-eel-light);
  color: var(--color-midnight);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  border-bottom: 3px solid #7bc43f;
  cursor: pointer;
  transition: transform 0.1s;
}
.btn-add-member:hover { transform: translateY(-2px); }
.btn-add-member:active { transform: translateY(1px); border-bottom-width: 1px; }

/* Family Member Row Card */
.family-member-card {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(165, 237, 110, 0.45);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  animation: fadeIn 0.3s ease-out;
}
.family-member-card .form-group {
  margin: 0;
}
.btn-remove-member {
  background: rgba(255, 75, 75, 0.2);
  border: 1.5px solid #ff4b4b;
  color: #ff8585;
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  height: 52px;
  font-family: var(--font-primary);
}
.btn-remove-member:hover {
  background: rgba(255, 75, 75, 0.4);
  color: white;
}
.fm-empty-state {
  text-align: center;
  padding: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

/* Submit family button */
.btn-submit-family {
  width: 100%;
  justify-content: center;
  font-size: 18px;
  padding: 18px 24px;
}

/* Success Summary Card */
.form-success {
  text-align: center;
  padding: var(--spacing-48) var(--spacing-24);
  color: var(--color-paper);
}
.success-icon { font-size: 64px; margin-bottom: var(--spacing-16); }
.form-success h3 { font-size: var(--text-heading); font-weight: 900; color: var(--color-lingot-lime); margin-bottom: var(--spacing-12); }
.form-success p { font-size: var(--text-heading-sm); color: rgba(255,255,255,0.85); }

.success-summary-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--color-lingot-lime);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.success-summary-card h5 {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-lingot-lime);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(165, 237, 110, 0.3);
  padding-bottom: 8px;
}
.success-member-pill {
  display: inline-block;
  background: rgba(88, 204, 2, 0.2);
  border: 1px solid var(--color-lingot-lime);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin: 4px 4px 4px 0;
  color: white;
}

/* Recent Registered Families Directory */
.recent-families-block {
  margin-top: 60px;
  border-top: 2px solid rgba(255,255,255,0.15);
  padding-top: 40px;
  text-align: left;
}
.recent-families-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.recent-families-header h4 {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-paper);
}
.live-pill {
  background: rgba(255, 75, 75, 0.2);
  border: 1.5px solid #ff4b4b;
  color: #ff9999;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.recent-families-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.registered-family-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(165, 237, 110, 0.35);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.registered-family-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-lingot-lime);
}
.rfc-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-lingot-lime);
  margin-bottom: 6px;
}
.rfc-meta {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rfc-badge {
  display: inline-block;
  background: rgba(88, 204, 2, 0.25);
  color: var(--color-eel-light);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(165, 237, 110, 0.4);
}
.loading-families-placeholder {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
}

/* ════════════════════════════════
   MOBILE FLOATING BOTTOM ACTION BAR
════════════════════════════════ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(4, 44, 96, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid var(--color-lingot-lime);
  z-index: 9999;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.mob-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.15s, transform 0.15s;
  min-width: 54px;
  font-family: var(--font-primary);
}
.mob-bar-btn:active { transform: scale(0.92); }
.mob-icon { font-size: 18px; line-height: 1.1; margin-bottom: 2px; }
.mob-bar-highlight {
  background: var(--color-ecto-green);
  color: var(--color-midnight) !important;
  border-radius: 12px;
  padding: 6px 14px;
  border-bottom: 3px solid #3da800;
  box-shadow: 0 2px 10px rgba(88,204,2,0.45);
}
.mob-bar-highlight .mob-icon { font-size: 17px; }
.mob-bar-highlight span { font-weight: 800; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--color-midnight);
  padding: var(--spacing-64) 0 var(--spacing-32);
  border-top: 3px solid var(--color-graphite);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-48);
  padding-bottom: var(--spacing-48);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-ecto-green);
  margin-bottom: var(--spacing-16);
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: var(--text-caption);
  color: var(--color-ash);
  line-height: 1.7;
  margin-bottom: var(--spacing-12);
}
.footer-domain {
  display: inline-block;
  color: var(--color-lingot-lime);
  font-size: var(--text-body);
  font-weight: 700;
  border-bottom: 2px solid var(--color-lingot-lime);
  padding-bottom: 2px;
}
.footer-links-col h5 {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-ash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-16);
}
.footer-links-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-body);
  font-weight: 500;
  margin-bottom: var(--spacing-12);
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--color-lingot-lime); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-24);
  font-size: var(--text-caption);
  color: var(--color-ash);
  flex-wrap: wrap;
  gap: var(--spacing-8);
}

/* ════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   RESPONSIVE — MOBILE FIRST EXCELLENCE
════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-illustration { order: -1; }
  .hero-btn-stack { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: var(--spacing-48); }
  .feature-row-reverse { direction: ltr; }
  .landmarks-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .location-content { grid-template-columns: 1fr; }
  .recent-families-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--spacing-32); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* space for mobile bottom bar */
  }
  .mobile-bottom-bar {
    display: flex;
  }
  /* Route SVG height on mobile */
  .route-svg {
    max-height: 220px;
  }
  .route-info-bar {
    padding: 8px 12px;
    gap: 8px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 64px;
  }
  /* Prevent Safari auto-zoom on inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
  .hero {
    padding: var(--spacing-40) 0 0;
  }
  .hero-headline {
    font-size: 40px;
  }
  .hero-subtext {
    font-size: 16px;
  }
  .hero-btn-stack {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-stack .btn-primary,
  .hero-btn-stack .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .landmarks-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Family member card on mobile */
  .family-member-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn-remove-member {
    height: 44px;
    width: 100%;
  }
  .recent-families-grid {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    padding: 0 4px;
  }
  .map-embed-container {
    height: 300px;
  }
  .site-footer {
    padding-bottom: 84px; /* extra clearance above bottom bar */
  }
}

