/* ================= HEADER (desktop bar) ================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(20, 33, 61, 0.06);
    transition: box-shadow .35s ease, background .35s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 30px -18px rgba(20, 33, 61, 0.35);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 16px 12%;
}

.brand { display: flex; align-items: center; }

.brand-img {
    height: 44px;
    width: auto;
    transition: height .35s ease;
}

.site-header.scrolled .brand-img { height: 36px; }

/* ---- desktop menu ---- */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft, #45526b);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}
 

.desktop-menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--marigold, #ff7a1a);
    transition: width .3s ease;
}

.desktop-menu a:hover::after,
.desktop-menu a.is-active::after { width: 100%; }

.desktop-menu .cta-btn {
    background: white;
    color: var(--ink) !important;
    padding: 10px 26px;
    border: 1px solid var(--ink);
    border-radius: 100px;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    transition: transform .25s ease, background .25s ease;
}

.desktop-menu .cta-btn::after { display: none; }

.desktop-menu .cta-btn:hover {
    background: var(--marigold-dark, #e05e00);
    transform: translateY(-2px);
}

.desktop-menu .signin-btn {
    background: var(--ink, #0A1F3D);
    color: #ffffff !important;
    padding: 10px 26px;
    border-radius: 100px;
     border: 1px solid var(--ink);
    font-weight: 400 !important;
    font-size: 13.5px !important;
    transition: transform .25s ease, background .25s ease;
}

.desktop-menu .signin-btn::after { display: none; }

.desktop-menu .signin-btn:hover {
    background: var(--marigold-dark, #e05e00);
    transform: translateY(-2px);
}
/* ---- hamburger ---- */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-bar {
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #0A1F3D;
    transition: transform .35s ease, opacity .25s ease;
}

.menu-btn.is-open .b1 { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .b2 { opacity: 0; }
.menu-btn.is-open .b3 { transform: translateY(-7px) rotate(-45deg); }

/* ================= SCRIM ================= */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 61, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 1400;
}

.scrim.is-open { opacity: 1; visibility: visible; }

/* ================= MOBILE DRAWER (fully independent, own stacking context) ================= */
.mobile-drawer {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(80vw, 300px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    opacity: 1;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    box-shadow: 6px 0 40px rgba(20, 33, 61, 0.25);
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 1500;
    overflow-y: auto;
}

.mobile-drawer.is-open { transform: translateX(0); }

.drawer-head {
    padding: 26px 24px 18px;
    border-bottom: 1px solid rgba(20,33,61,0.08);
    flex-shrink: 0;
}

.drawer-head img { height: 30px; }

.drawer-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    flex: 1;
}

.drawer-menu a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    margin: 2px 0;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--ink-soft, #45526b);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, padding-left .25s ease;
}

.drawer-menu a:hover,
.drawer-menu a.is-active {
    background: rgba(255, 122, 26, 0.08);
    color: var(--marigold, #ff7a1a);
    padding-left: 18px;
}

.drawer-menu a.is-active {
    font-weight: 700;
    border-left: 3px solid var(--marigold, #ff7a1a);
}

.drawer-cta {
    margin: 16px 20px 24px;
    text-align: center;
    background: var(--ink, #0A1F3D);
    color: #ffffff !important;
    padding: 14px 0;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 8px 20px -6px rgba(10,31,61,0.5);
    transition: transform .25s ease, background .25s ease;
    flex-shrink: 0;
}

.drawer-cta:hover {
    background: var(--marigold-dark, #e05e00);
    transform: translateY(-2px);
}

body.drawer-open { overflow: hidden; }

/* ================= BREAKPOINTS ================= */
@media (max-width: 860px) {
    .header-row { padding: 12px 20px; }
    .desktop-menu { display: none; }   /* hide desktop nav entirely on mobile */
    .menu-btn { display: flex; }
}

@media (min-width: 861px) {
    .menu-btn { display: none; }        /* hide hamburger entirely on desktop */
    .mobile-drawer, .scrim { display: none; } /* drawer never renders on desktop */
}

@media (max-width: 480px) {
    .brand-img { height: 36px; }
    .site-header.scrolled .brand-img { height: 30px; }
    .mobile-drawer { width: 85vw; }
    .header-row { padding: 12px 30px; }
}