/* ═══════════════════════════════════════════════════════════════
   RANDU TOURS — LIGHT THEME OVERRIDE (light-theme.css)
   Royal Blue (#1A3D8C) + White/Off-white — Red used sparingly
   This file loads LAST and overrides all dark/legacy styles
═══════════════════════════════════════════════════════════════ */

/* ── 1. RE-DEFINE ROOT TOKENS for light theme ─────────────── */
:root {
  /* Body/page background — clean white */
  --page-bg:        #FFFFFF;
  --page-bg-alt:    #F4F6FB;    /* very light blue-tinted grey for alternate sections */
  --page-bg-soft:   #EEF2FA;    /* soft blue wash */

  /* Royal Blue — main brand */
  --royal:          #1A3D8C;
  --royal-dark:     #122B66;
  --royal-deeper:   #0C1E4A;
  --royal-light:    #2D57C0;
  --royal-faint:    #E8EEFA;    /* near-white blue tint for card backgrounds */
  --royal-glow:     hsla(220, 68%, 33%, 0.18);

  /* Red — used very sparingly */
  --accent-red:     #C8102E;
  --accent-red-dark:#A00C24;

  /* Text */
  --text-heading:   #0D1B3E;    /* very dark navy */
  --text-body:      #2E3C5E;    /* dark blue-grey */
  --text-muted:     #6475A0;    /* medium blue-grey */
  --text-light:     #9AAAD4;

  /* Borders */
  --border-light:   #D5DEEE;
  --border-mid:     #B0C0DB;
}

/* ── 2. BODY & HTML ────────────────────────────────────────── */
body {
  background: var(--page-bg);
  color: var(--text-body);
}

/* ── 3. HERO SECTION — Royal Blue gradient + Sigiriya blurred bg */
.h2-section {
  background: none !important;
  position: relative;
  overflow: hidden;
}

/* Video Background (Seamless Fallback Strategy) */
.hero-bg-video {
  position: absolute;
  inset: -20px; /* Slight overflow to hide edge artifacts if any */
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  z-index: 0; /* Above the blurred ::before image, below the ::after blue gradient overlay */
  opacity: 0; /* Hidden until loaded */
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

/* Fades in beautifully once the oncanplay event fires */
.hero-bg-video.loaded {
  opacity: 1;
}

/* Ken Burns zoom pulse keyframes — very slow, dreamy */
@keyframes kenBurns {
  0%   { transform: scale(1.06); }
  50%  { transform: scale(1.20); }
  100% { transform: scale(1.06); }
}

/* Blurred background image layer with Ken Burns zoom loop */
.h2-section::before {
  content: '';
  position: absolute;
  inset: -40px;          /* extra margin to hide blur + scale edges */
  z-index: 0;
  background-image: url('/assets/images/sigiriya-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: blur(10px);
  animation: kenBurns 28s ease-in-out infinite;
  will-change: transform;
}

/* Dark Royal Blue overlay on top of the blurred image */
.h2-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(12,  30,  74, 0.88)  0%,
    rgba(26,  61, 140, 0.82) 55%,
    rgba(18,  43,  96, 0.90) 100%
  );
}

/* Ensure all children sit on top of the overlay */
.h2-floats,
.h2-wrap {
  position: relative;
  z-index: 2;
}

.hero-scroll-hint {
  z-index: 5; /* Keep it above the overlay without overriding its absolute position */
}


/* Script label — warm gold (defined in hero2.css) */

