/*
Theme Name:   BlueVista Child
Theme URI:    https://spitiroutes.com
Description:  Custom Luxury Child Theme for BlueVista Travel - Spiti Routes Flagship
Author:       Spiti Routes Luxury Architect
Template:     bluevista
Version:      1.1.0
Text Domain:  bluevista-child
*/

/* ==========================================================================
   1. MASTER STICKY HEADER
   ========================================================================== */
.sticky-header-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(6, 26, 47, 0.12);
}

/* Neutralize parent fixed positioning to eliminate layout jump */
.sticky-header-wrapper .site-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  background-color: var(--navy, #0a2440) !important;
  padding: 12px 0 !important;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.sticky-header-wrapper .site-header::before {
  display: none !important;
}


/* ==========================================================================
   2. BRAND UNIT (INLINE MONOGRAM + GOLD WORDMARK)
   ========================================================================== */
.brand.brand-combined {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand.brand-combined .custom-logo-link img {
  max-height: 46px;
  width: auto;
  display: block;
}

.brand-text-inline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-title {
  font-family: var(--ff-display, serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5a93b !important; /* Authentic Himalayan Gold */
  line-height: 1;
  transition: color 0.25s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.brand-title:hover {
  color: #f3be5d !important;
}

@media (max-width: 768px) {
  .brand.brand-combined {
    gap: 10px;
  }
  .brand.brand-combined .custom-logo-link img {
    max-height: 38px;
  }
  .brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }
}

/* ==========================================================================
   3. EXPEDITION TELEMETRY HERO SLIDER
   ========================================================================== */
   
.spiti-hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 640px;
  max-height: 880px;
  overflow: hidden;
  background-color: var(--navy-deep, #061a2f);
}

.spiti-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.spiti-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), transform 7s linear;
}

.spiti-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 26, 47, 0.45) 0%,
    rgba(6, 26, 47, 0.25) 40%,
    rgba(6, 26, 47, 0.88) 100%
  );
  z-index: 1;
}

.slide-content-wrap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 145px;
}

