/* ===========================================================
   ICACON 2027 — header.css
   Site header, top navigation, mobile sidebar nav, and burger
   menu behaviour styles. Pairs with header.php and header.js.
   =========================================================== */

header.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(15, 42, 82, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    height: 74px;
}

.brand .mark {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, var(--orange), var(--orange-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(242, 118, 42, .35);
}

.brand .mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand .name {
    color: #fff;
    line-height: 1.1;
}

.brand .name b {
    font-family: 'Fraunces';
    font-size: 1.05rem;
    display: block;
}

.brand .name span {
    font-size: .68rem;
    opacity: .7;
    letter-spacing: .05em;
}

nav.links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: .88rem;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
}

nav.links a i {
    display: none;
}

nav.links a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width .25s ease;
}

nav.links a:hover:after {
    width: 100%;
}

.nav-close {
    display: none;
}

.nav-cta {
    background: var(--orange);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .85rem;
}

.nav-cta:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
}

nav.links a.mobile-cta {
    display: none;
}

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.05rem;
    transition: background .2s ease;
}

.burger:hover {
    background: rgba(255, 255, 255, .16);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 40, 0.55);
    z-index: 210;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    nav.links {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        background: var(--navy-deep);
        z-index: 220;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 24px;
        overflow: hidden;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .28);
        transition: max-height .32s ease, padding .32s ease;
    }

    nav.links.open {
        max-height: 80vh;
        overflow-y: auto;
        padding: 10px 24px 22px;
    }

    .nav-close {
        display: none;
    }

    nav.links a {
        color: #fff;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        font-size: .96rem;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    nav.links a:last-of-type {
        border-bottom: none;
    }

    nav.links a i {
        display: inline-flex;
        width: 20px;
        color: var(--orange);
        font-size: .95rem;
    }

    nav.links .nav-cta.mobile-cta {
        display: block;
        text-align: center;
        margin: 16px 0 6px;
        border: none;
    }

    .burger {
        display: flex;
    }

    .nav-cta.desktop-only {
        display: none;
    }
}

@media (max-width: 880px) {
    .nav-inner {
        height: 66px;
    }

    nav.links {
        top: 66px;
    }

    .brand .mark {
        width: 36px;
        height: 36px;
    }

    .brand .name b {
        font-size: .92rem;
    }

    .brand .name span {
        font-size: .62rem;
    }
}