:root {
    --midnight-950: #060D1C;
    --midnight-900: #0B162C;
    --midnight-850: #10203E;
    --midnight-800: #162B52;
    --midnight-700: #1F3B6E;
    --midnight-glass: rgba(11, 22, 44, 0.86);

    --ice-50: #F4F7FC;
    --ice-100: #E6EDF8;
    --ice-200: #CBD8EE;
    --slate-300: #9FB1D1;
    --slate-400: #7A90B8;

    --cyan-glow: #38BDF8;
    --gold-accent: #EAB308;
    --gold-hover: #FACC15;

    --border-hairline: rgba(148, 178, 224, 0.14);
    --border-bright: rgba(56, 189, 248, 0.34);

    --shadow-header: 0 12px 36px rgba(3, 8, 18, 0.45);
    --shadow-dropdown: 0 24px 54px rgba(2, 6, 15, 0.68);
    --ease-saas: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--midnight-950);
    color: var(--ice-50);
    -webkit-font-smoothing: antialiased;
}

.header-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   HEADER SHELL & SCROLL STATE
========================================================= */
.shikhar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--midnight-900);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-header);
    transition: background-color 0.35s var(--ease-saas), box-shadow 0.35s var(--ease-saas);
}

.shikhar-header.is-scrolled {
    background: var(--midnight-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 16px 44px rgba(2, 6, 16, 0.65);
}

/* =========================================================
   A. SUB HEADER (Utility & Search)
========================================================= */
.sub-header {
    background: var(--midnight-950);
    border-bottom: 1px solid var(--border-hairline);
    height: 44px;
    transition: height 0.35s var(--ease-saas), opacity 0.28s ease, border-color 0.3s ease;
    overflow: visible;
}

.shikhar-header.is-scrolled .sub-header {
    height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom-color: transparent;
    pointer-events: none;
}

.sub-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sub-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-sep {
    color: rgba(159, 177, 209, 0.28);
    font-size: 12px;
    user-select: none;
}

.sub-link {
    text-decoration: none;
    color: var(--slate-300);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s var(--ease-saas);
}

.sub-link i {
    color: var(--cyan-glow);
    font-size: 11.5px;
    opacity: 0.9;
}

.sub-link:hover,
.sub-link.active {
    color: var(--ice-50);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-1px);
}

/* Search Bar */
.sub-search-box {
    position: relative;
    flex: 1;
    max-width: 440px;
}

.sub-search-form {
    display: flex;
    align-items: center;
    height: 30px;
    background: var(--midnight-850);
    border: 1px solid var(--border-hairline);
    border-radius: 999px;
    padding: 0 4px 0 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.sub-search-form:focus-within {
    background: var(--midnight-800);
    border-color: var(--cyan-glow);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.search-leading-icon {
    color: var(--slate-400);
    font-size: 11.5px;
    margin-right: 8px;
}

.sub-search-form input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ice-50);
    font-family: inherit;
    font-size: 12.5px;
}

.sub-search-form input::placeholder {
    color: var(--slate-400);
}

.search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--slate-300);
    font-size: 12px;
    padding: 0 6px;
    cursor: pointer;
}

.search-clear-btn.visible {
    display: inline-flex;
}

.search-go-btn {
    height: 22px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background: var(--midnight-700);
    color: var(--ice-50);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.search-go-btn:hover {
    background: var(--cyan-glow);
    color: var(--midnight-950);
}

/* Live Search Popover */
.live-search-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--midnight-850);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    box-shadow: var(--shadow-dropdown);
    padding: 6px;
    z-index: 1200;
    animation: popFade 0.22s var(--ease-saas);
}

.live-search-popover.open {
    display: block;
}

.search-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--ice-100);
    font-size: 12.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-result-row:hover {
    background: var(--midnight-700);
    color: #FFFFFF;
}

.search-result-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: var(--cyan-glow);
    white-space: nowrap;
}

