/* Responsive Header Fix for Le Evoke Website */

/* ========================================
   HEADER & NAVIGATION RESPONSIVE FIXES
   ======================================== */

/* Show mobile hamburger at 992px and below (overrides theme default hide) */
@media (max-width: 992px) {
    /* Keep header on top and visible: fix z-index and overflow */
    .cbp-af-header {
        z-index: 10000 !important;
        overflow: visible !important;
    }
    .cbp-af-header .header {
        float: none !important;
        height: auto !important;
        min-height: 58px !important;
        overflow: visible !important;
    }
    .cbp-af-header .menubars,
    .cbp-af-header .top-container {
        overflow: visible !important;
    }
    .cbp-af-header .menubars .top-container .navigation {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        overflow: visible !important;
    }
    .cbp-af-header .nav-toggle {
        display: flex !important;
        visibility: visible !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        color: #fff !important;
        font-size: 22px;
    }
    .cbp-af-header .nav-toggle:before,
    .cbp-af-header .nav-toggle:after {
        display: none !important;
    }

    /* Menu panel above backdrop when open (tablet) */
    .nav-menus-wrapper.nav-menus-wrapper-open {
        left: 0 !important;
        z-index: 10002 !important;
        background: #1d4441 !important;
    }
    .nav-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-menu-backdrop.nav-menu-backdrop-visible {
        display: block;
        opacity: 1;
    }

    /* Keep logo visible in top header (theme hides it on mobile) */
    .cbp-af-header .logo,
    .cbp-af-header .nav-brand .logo,
    .menubars .logo {
        display: flex !important;
        visibility: visible !important;
    }
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .navigation {
        height: auto;
    }

    .nav-menu>li>a {
        padding: 20px 15px;
        font-size: 0.95em;
    }

    .header-contact {
        display: flex;
        align-items: center;
    }
}

/* Desktop Medium (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-menu>li>a {
        padding: 15px 8px;
        font-size: 0.85em;
    }

    .header-contact .contact-top {
        font-size: 12px;
    }

    .header-contact .post-title {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Tablet (768px - 991px) - show mobile menu */
