/* ═══════════════════════════════════════════════════════════
   Coach Club 365 — Header & Navigation
   Desktop dropdowns + fullscreen mobile menu with accordions
   ═══════════════════════════════════════════════════════════ */

/* ── Site Header (sticky) ────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Transparent state (at top) ──────────────────────────── */
.site-header:not(.is-scrolled) {
    background: transparent;
}
.site-header:not(.is-scrolled) .nav-link,
.site-header:not(.is-scrolled) .nav-arrow {
    color: #fff;
}
.site-header:not(.is-scrolled) .header-logo img {
    filter: brightness(0) invert(1);
}

/* ── Scrolled state ──────────────────────────────────────── */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .nav-arrow {
    color: #1A1A1A;
}

/* ── Logo ────────────────────────────────────────────────── */
.header-logo {
    flex-shrink: 0;
    display: inline-flex;
}
.header-logo img {
    height: 66px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* ── Desktop Nav ─────────────────────────────────────────── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.nav-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}
.nav-link:hover {
    background: rgba(180, 231, 23, 0.1);
    color: #9ACA0A;
}

/* ── Desktop Dropdown ────────────────────────────────────── */
.nav-item {
    position: relative;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}
.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}
.nav-dropdown a {
    display: block;
    padding: 10px 24px;
    font-size: 0.875rem;
    color: #1A1A1A;
    text-decoration: none;
    transition: all 0.15s ease;
}
.nav-dropdown a:hover {
    background: #F5F5F5;
    color: #9ACA0A;
    padding-left: 28px;
}
.nav-dropdown__divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 6px 0;
}

/* ── Header CTA ──────────────────────────────────────────── */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Hamburger Toggle Button ─────────────────────────────── */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: #B4E717;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    z-index: 1001;
    -webkit-appearance: none;
    appearance: none;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #0D0D0D;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE MENU — Fullscreen overlay
   ═══════════════════════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #0D0D0D;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ── Mobile Menu Header ──────────────────────────────────── */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}
.mobile-menu__header .header-logo {
    display: inline-flex;
}
.mobile-menu__header .header-logo img {
    height: 66px;
    width: auto;
    filter: brightness(0) invert(1) !important;
}

/* ── Close Button ────────────────────────────────────────── */
.menu-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #B4E717;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #0D0D0D;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.3s ease;
}
.menu-close:hover {
    transform: rotate(90deg);
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-menu__nav {
    flex: 1;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
}

/* ── Mobile Links (direct) ───────────────────────────────── */
.mobile-menu__link {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.75rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.3s ease;
}
.mobile-menu__link:hover {
    color: #B4E717;
}

/* ── Mobile Accordion Parent Button ──────────────────────── */
.mobile-menu__parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.75rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Reset button defaults */
    background: none;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    outline: none;
    cursor: pointer;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: left;
    box-shadow: none;
}
.mobile-menu__parent:hover {
    color: #B4E717;
}
.mobile-menu__parent i {
    font-size: 14px;
    color: #B4E717;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.mobile-menu__parent.is-open i {
    transform: rotate(180deg);
}

/* ── Mobile Sub-menu (hidden by default) ─────────────────── */
.mobile-menu__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: block;
}
.mobile-menu__sub.is-open {
    max-height: 400px;
}
.mobile-menu__sub a {
    display: block;
    padding: 12px 0 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}
.mobile-menu__sub a:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu__sub a:hover {
    color: #B4E717;
    padding-left: 28px;
}

/* ── Mobile Footer (CTA) ────────────────────────────────── */
.mobile-menu__footer {
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}
.btn--full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   Responsive — hide desktop nav, show hamburger
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .header-nav {
        display: none !important;
    }
    .header-cta-btn {
        display: none !important;
    }
    .menu-toggle {
        display: flex !important;
    }
}
