/* ==========================================================
   SITE NAV / HEADER STYLES
   ----------------------------------------------------------
   Pehle blog-nav.php ke andar <style> block me thi (17 KB,
   har page load par jati thi, cache kabhi nahi hoti thi).
   Ab alag file -- pehli visit ke baad browser cache se aati hai.

   YE FILE style.css ke BAAD load honi chahiye,
   warna specificity ki tarteeb ulat jayegi.
   ========================================================== */

/* ===========================
   SITE HEADER
=========================== */
.site-header {
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* ===========================
   PROMO BAR
=========================== */
.promo-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.promo-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.promo-icon {
    font-size: 1.2rem;
    animation: nudge 2s ease-in-out infinite;
    will-change: transform;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

.promo-text {
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
}

.promo-text strong { color: #fbd000; }

.promo-cta {
    background: linear-gradient(135deg, #fbd000, #ffa500);
    color: #000;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(251,208,0,0.4);
    display: inline-block;
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(251,208,0,0.6);
    color: #000;
    text-decoration: none;
}

/* ===========================
   CONTACT BAR
=========================== */
.contact-bar {
    background: #ffd000;
    border-bottom: 2px solid #e6bc00;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.contact-link {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background 0.2s ease;
    display: inline-block;
}

.contact-link:hover {
    background: rgba(0,0,0,0.08);
    color: #000;
    text-decoration: none;
}

.contact-link--login {
    background: #0f3460;
    color: #fff !important;
    border-radius: 20px;
    padding: 4px 14px;
}

.contact-link--login:hover {
    background: #1a1a2e !important;
    color: #fff !important;
}

/* ===========================
   MAIN NAV WRAPPER
=========================== */
.main-nav {
    background: #fff;
    border-bottom: 3px solid #fbd000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    position: relative;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    min-height: 68px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   LOGO
=========================== */
.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: 150px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* ===========================
   HAMBURGER
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    z-index: 10;
}

.hamburger:hover {
    background: #fff8e1;
    border-color: #fbd000;
}

.hamburger:focus-visible {
    outline: 2px solid #fbd000;
    outline-offset: 2px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animated to X */
.hamburger.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   NAV LIST (Desktop)
=========================== */
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

/* ===========================
   NAV ITEMS
=========================== */
.nav-item { position: relative; }

.nav-link,
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 11px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-link:focus-visible,
.nav-trigger:focus-visible {
    background: #fff8e1;
    color: #b8860b;
    outline: none;
    text-decoration: none;
}

/* Chevron */
.chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.25s ease;
    display: inline-block;
    flex-shrink: 0;
}

.nav-item.is-open > .nav-trigger .chevron,
.nav-item:focus-within > .nav-trigger .chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* ===========================
   DROPDOWN
=========================== */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid #fbd000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 235px;
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
}

.dropdown--right { left: auto; right: 0; }

/* Desktop hover */
@media (min-width: 1025px) {
    .nav-item:hover > .dropdown,
    .nav-item:focus-within > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* JS-toggled open */
.nav-item.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 9px 18px;
    color: #333;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, padding-left 0.15s;
    line-height: 1.4;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
    background: #fff8e1;
    color: #b8860b;
    border-left-color: #fbd000;
    padding-left: 22px;
    outline: none;
    text-decoration: none;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 14px;
}

/* ===========================
   NYC SST CTA BUTTON
=========================== */
.nav-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(230,57,70,0.35);
    white-space: nowrap;
    margin-left: 4px;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230,57,70,0.55);
    color: #fff !important;
    text-decoration: none;
}

/* ===========================
   MOBILE OVERLAY
=========================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.nav-overlay.is-active { display: block; }

/* ===========================
   RESPONSIVE — TABLET & MOBILE
=========================== */
@media (max-width: 1024px) {

    /* --- Contact bar compact --- */
    .contact-bar {
        justify-content: center;
        padding: 5px 12px;
        gap: 6px;
    }

    /* --- Promo bar --- */
    .promo-bar { gap: 8px; padding: 8px 12px; }
    .promo-text { font-size: 0.78rem; }

    /* --- Show hamburger --- */
    .hamburger { display: flex; }

    /* --- Nav inner --- */
    .nav-inner { padding: 0 16px; min-height: 60px; }
    .nav-logo img { width: 130px; height: 48px; }

    /* --- Slide-in panel --- */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100dvh;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        padding: 0 0 40px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.16);
        transition: right 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
        -webkit-overflow-scrolling: touch;
    }

    .nav-list.is-open { right: 0; }

    /* Mobile panel header */
    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: #1a1a2e;
        border-bottom: 3px solid #fbd000;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .mobile-nav-header img {
        width: 110px;
        height: auto;
        filter: brightness(0) invert(1);
    }

    .mobile-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 5px;
        line-height: 1;
        transition: background 0.2s;
    }

    .mobile-close:hover { background: rgba(255,255,255,0.15); }

    /* Nav items full width */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f2f2f2;
    }

    .nav-link,
    .nav-trigger {
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        font-size: 0.92rem;
        justify-content: space-between;
    }

    .nav-link:hover,
    .nav-trigger:hover {
        background: #fffbec;
        border-radius: 0;
    }

    /* Mobile dropdown - accordion */
    .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: hidden;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 4px solid #fbd000;
        background: #fafafa;
        min-width: 100% !important;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s;
        margin-left: 0;
    }

    .nav-item.is-open > .dropdown {
        visibility: visible;
        max-height: 800px;
        padding: 4px 0;
        pointer-events: auto;
    }

    .dropdown-link {
        font-size: 0.86rem;
        padding: 10px 20px 10px 24px;
        border-left: none;
    }

    .dropdown-link:hover {
        padding-left: 30px;
        border-left: none;
    }

    /* CTA in mobile */
    .nav-item--cta {
        padding: 16px 20px;
        border-bottom: none;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    /* Chevron mobile */
    .nav-item.is-open > .nav-trigger .chevron {
        transform: rotate(-135deg);
        margin-top: 3px;
    }
}

@media (max-width: 600px) {
    .promo-icon { display: none; }
    .promo-text { font-size: 0.75rem; }
    .contact-bar { justify-content: center; gap: 4px; }
    .contact-link { font-size: 0.72rem; padding: 3px 7px; }
    .nav-inner { padding: 0 12px; }
    .nav-logo img { width: 120px; height: 44px; }
}

@media (max-width: 380px) {
    .contact-link span { display: none; }
    .contact-link::after { content: attr(data-short); }
}

/* Hidden on desktop, shown on mobile */
.mobile-nav-header { display: none; }

/* Print */
@media print {
    .site-header { position: static; }
    .promo-bar, .contact-bar, .hamburger, .nav-overlay { display: none; }
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        height: auto !important;
        box-shadow: none !important;
        right: auto !important;
    }
}