
/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .mega-menu {
        max-width: 95vw;
    }
    
    .mega-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    .mega-feature {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sector-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    
    .mega-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .sector-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    
    .service-table td:first-child { width: 40%; }
    
    .approach-steps { flex-direction: column; }
    .commitment blockquote { font-size: 1.5rem; }
    
    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1002;
    }
    
    .nav-list.open {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        border-radius: 0;
        padding: 1rem 0;
    }
    
    .nav-item.has-mega:hover .mega-menu {
        display: block;
    }
    
    .mega-inner {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.5rem;
    }
    
    .mega-feature {
        display: none;
    }
    
    .btn-nav {
        margin: 1rem 0 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slide-content {
        position: absolute;
        top: 50%;
        left: unset; 
        transform: translateY(-50%);
        max-width: 650px;
        color: #fff;
        z-index: 2;
        text-align: center;
        padding: 0 10px;
    }
    .slide-content h1{
        font-size:35px;
    }
    .slide-content p {
        font-size: 17px;
        margin-bottom: 30px;
        color: #fff;
    }
    .container { padding: 0 1.25rem; }
    .values-grid { grid-template-columns: 1fr; }
    
    .service-table td { 
        display: block; 
        width: 100% !important; 
        border-radius: 12px; 
    }
    .service-table td:first-child { 
        border-right: none; 
        border-bottom: 2px solid #f0f4f0; 
    }
    
    .page-nav-link {
        min-width: auto;
        width: 100%;
        padding: 1.25rem 1.5rem;
    }
}

/* ================================
   TABLET
================================ */

@media (max-width: 991px) {

    .site-header {
        height: 100px;
    }

    .logo {
        width: 220px;
        height: 100px;
        padding-left: 35px;
        font-size: 22px;
    }

    .logo::after {
        right: -80px;
        width: 80px;
        height: 100px;
    }

    .main-nav {
        gap: 25px;
        margin-left: 25px;
    }

    .main-nav a {
        font-size: 18px;
    }

    .header-cta {
        width: 140px;
        height: 55px;
        margin-right: 15px;
        font-size: 18px;
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 767px) {
    .header_v2.site-header {
        height: 80px;
    }

    /* Logo */
    .header_v2.logo {
        width: 150px;
        padding-left: 20px;
        font-size: 20px;
    }

    /* Smaller diagonal */
    .header_v2 .logo::after {
        right: -50px;
        width: 50px;
        height: 100%;
    }

    /* Hide desktop navigation */
    .header_v2 .main-nav {
        display: none;
    }

    /* CTA */
    .header_v2 .header-cta {
        width: 110px;
        height: -webkit-fill-available;
        margin-right: 55px;
        font-size: 17px;
    }

    /* Mobile menu button */
    .header_v2 .mobile-menu {
        position: absolute;
        right: 15px;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .header_v2 .mobile-menu span {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
    }
}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 480px) {

    .site-header {
        height: 70px;
    }

    .logo {
        width: 125px;
        height: 70px;
        padding-left: 15px;
        font-size: 18px;
    }

    .logo::after {
        right: -40px;
        width: 40px;
        height: 70px;
    }

    .header-cta {
        width: 90px;
        height: 42px;
        margin-right: 50px;
        font-size: 15px;
    }

    .mobile-menu {
        right: 10px;
    }

    .mobile-menu span {
        width: 22px;
    }
    .header_v2 .header-cta{
        display: none;
    }

}

/* ==========================================================================
   ENHANCEMENTS (Oct 2026): mega menus, footer, page components
   ========================================================================== */
@media (max-width: 1199px) {
    .mega-cols { grid-template-columns: repeat(2, 1fr); }
    .mega-cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    /* Mobile navigation panel (opened by the hamburger in the header) */
    .nav-menu-v2 {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        background: #383838;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1100;
    }
    .header_v2.mobile-open .nav-menu-v2 { display: block; }
    .nav-menu-v2 > .nav-list {
        position: static; right: auto; width: auto; height: auto; padding: 0; margin-left: 0;
        background: transparent; box-shadow: none; overflow: visible; transition: none;
        flex-direction: column; align-items: stretch; gap: 0;
    }
    .nav-menu-v2 > .nav-list > li.nav-item { height: auto; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .nav-menu-v2 .nav-link { height: auto !important; padding: 1rem 1.5rem; border-radius: 0; border-bottom: 0; }

    .mega-menu {
        position: static;
        display: none;
        width: 100%;
        max-width: 100%;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-top: 0;
        background: rgba(0,0,0,0.15);
    }
    .nav-item.has-mega:hover .mega-menu { display: none; }
    .nav-item.has-mega.is-open .mega-menu { display: block; }
    .mega-menu .left-side { display: none; }
    .mega-menu .right-side { padding: 0.5rem 1.5rem 1.25rem; }
    .mega-cols, .mega-cards { grid-template-columns: 1fr; gap: 0.5rem; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-light); }
}

@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .footer-cta-inner, .cta-band-inner, .section-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
    .btn-ghost-light { margin-left: 0; margin-top: 0.75rem; }
    .svc-card-lg img { height: 200px; }
    .feature-band { padding: 3.5rem 0; }
}


@media (max-width: 991px) {
    .form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 767px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .job-card { flex-direction: column; align-items: flex-start; }
    .form-card { padding: 1.5rem; }
}