/* TRAVEL & stays white */
.h2t-line1 { color: #FFFFFF !important; }

/* EXPLORE — Royal Blue accent on hero: use gold/yellow for contrast against the blue bg
   Actually keep it as a light tone since bg is blue */
.h2t-line2 { color: #FFD166 !important; } /* warm gold — pairs beautifully with royal blue */

/* Sri Lanka With Us — stays off-white */
.h2t-line3 { color: rgba(255,255,255,0.9) !important; }

/* Hero subtitle */
.h2-sub { color: rgba(255,255,255,0.78) !important; }
.h2-sub strong { color: #FFD166 !important; }

/* Stats */
.h2st-num { color: #FFFFFF !important; }
.h2st-num sup { color: #FFD166 !important; }
.h2st-lbl { color: rgba(255,255,255,0.5) !important; }
.h2st-sep { background: rgba(255,255,255,0.2) !important; }

/* Book Now button — RED (one of the rare red uses) */
.h2btn-primary {
  background: var(--accent-red) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.35) !important;
}
.h2btn-primary:hover {
  background: var(--accent-red-dark) !important;
  box-shadow: 0 8px 28px rgba(200, 16, 46, 0.5) !important;
}

/* View Packages — white ghost */
.h2btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.45) !important;
}
.h2btn-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.85) !important;
}

/* ── 4. NAVBAR — Apple iOS Liquid Glass ────────────────────── */

/* ── 4. NAVBAR — PRO DYNAMIC FLOATING PILL (APPLE/SONY COMMERCIAL STYLE) ── */

@keyframes headerSlideDown {
  0% { transform: translate(-50%, -40px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Floating Glass Pill Container */
.site-header {
  position: fixed !important;
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 1440px !important;
  height: 76px !important;
  border-radius: 100px !important;
  
  /* Deep Premium Glass (Sony/Apple Style) */
  background: rgba(12, 16, 24, 0.65) !important;
  backdrop-filter: blur(30px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
  
  /* Precision Borders and Shadow */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.25) !important;
    
  animation: headerSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

/* Subtle internal shimmer layer */
.site-header::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.02) 100%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Inner content alignment */
.header-inner {
  position: relative !important;
  z-index: 1 !important;
  height: 100% !important;
  padding: 0 16px !important;
}

/* Scrolled State: Slimmer, tighter, same glass style as idle */
.site-header.scrolled {
  height: 64px !important;
  top: 16px !important;
}

/* Disable default link styling */
.nav-links {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 6px !important;
}

/* Nav Links - Glass Cards with Hover Glow */
.site-header .nav-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 8px 12px !important;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  background: transparent !important;
  white-space: nowrap !important;
}

/* Disable old underline */
.site-header .nav-links a::after {
  display: none !important;
}

/* Glowing Hover State (Pro Apple/Sony effect) */
.site-header .nav-links a:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.05), 
    inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* Active State - Gold Glow */
.site-header .nav-links a.active {
  color: #FFD166 !important;
  background: rgba(255, 209, 102, 0.08) !important;
  box-shadow: 
    0 0 20px rgba(255, 209, 102, 0.15), 
    inset 0 1px 1px rgba(255, 209, 102, 0.25) !important;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.4) !important;
}

/* Premium Logo Typography & Alignment */
.site-header .logo-text-block {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.site-header .logo-text-block .logo-name {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #FFFFFF !important;
  font-weight: 700 !important; /* Bolder to match logo */
  letter-spacing: 0.12em !important;
  font-size: 1.35rem !important; /* Adjusted to fit nicely */
  line-height: 1.1 !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 2px !important;
}

.site-header .logo-text-block .logo-sub {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #FFD166 !important;
  font-weight: 600 !important;
  letter-spacing: 0.35em !important;
  font-size: 0.6rem !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  padding-left: 0.15em !important; /* visual balance for wide tracking */
}

/* Mobile Toggle */
.site-header .mobile-toggle span {
  background: #FFFFFF !important;
}

/* Custom CTA Button for new header */
.site-header .header-cta .btn-primary {
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #FFD166 0%, #ffb703 100%) !important;
  color: #111 !important;
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.site-header .header-cta .btn-primary:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 25px rgba(255, 209, 102, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ── 5. GET IN TOUCH BUTTON ────────────────────────────────── */

/* The header CTA — keep as Royal Blue (not red) */
.btn-primary,
.header-cta .btn-primary {
  background: var(--accent-red) !important;
  box-shadow: 0 4px 18px rgba(200, 16, 46, 0.3) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--accent-red-dark) !important;
  box-shadow: 0 8px 28px rgba(200, 16, 46, 0.45) !important;
}

/* ── 6. TICKER STRIP — Royal Blue instead of red/orange ─────── */
.ticker-strip {
  background: linear-gradient(
    135deg,
    var(--royal-dark) 0%,
    var(--royal)      100%
  ) !important;
}

/* ── 7. SECTIONS — White / light blue alternating ───────────── */

/* Generic sections */
section {
  background: var(--page-bg);
}

/* Alternate sections */
.tours-section,
.quick-book-section,
.itinerary-wrapper {
  background: var(--page-bg-alt) !important;
}

/* Destinations collage — white to deeper blue gradient */
#destinations {
  background: linear-gradient(160deg, #eaf2fc 0%, #b8d4ef 100%) !important;
}

/* Tours Section — Radiant Blur Background */
#tours {
  background: var(--page-bg-alt) !important;
  position: relative;
  overflow: hidden;
}

#tours::before {
  content: '';
  position: absolute;
  top: -30%; left: -15%;
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(135, 185, 245, 0.9) 0%, transparent 65%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

#tours::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -15%;
  width: 75vw; height: 75vw;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.3) 0%, transparent 65%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

