/*
|==========================================================================
| HEADER CSS (Responsive)
|
| Includes critical fix for Mobile Drawer visibility (.mobile-drawer.open)
| and the styling for the full-screen scrim (.drawer-overlay).
|==========================================================================
*/

/* --- 1. Header Structure and Flutter AppBar Simulation (Responsive) --- */

#app-header {
    background-color: #ffffff;
    /* 🔑 FLUID HEIGHT: 80px -> 5rem. Use min-height for guaranteed space. */
    min-height: 5rem;
    border-bottom: 1px solid #eee;
    box-shadow: none;
    display: flex;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    width: 100%;
    /* 🔑 FLUID PADDING: 20px -> 1.25rem */
    padding: 0 1.25rem;
}

/* --- 2. Logo and Title Styling (Responsive) --- */

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
}

.logo-avatar {
    /* 🔑 FLUID SIZE: 44px -> 2.75rem */
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    /* 🔑 FLUID MARGIN: 12px -> 0.75rem */
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* 🔑 FLUID TYPOGRAPHY: Logo Text */
.logo-text {
    font-weight: bold;
    color: #000000;
    /* clamp(MIN: 18px, FLUID: 3vw, MAX: 24px) */
    font-size: clamp(1.125rem, 3vw, 1.5rem);
}

/* --- 3. Desktop Navigation (Responsive) --- */

.desktop-nav {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.desktop-nav a {
    text-decoration: none;
    color: #000000;
    /* 🔑 FLUID FONT SIZE: 16px -> 1rem */
    font-size: 1rem;
    font-weight: 500;
    /* 🔑 FLUID PADDING: 10px 15px -> 0.625rem 0.9375rem */
    padding: 0.625rem 0.9375rem;
    transition: color 0.2s;
}

/* Specific styling for the Contact/Book button (CTA) */
.desktop-nav .button-contact {
    background-color: #E91E63;
    color: #ffffff;
    /* 🔑 FLUID PADDING: 8px 16px -> 0.5rem 1rem */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    /* 🔑 FLUID MARGIN: 10px -> 0.625rem */
    margin-left: 0.625rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.desktop-nav .button-contact:hover {
    background-color: #880E4F;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- 4. Mobile Menu & Drawer (Responsive) --- */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    /* 🔑 FLUID PADDING: 10px -> 0.625rem */
    padding: 0.625rem;
    flex-shrink: 0;
}

.mobile-menu-toggle i {
    color: #000000;
    /* 🔑 FLUID FONT SIZE: 28px -> 1.75rem */
    font-size: 1.75rem;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    /* 🔑 FLUID WIDTH: Use VH/VW units for screen-relative width */
    width: clamp(250px, 80vw, 320px);
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    /* HIDDEN STATE */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* 🔑 CRITICAL FIX: The VISIBLE state for the drawer */
.mobile-drawer.open {
    transform: translateX(0);
}

/* Full Screen Scrim/Overlay (Recommended for blocking content interaction) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* Below the drawer (1000) */
    display: none;
}

.drawer-overlay.visible {
    display: block;
}

/* DrawerHeader styling */
.drawer-header {
    background-color: #ffc0cb;
    /* 🔑 FLUID PADDING: 16px -> 1rem */
    padding: 1rem;
    /* 🔑 FLUID HEIGHT: 120px -> 7.5rem */
    height: 7.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #880E4F;
}

.logo-avatar-drawer {
    /* 🔑 FLUID SIZE: 56px -> 3.5rem */
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    /* 🔑 FLUID MARGIN: 12px -> 0.75rem */
    margin-right: 0.75rem;
    box-shadow: 0 0 0 2px #ffffff;
}

.logo-text-drawer {
    color: #ffffff;
    /* 🔑 FLUID FONT SIZE: 24px -> 1.5rem */
    font-size: 1.5rem;
    font-weight: bold;
}

/* ListTile styling */
.mobile-drawer .nav-item {
    text-decoration: none;
    color: #333;
    /* 🔑 FLUID FONT SIZE: 17px -> 1.0625rem */
    font-size: 1.0625rem;
    /* 🔑 FLUID PADDING: 15px 16px -> 0.9375rem 1rem */
    padding: 0.9375rem 1rem;
    display: block;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.mobile-drawer .nav-item:hover {
    background-color: #f5f5f5;
}

/* --- 5. MEDIA QUERY (Controls display of desktop/mobile elements) --- */

@media (min-width: 768px) {

    /* Desktop (768px and up) */
    .mobile-menu-toggle {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }
}

@media (max-width: 767px) {

    /* Mobile (767px and down) */
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}