/* Payment Pill */
.sub-payment-pill {
    text-decoration: none;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--ice-50);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s var(--ease-saas);
}

.sub-payment-pill i {
    color: var(--cyan-glow);
    font-size: 11.5px;
}

.sub-payment-pill:hover,
.sub-payment-pill.active {
    background: var(--cyan-glow);
    color: var(--midnight-950);
    border-color: var(--cyan-glow);
}

.sub-payment-pill:hover i {
    color: var(--midnight-950);
}

/* =========================================================
   B. MAIN HEADER (Logo & Primary Navigation)
========================================================= */
.main-header {
    height: 84px;
    display: flex;
    align-items: center;
    transition: height 0.35s var(--ease-saas);
}

.shikhar-header.is-scrolled .main-header {
    height: 68px;
}

.main-header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Prominent Logo Presentation on Midnight Blue */
.brand-mark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFFFFF 0%, #F1F5FB 100%);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(2, 6, 16, 0.42), 0 0 0 1px rgba(56, 189, 248, 0.14);
    transition: transform 0.3s var(--ease-saas), box-shadow 0.3s var(--ease-saas), padding 0.35s var(--ease-saas);
}

.shikhar-header.is-scrolled .brand-logo-frame {
    padding: 4px 12px;
    border-radius: 10px;
}

.brand-logo-img {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.35s var(--ease-saas);
}

.shikhar-header.is-scrolled .brand-logo-img {
    height: 44px;
}

.brand-mark:hover .brand-logo-frame {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 12px 28px rgba(2, 6, 16, 0.55), 0 0 0 2px rgba(56, 189, 248, 0.32);
}

/* Desktop Nav */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--ice-100);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 13px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--gold-accent));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.32s var(--ease-saas);
}

.nav-link:hover,
.nav-link.active,
.has-dropdown.open .nav-link {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after,
.nav-link.active::after,
.has-dropdown.open .nav-link::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-caret {
    font-size: 11px;
    color: var(--slate-300);
    transition: transform 0.3s var(--ease-saas), color 0.25s ease;
}

.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret {
    transform: rotate(180deg);
    color: var(--cyan-glow);
}

/* =========================================================
   CLIMBING EXPEDITION DROPDOWN PANEL
========================================================= */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 390px;
    padding: 14px;
    background: linear-gradient(180deg, var(--midnight-850) 0%, var(--midnight-900) 100%);
    border: 1px solid var(--border-bright);
    border-radius: 18px;
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px) scale(0.97);
    transition: opacity 0.26s var(--ease-saas), transform 0.32s var(--ease-saas), visibility 0.32s;
    z-index: 1100;
}

/* Hover bridge */
.mega-dropdown::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.has-dropdown:hover .mega-dropdown,
.has-dropdown.open .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-hairline);
}

.mega-kicker {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-glow);
}

.mega-all-link {
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--slate-300);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mega-all-link:hover {
    color: var(--ice-50);
    transform: translateX(2px);
}

.mega-dropdown-grid {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-card-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid transparent;
    transition: all 0.24s var(--ease-saas);
}

.mega-card-link:hover {
    background: var(--midnight-800);
    border-color: rgba(56, 189, 248, 0.26);
    transform: translateX(4px);
}

.mega-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: var(--cyan-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.25s var(--ease-saas);
}

.mega-card-link:hover .mega-icon {
    background: var(--cyan-glow);
    color: var(--midnight-950);
    transform: scale(1.05);
}

.mega-copy {
    display: flex;
    flex-direction: column;
}

.mega-copy strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ice-50);
    line-height: 1.25;
}

.mega-copy small {
    font-size: 11.5px;
    color: var(--slate-300);
    margin-top: 2px;
}

/* E-Brochure Button */
.nav-cta-wrap {
    margin-left: 8px;
}

.ebrochure-cta {
    text-decoration: none;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #D97706 100%);
    color: var(--midnight-950);
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.24);
    transition: transform 0.25s var(--ease-saas), box-shadow 0.25s var(--ease-saas), filter 0.25s ease;
}

