/* SuperBowl Header Component - Mobile Menu */
/* Ported from NYCNY adaptive menu system */

:root {
    --sb-slide-menu-width: 280px;
}

/* ── Header bar — style the Genesis .site-header wrapper ── */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: #fff !important;
    padding: 0 !important;
    z-index: 1000;
    display: block !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: none !important;
}

.site-header > .wrap {
    padding: 0 !important;
}

.sb-header-container {
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.sb-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.sb-header-content > a:first-child {
    display: block;
    line-height: 0;
}

.sb-logo {
    height: 40px;
    transition: transform 0.3s ease;
    display: block;
}

.sb-site-title {
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

/* ── Desktop nav ── */
.sb-nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}

.sb-nav-link {
    color: #2b6cb0;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.3s ease;
}

.sb-nav-link:hover {
    color: #c00;
}

/* ── Header widget area (phone number) ── */
.sb-header-widget-area {
    display: flex;
    align-items: center;
}

.sb-header-widget-area .widget {
    margin: 0;
    padding: 0;
}

.sb-header-widget-area .widget-wrap {
    padding: 0;
}

/* Hide the Genesis nav menu widget inside our header (we have our own nav) */
.sb-header-widget-area .widget_nav_menu {
    display: none !important;
}

#phoneContact {
    text-align: right;
    border-left: 1px solid #ddd;
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

#phoneContact p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

#phoneNumber {
    font-size: 22px !important;
    line-height: 1;
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    margin-top: 1px;
}

#phoneNumber a {
    color: #c00;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

#phoneNumber a:hover {
    color: #900;
}

/* ── Hamburger toggle — hidden on desktop ── */
.sb-mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1001;
    color: #333;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sb-mobile-nav-toggle:hover,
.sb-mobile-nav-toggle:active,
.sb-mobile-nav-toggle.active,
.sb-mobile-nav-toggle:focus {
    background: transparent;
    border: none;
    outline: none;
    color: #333;
}

.sb-mobile-nav-toggle .ph-list {
    transition: opacity 0.3s ease;
}

.sb-mobile-nav-toggle .ph-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sb-mobile-nav-toggle.active .ph-list {
    opacity: 0;
}

.sb-mobile-nav-toggle.active .ph-x {
    opacity: 1;
}

/* ── Mobile slide-in menu ── */
.sb-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sb-slide-menu-width);
    height: 100vh;
    background: #f5f5f5;
    padding: 5rem 0 2rem;
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    transform: translateX(100%);
    overflow-y: auto;
}

.sb-mobile-menu.active {
    transform: translateX(0);
}

.sb-mobile-menu a {
    display: block;
    padding: 0.875rem 1.25rem;
    font-family: 'Roboto Slab', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2b6cb0 !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.sb-mobile-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sb-mobile-menu .current-menu-item > a {
    background: #c0392b;
    color: #fff !important;
}

/* ── Overlay ── */
.sb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.sb-overlay.active {
    opacity: 1;
    visibility: visible;
}

#blox_global_48 {
    margin-top: 54px !important;
}

/* ── Mobile breakpoint ── */
@media screen and (max-width: 768px) {
    .sb-header-container {
        padding: 0 1rem;
    }

    .sb-logo {
        height: 30px;
    }

    .sb-nav-menu {
        display: none;
    }

    .sb-header-widget-area {
        display: none;
    }

    .sb-mobile-nav-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        align-items: center;
        font-size: 2.25rem;
        position: relative;
        z-index: 1001;
        color: #333;
        background: transparent;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}
