/* ========================================================= */
/* NESTXGEN — PREMIUM RESPONSIVE SYSTEM (PRODUCTION)         */
/* ========================================================= */

/* ---------------------------------------- */
/* 1. DESKTOP HIDDEN ELEMENTS               */
/* ---------------------------------------- */
.hamburger, 
.mobile-close-btn {
    display: none !important;
}

/* ---------------------------------------- */
/* 2. MOBILE & TABLET (768px and down)      */
/* ---------------------------------------- */
@media (max-width: 768px) {
    
    /* --- Premium Header Proportions --- */
    header .header-content {
        padding: 0.5rem 4% !important;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-img {
        height: 26px !important; 
        width: auto;
    }

    .header-controls {
        display: flex;
        align-items: center;
        gap: 8px !important; 
    }

    /* --- Refined Micro-CTA (Header Pill) --- */
    .nav-cta {
        display: inline-block !important;
        padding: 6px 14px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 50px !important;
        white-space: nowrap;
        background: var(--color-secondary);
        color: #fff;
        box-shadow: none !important; 
    }

    /* --- RESTORED PILL LANGUAGE SWITCHER --- */
    .language-switcher {
        display: flex;
        align-items: center;
        margin-right: 5px;
    }

    .lang-pill {
        display: flex;
        background: rgba(255, 255, 255, 0.15); /* Glass effect */
        border-radius: 50px;
        backdrop-filter: blur(5px);
        padding: 2px;
        border: 1px solid rgba(255, 255, 255, 0.2);    }

    .lang-btn {
        border: none;
        background: transparent;
        color: #444; 
        font-size: 0.6rem !important;
        font-weight: 700;
        padding: 3px 7px !important;
        border-radius: 50px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: all 0.3s ease;
    }

    .lang-btn.active {
        background: linear-gradient(135deg, #f1c40f 0%, #00a693 100%) !important; 
        color: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* --- Sleek Theme Toggle --- */
    .theme-toggle {
        background: none;
        border: none;
        color: var(--color-accent);
        font-size: 1rem !important;
        cursor: pointer;
        padding: 0;
    }

    /* --- Elegant 2-Bar Hamburger --- */
    #hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        width: 24px;
        height: 18px;
        gap: 6px !important;
        background: none;
        border: none;
        padding: 0;
        z-index: 1200;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 100% !important;
        height: 2px !important; 
        background-color: #fff !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #hamburger-menu.is-active .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
    #hamburger-menu.is-active .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

    /* --- Full Screen Navigation Overlay --- */
    nav { display: none; } 

    #main-nav {
        position: fixed;
        top: 0; 
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-primary);
        display: flex !important;
        flex-direction: column;
        overflow-y: auto; 
        padding: 20px 15px !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
    }

    #main-nav.is-active {
        right: 0 !important;
    }

    .mobile-close-btn {
        display: block !important;
        align-self: flex-end;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.2rem !important;
        cursor: pointer;
        margin-bottom: 20px;
        padding: 0;
    }

    /* --- Hero Video Mobile Fix & Dimming --- */
    .hero-video {
        height: 85vh; /* Optimal mobile height */
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-bg-video {
        display: block !important; /* Force visibility */
        object-fit: cover;
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -2;
        object-fit: cover;
        z-index: 1; /* Lowest level */
        display: block !important;
    }

    /* The 'Team' Dimming Overlay */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      background: rgba(0, 0, 0, 0.7) !important; /* Higher number = darker (dimmer) */
        z-index: 2; /* Sits on top of video */
        pointer-events: none; /* Allows clicks to pass through to buttons */
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-cta-group .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .secondary-cta-outline {
        display: flex !important;
        align-items: center;
        border: 1.5px solid #ffffff !important;
        background: transparent !important;
        color: #ffffff !important;
    }

    .secondary-cta-outline i {
        color: #25D366; /* WhatsApp Green */
        margin-right: 8px;
    }

    /* --- Navigation List & Accordion --- */
    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 5px; /* Added small gap between items */
    }

    .nav-list > li { width: 100%; text-align: center; }

    #main-nav a {
        padding: 10px;
        font-size: 1.0rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        color: var(--color-text-light);
        text-decoration: none;
    }

   .nav-list .dropdown-menu {
        position: static !important;   /* Breaks it out of floating mode */
        transform: none !important;    /* Removes 'center' offsets like translateX(-50%) */
        left: auto !important;         /* Removes desktop left alignment */
        top: auto !important;          /* Removes desktop top offset */
        width: 100% !important;        /* Makes it exactly the same width as main links */
        min-width: 100% !important;    /* Prevents it from shrinking */
        visibility: visible !important; /* Ensure it's not hidden by opacity logic */
        opacity: 1 !important;         /* Ensure it's fully opaque when active */
        display: none;                 /* Controlled by .active class */
        background: rgba(0, 0, 0, 0.2) !important; /* Darker contrast for depth */
        box-shadow: none !important;   /* No floating shadows */
        margin: 5px 0 !important;
        padding: 5px 0 !important;
        border: none !important;
    }
    .nav-list .has-dropdown {
        position: relative;
        width: 100%;
    }

  .nav-list .has-dropdown.active > .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
    }
  .nav-list .dropdown-menu li a {
        padding: 10px 20px !important;
        font-size: 1rem !important;
        text-align: center !important; /* Keeps text centered with main menu */
        width: 100% !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .nav-list .has-dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* ---------------------------------------- */
/* 3. SMALL DEVICES (576px and down)        */
/* ---------------------------------------- */
@media (max-width: 576px) {
    .hero-content h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-content p { font-size: 0.95rem; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
}

/* ---------------------------------------- */
/* 4. EXTRA SMALL DEVICES (400px and down)  */
/* ---------------------------------------- */
@media (max-width: 400px) {
    .hero-content h1 { font-size: 1.6rem; }
    .nav-cta { padding: 6px 10px !important; font-size: 0.65rem !important; }
}

/* ---------------------------------------- */
/* 5. UTILITIES                             */
/* ---------------------------------------- */
.product-media { min-height: 250px; }
.gallery-slide img, .gallery-slide video { max-height: 50vh; }

footer .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}