#tours .container {
  position: relative;
  z-index: 1;
}

/* ── 8. SECTION HEADINGS & TEXT ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
}

.section-tag,
.badge,
.qb-badge {
  background: var(--royal-faint) !important;
  color: var(--royal) !important;
  border-color: rgba(26, 61, 140, 0.2) !important;
}

/* ── 9. BUTTONS & LINKS (global) ────────────────────────────── */

/* Royal Blue primary buttons (non-CTA) */
.btn-blue,
.btn-navy,
.btn-teal {
  background: linear-gradient(135deg, var(--royal-light), var(--royal)) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px var(--royal-glow) !important;
}

.btn-blue:hover,
.btn-navy:hover,
.btn-teal:hover {
  background: linear-gradient(135deg, var(--royal), var(--royal-dark)) !important;
  box-shadow: 0 8px 28px var(--royal-glow) !important;
}

/* Ghost / outline buttons */
.btn-ghost-hero,
.btn-outline {
  border-color: var(--border-mid) !important;
  color: var(--text-body) !important;
  background: transparent !important;
}

.btn-ghost-hero:hover,
.btn-outline:hover {
  background: var(--royal-faint) !important;
  border-color: var(--royal) !important;
  color: var(--royal) !important;
}

/* WhatsApp book CTA — Premium Royal style */
.hero-btn-primary,
.qb-submit-btn {
  background: var(--royal) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px var(--royal-glow) !important;
  border-radius: 8px !important;
}

.hero-btn-primary:hover,
.qb-submit-btn:hover {
  background: var(--royal-dark) !important;
  box-shadow: 0 6px 24px rgba(26, 61, 140, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* ── 10. CARDS ──────────────────────────────────────────────── */
.stamp-card.navy {
  background: linear-gradient(135deg, var(--royal-light), var(--royal-dark)) !important;
}

.stamp-card.orange {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark)) !important;
}

.stamp-card.white {
  background: #fff !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 4px 24px rgba(26, 61, 140, 0.08) !important;
}

/* Tour sidebar */
.tours-sidebar {
  background: linear-gradient(180deg, var(--royal-dark), var(--royal-deeper)) !important;
}

.tours-sidebar .sidebar-tag {
  color: #FFD166 !important;  /* gold accent on blue sidebar */
}

/* ── 11. CAROUSEL ARROWS ────────────────────────────────────── */
.carousel-arrow-btn:hover {
  background: var(--royal) !important;
  border-color: var(--royal) !important;
  box-shadow: 0 4px 18px var(--royal-glow) !important;
}

.sidebar-nav-btn:hover {
  background: #FFD166 !important;
  border-color: #FFD166 !important;
  color: var(--royal-deeper) !important;
}

