/* ======================================================
   asteroid-core.css  —  Asteroid Traveler design system
   Canonical nav, footer, atmo-strip, and layout tokens.
   ====================================================== */

/* ── Design Tokens ── */
:root {
  --bg:         #f7f6f3;
  --card:       #ffffff;
  --fg:         #1a1a2e;
  --green:      #C8E64A;
  --green-dark: #4a7c10;
  --nav-bg:     #04060d;
  --nav-h:      60px;
}

/* ── Atmospheric Strip ── */
.atmo-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #C8E64A !important;
  z-index: 1001;
}

/* ── Main Nav ── */
nav#main-nav,
nav#mainNav,
nav.main-nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: 60px;
  background: var(--nav-bg, #04060d);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Logo — Inter 700, 0.3em spacing — matches asteroidtraveler.com exactly ── */
nav .nav-logo,
.nav-logo {
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #f5f3ee !important;
  text-decoration: none !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  flex-shrink: 0;
}
.nav-logo .star,
.nav-logo .logo-mark {
  color: #C8E64A !important;
  margin-right: 6px;
  font-size: 1.1rem;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
  padding: 0;
  margin: 0 0 0 auto;
  align-items: center;
}
.nav-links a {
  color: rgba(245,243,238,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active-nav {
  color: #f5f3ee;
}

/* ── Nav Right ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── CTA Button ── */
.nav-cta {
  background: #C8E64A;
  color: #04060d;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.lang-switcher a {
  color: rgba(245,243,238,0.45);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  color: #C8E64A;
}

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #f5f3ee;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none !important; }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 63px; left: 0; right: 0;
    background: #04060d;
    padding: 20px 24px;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav#main-nav,
  nav#mainNav,
  nav.main-nav { padding: 0 16px; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  position: fixed;
  top: 63px;
  left: 0; right: 0;
  background: rgba(4,6,13,0.85);
  backdrop-filter: blur(8px);
  padding: 0 28px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.4);
  z-index: 998;
}
.breadcrumb a {
  color: rgba(245,243,238,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #C8E64A; }
.breadcrumb-sep { opacity: 0.3; }
.breadcrumb-tag {
  background: rgba(200,230,74,0.12);
  color: #C8E64A;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
}

/* ── Footer ── */
/* Base: color + spacing only — no layout override (pages use their own footer HTML structure) */
footer {
  background: #04060d;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #f5f3ee;
}
/* Grid layout only for hub pages that use footer-left / footer-right directly inside footer */
footer.site-footer {
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 3rem;
}
.footer-left p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.75rem;
  max-width: 240px;
  line-height: 1.6;
}
.footer-logo {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.footer-logo .logo-mark,
.footer-logo .star { color: #C8E64A; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.footer-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-right { text-align: right; }
.footer-social { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-social a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: #C8E64A; }
.footer-copy { font-size: 0.65rem; color: rgba(255,255,255,0.15); letter-spacing: 0.05em; }

@media (max-width: 768px) {
  footer.site-footer,
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .footer-right { text-align: center; }
  .footer-social { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER INNER LAYOUT (new unified footer from batch script)
═══════════════════════════════════════════════════════════════ */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f3ee;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-brand .star { color: #C8E64A; }
.footer-desc {
  font-size: 12px;
  color: rgba(245,243,238,0.4);
  max-width: 240px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-links a {
  color: rgba(245,243,238,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #f5f3ee; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.footer-legal a {
  color: rgba(245,243,238,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(245,243,238,0.7); }
.footer-copy {
  font-size: 11px;
  color: rgba(245,243,238,0.2);
  letter-spacing: 0.05em;
}
.footer-disclaimer {
  font-size: 10px;
  color: rgba(245,243,238,0.15);
  max-width: 280px;
  line-height: 1.5;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    padding: 32px 20px 20px;
    gap: 1.5rem;
  }
  .footer-desc { max-width: 100%; }
  .footer-disclaimer { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   NAV — generic <nav> (pages without id/class on nav element)
═══════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: 60px;
  background: rgba(4,6,13,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.atmo {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #C8E64A;
  z-index: 1001;
}
/* page body offset */
body { padding-top: 63px; }

/* ═══════════════════════════════════════════════════════════════
   CARD SYSTEM
═══════════════════════════════════════════════════════════════ */
:root {
  --radius-card: 14px;
  --radius-btn:  50px;
  --accent:      #C8E64A;
  --dark-bg:     #0d1122;
  --text-main:   #1a1a1a;
  --text-muted:  #555550;
  --border-card: rgba(26,26,26,0.10);
  --card-bg:     #ffffff;
  --page-bg:     #f5f3ee;
}

/* Destination Card */
.dest-card {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  text-decoration: none;
  color: var(--text-main);
}
.dest-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.dest-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: #e8e6e0;
}
.dest-card-img-fallback {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0d1122 0%, #1a2540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.dest-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.dest-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d6b08;
  background: rgba(200,230,74,0.15);
  padding: 3px 10px;
  border-radius: 20px;
}
.dest-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}
.dest-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.dest-card-meta {
  font-size: 0.7rem;
  color: #999;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dest-card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d6b08;
  margin-top: 4px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CTA QUOTE BAND
═══════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--dark-bg);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  margin: 48px 0;
}
.cta-band h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #f5f3ee;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(245,243,238,0.6);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: #C8E64A;
  color: #0d1122;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(245,243,238,0.7);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 1px solid rgba(245,243,238,0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(245,243,238,0.5);
  color: #f5f3ee;
}
@media (max-width: 600px) {
  .cta-band { padding: 36px 20px; border-radius: 14px; }
  .cta-band-actions { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPARISON TABLE
═══════════════════════════════════════════════════════════════ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.88rem;
}
.comparison-table th {
  background: #0d1122;
  color: #f5f3ee;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comparison-table th:first-child { border-radius: 10px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 10px 0 0; }
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tr:hover td { background: rgba(200,230,74,0.04); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border-card);
}
/* Mobile: horizontal scroll */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--border-card);
}
@media (max-width: 640px) {
  .comparison-table th, .comparison-table td { padding: 10px 12px; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE LAYOUT
═══════════════════════════════════════════════════════════════ */
.article-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-meta-sep { opacity: 0.35; }
.article-category-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d6b08;
  background: rgba(200,230,74,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 36px;
  display: block;
}
.article-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.55rem;
  margin: 40px 0 14px;
  line-height: 1.25;
  color: var(--text-main);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text-main);
}
.article-body p { margin-bottom: 18px; line-height: 1.75; }
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.article-body li { margin-bottom: 6px; }
.callout-box {
  background: rgba(200,230,74,0.10);
  border-left: 3px solid #C8E64A;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.callout-box strong { color: #3d6b08; }

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════════ */
.faq-section { margin: 48px 0; }
.faq-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text-main);
}
.faq-item {
  border-bottom: 1px solid var(--border-card);
  padding: 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border-card); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.faq-question:hover { color: #3d6b08; }
.faq-question .faq-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #C8E64A;
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 4px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ═══════════════════════════════════════════════════════════════
   LEGAL DISCLAIMER BLOCK
═══════════════════════════════════════════════════════════════ */
.legal-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-card);
  padding-top: 16px;
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB (non-fixed, inline)
═══════════════════════════════════════════════════════════════ */
.breadcrumb-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb-inline a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-inline a:hover { color: #3d6b08; }
.breadcrumb-inline .sep { opacity: 0.4; }
.breadcrumb-inline .current { color: var(--text-main); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   IMAGE FALLBACK
═══════════════════════════════════════════════════════════════ */
img.img-fallback-loaded { display: block; }
img.img-fallback-error { display: none; }
.img-fallback-placeholder {
  background: linear-gradient(135deg, #0d1122, #1e2d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — works with generic <nav> + .nav-hamburger
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
  }
  .nav-hamburger { display: block !important; }
  nav .nav-links { display: none !important; }
  nav .nav-links.open,
  nav .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 12px 0 16px;
    gap: 4px;
    order: 3;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav .nav-links li { width: 100%; }
  nav .nav-links a { padding: 10px 4px; font-size: 15px; display: block; }
  .nav-right { margin-left: auto; }
  .lang-switcher { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SPACING
═══════════════════════════════════════════════════════════════ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .section-container { padding: 0 20px; }
}
.section-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-main);
  margin-bottom: 8px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED NAV JS (injected via script tag on every page)
═══════════════════════════════════════════════════════════════ */
/* JS is in asteroid-nav.js — styles only here */
