/* ================================================================
   VistaVoyage — Premium UI Upgrade v1.0
   Additive only. Zero structural changes. Drop this after styles.css
   ================================================================ */

/* ── Premium Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Override Design Tokens ── */
:root {
  /* Richer colour palette */
  --primary:        #091E40;
  --primary-rgb:    9,30,64;
  --accent:         #F5A623;
  --accent-rgb:     245,166,35;
  --accent-alt:     #38BDF8;
  --accent-glow:    rgba(245,166,35,0.35);

  /* Backgrounds — layered depth */
  --bg:             #F0F4F8;
  --bg-alt:         #FFFFFF;
  --bg-soft:        #E8EEF5;

  /* Text */
  --text:           #0D1B2A;
  --text-light:     #435872;

  /* Borders */
  --border:         rgba(14,58,94,0.12);

  /* Shadows */
  --shadow-color:   9 30 64;
  --shadow-sm:      0 2px 8px -2px rgba(9,30,64,0.14);
  --shadow-md:      0 8px 28px -6px rgba(9,30,64,0.20);
  --shadow-lg:      0 20px 50px -12px rgba(9,30,64,0.28);
  --shadow-xl:      0 32px 72px -16px rgba(9,30,64,0.38);

  /* Premium gradients */
  --gradient:       linear-gradient(135deg, #091E40 0%, #0F3460 42%, #1455A4 72%, #38BDF8 100%);
  --gradient-warm:  linear-gradient(135deg, #F5A623 0%, #F08000 55%, #D96B00 100%);
  --gradient-card:  linear-gradient(160deg, rgba(255,255,255,0.9) 0%, rgba(248,252,255,0.7) 100%);
  --hero-overlay:   linear-gradient(160deg, rgba(9,30,64,0.82) 0%, rgba(9,30,64,0.55) 50%, rgba(9,30,64,0.92) 100%);

  /* Glass */
  --glass-bg:       linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07));
  --glass-border:   1px solid rgba(255,255,255,0.24);

  /* Fonts */
  --font-heading:   'DM Serif Display', Georgia, serif;
  --font-body:      'Manrope', system-ui, sans-serif;

  /* Radii */
  --radius-xs:      5px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;

  /* Motion */
  --easing:         cubic-bezier(0.22, 1, 0.36, 1);
  --transition:     0.38s var(--easing);
}

/* ── Base Typography Override ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  /* Subtle grain texture for premium feel */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  font-weight: 400; /* DM Serif looks best at regular weight */
}

h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.1; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }

/* ── Navigation — Refined Glass ── */
.site-header {
  background: rgba(9, 30, 64, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.28);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 30, 64, 0.97);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

.primary-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover { opacity: 1; }

.primary-nav a::after {
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Compare Flights CTA pill in nav */
.primary-nav li:last-child a {
  background: var(--gradient-warm);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  opacity: 1;
  box-shadow: 0 4px 16px rgba(245,166,35,0.40);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-nav li:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.55);
}

.primary-nav li:last-child a::after { display: none; }

/* ── Buttons — Premium Finish ── */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  border-radius: 999px;
  padding: 14px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--easing), box-shadow 0.28s var(--easing);
}

/* Shimmer on primary button */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn--primary:hover::after { left: 160%; }

.btn--primary {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 6px 24px rgba(245,166,35,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(245,166,35,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--accent {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
}

.btn--ghost {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}

/* ── Hero — Depth & Drama ── */
.hero {
  isolation: isolate;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  font-weight: 400;
  /* Subtle text shadow for legibility */
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, #F5A623, #FFD580, #F08000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(220, 235, 255, 0.92);
  max-width: 560px;
}

.hero-bullets {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(200,220,255,0.85);
}

/* ── Value Cards — Elevated Material ── */
.value-card {
  background: linear-gradient(160deg, #ffffff 0%, #f5f9fd 100%);
  border: 1px solid rgba(14,58,94,0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--easing), box-shadow 0.32s var(--easing);
  position: relative;
  overflow: hidden;
}

/* Top accent bar on each card */
.value-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--easing);
  border-radius: 3px 3px 0 0;
}

.value-card:hover::after { transform: scaleX(1); }

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.icon-wrap {
  border-radius: 16px;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #0F3460, #1455A4);
  box-shadow: 0 6px 20px -4px rgba(9,30,64,0.40);
}

/* ── Destination Cards ── */
.dest-card {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--easing), box-shadow 0.35s var(--easing);
}

.dest-card:hover {
  transform: translateY(-10px) scale(1.012);
  box-shadow: var(--shadow-xl);
}

.dest-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.dest-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dest-link::after {
  content: '';
  transition: transform 0.2s ease;
}

.dest-card:hover .dest-link::after {
  transform: translateX(4px);
}

/* ── Why Section — Deeper Blue ── */
.section--why {
  background: linear-gradient(160deg, #091E40 0%, #0C2850 45%, #0F3460 80%, #112F5E 100%);
  position: relative;
}

/* Atmospheric orb */
.section--why::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
  border-radius: 50%;
}

.section--why h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
}

.panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.panel h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
}

/* ── Blog Cards ── */
.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--easing), box-shadow 0.32s var(--easing);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.blog-meta {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* ── Tool Cards ── */
.tool-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid var(--border);
  transition: transform 0.32s var(--easing), box-shadow 0.32s var(--easing);
}

