/* ============================================
   HOMEPAGE REDESIGN – Modern UI/UX
   Meander Himalaya – Mobile & desktop responsive
   (No background colors changed – typography, spacing, shadows only)
   ============================================ */

/* --- Base: prevent overflow on all viewports --- */
.page-home {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.page-home .container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
}

.page-home section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Global section spacing cleanup (home only) */
.page-home section:not(.hero) {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(2rem, 5vw, 3rem) !important;
    padding-bottom: clamp(2rem, 5vw, 3rem) !important;
}

.page-home .section-header {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* --- Home page variables --- */
.page-home {
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --home-duration: 0.5s;
    --home-radius: 16px;
    --home-radius-sm: 12px;
    --home-shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
    --home-shadow-hover: 0 16px 48px rgba(10, 22, 40, 0.18);
    --home-touch: 44px;
}

/* Touch-friendly tap targets (mobile) */
.page-home button,
.page-home .cta-btn,
.page-home .about-btn,
.page-home a.cta-btn {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
    touch-action: manipulation;
}

/* --- Hero: shorter than full viewport, safe areas --- */
.page-home .hero {
    min-height: 78vh;
    min-height: 78svh;
    min-height: 78dvh;
    height: 78vh;
    height: 78svh;
    height: 78dvh;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.page-home .slide-content {
    max-width: 90%;
    padding: clamp(1rem, 4vw, 2rem);
    transition: opacity 0.4s var(--home-ease);
}

.page-home .slide:not(.active) .slide-content {
    opacity: 0;
    pointer-events: none;
}

.page-home .slide.active .slide-content .hero-badge {
    animation: homeSlideUp 0.7s var(--home-ease) 0.1s both;
}

.page-home .slide.active .slide-content h1 {
    animation: homeSlideUp 0.7s var(--home-ease) 0.2s both;
}

.page-home .slide.active .slide-content p {
    animation: homeSlideUp 0.7s var(--home-ease) 0.35s both;
}

.page-home .slide.active .slide-content .hero-cta-group {
    animation: homeSlideUp 0.7s var(--home-ease) 0.5s both;
}

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

.page-home .hero-badge {
    padding: 0.5rem 1rem;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
}

.page-home .slide-content h1 {
    font-size: clamp(2rem, 6vw, 3.75rem);
    line-height: 1.12;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-home .slide-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-home .hero-cta-group {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.page-home .cta-btn {
    min-height: var(--home-touch);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease), background 0.25s ease;
}

.page-home .cta-btn:active {
    transform: scale(0.98);
}

/* Slider nav: touch-friendly, visible on mobile --- */
.page-home .slider-nav {
    padding: 0 clamp(0.5rem, 3vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.page-home .slider-nav button {
    min-width: var(--home-touch);
    min-height: var(--home-touch);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.25s ease, transform 0.25s ease;
}

.page-home .slider-nav button:hover,
.page-home .slider-nav button:focus-visible {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.page-home .slider-nav button:active {
    transform: scale(0.95);
}

/* Dots: larger tap targets on touch --- */
.page-home .slider-dots {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    gap: 0.5rem;
}

.page-home .dot {
    width: 10px;
    height: 10px;
    min-width: 12px;
    min-height: 12px;
    padding: 6px;
    margin: -6px;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.page-home .dot.active {
    transform: scale(1.35);
}

/* Scroll hint: hide on small viewports to reduce clutter --- */
.page-home .hero-scroll-hint {
    bottom: max(4rem, calc(env(safe-area-inset-bottom) + 2rem));
}

/* --- Scroll-reveal: .home-fade-in + .visible --- */
.page-home .home-fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--home-ease), transform 0.65s var(--home-ease);
}

.page-home .home-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays (set via JS or inline style) */
.page-home .home-fade-in.visible[data-delay="0"] { transition-delay: 0s; }
.page-home .home-fade-in.visible[data-delay="1"] { transition-delay: 0.08s; }
.page-home .home-fade-in.visible[data-delay="2"] { transition-delay: 0.16s; }
.page-home .home-fade-in.visible[data-delay="3"] { transition-delay: 0.24s; }
.page-home .home-fade-in.visible[data-delay="4"] { transition-delay: 0.32s; }
.page-home .home-fade-in.visible[data-delay="5"] { transition-delay: 0.4s; }

/* --- Sequential scroll reveal: section headings & trail story (one line at a time) --- */
.page-home .mh-scroll-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
    transition:
        opacity 0.65s var(--home-ease),
        transform 0.72s var(--home-ease),
        filter 0.55s ease;
    will-change: opacity, transform, filter;
}

.page-home .mh-scroll-stagger > *.mh-item-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Card grids (mh-card-scroll): hidden until staggered in — stronger entrance (scale) */
.page-home .mh-card-scroll > .why-choose-card,
.page-home .mh-card-scroll > .category-card {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(4px);
    transition:
        opacity 0.65s var(--home-ease),
        transform 0.75s var(--home-ease),
        filter 0.65s var(--home-ease),
        box-shadow 0.35s var(--home-ease);
    will-change: transform, opacity, filter;
}

.page-home .mh-card-scroll > .why-choose-card.mh-item-visible,
.page-home .mh-card-scroll > .category-card.mh-item-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- About section: improved layout, typography, hierarchy --- */
.page-home .about {
    padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.page-home .section-header p {
    line-height: 1.65;
}

.page-home .about .container {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.page-home .about .section-header {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.page-home .about-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.page-home .why-choose-header .about-section-label {
    color: rgba(255, 255, 255, 0.78);
}

.page-home .about .section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-home .about .section-header h2::after,
.page-home .why-choose .section-header h2::after {
    content: none;
    display: none;
}

.page-home .about .section-header p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.page-home .about-content-blend {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
    min-height: unset;
}

.page-home .about-image-blend {
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
}

.page-home .about-image-fade {
    min-height: 320px;
}

.page-home .about-image-fade img {
    transition: transform 0.5s var(--home-ease);
}

.page-home .about-image-blend:hover .about-image-fade img {
    transform: scale(1.03);
}

.page-home .about-text-wrap {
    padding-left: 1.5rem;
}

.page-home .about-path-line .path-dot {
    width: 8px;
    height: 8px;
}

.page-home .about-text h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.page-home .about-text p {
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.page-home .about-highlights {
    margin: 1rem 0 1.25rem;
    padding: 0;
    list-style: none;
}

.page-home .about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: clamp(0.875rem, 1.1vw, 0.9rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.page-home .about-highlights li i {
    color: #86efac;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.page-home .about-btn {
    min-height: var(--home-touch);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease), background 0.25s ease;
}

.page-home .about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(44, 95, 124, 0.35);
}

.page-home .about-btn:active {
    transform: translateY(0) scale(0.98);
}

.page-home .about-btn i {
    transition: transform 0.2s ease;
}

.page-home .about-btn:hover i {
    transform: translateX(4px);
}

/* --- Why Choose: responsive grid, card hover --- */
.page-home .why-choose {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.page-home .why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.page-home .why-choose-header .section-header p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.page-home .why-choose-card h3 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--secondary-color);
    margin: 0;
}

.page-home .why-choose-card p {
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.page-home .why-choose-card {
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    border-radius: var(--home-radius);
    transition: transform 0.35s var(--home-ease), box-shadow 0.35s var(--home-ease);
}

.page-home .why-choose-card.mh-item-visible:active {
    transform: translateY(-2px) scale(1);
}

.page-home .why-choose-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--home-radius-sm);
    font-size: 1.2rem;
}

.page-home .why-choose-card .why-choose-icon,
.page-home .why-choose-card h3 {
    display: inline-flex;
    vertical-align: middle;
}

.page-home .why-choose-card .why-choose-icon {
    margin: 0 0.65rem 0.6rem 0;
}

.page-home .why-choose-card h3 {
    margin-bottom: 0.6rem;
}

/* --- Expeditions (journey cards): bento responsive --- */
.page-home .expeditions.expeditions-home {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.page-home .journey-card {
    border-radius: var(--home-radius);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.35s var(--home-ease), box-shadow 0.35s var(--home-ease);
}

.page-home .journey-card-hero .journey-card-body h3 {
    letter-spacing: -0.02em;
}

.page-home .expeditions-home .section-header-journey h2 {
    letter-spacing: -0.02em;
}

.page-home .journey-card-body {
    min-width: 0;
}

.page-home .journey-card-body h3 a,
.page-home .journey-card-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-home .journey-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.page-home .journey-card-tile .journey-card-body h3 a,
.page-home .journey-card-wide .journey-card-body h3 a {
    padding: 0.25rem 0;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-home .btn-view-details,
.page-home .btn-book-now {
    min-height: 40px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: rgba(44, 95, 124, 0.2);
    touch-action: manipulation;
}

.page-home .btn-view-details:active,
.page-home .btn-book-now:active {
    transform: scale(0.97);
}

.page-home .btn-view-all {
    min-height: var(--home-touch);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease);
}

.page-home .btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow-hover);
}

.page-home .btn-view-all:active {
    transform: scale(0.98);
}

.page-home .expeditions-cta {
    margin-top: 1.5rem;
    text-align: center;
}

/* --- Footer: compact on mobile --- */
.page-home .footer {
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
}

.page-home .footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.page-home .footer-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.page-home .footer-section ul li {
    margin-bottom: 0.35rem;
}

.page-home .footer-section a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.page-home .footer-section a:hover {
    opacity: 0.9;
}

.page-home .social-links a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .social-links a:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet and below */
@media (max-width: 992px) {
    .page-home .about-content-blend {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-home .about-image-blend {
        order: 1;
    }

    .page-home .about-text-wrap {
        order: 2;
        padding-left: 0;
    }

    .page-home .about-path-line {
        display: none;
    }

    .page-home .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .page-home .why-choose-card {
        min-width: 0;
    }

    .page-home .expeditions-home .journey-cards-bento {
        min-width: 0;
        width: 100%;
    }

    .page-home .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .page-home .footer-section {
        min-width: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-home .hero {
        min-height: 58vh;
        min-height: 58svh;
        min-height: 58dvh;
        height: 58vh;
        height: 58svh;
        height: 58dvh;
    }

    /* Keep slide content centered and fully visible on mobile */
    .page-home .slide-content {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: 92%;
        max-width: 92%;
        transform: translateY(-50%);
        padding: 1rem max(0.75rem, env(safe-area-inset-right)) 1rem max(0.75rem, env(safe-area-inset-left));
        box-sizing: border-box;
    }

    .page-home .slide-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .page-home .hero-cta-group {
        flex-direction: row;
        flex-wrap: nowrap;
        width: auto;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .page-home .cta-btn {
        width: auto;
        justify-content: center;
    }

    .page-home .slider-nav button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .page-home .slider-dots {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .page-home .hero-scroll-hint {
        font-size: 0.75rem;
    }

    .page-home .about {
        padding: 2.5rem 0;
    }

    .page-home .about .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-home .about-image-fade {
        min-height: 260px;
    }

    .page-home .about .section-header h2 {
        font-size: clamp(1.85rem, 5.5vw, 2.45rem);
    }

    .page-home .about-text p,
    .page-home .about-highlights li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-home .why-choose {
        padding: 2.5rem 0;
    }

    .page-home .why-choose .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-home .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-home .why-choose-card {
        min-width: 0;
    }

    .page-home .expeditions.expeditions-home {
        padding: 2.5rem 0;
    }

    .page-home .expeditions-home .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-home .journey-card-hero .journey-card-body {
        padding: 1.5rem 1.25rem;
    }

    .page-home .journey-card-hero .journey-card-body h3 {
        font-size: 1.5rem;
    }

    .page-home .journey-card-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-home .btn-view-all {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .page-home .footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .page-home .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.25rem, 4vw, 1.75rem);
    }

    .page-home .footer-content .footer-section:first-child {
        padding-left: 0;
    }

    .page-home .footer-section {
        min-width: 0;
    }

    .page-home .footer-section p,
    .page-home .footer-section a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .page-home .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .page-home .slide-content {
        padding: 0.875rem 0.5rem;
    }

    .page-home .slide-content h1 {
        font-size: 1.65rem;
    }

    .page-home .slide-content p {
        font-size: 0.95rem;
    }

    .page-home .about-image-fade {
        min-height: 220px;
    }

    .page-home .section-header h2 {
        font-size: 1.5rem;
    }

    .page-home .about-section-label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .page-home .journey-card-tile .journey-card-body,
    .page-home .journey-card-wide .journey-card-body {
        padding: 1rem;
    }

    .page-home .journey-card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-home .slider-nav button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }
}

/* Extra small (e.g. iPhone SE 320px) */
@media (max-width: 360px) {
    .page-home .slide-content h1 {
        font-size: 1.5rem;
    }
    .page-home .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }
    .page-home .nav-brand {
        font-size: 1rem;
    }
    .nav-logo {
        height: 1.5rem;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .page-home .home-fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .page-home .slide.active .slide-content .hero-badge,
    .page-home .slide.active .slide-content h1,
    .page-home .slide.active .slide-content p,
    .page-home .slide.active .slide-content .hero-cta-group {
        animation: none;
    }

    .page-home .why-choose-card,
    .page-home .journey-card {
        transition: none;
    }

    .page-home .why-choose-card,
    .page-home .category-card {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .page-home .mh-scroll-stagger > *,
    .page-home .mh-card-scroll > .why-choose-card,
    .page-home .mh-card-scroll > .category-card {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}
