/* ==========================================
   CSS Variables & Global Resets
   ========================================== */
:root {
    --primary: #0a2540;        /* Deep corporate navy */
    --accent: #ffb703;         /* Vibrant energy gold */
    --bg-light: #f8fafc;       /* Clean ultra-light grey-blue */
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%); /* Subtle dual-tone depth */
    --text-main: #334155;      /* Professional dark slate body text */
    --text-dark: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-gradient); /* Applies the clean, elegant background to ALL pages */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 0.93rem; /* Scaled down one notch globally */
}

/* ==========================================
   Header & Navigation Layout (Full-Height Logo)
   ========================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(10, 37, 64, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 85px; /* Exact standard header height */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Matches the exact 85px header height */
    padding: 0;
    background: transparent !important; /* Ensures no background color is forced */
}

.logo-img {
    height: 85px !important;       /* Sets fixed height */
    width: auto !important;
    max-height: none !important;   /* Breaks the 'contain' constraint */
    object-fit: contain;
    /* Scales the logo and shifts it down by 6px simultaneously */
    transform: scale(2.0) translateY(6px); 
    transform-origin: left center; /* Keeps it aligned to the left */
    display: block;
    background: transparent !important;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem; /* Reduced one step smaller */
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--accent);
}

.cta-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.55rem 1.25rem !important; /* Slightly adjusted padding for smaller size */
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced one step smaller */
    box-shadow: 0 4px 10px rgba(10, 37, 64, 0.15);
    text-decoration: none !important;
}

.cta-btn:hover {
    background-color: #13385e;
    transform: translateY(-1px);
}

/* ==========================================
   Hamburger Icon (Hidden on Desktop)
   ========================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Floating Quick Contact Widget Styles
   ========================================== */
.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.call-btn {
    background-color: #0f2c4c; /* Primary brand color */
}

.whatsapp-btn {
    background-color: #25D366; /* Official WhatsApp green */
}

.email-btn {
    background-color: #f59e0b; /* Accent brand color */
    color: #0f2c4c;
}

/* ==========================================
   Comprehensive Mobile Optimization (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
    /* 1. Prevent Overflows & Body Issues */
    body {
        overflow-x: hidden;
    }

    /* 2. Hide Accidental "Home" text floating above hero */
    .hero-breadcrumb, 
    .breadcrumb, 
    .mobile-home-indicator,
    .page-header span,
    .hero span.home-text,
    .home, 
    .home-indicator {
        display: none !important;
    }

    /* 3. Scale Down Font Sizes & Fix Overlapping Text (One size smaller than previous baseline) */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    h2, .section-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

    p, span, li {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    /* 4. Fix Hero Sections (Padding & Spacing to stop text overlap) */
    .hero-section, 
    .services-hero-section, 
    .about-hero, 
    header.hero {
        padding: 3rem 5% !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-content, 
    .services-hero-content {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        padding: 1rem 0 !important;
    }

    /* 5. Force Grids into Single Column on Mobile */
    .services-grid, 
    .products-grid, 
    .grid-container, 
    .footer-container,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- SCROLLING FIX FOR MOBILE DROPDOWN --- */
    .dropdown-menu {
        position: static !important; 
        box-shadow: none !important; 
        border: none !important; 
        padding-left: 0 !important;
        max-height: 200px !important;      /* Forces a maximum height to trigger scrolling */
        overflow-y: auto !important;        /* Explicitly enables vertical scrolling */
        -webkit-overflow-scrolling: touch;  /* Smooth momentum scrolling for iOS/Safari */
        opacity: 1 !important; 
        visibility: visible !important; 
        transform: none !important; 
        display: none; 
        background: #f1f5f9 !important;     /* Light background for visibility */
        border-radius: 6px;
        margin: 0.5rem auto;
        width: 90%;
    }
    
    .dropdown.active .dropdown-menu { 
        display: block !important;          /* Forces it to appear when toggled */
    }

    /* 7. Adjust Contact Widget Placement */
    .floating-contact-widget {
        bottom: 20px !important;
        right: 20px !important;
        gap: 8px !important;
    }

    .contact-btn {
        width: 42px !important;
        height: 42px !important;
    }
}
@media (max-width: 992px) {
    /* Ensure the mobile dropdown menu stays cleanly tucked inside its hidden/shown state */
    .nav-links {
        display: none; /* Hidden by default until toggled */
    }

    .nav-links.show {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Obliterate rogue 44x40 floating anchor links above the hero */
body > a:first-of-type,
main > a:first-of-type,
.hero-section > a:first-of-type,
.site-header + a,
a[style*="44"],
a[style*="40"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force-hide any stray links sitting outside the header, main navigation, and footer */
body > a,
main > a:first-child,
section.hero-section > a:first-child,
header.site-header ~ a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}
/* Eliminate any gap between the sticky header and hero section */
.site-header {
    margin-bottom: 0 !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
}