/* ============================================================
   VoyageAI — Shared Stylesheet
   Aurora UI + Glassmorphism · Deep blue + Gold
   Fonts: Bodoni Moda (headings) · Jost (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:       #040810;
  --bg-base:       #070d1a;
  --bg-elevated:   #0d1628;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-gold:   rgba(201,169,110,0.3);
  --fg:            #edeef2;
  --fg-muted:      rgba(237,238,242,0.55);
  --gold:          #c9a96e;
  --gold-light:    #e2c98a;
  --gold-glow:     rgba(201,169,110,0.15);
  --blue-accent:   #4a7fa5;
  --blue-glow:     rgba(74,127,165,0.2);
  --success:       #5ecb8a;
  --radius-card:   20px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --font-head:     'Bodoni Moda', Georgia, serif;
  --font-body:     'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Aurora ─── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after, .aurora span {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  animation: blob-float 14s ease-in-out infinite;
}
.aurora::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #1a3a6e 0%, transparent 70%);
  top: -200px; left: -150px; opacity: 0.5;
}
.aurora::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2a1a5e 0%, transparent 70%);
  bottom: -150px; right: -100px; opacity: 0.45; animation-delay: -7s;
}
.aurora span {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0a2d4a 0%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
  opacity: 0.35; animation-delay: -3.5s;
}
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-60px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.94); }
}

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Navbar ─── */
nav[role="navigation"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(4,8,16,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--blue-accent) 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; color: #fff; }
.nav-logo-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--fg-muted);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-hover); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #a07840 100%) !important;
  color: #0a0a0a !important; font-weight: 600 !important;
  padding: 9px 20px !important; border-radius: 10px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-auth { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-login-link { font-size: 0.875rem !important; color: rgba(237,238,242,0.6) !important; background: none !important; }
.nav-login-link:hover { color: var(--fg) !important; background: var(--surface-hover) !important; }
.nav-user-badge { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #a07840); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: #0a0a0a; text-decoration: none; flex-shrink: 0; border: 2px solid rgba(201,169,110,0.3); transition: border-color 0.2s; }
.nav-user-badge:hover { border-color: var(--gold); }
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; color: var(--fg); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, #a07840 100%);
  color: #0a0a0a; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--gold-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  background: var(--surface); color: var(--fg);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-gold); transform: translateY(-2px); }
.btn-sm {
  padding: 8px 18px !important; font-size: 0.82rem !important; border-radius: 9px !important;
}

/* ─── Section labels & titles ─── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); opacity: 0.6; }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-subtitle { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.7; max-width: 540px; }
.gold-text {
  background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 50%, #8cb4d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── Cards ─── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { background: var(--surface-hover); border-color: var(--border-gold); transform: translateY(-4px); }

/* ─── Itinerary card ─── */
.itin-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none; display: block; color: var(--fg);
}
.itin-card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.itin-card-img {
  height: 200px; position: relative; overflow: hidden;
}
.itin-card-img-inner {
  position: absolute; inset: 0;
  transition: transform 0.5s var(--ease);
}
.itin-card:hover .itin-card-img-inner { transform: scale(1.06); }
.itin-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,13,26,0.9) 0%, rgba(7,13,26,0.2) 60%, transparent 100%);
}
.itin-card-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px;
  background: rgba(4,8,16,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold); border-radius: 100px;
  font-size: 0.72rem; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.itin-card-dias {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  background: rgba(4,8,16,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.72rem; color: var(--fg-muted);
}
.itin-card-body { padding: 20px 24px 24px; }
.itin-card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.itin-card-sub { font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 16px; line-height: 1.5; }
.itin-card-footer { display: flex; align-items: center; justify-content: space-between; }
.itin-card-price { font-size: 0.875rem; }
.itin-card-price strong { color: var(--gold); font-size: 1.1rem; }
.itin-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: var(--gold-glow); border: 1px solid var(--border-gold);
  border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: var(--gold);
  text-decoration: none; transition: background 0.2s;
}
.itin-card:hover .itin-card-btn { background: rgba(201,169,110,0.25); }

/* ─── Tags / Badges ─── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.75rem; color: var(--fg-muted); font-weight: 500;
}
.tag.gold { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold); }

/* ─── Tables ─── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 12px 16px; background: var(--bg-elevated); color: var(--gold); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border-gold); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--fg-muted); vertical-align: top; }
td:first-child { color: var(--fg); font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ─── Footer ─── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 64px 24px 40px; background: var(--bg-base); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--fg-muted); }

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Affiliate link ─── */
.aff-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  border-bottom: 1px solid var(--border-gold); padding-bottom: 1px;
  transition: border-color 0.2s, opacity 0.2s;
}
.aff-link:hover { opacity: 0.8; border-color: var(--gold); }
.aff-link svg { width: 13px; height: 13px; }

/* ─── SR Only ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav[role="navigation"] { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(4,8,16,0.98); backdrop-filter: blur(20px);
    padding: 12px 16px 16px; gap: 4px;
    border-bottom: 1px solid var(--border); z-index: 99;
  }
  .nav-links.mobile-open li a {
    display: block; padding: 11px 14px; font-size: 1rem;
    border-radius: 10px; border-bottom: none;
  }
  .nav-links.mobile-open .nav-cta {
    margin-top: 6px; text-align: center; justify-content: center;
  }
  .nav-links.mobile-open .nav-auth { flex-direction: column; gap: 6px; padding: 4px 0; }
  .nav-links.mobile-open .nav-auth a { display: block; padding: 10px 14px; border-radius: 10px; text-align: center; }
  .nav-links.mobile-open .nav-user-badge { width: auto; height: auto; border-radius: 10px; padding: 10px 14px; }
  .nav-mobile-btn { display: flex; }
  .nav-logo img { height: 32px !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  nav[role="navigation"] { height: 60px; }
  .itin-card-img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after, .aurora span { animation: none; }
  .reveal { transition: none; }
}
