       /* =========================================
           ROOT VARIABLES 
           ========================================= */
        :root {
            --color-primary: #0056b3;
            --color-primary-hover: #004494;
            --color-secondary: #00a8ff;
            --color-text-dark: #1e293b;
            --color-bg-light: #f1f5f9;
            --color-white: #ffffff;
            --color-primary-glow: rgba(0, 86, 179, 0.3);
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;
            --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: var(--font-body);
            background-color: #f8fafc;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }
       /* =========================================
           ROOT VARIABLES 
           ========================================= */
        :root {
            --color-primary: #0056b3;
            --color-primary-hover: #004494;
            --color-secondary: #00a8ff;
            --color-text-dark: #1e293b;
            --color-bg-light: #f1f5f9;
            --color-white: #ffffff;
            --color-primary-glow: rgba(0, 86, 179, 0.3);
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;
            --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: var(--font-body);
            background-color: #f8fafc;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* =========================================
           FIXED HEADER
           ========================================= */
        .site-header {
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            z-index: 1200;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            transition: all 0.4s var(--transition-smooth);
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        }

        .site-header.scrolled {
            background: rgba(255,255,255,0.98);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* =========================================
           HEADER WRAPPER
           ========================================= */
        .header-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 0;
        }

        .logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo img {
            height: 48px;
            width: auto;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .logo:hover img { transform: scale(1.02); }

        /* =========================================
           DESKTOP NAV
           ========================================= */
        .main-nav {
            flex: 1;
            display: flex;
            justify-content: flex-end;
            padding-right: 40px;
        }

        .nav-list {
            display: flex;
            list-style: none;
            align-items: center;
            gap: 4px;
            margin: 0;
            padding: 0;
        }

        .nav-list > li { position: relative; }
        .nav-list > li.has-megamenu { position: static; }

        .nav-link {
            display: block;
            padding: 10px 16px;
            color: var(--color-text-dark);
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            transition: color 0.3s ease;
            position: relative;
            white-space: nowrap;
            cursor: pointer;
        }

        .nav-link:hover, .nav-link.active { color: var(--color-primary); }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0; left: 50%;
            transform: translateX(-50%);
            width: 0; height: 3px;
            background: var(--color-primary);
            transition: width 0.3s ease;
            border-radius: 3px 3px 0 0;
        }

        .nav-link:hover::after, .nav-link.active::after { width: 60%; }

        /* Dropdown Arrow */
        .has-dropdown > .nav-link { padding-right: 28px; }

        .has-dropdown > .nav-link::before {
            content: '';
            position: absolute;
            right: 8px; top: 50%;
            transform: translateY(-50%);
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid currentColor;
            transition: transform 0.3s ease;
        }

        .has-dropdown:hover > .nav-link::before {
            transform: translateY(-50%) rotate(180deg);
        }

        /* =========================================
           DROPDOWNS (Desktop)
           ========================================= */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            background: var(--color-white);
            min-width: 260px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.12);
            border-radius: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s var(--transition-smooth);
            list-style: none;
            padding: 10px 0;
            border-top: 4px solid var(--color-primary);
            z-index: 1300;
        }

        .dropdown-right > .dropdown-menu { left: auto; right: 0; }

        .has-dropdown:hover > .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu li a {
            display: block;
            padding: 12px 24px;
            color: #475569;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .dropdown-menu li a:hover {
            background: var(--color-bg-light);
            color: var(--color-primary);
            border-left-color: var(--color-primary);
            padding-left: 28px;
        }

        /* =========================================
           MEGAMENU (Desktop)
           ========================================= */
        .megamenu-panel {
            position: absolute;
            top: calc(100% + 5px);
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            width: 96vw;
            max-width: 1200px;
            background: var(--color-white);
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
            border-radius: 0 0 12px 12px;
            border-top: 4px solid var(--color-primary);
            padding: 30px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s var(--transition-smooth);
            z-index: 1300;
            max-height: calc(100vh - 90px);
            overflow-y: auto;
            list-style: none;
        }

        .megamenu-panel::-webkit-scrollbar { width: 6px; }
        .megamenu-panel::-webkit-scrollbar-track { background: var(--color-bg-light); }
        .megamenu-panel::-webkit-scrollbar-thumb { background: rgba(0,86,179,0.4); border-radius: 4px; }

        .has-megamenu:hover > .megamenu-panel {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .megamenu-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        .mega-col h4 {
            color: var(--color-text-dark);
            font-size: 13px;
            font-weight: 700;
            margin: 0 0 12px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--color-bg-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .mega-col ul { list-style: none; padding: 0; margin: 0; }

        .mega-col ul li a {
            padding: 7px 0;
            color: #64748b;
            font-size: 13.5px;
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .mega-col ul li a::before {
            content: '→';
            margin-right: 8px;
            opacity: 0;
            transform: translateX(-8px);
            transition: all 0.2s ease;
            color: var(--color-primary);
            font-size: 12px;
        }

        .mega-col ul li a:hover {
            color: var(--color-primary);
            transform: translateX(4px);
        }

        .mega-col ul li a:hover::before {
            opacity: 1;
            transform: translateX(0);
        }

        /* =========================================
           HEADER CTA
           ========================================= */
        .header-cta { flex-shrink: 0; }

        .btn-get-quote {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--color-primary);
            color: var(--color-white);
            padding: 12px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px var(--color-primary-glow);
        }

        .btn-get-quote:hover {
            transform: translateY(-2px);
            background: var(--color-primary-hover);
            box-shadow: 0 8px 25px rgba(0,86,179,0.4);
        }

        /* =========================================
           MOBILE TOGGLE BUTTON
           ========================================= */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 32px;
            height: 26px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1500;
            flex-shrink: 0;
        }

        .mobile-menu-toggle span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: var(--color-text-dark);
            border-radius: 10px;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        /* Hamburger → X animation */
        .mobile-menu-toggle.active span:nth-child(1) {
            transform: translateY(11.5px) rotate(45deg);
        }
        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }
        .mobile-menu-toggle.active span:nth-child(3) {
            transform: translateY(-11.5px) rotate(-45deg);
        }

        /* Overlay */
        .nav-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 1199;
        }
        .nav-overlay.active { display: block; }

        /* =========================================
           RESPONSIVE — TABLET & MOBILE
           ========================================= */
        @media (max-width: 1024px) {

            .mobile-menu-toggle { display: flex; }
            .header-cta { display: none; }

            /* Slide-in panel */
            .main-nav {
                position: fixed;
                top: 0; right: -105%;
                width: 320px;
                height: 100vh;
                background: var(--color-white);
                padding: 70px 0 30px;
                box-shadow: -8px 0 30px rgba(0,0,0,0.15);
                transition: right 0.4s var(--transition-smooth);
                overflow-y: auto;
                z-index: 1400;
                flex-direction: column;
                justify-content: flex-start;
                padding-right: 0;
            }

            .main-nav.active { right: 0; }

            .nav-list {
                flex-direction: column;
                align-items: flex-start;
                width: 100%;
                gap: 0;
            }

            .nav-list > li {
                width: 100%;
                border-bottom: 1px solid #e9eef4;
            }

            .nav-link {
                padding: 16px 20px;
                font-size: 15px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .nav-link::after { display: none; }

            /* Arrow stays inside on mobile */
            .has-dropdown > .nav-link::before {
                position: static;
                transform: none;
                margin-left: 6px;
                transition: transform 0.3s ease;
                flex-shrink: 0;
            }

            .has-dropdown.open > .nav-link::before {
                transform: rotate(180deg);
            }

            /* Hide hover-based dropdowns on mobile */
            .has-dropdown:hover > .dropdown-menu { opacity: 0; visibility: hidden; }
            .has-megamenu:hover > .megamenu-panel { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(10px); }

            /* Mobile dropdown — hidden by default, shown via JS */
            .dropdown-menu,
            .megamenu-panel {
                position: static !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                box-shadow: none !important;
                border: none !important;
                border-radius: 0 !important;
                display: none;
                background: #f8fafc;
                padding: 0 !important;
                width: 100% !important;
                max-width: 100% !important;
                max-height: none !important;
                overflow: visible !important;
                min-width: unset !important;
                border-top: none !important;
            }

            .dropdown-menu.open,
            .megamenu-panel.open { display: block; }

            .dropdown-menu li a {
                padding: 13px 20px 13px 38px;
                border-left: 3px solid transparent;
                font-size: 14px;
            }

            .dropdown-menu li a:hover {
                padding-left: 44px;
            }

            /* Megamenu mobile grid reset */
            .megamenu-grid {
                display: block;
            }

            .mega-col {
                width: 100%;
                border-bottom: 1px solid #e9eef4;
            }

            .mega-col h4 {
                padding: 14px 20px 14px 38px;
                margin: 0;
                background: #edf2f7;
                font-size: 12px;
                border-bottom: 1px solid #dde3ea;
                cursor: default;
            }

            .mega-col ul li a {
                padding: 11px 20px 11px 50px;
                font-size: 13.5px;
                transform: none !important;
            }

            .mega-col ul li a::before { display: none; }
        }

        @media (max-width: 480px) {
            .logo img { height: 40px; }
            .main-nav { width: 88%; }
        }

        /* =========================================
   MOBILE MENU ALIGNMENT OVERRIDE
   ========================================= */
@media (max-width: 1024px) {
    /* 1. Ensure the link container spreads across the full width */
    .nav-list > li > .nav-link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
    }

    /* 2. Hide the old arrow that is pushing the text to the right */
    .has-dropdown > .nav-link::before {
        display: none !important;
    }

    /* 3. Recreate the arrow on the right side (after the text) */
    .has-dropdown > .nav-link::after {
        content: '';
        display: inline-block;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
    }

    /* 4. Rotate the new right-side arrow when the accordion opens */
    .has-dropdown.open > .nav-link::after {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   QUALITY CONTROL VARIABLES (Maps to your inline HTML variables)
   ========================================================================== */
:root {
    /* These map directly to the variables in your HTML style tags */
    --color-bg-light: #ffffff;
    --color-text-dark: #1a1c1e;
    --color-text-body: #636e72;
    
    /* Specific variables for this section */
    --qc-bg: #f8f9fa;
    --qc-accent: #0056b3; /* Industrial Blue */
    --qc-border: #e9ecef;
    --qc-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --qc-shadow-hover: 0 15px 40px rgba(0, 86, 179, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   BASE SECTION STYLING
   ========================================================================== */
.page-content {
    background-color: var(--qc-bg);
    padding: 80px 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Prevents animation scrolling issues */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeDownQC 0.8s ease-out forwards;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--qc-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Intro */
.content-section > h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    animation: fadeUpQC 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.content-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--color-text-body);
    line-height: 1.6;
    animation: fadeUpQC 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* ==========================================================================
   PROCESS CARDS (Overriding Inline Styles via !important where needed)
   ========================================================================== */
.quality-step.process-card {
    /* Enhancing the inline styles safely */
    box-shadow: var(--qc-shadow);
    border: 1px solid var(--qc-border);
    position: relative;
    transition: var(--transition) !important;
    opacity: 0; /* Hidden before animation */
    /* Add a blue accent line at the top that starts invisible */
    border-top: 3px solid transparent; 
}

/* Hover Lift Effect */
.quality-step.process-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--qc-shadow-hover) !important;
    border-top: 3px solid var(--qc-accent) !important;
}

/* Staggered Animations for Cards */
.quality-step:nth-child(1) { animation: fadeUpQC 0.8s ease-out 0.4s forwards; }
.quality-step:nth-child(2) { animation: fadeUpQC 0.8s ease-out 0.6s forwards; }
.quality-step:nth-child(3) { animation: fadeUpQC 0.8s ease-out 0.8s forwards; }
.quality-step:nth-child(4) { animation: fadeUpQC 0.8s ease-out 1.0s forwards; }

/* ==========================================================================
   IMAGES & VISUALS
   ========================================================================== */
.process-visual {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: #eaeaea; /* Placeholder background */
}

/* Industrial Blue Tint over images */
.process-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--qc-accent);
    opacity: 0.15;
    transition: var(--transition);
    pointer-events: none;
}

