/* ========================= */
/* Global Header Styles      */
/* ========================= */
.site-header {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.97), rgba(252, 182, 159, 0.92)) !important;
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 12px 24px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    height: auto !important;
}



/* Nav sits below with its own breathing room */
.main-nav {
    padding: 10px 0 12px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.04);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e07a5f, #f4a261);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.main-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e07a5f;
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after {
    width: 60%;
    left: 20%;
}

.main-nav a:hover {
    background: #fff5f0;
    color: #e07a5f;
}

.main-nav a.active {
    background: linear-gradient(135deg, #e07a5f, #f4a261);
    color: white;
}

/* WordPress Menu Styling */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 180px;
    flex-direction: column;
}

.main-nav li:hover>ul {
    display: flex;
}

.main-nav ul ul a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Custom Logo */
.custom-logo-wrapper img {
    max-height: 48px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ========================= */
/* Responsive Header         */
/* ========================= */
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px !important;
        gap: 6px !important;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .main-nav ul {
        gap: 2px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ========================= */
/* Hamburger Menu Toggle     */
/* ========================= */
.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    width: 44px !important;
    height: 44px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    z-index: 1100 !important;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate to X when menu is open */
.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-close {
    display: none !important;
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #1f2937;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    .main-nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
        flex-direction: column !important;
        padding: 60px 20px 20px !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* When active, slide in */
    .main-nav.active {
        display: flex !important;
        transform: translateX(0) !important;
    }
    .main-nav.active .menu-close {
        display: flex !important;
    }
    /* ✕ is inside the nav panel — hidden by default on mobile too */
    .menu-close {
        display: none !important;
    }
    /* Hide hamburger while menu is open */
    .main-nav.active ~ .menu-toggle,
    .site-header.menu-open .menu-toggle {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        list-style: none !important;
        display: flex !important;
    }

    .main-nav a {
        display: block !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        width: 100% !important;
    }

    .main-nav ul ul {
        position: static !important;
        box-shadow: none !important;
        padding: 0 0 0 16px !important;
        min-width: 0 !important;
    }

    .main-nav li:hover>ul {
        display: flex !important;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 16px !important;
        height: auto !important;
        gap: 0 !important;
    }
}

@media (max-width: 500px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 12px !important;
        height: auto !important;
        gap: 0 !important;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .main-nav {
        width: 260px;
    }
}