/* ============================================================
   SITE HEADER — desktop nav left/right, mobile hamburger
   ============================================================ */

   body{
    margin: 0 !important;
    padding-top: 60px;
   }

/* Wrapper */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #212121 !important;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
    border: none !important;
}

@media (max-width: 960px) {
    body {
        padding-top: 64px;
    }
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: initial;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    line-height: 0;
}

.site-logo a {
    display: block;
}

.site-logo img {
    height: 30px;
    width: auto;
    display: block;
}

/* ── Desktop Nav ─────────────────────────────────── */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav .nav-item > a {
    display: block;
    padding: 0 16px;
    line-height: 60px;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 500;
    
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.primary-nav .nav-item > a:hover,
.primary-nav .nav-item.current-menu-item > a,
.primary-nav .nav-item.current-menu-ancestor > a {
    color: #dadada;
}

/* Dropdown trigger arrow */
.primary-nav .has-dropdown > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transform: rotate(45deg);
    transition: transform 0.2s ease, top 0.2s ease;
}

.primary-nav .has-dropdown:hover > a::after {
    top: 1px;
    transform: rotate(-135deg);
}

/* Dropdown panel */
.primary-nav .has-dropdown {
    position: relative;
}

.primary-nav .dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background: #fff;
    min-width: 190px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-top: 2px solid #212121;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 100;
}

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

.primary-nav .dropdown li a {
    display: block;
    padding: 10px 20px;
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #313131;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav .dropdown li a:hover {
    color: #212121;
    background: #fafafa;
}

/* ── Mobile Toggle Button ────────────────────────── */
.mobile-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    color: inherit;
    font: inherit;
    position: relative;
    z-index: 10000;
}

.mobile-menu-toggle svg {
    pointer-events: none;
}

.mobile-menu-toggle svg line {
    stroke: #ffffff;
    transition: stroke 0.2s ease;
}

.mobile-menu-toggle:hover svg line {
    stroke: #aaaaaa;
}

/* Two-icon toggle: hamburger ↔ close */
.mobile-menu-toggle .icon-close {
    display: none;
}
.mobile-menu-toggle[aria-expanded="true"] .icon-hamburger {
    display: none;
}
.mobile-menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* ── Mobile Offcanvas Nav ────────────────────────── */
#mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

#mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

aside#mobile-dropdown {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    max-height: none;
    background: #212121;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
    padding: 60px 0 24px;
}

aside#mobile-dropdown > nav {
    flex: 0 0 auto;
}

aside#mobile-dropdown.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close svg line {
    stroke: #ffffff;
}

body.mobile-menu-open {
    overflow: hidden;
}

#mobile-dropdown nav {
    padding: 8px 0 16px;
}

#mobile-dropdown .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-dropdown .menu > li > a {
    display: block;
    padding: 13px 28px;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, background 0.2s ease;
}

#mobile-dropdown .menu > li > a:hover,
#mobile-dropdown .menu > li.current-menu-item > a {
    color: #dadada;
    background: rgba(255, 255, 255, 0.04);
}

/* Mobile sub-menus: hidden, toggled via JS */
#mobile-dropdown .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
}

#mobile-dropdown .sub-menu.is-open {
    display: block;
}

#mobile-dropdown .sub-menu li a {
    display: block;
    padding: 11px 28px 11px 44px;
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #cccccc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
}

#mobile-dropdown .sub-menu li a:hover {
    color: #ffffff;
}

/* Hide search toggle from mobile menu */
#mobile-dropdown .search-toggle-li {
    display: none;
}

/* Brand logos — pinned to bottom of offcanvas, left-aligned */
.mobile-brand-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px 8px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 50px;
}

.mobile-brand-logo {
    display: block;
    line-height: 0;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.mobile-brand-logo:hover {
    opacity: 1;
}

.mobile-brand-logo img {
    display: block;
    width: auto;
    height: auto;
}

.mobile-brand-logos .mobile-brand-logo:nth-child(1) img {
    width: 80px;
}

.mobile-brand-logos .mobile-brand-logo:nth-child(3) img {
    width: 180px;
}

.mobile-brand-logos .mobile-brand-logo:last-child img {
    filter: brightness(0) invert(1);
    width: 140px;
}

.mobile-brand-divider {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Chevron indicator for parent menu items */
#mobile-dropdown .menu > li.menu-item-has-children > a {
    position: relative;
    padding-right: 44px;
}

#mobile-dropdown .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

/* Rotate chevron up when sub-menu is open */
#mobile-dropdown .menu-item-has-children:has(.sub-menu.is-open) > a::after {
    transform: translateY(-50%) rotate(-135deg);
}

/* ── Mobile Responsive ───────────────────────────── */
@media (max-width: 960px) {
    .primary-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 1;
    }

    .site-logo {
        order: 2;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .site-header-inner {
        height: 64px;
        padding: 0 16px;
        justify-content: flex-start;
        position: relative;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 40px;
    }
}
