﻿/* ---------- Tablets (max-width: 992px) ---------- */
@media (max-width: 992px) {
    .font-xs {
        font-size: 0.7rem;
    }

    .font-sm {
        font-size: 0.8rem;
    }

    .font-md {
        font-size: 0.9rem;
    }

    .font-lg {
        font-size: 1rem;
    }

    .font-xl {
        font-size: 1.125rem;
    }

    .font-2xl {
        font-size: 1.25rem;
    }

    .font-3xl {
        font-size: 1.5rem;
    }

    .font-4xl {
        font-size: 1.875rem;
    }

    .font-4-1xl {
        font-size: 2rem;
    }

    .font-5xl {
        font-size: 2.25rem;
    }

    .font-6xl {
        font-size: 3rem;
    }

    .font-xl-larger {
        font-size: 3.25rem;
    }

    .line-hgt-2xl {
        line-height: 1.6rem;
    }

    .line-hgt-4xl {
        line-height: 2.5rem;
    }
}
/* ---------- Mobiles (max-width: 576px) ---------- */
@media (max-width: 576px) {
    .font-xs {
        font-size: 0.65rem;
    }

    .font-sm {
        font-size: 0.75rem;
    }

    .font-md {
        font-size: 0.85rem;
    }

    .font-lg {
        font-size: 0.95rem;
    }

    .font-xl {
        font-size: 1rem;
    }

    .font-2xl {
        font-size: 1.125rem;
    }

    .font-3xl {
        font-size: 1.25rem;
    }

    .font-4xl {
        font-size: 1.5rem;
    }

    .font-4-1xl {
        font-size: 1.75rem;
    }

    .font-5xl {
        font-size: 2rem;
    }

    .font-6xl {
        font-size: 2.5rem;
    }

    .font-xl-larger {
        font-size: 2.75rem;
    }

    .line-hgt-2xl {
        line-height: 1.4rem;
    }

    .line-hgt-4xl {
        line-height: 2rem;
    }
}
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .blog-bg {
        height: auto !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .elv-card {
        padding: 1.3rem;
    }

        .elv-card h5 {
            font-size: 1rem;
        }

    .elv-section h1 {
        font-size: 1.8rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .stat-number {
        font-size: 3rem;
    }

    .stat-text {
        font-size: 1.1rem;
    }
    .highlight-box {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .site-banner
{
    padding: 40px 0;
    aspect-ratio: 16 / 8;
    min-height: 260px;
}
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
        .projects-grid > .project-card:nth-child(2n) .project-info {
            border-right: none;
        }

    #projectsSection {
        padding: 50px 0px 5px 0px; /* enough top & bottom padding */
    }

    .projects-heading {
        font-size: 1.5rem; /* main text size */
    }
    .modalContainer {
        padding:15px;
    }
    .segments-grid {
        grid-template-columns: repeat(2,1fr);
    }
    /* Container padding */
    #servicesintrohome .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack columns vertically */
    #servicesintrohome .row {
        flex-direction: column;
    }

    #servicesintrohome h2 {
        font-size: 28px;
    }
    /* Right Column tagline */
    .service-tagline {
        display: grid;
        grid-template-columns: repeat(2,1fr());
        align-items: flex-start;
        text-align: center;
        padding: 2rem 1rem;
    }

        /* Tagline font adjustments */
        .service-tagline h2.tagline-animate {
            font-size: 1.5rem;
            line-height: 1.4;
        }

    /* Service items spacing */
    .services-list .service-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    /* Service number size */
    .service-number {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Service title font */
    .service-content h3 {
        font-size: 1.25rem; /* ~20px */
    }

    /* Service description font */
    .service-content p {
        font-size: 0.9rem;
    }

    /* Service link styling */
    .service-content a.more-link {
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    /* Card hover effects can remain, optional reduce shadow */
    .service-card {
        box-shadow: 0 4px 12px rgba(10,12,20,0.12);
    }
}


@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }

    .projects-grid > .project-card .project-info {
        border-right: none;
    }

    .service-card {
        padding: 1rem;
        min-height: 140px;
    }

    .service-title {
        font-size: 1rem;
    }

    .stat-item {
        padding: .6rem 0;
    }

    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .stat-icon .fa-solid,
    .stat-icon i {
        font-size: 24px;
    }

    .stat-text .stat-count {
        font-size: 1.15rem;
    }

    .stat-text .stat-label {
        font-size: .9rem;
    }


    .stat-item {
        gap: .5rem;
    }

    .stat-text .stat-label {
        font-size: .85rem;
    }

    .amc-card {
        padding: 1.5rem 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-body {
        padding: 12px;
    }

    .corp-image-wrapper {
        display: none;
    }

    .elv-section h1 {
        font-size: 1.2rem;
    }
    .spacer60 {
        display:none;
    }
    .topbar {
        padding: 6px 0;
    }

        .topbar .container {
            flex-direction: column;
            gap: 4px;
        }

        .topbar .contact-item {
            margin: 2px 0;
        }

        .topbar i {
            font-size: 0.9rem;
        }
    .site-banner {
        padding: 40px 0;
        min-height: 350px;
        background-position: center top;
    }

        .site-banner h1 {
            font-size: 1.5rem;
            line-height: 1.3;
        }

        .site-banner p {
            font-size: 1rem;
            margin-bottom: 1rem;
        }

    .simple-link {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    .site-banner .row.gx-4.gy-4 {
        row-gap: 1.5rem;
    }
    #footer .row {
        text-align: left;
    }

    #footer .footer-social {
        justify-content: left;
        margin-bottom: 10px;
    }

    #footer .footer-nav ul li {
        display: block;
        margin: 8px 0;
    }

    .footer-contact p {
        font-size: 0.9rem;
    }

    .footer-credit {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    /* Service numbers smaller */
    .service-number {
        font-size: 1.25rem;
    }

    /* Service title smaller */
    .service-content h3 {
        font-size: 1.1rem;
    }

    /* Service description smaller */
    .service-content p {
        font-size: 0.85rem;
    }

    /* Tagline smaller */
    .service-tagline h2.tagline-animate {
        font-size: 1.3rem;
    }

    /* Adjust padding inside service items */
    .services-list .service-item {
        padding: 0.75rem;
    }
}
   /*----------------top bar------------------------*/
/* ===== Tablet and smaller ===== */
@media (max-width: 991px) {
    .topbar {
        font-size: 0.9rem;
        text-align: center;
    }

        .topbar .container {
            justify-content: center !important;
        }

        .topbar .contact-item {
            margin-bottom: 4px;
        }
    .site-banner {
        aspect-ratio: auto;
        padding: 50px 0;
        min-height: 380px;
        text-align: center;
    }

        .site-banner h1 {
            
            line-height: 1.3;
        }

        .site-banner p {
            font-size: 1.2rem;
        }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.9rem;
    }
    #footer .col-md-3 {
        margin-bottom: 25px;
    }

    #footer .footer-social {
        justify-content: center;
    }

    #footer .colCaption {
        text-align: left;
    }

    #footer .footer-contact,
    #footer .footer-nav {
        text-align: left;
    }

    .footer-nav ul li {
        display: inline-block;
        margin: 5px 10px;
    }
}

