/**
 * Theme Name: FoodbookTheme
 * Stylesheet: Header New Specific Styles
 *
 * Dedicated styling for the custom restaurant header [custom_restaurant_header].
 * Styled with a light sage green glass backdrop, deep brand green typography, 
 * active language switch highlighting, sticky transitions, and hamburger drawers.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --header-primary: #D49D2B; /* Gold */
    --header-dark-green: #0B4A2C; /* Core deep green */
    --header-bg-sage: rgba(202, 214, 206, 0.7); /* Translucent light sage */
    --header-text: #1E293B; /* Slate 800 */
    --header-font-heading: 'Playfair Display', serif;
    --header-font-body: 'Plus Jakarta Sans', sans-serif;
    --header-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
1. HEADER MAIN STRUCTURE
============================================================================= */
.custom-restaurant-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 9999;
    background-color: var(--header-bg-sage);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    transition: var(--header-transition);
}

/* Container spacing */
.custom-restaurant-header .header-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================================================
2. STICKY HEADER STATE (GLASSMORPHISM ON SCROLL)
============================================================================= */
.custom-restaurant-header.is-sticky {
    height: 70px;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(5, 34, 20, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================================================
3. BRAND LOGO AREA (LEFT)
============================================================================= */
.custom-restaurant-header .header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.custom-restaurant-header .header-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--header-dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-family: var(--header-font-heading);
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(11, 74, 44, 0.15);
    transition: var(--header-transition);
}

.custom-restaurant-header .header-logo-link:hover .header-logo-badge {
    transform: rotate(360deg) scale(1.05);
    background: linear-gradient(135deg, oklch(82% .16 80), oklch(70% .18 60));
    color: #121212 !important;
}

.custom-restaurant-header .header-logo-text {
    display: flex;
    flex-direction: column;
}

.custom-restaurant-header .header-logo-title {
    font-family: var(--header-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--header-dark-green);
    line-height: 1.1;
    margin: 0;
}

.custom-restaurant-header .header-logo-subtitle {
    font-family: var(--header-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--header-text);
    margin: 3px 0 0 0;
    opacity: 0.7;
}

/* =============================================================================
4. NAVIGATION MENU (CENTER / RIGHT)
============================================================================= */
.custom-restaurant-header .header-nav {
    display: flex;
    align-items: center;
}

.custom-restaurant-header .header-menu-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-restaurant-header .header-menu-list li {
    position: relative;
}

.custom-restaurant-header .header-menu-list li a {
    font-family: var(--header-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--header-dark-green) !important;
    text-decoration: none !important;
    padding: 8px 0;
    transition: var(--header-transition);
    display: inline-block;
}

/* Elegant Underline Hover Effect */
.custom-restaurant-header .header-menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, oklch(82% .16 80), oklch(70% .18 60));
    transition: var(--header-transition);
}

.custom-restaurant-header .header-menu-list li a:hover {
    color: var(--header-primary) !important;
}

.custom-restaurant-header .header-menu-list li a:hover::after {
    width: 100%;
}

/* Active Class */
.custom-restaurant-header .header-menu-list li.current-menu-item a,
.custom-restaurant-header .header-menu-list li.active a {
    color: var(--header-primary) !important;
}

.custom-restaurant-header .header-menu-list li.current-menu-item a::after,
.custom-restaurant-header .header-menu-list li.active a::after {
    width: 100%;
}

/* =============================================================================
5. LANGUAGE SWITCHER (RIGHT)
============================================================================= */
.custom-restaurant-header .header-lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--header-font-body);
    font-size: 13px;
    font-weight: 700;
    margin-left: 20px;
    margin-right: 20px;
}

.custom-restaurant-header .lang-item {
    color: var(--header-dark-green) !important;
    text-decoration: none !important;
    opacity: 0.6;
    transition: var(--header-transition);
    cursor: pointer;
    padding: 4px;
}

.custom-restaurant-header .lang-item:hover,
.custom-restaurant-header .lang-item.active {
    opacity: 1;
    color: var(--header-primary) !important;
}

.custom-restaurant-header .lang-divider {
    color: var(--header-dark-green);
    opacity: 0.3;
}

/* =============================================================================
6. ORDER NOW BUTTON (FAR RIGHT)
============================================================================= */
.custom-restaurant-header .header-cta-btn {
    font-family: var(--header-font-body);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF !important;
    background-color: var(--header-dark-green);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(11, 74, 44, 0.15);
    transition: var(--header-transition);
    text-align: center;
    display: inline-block;
}

.custom-restaurant-header .header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 74, 44, 0.3);
    background: linear-gradient(135deg, oklch(82% .16 80), oklch(70% .18 60));
    color: #121212 !important;
}

/* =============================================================================
7. MOBILE TOGGLE & DRAWER
============================================================================= */
.custom-restaurant-header .header-hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    outline: none;
    z-index: 10001;
}

.custom-restaurant-header .hamburger-bar {
    width: 26px;
    height: 3px;
    background-color: var(--header-dark-green);
    border-radius: 50px;
    transition: var(--header-transition);
}

/* Hamburger active transformation */
.custom-restaurant-header .header-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-restaurant-header .header-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.custom-restaurant-header .header-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Off-canvas Drawer */
.header-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: #FAF9F6; /* Luxury light cream */
    z-index: 9998;
    box-shadow: -10px 0 40px rgba(5, 34, 20, 0.15);
    padding: 100px 30px 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: var(--header-transition);
}

.header-mobile-drawer.is-open {
    right: 0;
}

.header-mobile-drawer .mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile-drawer .mobile-menu-list li a {
    font-family: var(--header-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--header-dark-green) !important;
    text-decoration: none !important;
    transition: var(--header-transition);
}

.header-mobile-drawer .mobile-menu-list li a:hover,
.header-mobile-drawer .mobile-menu-list li.current-menu-item a {
    color: var(--header-primary) !important;
    padding-left: 8px;
}

.header-mobile-drawer .mobile-drawer-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Dark Overlay */
.header-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 34, 20, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: var(--header-transition);
}

.header-drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
📱 RESPONSIVE ADJUSTMENTS (TABLET & MOBILE)
============================================================================= */

/* 1. Desktop & Small Screens Transition (Max 991px) */
@media (max-width: 991px) {
    .custom-restaurant-header .header-nav,
    .custom-restaurant-header .header-lang-switcher,
    .custom-restaurant-header .header-cta-btn {
        display: none; /* Hide standard elements for drawer */
    }

    .custom-restaurant-header .header-hamburger-btn {
        display: flex; /* Show Hamburger Toggle */
    }
}

/* Adjustments for sticky offset spacer on page templates */
body {
    padding-top: 90px;
}
