/* ================= TABLET / MEDIUM (≤ 992px) ================= */
@media (max-width: 992px) {

    .hero-section h1,
    .about-hero-section h1 {
        font-size: 42px;
    }

    .about-hero-section {
        padding: 140px 0 80px;
    }

    section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 36px;
    }

    .service-card {
        padding: 25px;
    }

    .standards-box {
        padding: 25px;
    }

    .standard-item {
        flex-direction: column;
        gap: 15px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* ================= MOBILE (≤ 768px) ================= */
@media (max-width: 768px) {

    .hero-section,
    .about-hero-section {
        text-align: center;
        padding: 120px 0 60px;
    }

    .hero-section h1,
    .about-hero-section h1 {
        font-size: 36px;
    }

    .about-hero-section .lead {
        font-size: 1.05rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 20px;
    }

    .standards-list li {
        font-size: 0.95rem;
    }

    .standard-item {
        margin-bottom: 25px;
    }

    .icon-box {
        width: 55px;
        height: 55px;
    }
}

/* ================= SMALL MOBILE (≤ 480px) ================= */
@media (max-width: 480px) {

    .hero-section h1,
    .about-hero-section h1 {
        font-size: 30px;
    }

    .about-hero-section {
        padding: 100px 0 50px;
    }

    .about-hero-section .lead {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .service-card {
        padding: 18px;
    }

    .footer-logo img {
        height: 140px;
        margin-bottom: 15px;
    }

    .standards-list li {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}

/* ================= MOBILE NAVBAR CENTER & ADJUST ================= */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: center;
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        justify-content: center;
    }
/* 
    .nav-item {
        margin: 12px 0;
    } */

    /* Prevent overlap when menu opens */
    .navbar-collapse.show+.hero-section,
    .navbar-collapse.show+.about-hero-section {
        margin-top: 80px;
        /* adjust based on your navbar height */
        transition: margin 0.3s ease;
    }
}

/* ================= RESPONSIVE (MOBILE) ================= */
@media (max-width: 991.98px) {
    /* Smaller logo on mobile */
    .logo img {
        height: 40px;
    }

    /* Disable desktop hover */
    .nav-item.dropdown:hover > .dropdown-menu {
        /* display: none; */
    }

    /* Collapse menu background black */
    #navbarContent {
        background: #000;
        padding: 1rem 0;
    }

    /* Nav links spacing inside collapsed menu */
    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 1rem;
        display: block;
    }

    /* Mobile dropdown menu */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        display: none;
        background: #111;
        border: none;
        box-shadow: none;
    }

    /* Show dropdown when toggled */
    .dropdown.show > .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding-left: 2rem;
    }
}