/* Premium Himachal homepage — glass, gradients, nav states, motion */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Hero banner: black overlay (readability + contrast) */
.hero-overlay-premium {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.52) 45%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

.text-gradient-hero {
    background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 55%, #e9d5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop nav: hero (transparent) → solid on scroll */
#site-header[data-nav-hero="true"].nav-is-solid #main-nav {
    margin-top: 0.75rem;
    border-color: rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px -18px rgba(79, 70, 229, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#site-header[data-nav-hero="true"].nav-is-solid .nav-mobile-btn {
    color: #334155 !important;
}

#site-header[data-nav-hero="true"].nav-is-solid .nav-mobile-btn:hover {
    background: rgba(241, 245, 249, 0.95);
}

#site-header[data-nav-hero="true"].nav-is-solid .nav-top-link {
    color: #475569 !important;
}

#site-header[data-nav-hero="true"].nav-is-solid .nav-top-link:hover {
    background: rgba(241, 245, 249, 0.95) !important;
    color: #4338ca !important;
}

#site-header[data-nav-hero="true"].nav-is-solid .nav-top-link.nav-link-active {
    background-color: #eef2ff !important;
    color: #4338ca !important;
}

#site-header[data-nav-hero="true"]:not(.nav-is-solid) .nav-top-link.nav-link-active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

#main-nav:not(.nav-hero-state) .nav-top-link.nav-link-active {
    background-color: #eef2ff;
    color: #4338ca !important;
}

#site-header.header-scrolled:not([data-nav-hero="true"]) #main-nav {
    margin-top: 0.5rem;
    box-shadow: 0 14px 40px -14px rgba(79, 70, 229, 0.2);
}

.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;
}

.counter {
    font-variant-numeric: tabular-nums;
}

#testimonial-track {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Parallax inner layer (JS moves translateY) */
.parallax-inner {
    will-change: transform;
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Nav — destinations dropdown (click / touch, supplements hover) */
li.nav-dropdown.nav-dropdown-is-open > .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

li.nav-dropdown.nav-dropdown-is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* Package detail — gallery track must not widen the page before/after JS layout */
[data-gallery-viewport] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Featured packages carousel — vertical scroll not stolen on touch devices */
.featured-packages-viewport {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* Package detail — itinerary vertical spine */
.itinerary-line {
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0.55) 0%,
        rgba(139, 92, 246, 0.45) 50%,
        rgba(251, 146, 60, 0.4) 100%
    );
}

/* Subtle grid texture for CTA / sections */
.grid-texture {
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Mobile: readable line length, no horizontal pan, comfortable taps */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 639px) {
    .nav-shell {
        flex-wrap: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    .parallax-inner {
        transform: none !important;
    }
}