.tool-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #060E1E 0%, #091220 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(56,189,248,0.8);
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: rgba(200,220,240,0.75);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #fff; }

/* ── Newsletter Section ── */
.section--newsletter {
  background: linear-gradient(135deg, #091E40 0%, #0F3460 50%, #1455A4 100%);
  position: relative;
  overflow: hidden;
}

.section--newsletter::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.14) 0%, transparent 70%);
  bottom: -200px; left: -100px;
  pointer-events: none;
}

.nl-form input[type=email] {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nl-form input[type=email]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.28);
  outline: none;
}

/* ── Section Title Enhancement ── */
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
}

/* Subtle underline accent on section titles */
.section--destinations .section-title::after,
.section--values .section-title::after,
.section--blog .section-title::after,
.section--tools .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  background: var(--gradient-warm);
  border-radius: 2px;
}

/* ── Deals / Flight Route Cards (CRO section) ── */
.deal-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, #fff 0%, #f7fbff 100%);
  transition: transform 0.32s var(--easing), box-shadow 0.32s var(--easing);
}

.deal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ── Airline Cards ── */
.vv-logo-card {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,58,94,0.08);
  transition: transform 0.28s var(--easing), box-shadow 0.28s var(--easing);
}

.vv-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ── Gradient Text Utility ── */
.gradient-text {
  background: linear-gradient(90deg, #F5A623, #FFD27A, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Trust Badges ── */
.vv-trust-strip span {
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(220,235,255,0.92);
}

/* ── FAQ Section ── */
.section-title + * {
  font-family: var(--font-body);
}

/* ── Scrollbar — Premium ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#0F3460, #1455A4);
  border-radius: 20px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#1455A4, #38BDF8); }

/* ── Text Selection ── */
::selection { background: var(--accent); color: #fff; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Focus ring ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Inline links ── */
.inline-link { color: var(--accent); }

/* ── Badge styling ── */
.badge { font-family: var(--font-body); }

/* ── Section backgrounds — more atmospheric ── */
.section--values {
  background: linear-gradient(180deg, #fff 0%, #eef3f9 100%);
}

.section--destinations {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.section--blog {
  background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
}

.section--tools {
  background: #ffffff;
}

/* ── Mobile nav premium ── */
.mobile-nav {
  background: linear-gradient(160deg, #091E40 0%, #0F3460 100%);
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: -0.3px;
}

/* ── Nav scroll behaviour via JS hook ── */
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── CRO Route Cards ── */
.vv-cro-inline h2, .vv-cro-inline h3 {
  font-family: var(--font-heading);
}

/* ── Why VistaVoyage checks ── */
.check-list li {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(220,235,255,0.9);
}

.check-list li::before {
  background: var(--gradient-warm);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.28);
  top: 6px;
}

/* ── How it works section (from screenshots) ── */
.section--how h2 {
  font-family: var(--font-heading);
}

/* ── Why Choose section ── */
.section--choose h2 {
  font-family: var(--font-heading);
}

/* ── Airline page cards ── */
.airlines-grid .value-card h3,
.airline-hub h2 {
  font-family: var(--font-heading);
}

/* ── Responsive fine-tuning ── */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  
  .value-card, .dest-card, .blog-card, .tool-card {
    border-radius: 18px;
  }

  .btn { padding: 13px 24px; }
}

/* ── Hero search widget area override for font ── */
.hero-search.vv-hero-upgrade .vv-hero-copy h1 {
  font-family: var(--font-heading) !important;
  font-weight: 400 !important;
  letter-spacing: -1.5px !important;
}

.hero-search.vv-hero-upgrade .vv-hero-copy p {
  font-family: var(--font-body) !important;
}

/* ── "How VistaVoyage Works" numbered steps ── */
.how-steps .step-num,
.how-grid .step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
}

/* ── Urgency text in trust strip ── */
.vv-urgency {
  font-family: var(--font-body);
  font-weight: 700;
  color: #F5A623;
  letter-spacing: 0.1px;
}

/* ── Partner logos strip ── */
.partner-logos-row {
  gap: 14px;
}

/* ── Deals hub ── */
.deals-hub .section-title {
  font-family: var(--font-heading);
}

/* ── Animate in on scroll (lightweight, CSS only) ── */
@media (prefers-reduced-motion: no-preference) {
  .value-card,
  .dest-card,
  .blog-card,
  .tool-card,
  .panel,
  .deal-card {
    animation: fadeUp 0.6s var(--easing) both;
    animation-play-state: paused;
  }

  .value-card.in-view,
  .dest-card.in-view,
  .blog-card.in-view,
  .tool-card.in-view,
  .panel.in-view,
  .deal-card.in-view {
    animation-play-state: running;
  }

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

  .value-card:nth-child(2)  { animation-delay: 0.08s; }
  .value-card:nth-child(3)  { animation-delay: 0.16s; }
  .value-card:nth-child(4)  { animation-delay: 0.24s; }
  .dest-card:nth-child(2)   { animation-delay: 0.10s; }
  .dest-card:nth-child(3)   { animation-delay: 0.20s; }
  .dest-card:nth-child(4)   { animation-delay: 0.30s; }
  .blog-card:nth-child(2)   { animation-delay: 0.10s; }
  .blog-card:nth-child(3)   { animation-delay: 0.20s; }
  .panel:nth-child(2)       { animation-delay: 0.12s; }
}

/* ── Reduced motion: kill all ── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
