/* ═══════════════════════════════════════════════
   HEADER & NAVIGATION — v10.0 FINAL
   ═══════════════════════════════════════════════ */

/* ── Site Header ── */
.site-header {
    position: sticky;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.scrolled .header-main { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

/* ── Top Bar ── */
.top-bar { background: #0f172a; color: #fff; padding: 0.45rem 0; font-size: 0.78rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-info { display: flex; gap: 1.5rem; align-items: center; }
.info-item { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.8); }
.info-item i { color: #0E82FD; }

/* ── Main Header ── */
.header-main { background: #fff; padding: 0.85rem 0; border-bottom: 1px solid #f1f5f9; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-branding { flex-shrink: 0; }
.main-logo { height: 44px; width: auto; display: block; }

/* ── Desktop Nav ── */
.nav-menu-wrap { display: flex; align-items: center; }
.nav-menu-list { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu-item a { font-weight: 600; font-size: 0.9rem; color: #1e293b; padding: 0.4rem 0; display: block; white-space: nowrap; }
.menu-item a:hover { color: #0E82FD; }

/* ── Header Actions ── */
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.whatsapp-btn {
    width: 42px; height: 42px;
    background: #25d366; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.08); background: #1ebe5a; color: #fff; }

/* ── Mobile Toggle ── */
.mobile-toggle {
    display: none; background: none; border: none;
    font-size: 1.75rem; color: #0f172a; cursor: pointer;
    width: 40px; height: 40px; border-radius: 8px;
    align-items: center; justify-content: center;
}

/* ── Mobile: show toggle, hide nav ── */
@media (max-width: 1023px) {
    .nav-menu-wrap { display: none !important; }
    .mobile-toggle { display: flex !important; }
    .header-actions .btn, .header-actions .btn-primary { display: none !important; }
    .main-logo { height: 36px !important; }
    .header-main { padding: 0.65rem 0 !important; }
    .header-actions { gap: 0.6rem !important; }
    .whatsapp-btn { width: 38px !important; height: 38px !important; font-size: 1.25rem !important; }
}

/* ── Laptop nav spacing ── */
@media (min-width: 1024px) and (max-width: 1366px) {
    .nav-menu-list { gap: 0.75rem; }
    .menu-item a { font-size: 0.88rem; }
    .header-actions .btn { padding: 10px 20px; font-size: 0.9rem; }
    .whatsapp-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .main-logo { height: 38px; }
}


/* ═══════════════════════════════════════════════════════
   MOBILE DRAWER — PROFESSIONAL FULL-SCREEN SIDE PANEL
   ═══════════════════════════════════════════════════════ */

/* Dark overlay behind drawer */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* ── The Drawer Itself ── */
.mobile-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 290px;
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 2000;
    /* KEY: flex column layout that allocates space correctly */
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    overflow: hidden;
}
.mobile-drawer.open { right: 0; }

/* ── TOP: Logo + Close button. Fixed height. ── */
#mobile-drawer .drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;        /* NEVER shrink */
    flex-grow: 0 !important;
    background: #ffffff !important;
    min-height: 60px !important;
    max-height: 60px !important;
    box-sizing: border-box !important;
}
.drawer-logo-img { height: 32px !important; width: auto !important; display: block !important; }
.drawer-close {
    background: #f1f5f9; border: none;
    font-size: 1.35rem; color: #0f172a;
    cursor: pointer; width: 36px; height: 36px;
    border-radius: 8px;
    display: flex !important; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: #0E82FD; color: #fff; }

/* ── MIDDLE: Scrollable Body Container ── */
#mobile-drawer .drawer-body {
    flex: 1 1 0% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    min-height: 0 !important;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* ── Nav links inside body ── */
#mobile-drawer .drawer-menu {
    background: #ffffff;
    padding: 0 !important;
    margin: 0 !important;
}
#mobile-drawer .drawer-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
#mobile-drawer .drawer-nav-list li {
    display: block !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#mobile-drawer .drawer-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 15px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background 0.15s, color 0.15s;
}
#mobile-drawer .drawer-nav-link:hover,
#mobile-drawer .drawer-nav-link:active {
    background: #eff6ff !important;
    color: #0E82FD !important;
}
.drawer-nav-icon {
    font-size: 1.15rem !important;
    color: #0E82FD !important;
    width: 20px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

/* ── LANG STRIP: compact row of language codes ── */
#mobile-drawer .drawer-lang-section {
    background: #f8fafc;
    padding: 15px 16px !important;
    border-bottom: 1px solid #e2e8f0;
}
#mobile-drawer .drawer-lang-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 5px;
}
#mobile-drawer .drawer-lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#mobile-drawer .drawer-lang-item {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
#mobile-drawer .drawer-lang-item:hover,
#mobile-drawer .drawer-lang-item.active {
    background: #0E82FD;
    color: #fff;
    border-color: #0E82FD;
}

/* ── BOTTOM: CTA Buttons ── */
#mobile-drawer .drawer-footer-cta {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #ffffff;
    margin-top: auto; /* Push to bottom if content is short */
    margin-bottom: 20px; /* Some padding at the absolute bottom */
}
.drawer-btn-primary {
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    gap: 8px;
    padding: 13px 16px !important;
    background: #0E82FD;
    color: #ffffff !important;
    font-weight: 700; font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.drawer-btn-primary:hover { background: #0061cc; }
.drawer-btn-whatsapp {
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    gap: 8px;
    padding: 13px 16px !important;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700; font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.drawer-btn-whatsapp:hover { background: #1ebe5a; }