.ebrochure-cta:hover,
.ebrochure-cta.active {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(234, 179, 8, 0.36);
}

/* Scroll Progress Line */
.header-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.04);
}

.header-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-glow), var(--gold-accent));
    transition: width 0.08s linear;
}

/* =========================================================
   MOBILE CONTROLS & DRAWER
========================================================= */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-hairline);
    background: var(--midnight-850);
    color: var(--cyan-glow);
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mobile-icon-btn:hover {
    border-color: var(--cyan-glow);
    background: var(--midnight-800);
}

.mobile-menu-btn {
    width: 42px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-hairline);
    background: var(--midnight-850);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn .line {
    width: 20px;
    height: 2px;
    background: var(--ice-50);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-saas), opacity 0.2s ease;
}

.mobile-menu-btn.active .l1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .l2 {
    opacity: 0;
}

.mobile-menu-btn.active .l3 {
    transform: translateY(-7px) rotate(-45deg);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.72);
    backdrop-filter: blur(5px);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 90vw);
    background: var(--midnight-900);
    border-left: 1px solid var(--border-bright);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-saas);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-top {
    padding: 16px 20px;
    background: var(--midnight-950);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-brand img {
    height: 44px;
    width: auto;
    background: #FFFFFF;
    padding: 4px 10px;
    border-radius: 8px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border-hairline);
    background: var(--midnight-850);
    color: var(--ice-100);
    font-size: 15px;
    cursor: pointer;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-search-form {
    display: flex;
    background: var(--midnight-950);
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.drawer-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--ice-50);
    padding: 11px 14px;
    font-size: 13.5px;
    outline: none;
}

.drawer-search-form input::placeholder {
    color: var(--slate-400);
}

.drawer-search-form button {
    background: var(--cyan-glow);
    color: var(--midnight-950);
    border: none;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
}

.drawer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.drawer-link,
.drawer-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 6px;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-hairline);
    color: var(--ice-100);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.drawer-accordion-btn i {
    font-size: 12px;
    color: var(--slate-300);
    transition: transform 0.3s var(--ease-saas);
}

.drawer-accordion.open .drawer-accordion-btn i {
    transform: rotate(180deg);
    color: var(--cyan-glow);
}

.drawer-sublist {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    background: var(--midnight-950);
    border-radius: 10px;
    transition: max-height 0.38s var(--ease-saas), padding 0.3s ease, margin 0.3s ease;
}

.drawer-accordion.open .drawer-sublist {
    max-height: 300px;
    padding: 6px 0;
    margin: 8px 0;
}

.drawer-sublist li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--slate-300);
    font-size: 13.5px;
    font-weight: 500;
}

.drawer-sublist li a:hover {
    color: var(--cyan-glow);
}

.drawer-sublist li a i {
    color: var(--cyan-glow);
    width: 16px;
}

.drawer-ebrochure-btn {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #D97706 100%);
    color: var(--midnight-950);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.drawer-utilities {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-hairline);
}

.drawer-utilities-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 12px;
}

.drawer-utilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-utilities-grid a {
    text-decoration: none;
    background: var(--midnight-850);
    border: 1px solid var(--border-hairline);
    color: var(--ice-100);
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-utilities-grid a i {
    color: var(--cyan-glow);
}

.drawer-utilities-grid a.drawer-pay-btn {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1);
}

@keyframes popFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */
@media (max-width: 1220px) {
    .nav-link {
        font-size: 13px;
        padding: 9px 10px;
    }
    .brand-logo-img {
        height: 48px;
    }
}

@media (max-width: 1024px) {
    .sub-header,
    .primary-nav {
        display: none;
    }
    .mobile-actions {
        display: flex;
    }
    .main-header {
        height: 74px;
    }
    .brand-logo-img {
        height: 44px;
    }
}