/* ==========================================================================
   Variables & Fluid Typography
   ========================================================================== */
:root {
    /* Updated to match the exact Blue from your new Logo */
    --primary-color: #008CFF; 
    --primary-hover: #0070CC; 
    
    /* Matches the orange sign in your new logo perfectly */
    --secondary-color: #ff7e67; 
    
    --bg-white: #ffffff;
    --bg-light-gray: #f7fafc;
    --border-color: #e2e8f0;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --transition-speed: 0.3s;
    --font-main: 'Poppins', sans-serif;
    
    --fs-h1: clamp(2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.8rem, 4vw, 2.5rem);
    --fs-body: clamp(0.9rem, 1.5vw, 1rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    font-size: var(--fs-body);
    line-height: 1.6;
    overflow-x: hidden; 
    background-color: var(--bg-white);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.py-60 { padding: 60px 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-15 { margin-top: 15px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.text-primary { color: var(--primary-color) !important; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.bg-light-gray { background-color: var(--bg-light-gray); }

/* ==========================================================================
   Header & Desktop Navigation
   ========================================================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; 
    z-index: 1000; /* Header establishes the top stacking context */
}

.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }

.logo .brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.circular-logo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.brand-name { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }

@media (min-width: 993px) {
    .main-nav .nav-list { display: flex; gap: 25px; list-style: none; align-items: center; }
    .nav-list a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color var(--transition-speed); }
    .nav-list a:hover, .nav-list a.active { color: var(--primary-color); }
    .nav-chevron { transition: transform var(--transition-speed) ease; margin-left: 5px; font-size: 0.75rem;}

    .dropdown { position: relative; }
    .dropdown-content {
        position: absolute; top: 150%; left: 0; background: var(--bg-white);
        min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 8px; border-top: 3px solid var(--primary-color);
        opacity: 0; visibility: hidden; transform: translateY(10px);
        transition: all var(--transition-speed) ease; list-style: none; padding: 10px 0;
    }
    .dropdown:hover .dropdown-content { opacity: 1; visibility: visible; top: 100%; transform: translateY(0); }
    .dropdown-content a { display: block; padding: 10px 20px; }
    .dropdown-content a:hover { background: var(--bg-light-gray); padding-left: 25px; }
    
    .mobile-menu-toggle, .close-menu-btn, .mobile-nav-cta { display: none; }
}

/* ==========================================================================
   Repaired Mobile Drawer Navigation (Z-Index Fixed)
   ========================================================================== */
.menu-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); 
    z-index: 990; /* FIXED: Now properly sits below the header's 1000 z-index */
    opacity: 0; visibility: hidden; transition: all var(--transition-speed) ease;
}
.menu-backdrop.active { opacity: 1; visibility: visible; }

@media (max-width: 992px) {
    .desktop-only { display: none; }
    
    .mobile-menu-toggle { display: block; background: none; border: none; font-size: 1.8rem; color: var(--primary-color); cursor: pointer; }
    .close-menu-btn { display: block; background: none; border: none; font-size: 1.8rem; color: var(--text-dark); position: absolute; top: 20px; right: 20px; cursor: pointer; z-index: 10000; }
    
    .main-nav {
        position: fixed; top: 0; left: 0; 
        width: 300px; max-width: 85vw; height: 100vh;
        background: var(--bg-white); 
        z-index: 1001; /* Stays securely on top of header elements */
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        overflow-y: auto; padding: 70px 20px 30px; 
        transform: translateX(-100%); 
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }
    
    .main-nav.open { transform: translateX(0); }
    
    .main-nav .nav-list { flex-direction: column; align-items: flex-start; list-style: none; width: 100%; }
    .nav-list > li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-list > li > a { display: flex; justify-content: space-between; align-items: center; padding: 15px 5px; width: 100%; font-size: 1.1rem; text-decoration: none; color: var(--text-dark); font-weight: 500;}
    .nav-list > li > a.active { color: var(--primary-color); }
    
    .dropdown-content { display: none; background: var(--bg-light-gray); padding: 0; list-style: none; margin: 0 -20px; }
    .dropdown.mobile-open .dropdown-content { display: block; }
    .dropdown.mobile-open .nav-chevron { transform: rotate(180deg); }
    .dropdown-content a { display: block; padding: 12px 25px; font-size: 0.95rem; border-bottom: 1px solid var(--border-color); text-decoration: none; color: var(--text-muted); }
    .dropdown-content a:hover { color: var(--primary-color); background: #edf2f7; }
    
    .mobile-nav-cta { display: block; margin-top: 30px; }
}

/* ==========================================================================
   Universal Footer & FAB
   ========================================================================== */
.site-footer { background: var(--text-dark); color: var(--bg-white); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p { margin-bottom: 10px; color: #a0aec0; }
.footer-col a { color: #a0aec0; text-decoration: none; display: block; margin-bottom: 10px; transition: color var(--transition-speed); }
.footer-col a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { background: rgba(255,255,255,0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--bg-white); transition: background var(--transition-speed); }
.social-links a:hover { background: var(--primary-color); color: var(--bg-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; color: #a0aec0; font-size: 0.9rem; }

.fab-whatsapp {
    position: fixed; bottom: 30px; right: 30px; 
    z-index: 900; /* Sandwiched safely under the backdrop */
    width: 60px; height: 60px; background-color: #25d366; color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 2rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-speed); text-decoration: none;
}
.fab-whatsapp:hover { transform: translateY(-5px) scale(1.05); }