/* Telemetry Badge Bar */
.telemetry-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-body, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ice, #dceffa);
  background: rgba(6, 26, 47, 0.72);
  padding: 6px 14px;
  border-radius: var(--r-pill, 999px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.telemetry-link {
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.telemetry-link:hover {
  background-color: var(--blue, #1273d4);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.slide-title {
  font-family: var(--ff-display, serif);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  margin: 0 0 14px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.slide-synopsis {
  font-family: var(--ff-body, sans-serif);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  color: rgba(220, 239, 250, 0.9);
  max-width: 680px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Precision Pagination Indicator */
.slider-dots-container {
  position: absolute;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  
      right: auto !important;
    margin: 0 !important;
    justify-content: center !important;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.77, 0.36, 1);
  padding: 0;
}

.slider-dot.is-active {
  width: 18px;
  border-radius: 3px;
  background: var(--blue, #1273d4);
}

/* Vertical Scroll Needle & Explore Label */
.hero-scroll.custom-hero-explore {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 10;
  
      right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero-scroll.custom-hero-explore span:not(.line) {
  color: #e5a93b !important;
  font-weight: 700;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  text-transform: uppercase;
  order: 1;
}

.hero-scroll.custom-hero-explore .line {
  order: 2;
  height: 32px;
  
  width: 1px !important;
    margin: 0 auto !important;
  
  position: relative;
  overflow: hidden;
}

.hero-scroll.custom-hero-explore .line span {
  background-color: var(--blue, #1273d4) !important;
  box-shadow: 
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(18, 115, 212, 0.9),
    0 0 20px rgba(18, 115, 212, 0.7) !important;
  animation: blueNeedleHighShine 1.8s infinite ease-in-out !important;
}

@keyframes blueNeedleHighShine {
  0%, 100% {
    opacity: 0.85;
    filter: brightness(1.2);
  }
  50% {
    opacity: 1;
    filter: brightness(2);
  }
}



/*SPITI ROUTES: CEREMONIAL MOBILE VIEWPORT HARNESS (UNDER 768PX)  */

@media (max-width: 768px) {

  /* 1. Slide Content Wrap: Elevate content floor to isolate copy from lower instruments */
  .slide-content-wrap {
    padding-bottom: 90px !important;
  }

  /* 2. Expedition Title: Scaled serif display */
  .slide-title {
    font-size: 1.38rem !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }

  /* 3. Narrative Synopsis: Disciplined 3-line optical clamp */
  .slide-synopsis {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 4. Precision 10-Dot Rail: Suspended at 52px */
  .slider-dots-container {
    bottom: 66px !important;
  }

  /* 5. Exploration Module: Grounded within active viewport boundaries */
  .hero-scroll.custom-hero-explore {
    bottom: 80px !important;
    gap: 3px !important;
  }

  .hero-scroll.custom-hero-explore span:not(.line) {
    font-size: 0.62rem !important;
    letter-spacing: 0.22em !important;
  }

  /* CRITICAL: Scale desktop 32px needle to 14px to eliminate viewport overflow */
  .hero-scroll.custom-hero-explore .line {
    height: 14px !important;
    width: 1px !important;
    margin: 0 auto !important;
  }

  /* 6. Micro-Telemetry Badges: Compact, single-row presentation */
  .telemetry-bar {
    gap: 3px !important;
    margin-bottom: 6px !important;
    justify-content: center !important;
  }

  .telemetry-item {
    font-size: 0.58rem !important;
    padding: 2px 6px !important;
    gap: 3px !important;
  }

}



/* ==========================================================================
   4. TWO-ROW CENTERED BRAND FOOTER
   ========================================================================== */
.footer-row-brand {
  text-align: center;
  padding-bottom: 24px;
}

.footer-brand-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  max-height: 56px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.footer-brand-title {
  font-family: var(--ff-display, serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.footer-domain-link {
  font-family: var(--ff-body, sans-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--glacier, #4fb3e8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-domain-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-divider-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 36px auto;
}

.footer-grid-three-cols {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(24px, 4vw, 48px);
}

@media (max-width: 768px) {
  .footer-grid-three-cols {
    grid-template-columns: 1fr !important;
    gap: 26px;
    text-align: center;
  }
}

/* ==========================================================================
   5. FLOATING VIP CONCIERGE BUTTONS (BOTTOM-LEFT LUXURY ANCHOR)
   ========================================================================== */
.floating-quick-actions {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  z-index: 99995 !important;
  pointer-events: auto !important;
  transform: translateZ(0);
}

.float-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(6, 26, 47, 0.35) !important;
  transition: transform 0.25s cubic-bezier(0.2, 0.77, 0.36, 1), box-shadow 0.25s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.float-btn:hover {
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 12px 28px rgba(6, 26, 47, 0.45) !important;
}

/* Voice Expedition Support (Top) */
.float-phone {
  width: 44px !important;
  height: 44px !important;
  background-color: #1273d4 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* WhatsApp High-Altitude Concierge (Bottom) */
.float-whatsapp {
  width: 50px !important;
  height: 50px !important;
  background-color: #25d366 !important;
}

/* Mobile & Tablet Viewport Precision */
@media (max-width: 768px) {
  .floating-quick-actions {
    bottom: 18px !important;
    left: 16px !important;
    right: auto !important;
    gap: 10px !important;
  }
  .float-phone {
    width: 40px !important;
    height: 40px !important;
  }
  .float-whatsapp {
    width: 46px !important;
    height: 46px !important;
  }
}


/* ==========================================================================
   SPITI ROUTES: ULTRA-STABLE FIXED HEADER & INDEPENDENT DRAWER FIX
   ========================================================================== */

/* 1. Prevent Horizontal Viewport Squeeze & Lock Native Scale */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* 2. Lock Sticky Header to Full-Width Viewport Boundary */
.sticky-header-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99990 !important;
  box-shadow: 0 4px 20px rgba(6, 26, 47, 0.25) !important;
}

.site-header,
.site-header.is-stuck {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  background: var(--navy, #0a2440) !important;
  overflow: visible !important;
}

/* 3. Fully Decouple Mobile Navigation Drawer from Document Flow */
@media (max-width: 860px) {
  /* Closed State: Completely isolated and hidden off-canvas */
  
  .nav-main {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(320px, 80vw) !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    padding: 85px 24px 40px !important;
    box-shadow: -15px 0 35px rgba(6, 26, 47, 0.25) !important;
    
     /* Hardware-accelerated off-screen anchor */
    transform: translate3d(100%, 0, 0) !important;
    visibility: hidden !important;
    display: block !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s ease !important;
    pointer-events: none !important;
  }

   /* Open State: Smooth slide-in presentation triggered on demand */
  body.nav-open .nav-main {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

 /* Neutralize legacy backdrop to prevent pointer obstruction */
  .nav-backdrop {
    display: none !important;
  }
}


/* ==========================================================================
   SPITI ROUTES: DEDICATED INQUIRY POPUP & NAVIGATION ACTIONS
   ========================================================================== */

.sr-popup-confirmation-page {
  min-height: 80vh;
  position: relative;
  background-color: #061a2f; /* Deep Spiti Midnight Navy */
}

.sr-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(6, 26, 47, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.sr-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(191, 161, 95, 0.35) !important;
  border-radius: 4px !important;
  max-width: 440px !important;
  width: 100% !important;
  padding: 44px 36px 36px !important;
  position: relative !important;
  box-shadow: 0 24px 60px rgba(6, 26, 47, 0.45) !important;
  text-align: center;
  animation: srModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes srModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sr-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 18px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  color: #8c9ba5 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 4px !important;
  transition: color 0.2s ease;
}

.sr-modal-close:hover {
  color: #061a2f !important;
}

.sr-modal-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfa15f; /* Himalayan Muted Gold */
  margin-bottom: 10px;
}

.sr-modal-title {
  font-size: 1.85rem !important;
  font-weight: 600 !important;
  color: #061a2f !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.01em !important;
}

.sr-modal-divider {
  width: 36px;
  height: 2px;
  background: #bfa15f;
  margin: 0 auto 18px;
}

.sr-modal-message {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: #4a5568 !important;
  margin: 0 0 28px !important;
}

.sr-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sr-modal-btn {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 13px 24px !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.sr-btn-primary {
  background-color: #061a2f !important;
  color: #ffffff !important;
  border: 1px solid #061a2f !important;
}

.sr-btn-primary:hover {
  background-color: #bfa15f !important;
  border-color: #bfa15f !important;
  color: #061a2f !important;
}

@media screen and (max-width: 480px) {
  .sr-modal-card {
    padding: 36px 24px 28px !important;
  }
}








/* ==========================================================================
   SPITI ROUTES: BILATERAL HERO BOTTOM DOCK SYSTEM
   ========================================================================== */

/* 1. Dock Container: Pinned to bottom baseline */
.sr-hero-bottom-dock {
  position: absolute !important;
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 940px !important;
  padding: 0 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  z-index: 70 !important;
  pointer-events: none !important;
}

/* 2. Interactive Trigger Enablement */
.sr-dock-btn,
.sr-dock-center {
  pointer-events: auto !important;
}

/* 3. Central Explore Anchor Alignment */
.sr-dock-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  margin: 0 24px !important;
  flex-shrink: 0 !important;
}

.sr-dock-center .sr-explore-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 6px !important;
}

/* 4. Luxury Pill Triggers */
.sr-dock-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  padding: 13px 26px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease !important;
}

/* Left Trigger: Alpine High-Altitude Blue */
.sr-dock-btn-left {
  background-color: #1976d2 !important;
  color: #ffffff !important;
  border: 1px solid #1976d2 !important;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.35) !important;
}

.sr-dock-btn-left:hover {
  background-color: #1464b4 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.45) !important;
}

/* Right Trigger: Pristine Glacial White */
.sr-dock-btn-right {
  background-color: #ffffff !important;
  color: #061a2f !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

.sr-dock-btn-right:hover {
  background-color: #f7fafc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

/* ==========================================================================
   MOBILE VIEWPORT ADAPTATION (UNDER 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .sr-hero-bottom-dock {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: 
      "btnLeft btnRight"
      "explore explore" !important;
    gap: 12px !important;
    padding: 0 16px !important;
    margin: 20px auto 24px !important;
  }

  .sr-dock-btn-left {
    grid-area: btnLeft !important;
    font-size: 0.72rem !important;
    padding: 11px 10px !important;
    text-align: center !important;
  }

  .sr-dock-btn-right {
    grid-area: btnRight !important;
    font-size: 0.72rem !important;
    padding: 11px 10px !important;
    text-align: center !important;
  }

  .sr-dock-center {
    grid-area: explore !important;
    margin: 6px auto 0 !important;
  }
}
