/* ══════════════════════════════════════════════════════════════════════════════
   BFW MOBILE MENU — Complete authoritative override file
   Loads after styles.css. All mobile menu rules live here.
   Desktop nav  = .desktop-nav  (inside .nav-row — hidden on mobile)
   Mobile nav   = .mobile-nav   (inside <header> but outside .nav-row)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger bars ──────────────────────────────────────────────────────── */

.hamburger {
    width: 26px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    left: 0;
    transition: all 0.28s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8.5px; }
.hamburger span:nth-child(3) { top: 17px; }

/* Active state → X */
.hamburger.active span:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); }

/* ── Hamburger button  ───────────────────────────────────────────────────── */

.mobile-menu-toggle {
    display: none;   /* hidden on desktop */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    background: #d4a574;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 0;
}

/* ── Mobile nav overlay — hidden by default on every screen size ─────────── */
/* It lives inside <header> but CSS makes it position:fixed so nav-row:none   */
/* has zero effect on it.                                                       */

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    padding: 90px 20px 40px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Logo at top of overlay via ::before */
.mobile-nav::before {
    content: '';
    display: block;
    width: 72px;
    height: 72px;
    background-image: url('https://static.wixstatic.com/media/254a3d_1e15408b21e34612a5468d47d32675ad~mv2.png/v1/fill/w_119,h_134,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/BRIDAL%20FASHION%20WEEK%20LOGO_edited.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 8px;
    flex-shrink: 0;
}

/* Brand name below logo */
.mobile-nav > ul::before {
    content: 'BRIDAL FASHION WEEK';
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #d4a574;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

/* Nav list */
.mobile-nav > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* Each item */
.mobile-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-nav > ul > li > a,
.mobile-nav > ul > li > .submenu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    gap: 6px;
    box-sizing: border-box;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li > .submenu-toggle:hover { color: #d4a574; }

.mobile-nav > ul > li > a.active,
.mobile-nav > ul > li > .submenu-toggle.active {
    color: #d4a574;
    font-weight: 700;
    background: rgba(212,165,116,0.06);
}

/* Submenu inside mobile overlay */
.mobile-nav .submenu {
    list-style: none;
    display: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
    width: 100%;
}

.mobile-nav .has-submenu.submenu-open .submenu { display: block; }

.mobile-nav .submenu li {
    border-bottom: 1px solid #efefef;
    margin: 0;
    padding: 0;
}

.mobile-nav .submenu li:last-child { border-bottom: none; }

.mobile-nav .submenu li a {
    display: block;
    padding: 13px 20px;
    text-align: center;
    font-size: 13px;
    color: #555555;
    letter-spacing: 1px;
    text-decoration: none;
}

.mobile-nav .submenu li a:hover { color: #d4a574; }

/* OPEN state */
.mobile-nav.active { display: flex; }

/* ── TABLET (1024px) — show hamburger, hide desktop nav ─────────────────── */

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

/* ── PHONE (768px) — compact header bar ─────────────────────────────────── */

@media (max-width: 768px) {

    .top-header {
        padding: 0 !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.12) !important;
    }

    .header-image-section { display: none !important; }

    .logo-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        flex-wrap: nowrap !important;
    }

    .logo-section { flex: 0 0 auto !important; }

    .logo-section .logo {
        height: 54px !important;
        width: auto !important;
    }

    .cta-button {
        flex: 0 0 auto !important;
        margin: 0 !important;
        margin-right: 62px !important;
    }

    .cta-button a {
        padding: 8px 14px !important;
        font-size: 10px !important;
        letter-spacing: 1px !important;
        border-radius: 50px !important;
        white-space: nowrap !important;
        background: linear-gradient(135deg,#d4a574,#c39563) !important;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        display: inline-block !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   DESKTOP NAV — active link gold underline
   ══════════════════════════════════════════════════════════════════════════════ */

.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
}

.desktop-nav li { position: relative; }

.desktop-nav li a,
.desktop-nav li .submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.25s;
}

/* Gold underline bar on hover and active */
.desktop-nav li a::after,
.desktop-nav li .submenu-toggle::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #d4a574;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.desktop-nav li a:hover,
.desktop-nav li .submenu-toggle:hover { color: #d4a574; }

.desktop-nav li a:hover::after,
.desktop-nav li .submenu-toggle:hover::after { transform: scaleX(1); }

.desktop-nav li a.active,
.desktop-nav li .submenu-toggle.active {
    color: #d4a574;
    font-weight: 700;
}

.desktop-nav li a.active::after,
.desktop-nav li .submenu-toggle.active::after { transform: scaleX(1); }

/* Submenu dropdown */
.desktop-nav .submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 500;
}

.desktop-nav .has-submenu.submenu-open .submenu { display: block; }

.desktop-nav .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #444;
    letter-spacing: 0;
    white-space: nowrap;
}

.desktop-nav .submenu li a:hover { color: #d4a574; background: #fafafa; }
.desktop-nav .submenu li a::after { display: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER — 2-column grid on mobile
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    .footer-top {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-brand {
        width: 100% !important;
        text-align: center !important;
    }

    .footer-brand .social-links { justify-content: center !important; }

    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px !important;
        width: 100% !important;
    }

    .footer-column { width: 100% !important; }
    .footer-column h4 { font-size: 13px !important; margin-bottom: 10px !important; }

    .footer-column ul li a,
    .footer-column ul li { font-size: 12px !important; line-height: 1.9 !important; }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }
}

/* ── Dedicated close button inside the mobile overlay ───────────────────── */

.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #d4a574;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;           /* hidden when menu is closed */
    align-items: center;
    justify-content: center;
    z-index: 10002;          /* above everything */
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: #b8875a;
    transform: rotate(90deg);
}

/* Show the close button only when the overlay is active */
.mobile-nav.active .mobile-nav-close {
    display: flex;
}

/* When the overlay is open, hide the hamburger toggle so only
   the close button inside the overlay is used to close it */
@media (max-width: 1024px) {
    .mobile-nav.active ~ .mobile-menu-toggle {
        display: none !important;
    }
}
