/* ================================================================
   Himalayan Trip Designer — Navbar CSS
   Exact match to Desktop-1.png reference:
   - Dark navy top bar (GST | 24/7 | Email | Get a free Quote)
   - White main nav with logo+divider+PAN INDIA DMC on left
   - Nav links right-aligned (Holiday▾ Destination▾ Payment...)
   - Active link = orange underline
   - Back-shade hover on all nav items
================================================================ */

/* ── Top Bar ──────────────────────────────────────────────────── */
.nav-topbar {
    background: #1A3A6B;
    color: #fff;
    font-size: 12.5px;
    line-height: 1;
    padding: 0;
}

.nav-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 16px;
}

.nav-topbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}

.nav-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 14px 0 0;
}

.nav-topbar-item svg { flex-shrink: 0; }

.nav-topbar-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.25);
    margin: 0 14px 0 0;
    flex-shrink: 0;
}

.nav-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 150ms ease;
    padding-right: 14px;
}

.nav-topbar-link:hover { color: #fff; }
.nav-topbar-link svg { flex-shrink: 0; }

.nav-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* "Get a free Quote" orange pill */
.nav-topbar-cta {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #F5821F;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 150ms ease;
    white-space: nowrap;
    font-family: inherit;
}

.nav-topbar-cta:hover { background: #e07310; }

/* ── Sticky wrapper ───────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 #E8ECF0;
    transition: box-shadow 200ms ease;
}

.site-nav.scrolled {
    box-shadow: 0 4px 20px rgba(15,23,42,0.10);
}

/* ── Main Nav ─────────────────────────────────────────────────── */
.nav-main {
    background: #fff;
    border-bottom: 1px solid #E8ECF0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 16px;
}

/* ── Logo block ───────────────────────────────────────────────── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Vertical divider between logo and PAN INDIA DMC */
.nav-logo-div {
    display: block;
    width: 1px;
    height: 40px;
    background: #D1D8E0;
    margin: 0 14px;
    flex-shrink: 0;
}

/* PAN INDIA DMC stacked badge */
.nav-pan-dmc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    flex-shrink: 0;
}

.nav-pan-dmc span {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #1A3A6B;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

/* ── Desktop Nav Links ────────────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.nav-link,
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
    border-radius: 0;
    height: 66px;       /* full height clickable area */
}

.nav-link:hover,
.nav-dropdown-trigger:hover {
    color: #1A3A6B;
    background: #F5F7FA;  /* back-shade hover */
    border-bottom-color: transparent;
}

.nav-link.active,
.nav-dropdown-trigger.active {
    color: #F5821F;
    border-bottom-color: #F5821F;
    font-weight: 700;
    background: transparent;
}

.nav-link.active:hover,
.nav-dropdown-trigger.active:hover {
    color: #F5821F;
    background: #FFF8F2;
}

.nav-link svg,
.nav-dropdown-trigger svg {
    flex-shrink: 0;
    transition: transform 200ms ease;
}

/* ── Dropdown ─────────────────────────────────────────────────── */
.nav-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 66px;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
    border: 1px solid #E8ECF0;
    padding: 6px 0;
    z-index: 200;
    animation: dropIn 160ms ease forwards;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #E8ECF0;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown-wrap:hover .nav-dropdown-trigger svg,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease, padding-left 120ms ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: #F0F4F8;   /* back-shade */
    color: #1A3A6B;
    padding-left: 22px;
}

.nav-dropdown-all {
    border-top: 1px solid #F0F2F5;
    margin-top: 4px;
    color: #F5821F;
    font-weight: 600;
    font-size: 13px;
}

.nav-dropdown-all:hover {
    background: #FFF8F2;
    color: #e07310;
    padding-left: 18px;
}

/* ── Hamburger (mobile only) ──────────────────────────────────── */
.nav-cta { display: flex; align-items: center; flex-shrink: 0; }

.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1.5px solid #E8ECF0;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: border-color 150ms ease;
}

.mobile-hamburger:hover { border-color: #1A3A6B; }

.mobile-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 250ms ease;
}

.mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Overlay ───────────────────────────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ── Mobile Drawer ────────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100vh;
    background: #fff;
    z-index: 1200;
    transition: right 280ms cubic-bezier(0.16,1,0.3,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}

.mobile-drawer.open { right: 0; }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 18px;
    border-bottom: 1px solid #F0F2F5;
    background: #1A3A6B;
}

.mobile-drawer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(10);
}

.mobile-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 150ms;
}
.mobile-drawer-close:hover { background: rgba(255,255,255,0.25); }

.mobile-drawer-contact {
    padding: 12px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid #F0F2F5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1A3A6B;
    text-decoration: none;
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #F9FAFB;
    transition: background 120ms ease, color 120ms ease;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.mobile-nav-link:hover,
.mobile-nav-link.open {
    background: #F0F4F8;
    color: #1A3A6B;
}

.mobile-nav-link svg { flex-shrink: 0; transition: transform 200ms ease; }
.mobile-nav-link.open svg { transform: rotate(180deg); }

.mobile-sub-menu {
    display: none;
    background: #F8FAFC;
    border-bottom: 1px solid #F0F2F5;
}
.mobile-sub-menu.open { display: block; }

.mobile-sub-link {
    display: block;
    padding: 11px 20px 11px 36px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: background 120ms ease, color 120ms ease;
}
.mobile-sub-link:hover { background: #EBF2FF; color: #1A3A6B; }
.mobile-sub-link:last-child { border-bottom: none; }

.mobile-sub-link-all {
    color: #F5821F;
    font-weight: 700;
}

.mobile-drawer-footer {
    padding: 16px 18px;
    border-top: 1px solid #F0F2F5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: filter 150ms, transform 150ms;
}
.mobile-cta-btn:hover { filter: brightness(0.93); transform: translateY(-1px); }
.mobile-cta-primary { background: #F5821F; color: #fff; }
.mobile-cta-outline { background: #fff; color: #1A3A6B; border: 2px solid #1A3A6B; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (min-width: 1025px) {
    .mobile-hamburger { display: none; }
    .mobile-drawer    { display: none; }
}

@media (max-width: 1024px) {
    .mobile-hamburger { display: flex; }
    .nav-links        { display: none; }
    .mobile-drawer    { display: flex; }
}

@media (max-width: 900px) {
    .nav-pan-dmc  { display: none; }
    .nav-logo-div { display: none; }
}

@media (max-width: 768px) {
    .nav-topbar-inner { height: 34px; }
    .nav-inner        { height: 58px; }
    .nav-logo-img     { height: 40px; }
}

@media (max-width: 600px) {
    /* Hide GST item on small screens */
    #topbar-gst,
    .nav-topbar-left .nav-topbar-divider:first-of-type { display: none; }
}

@media (max-width: 480px) {
    .nav-topbar-left  { display: none; }
    .nav-topbar-inner { justify-content: flex-end; }
}

/* ── Loader ───────────────────────────────────────────────────── */
.loader-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* ── Sticky shrink ────────────────────────────────────────────── */
.site-nav.scrolled .nav-inner   { height: 56px; }
.site-nav.scrolled .nav-logo-img { height: 42px; }
.site-nav.scrolled .nav-dropdown-wrap,
.site-nav.scrolled .nav-link    { height: 56px; }
