/* Scoped header styles for /eilish-gilligan/ — selectors prefixed with `header`
   so they don't bleed onto the Squarespace body content the page's own
   site.css is already styling. Variables/values lifted from /assets/shared.css. */

header {
    --gold: #ffb95f;
    --on-surface: #d8e3fb;
    --on-surface-variant: #c6c6cd;
    --on-surface-muted: #8a93a8;
    --outline-variant: #45464d;
    --radius-xs: 4px;
    --radius: 12px;
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --max-width: 1280px;

    background: rgba(8, 20, 37, 0.92);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(69, 70, 77, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

header .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-sizing: border-box;
}

header .logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: transform 0.25s ease, filter 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

header .logo:hover {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(240, 165, 0, 0.4));
}

header nav {
    display: flex;
    gap: 0;
    align-items: center;
}

header nav a {
    color: var(--on-surface-variant);
    padding: 12px 14px;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

header nav a:hover, header nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

header .nav-dropdown {
    position: relative;
}

header .nav-dropdown > a {
    cursor: pointer;
}

header .nav-dropdown > a::after {
    content: " \25BE";
    font-size: 0.7em;
    margin-left: 2px;
    opacity: 0.7;
}

header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(21, 32, 49, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(69, 70, 77, 0.6);
    border-radius: var(--radius);
    margin-top: 6px;
    min-width: 240px;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
}

header .nav-dropdown:hover .dropdown-menu {
    display: block;
}

header .dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    border-bottom: none;
    white-space: nowrap;
    text-decoration: none;
}

header .dropdown-menu a:hover {
    background: rgba(255, 185, 95, 0.08);
    color: var(--gold);
}

header .dropdown-label {
    display: block;
    padding: 8px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--on-surface-muted);
    pointer-events: none;
    font-weight: 600;
}

header .dropdown-divider {
    border-top: 1px solid rgba(69, 70, 77, 0.5);
    margin: 6px 0;
}

header .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2.4rem;
    cursor: pointer;
    margin-right: 12px;
}

header img {
    border: none;
}

@media (max-width: 768px) {
    header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 20, 37, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(69, 70, 77, 0.5);
        padding: 16px 0;
    }
    header nav.active {
        display: flex;
    }
    header nav a {
        padding: 12px 20px;
        border-bottom: none;
    }
    header .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        background: rgba(8, 20, 37, 0.5);
        min-width: 100%;
        padding: 0;
        margin: 0;
    }
    header .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    header .dropdown-menu a {
        padding: 8px 32px;
        font-size: 0.85rem;
    }
    header .menu-toggle {
        display: block;
    }
}