@media (min-width: 768px) and (max-width: 991px) {
    .header-contact {
        display: none !important;
    }

    .nav-header {
        width: 100%;
    }

    .logo {
        width: 100px;
        position: relative;
    }

    .cbp-af-header.cbp-af-header-shrink .menubars {
        height: auto;
    }

    /* Ensure hamburger is visible and header is flex */
    .menubars .top-container .navigation {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .menubars .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: #fff;
        font-size: 22px;
    }

    .menubars .nav-toggle:before,
    .menubars .nav-toggle:after {
        display: none !important;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {

    /* Header container - z-index above carousel/popups, no overflow clipping */
    .cbp-af-header {
        background: #1d4441;
        z-index: 10000 !important;
        overflow: visible !important;
    }

    .cbp-af-header .header {
        float: none !important;
        height: auto !important;
        min-height: 58px !important;
        overflow: visible !important;
    }

    .cbp-af-header .menubars,
    .cbp-af-header .top-container {
        overflow: visible !important;
    }

    .cbp-af-header.cbp-af-header-shrink {
        height: auto;
    }

    .cbp-af-header.cbp-af-header-shrink .header {
        float: none !important;
        height: auto;
        min-height: 58px;
        background: transparent;
        overflow: visible !important;
    }

    /* Hide desktop contact info */
    .header-contact {
        display: none !important;
    }

    /* Logo adjustments */
    .logo {
        width: 80px;
        height: auto;
        position: relative;
        margin: 10px 0;
    }

    .logo span {
        font-size: 18px !important;
        color: #fff !important;
    }

    /* Navigation container */
    .menubars {
        padding: 10px 15px;
        height: auto !important;
    }

    .cbp-af-header.cbp-af-header-shrink .menubars {
        height: auto !important;
        padding: 5px 15px;
    }

    /* Top container flex layout */
    .top-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Navigation: flex row so logo and hamburger show side by side */
    .menubars .top-container .navigation {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    /* Nav brand/logo */
    .nav-header {
        display: flex;
        align-items: center;
    }

    .nav-brand {
        display: flex;
        align-items: center;
    }

    /* Logo visible in top header (override theme's display: none on mobile) */
    .cbp-af-header .logo,
    .cbp-af-header .nav-brand .logo,
    .menubars .logo {
        display: flex !important;
        visibility: visible !important;
    }

    /* Backdrop when menu is open - behind menu panel, click to close */
    .nav-menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-menu-backdrop.nav-menu-backdrop-visible {
        display: block;
        opacity: 1;
    }

    /* Mobile menu wrapper - above backdrop, fixed to viewport */
    .nav-menus-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -320px;
        width: 280px !important;
        height: 100vh !important;
        background: #1d4441 !important;
        z-index: 10002 !important;
        transition: left 0.3s ease;
        overflow-y: auto;
        visibility: visible !important;
    }

    .nav-menus-wrapper.nav-menus-wrapper-open {
        left: 0 !important;
    }

    /* Mobile menu items */
    .nav-menu {
        width: 100%;
        float: none;
        padding-top: 50px;
    }

    .nav-menu>li {
        width: 100%;
        float: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu>li>a {
        display: block;
        padding: 15px 20px;
        color: #fff;
        font-size: 14px;
    }

    .nav-menu>li>a:hover,
    .nav-menu>li>a:focus {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Hide/show elements */
    .mob-view {
        display: block !important;
    }

    .desk-view {
        display: none !important;
    }

    /* Bottom navigation bar */
    .hide-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1d4441;
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    .hide-menu a {
        color: #fff;
        font-size: 18px;
        padding: 5px 15px;
    }

    .hide-menu .logoBx {
        width: 40px;
        height: 40px;
    }

    .hide-menu .logoBx img {
        width: 100%;
        height: auto;
        border-radius: 50%;
    }

    .bottom-menu {
        font-size: 20px;
    }

    /* Menu trigger/hamburger - force visible on mobile */
    .menu-trigger,
    .nav-toggle,
    .cbp-af-header .nav-toggle,
    .menubars .nav-toggle {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        color: #fff !important;
        font-size: 22px;
        flex-shrink: 0;
    }

    .nav-toggle i.fa,
    .nav-toggle .fa-bars {
        color: #fff !important;
    }

    .nav-toggle:before,
    .nav-toggle:after {
        display: none !important;
    }

    .hide-menu-bar {
        display: flex;
        align-items: center;
    }

    /* Close button for mobile menu */
    .nav-menus-wrapper-close-button {
        display: block;
        padding: 15px 20px;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
        border: none;
        background: transparent;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }

    /* Add padding to body to account for fixed bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .logo span {
        font-size: 16px !important;
    }

    .menubars {
        padding: 8px 10px;
    }

    .hide-menu a {
        font-size: 16px;
        padding: 5px 10px;
    }

    .bottom-menu {
        font-size: 18px;
    }

    .hide-menu .logoBx {
        width: 35px;
        height: 35px;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .hide-menu a {
        font-size: 14px;
        padding: 5px 8px;
    }

    .bottom-menu {
        font-size: 16px;
    }
}

/* ========================================
   HERO CAROUSEL RESPONSIVE FIXES
   ======================================== */

@media (max-width: 991px) {
    #fw_al_001 {
        margin-top: 60px;
    }

    .carousel-inner>.item>img {
        min-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    #fw_al_001 {
        margin-top: 0;
        height: calc(75vh - 80px) !important;
    }

    .carousel-inner>.item>img {
        height: 100%;
        min-height: unset;
        object-fit: cover;
    }

    .swiper-slide-caption {
        padding: 20px;
    }

    .banner-caption .caption {
        font-size: 14px;
    }

    .banner-caption-mid {
        font-size: 24px;
        line-height: 1.2;
    }

    .caption-bottom {
        font-size: 12px;
        line-height: 1.4;
    }

    .caption-explore a {
        font-size: 12px;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .carousel-inner>.item>img {
        min-height: 250px;
    }

    .banner-caption-mid {
        font-size: 20px;
    }

    .caption-bottom {
        font-size: 11px;
    }
}

/* ========================================
   GENERAL RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Ensure smooth transitions */
* {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

.img-full {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Container padding adjustments */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fix for WhatsApp button on mobile */
@media (max-width: 767px) {
    .whats-app-forest {
        bottom: 70px;
        right: 10px;
    }

    .whats-app-forest img {
        width: 50px;
       
    }
}