/* Remove tint and zoom image on hover */
.quality-step.process-card:hover .process-visual::after {
    opacity: 0;
}

.process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quality-step.process-card:hover .process-img {
    transform: scale(1.1);
}

/* Typography Inside Cards */
.quality-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.quality-step p {
    line-height: 1.5;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeUpQC {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDownQC {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Overriding Inline Grid)
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .quality-steps {
        /* Forces 2 columns instead of auto-fit, overriding inline HTML */
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

/* Phone View */
@media (max-width: 576px) {
    .page-content {
        padding: 50px 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .content-section > h2 {
        font-size: 1.5rem;
    }
    .quality-steps {
        /* Forces 1 column, overriding inline HTML */
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    .process-visual {
        height: 220px; /* Slightly taller images on mobile for visual impact */
    }
}

/* =========================================
   FLOATING BUTTONS (WhatsApp & Back to Top)
   ========================================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Ensures buttons never overlap */
    z-index: 2000;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white, #ffffff);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Hover Animation */
.floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* WhatsApp Styling */
.whatsapp-btn {
    background-color: #25D366; 
}
.whatsapp-btn:hover {
    background-color: #1ebe57;
}

/* Back to Top Styling */
.back-to-top {
    background-color: var(--color-primary, #0056b3); 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-hover, #004494);
    transform: translateY(-4px); /* Overrides the transform origin to ensure it floats up */
}

/* RESPONSIVE: Tablet */
@media (max-width: 1024px) {
    .floating-container {
        bottom: 25px;
        right: 25px;
    }
}

/* RESPONSIVE: Phone */
@media (max-width: 480px) {
    .floating-container {
        bottom: 15px;
        right: 15px;
        gap: 12px; /* Rigid spacing to prevent UI overlap on small screens */
    }
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}