/* ── 12. MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  background: rgba(10, 20, 55, 0.97) !important;
}

.mobile-menu a:hover {
  color: #FFD166 !important;
}

/* ── 13. FOOTER ─────────────────────────────────────────────── */
.site-footer,
footer {
  background: linear-gradient(180deg, var(--royal-deeper), var(--royal-dark)) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ── 14. TOUR DOTS ──────────────────────────────────────────── */
.tour-dot.active {
  background: #FFD166 !important;  /* gold on blue bg */
}

/* ── 16. SCROLL HINT ────────────────────────────────────────── */
.hero-scroll-hint {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* ── 17. COLLAGE TAGS ────────────────────────────────────────── */
.collage-tag {
  color: #FFD166 !important;  /* gold replaces orange/red on dark overlays */
}

/* ── 18. FORM INPUTS ─────────────────────────────────────────── */
.qb-field label {
  color: var(--text-muted) !important;
}

.qb-field input,
.qb-field select {
  border-color: var(--border-light) !important;
  background: #fff !important;
  color: var(--text-heading) !important;
}

.qb-field input:focus,
.qb-field select:focus {
  border-color: var(--royal) !important;
  box-shadow: 0 0 0 3px rgba(26, 61, 140, 0.12) !important;
}

/* ── 19. QUICK BOOK SECTION ───────────────────────────────────── */
.quick-book-section {
  background: linear-gradient(135deg, #ffffff 30%, #dbe5f2 100%) !important;
}

.quick-book-section .qb-title {
  color: var(--text-heading) !important;
}

.quick-book-section .qb-subtitle {
  color: var(--text-body) !important;
}

.quick-book-section .qb-trust-item {
  color: var(--text-muted) !important;
}

.qb-card {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05) !important;
}

.qb-tabs {
  background: var(--page-bg) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.qb-tab {
  color: var(--text-muted) !important;
}

.qb-tab:hover {
  color: var(--royal) !important;
  background: rgba(26, 61, 140, 0.03) !important;
}

.qb-tab.active {
  background: var(--royal) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--royal-glow) !important;
}

/* ── 20. WHATSAPP CHAT BUTTON ──────────────────────────────── */
.whatsapp-float,
.whatsapp-btn,
[class*="chat"] {
  background: #25D366 !important;  /* WhatsApp green stays green */
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SCREEN RESPONSIVE NAVIGATION & HEADER (768px and below)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Block horizontal scrolling globally on mobile viewports */
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Center the floating pill header on mobile */
  .site-header {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 50px !important;
    height: 64px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    background: rgba(12, 16, 24, 0.75) !important; /* Rich glass bg */
  }

  .site-header.scrolled {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    height: 56px !important;
    background: rgba(12, 16, 24, 0.92) !important;
  }

  .header-inner {
    padding: 0 16px !important;
    gap: 12px !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-logo img {
    height: 36px !important;
  }

  .scrolled .site-logo img {
    height: 30px !important;
  }

  .logo-text-block .logo-name {
    font-size: 1.15rem !important;
  }

  .logo-text-block .logo-sub {
    font-size: 0.55rem !important;
    letter-spacing: 0.28em !important;
  }

  /* Mobile menu overlay dropdown */
  .mobile-menu {
    top: 0 !important;
    padding-top: 88px !important;
    background: hsla(205, 100%, 7%, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  /* Desktop-style Bubble Navigation Links for Mobile Menu */
  .mobile-menu a {
    font-family: var(--font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center !important;
    width: 85% !important;
    max-width: 320px !important;
    margin: 4px 0 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
  }

  /* Hover & Tap State */
  .mobile-menu a:hover,
  .mobile-menu a:active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
      0 0 15px rgba(255, 255, 255, 0.05), 
      inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Active State (Gold Glow) */
  .mobile-menu a.active {
    color: #FFD166 !important;
    background: rgba(255, 209, 102, 0.08) !important;
    box-shadow: 
      0 0 20px rgba(255, 209, 102, 0.15), 
      inset 0 1px 1px rgba(255, 209, 102, 0.25) !important;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.4) !important;
    border-color: rgba(255, 209, 102, 0.2) !important;
  }

  /* WhatsApp CTA button inside mobile menu overlay */
  .mobile-menu .btn {
    width: 85% !important;
    max-width: 320px !important;
    margin-top: 16px !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}
