/* =========================================
   RESPONSIVE STYLES
========================================= */


/* =========================================
   TABLETS / SMALL LAPTOPS
========================================= */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -----------------------------
       PROJECTS PAGE
    ----------------------------- */

    /*
       The new Projects page must remain
       a 2-column grid on laptops and
       tablets.
    */

    .projects-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }

    .project-page-card {
        width: 100%;
        min-width: 0;
    }

    .project-page-content {
        padding: 30px;
    }

    .carousel-image-container {
        height: 430px;
    }


    /* -----------------------------
       LEADERSHIP / TEAM
    ----------------------------- */

    .ceo-profile {
        grid-template-columns: 0.9fr 1.1fr;

        gap: 35px;

        padding: 30px;
    }

    .ceo-image {
        height: 430px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

       .about-preview-content {
        padding: 40px;
    }

    .about-preview-content h3 {
        font-size: 1.85rem;
    }

    .about-preview-content p {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    /* -----------------------------
       COMPANY STORY
    ----------------------------- */
.about-story-content {
        padding: 40px;
    }

    .about-story-content h2 {
        font-size: 2rem;
    }

    .about-story-content p {
        font-size: 0.93rem;
        line-height: 1.75;
    }


    


    /* -----------------------------
       ABOUT PREVIEW
    ----------------------------- */

    .about-preview {
        grid-template-columns: 0.9fr 1.1fr;

        gap: 35px;

        padding: 30px;
    }


    /*
       Do NOT force a height on the
       About Preview image here.

       This preserves the original
       image proportions.
    */

}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 992px) {

    .nav-links {
        gap: 18px;
    }

    .about-preview {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /*
       This is the older Projects grid.
       The Projects page uses
       .projects-page-grid instead.
    */

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -----------------------------
       NEW PROJECTS PAGE
    ----------------------------- */

    /*
       Keep the new Projects page
       at exactly 2 columns.
    */

    .projects-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .section {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 2.1rem;
    }


    /* -----------------------------
       NAVIGATION
    ----------------------------- */

    .navbar {
        min-height: 70px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px 5% 20px;

        background: var(--white);

        border-top: 1px solid var(--border-light);

        box-shadow:
            0 10px 25px rgba(0, 51, 153, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 13px 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 8px;

        text-align: center;
    }


    /* -----------------------------
       LEADERSHIP / TEAM
    ----------------------------- */

    .ceo-profile {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 60px;

        padding: 25px;
    }

    .ceo-image {
        height: 420px;
    }

    .ceo-content h3 {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;

        gap: 18px;
    }

    .team-content {
        padding: 25px;
    }


    /* -----------------------------
       HERO
    ----------------------------- */

    .hero {
        min-height: 100vh;

        padding: 130px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;

        max-width: 330px;
    }

    .hero-actions .btn {
        width: 100%;
    }


    /* -----------------------------
       ABOUT PREVIEW
    ----------------------------- */

    .about-preview {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 25px;
    }


.about-preview {
        grid-template-columns: 1fr;
    }

    .about-preview-image {
        width: 100%;
    }

    .about-preview-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .about-preview-content {
        padding: 35px 30px;
    }

    .about-preview-content h3 {
        font-size: 1.85rem;
        margin-bottom: 18px;
    }

    .about-preview-content p {
        font-size: 0.94rem;
        line-height: 1.8;
    }

    .about-preview-content .btn {
        align-self: flex-start;
    }


 .about-story {
        grid-template-columns: 1fr;
    }

    .about-story-image {
        height: auto;
    }

    .about-story-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
    }

    .about-story-content {
        padding: 35px 30px;
    }

    .about-story-content h2 {
        font-size: 2rem;
        margin-bottom: 18px;
    }

    .about-story-content p {
        font-size: 0.94rem;
        line-height: 1.8;
    }


    /* -----------------------------
       SERVICES
    ----------------------------- */

    .services-grid {
        grid-template-columns: 1fr 1fr;

        gap: 18px;
    }

    .service-card-image {
        height: 190px;
    }

    .service-card-content {
        padding: 20px;
    }


    /* -----------------------------
       OLD PROJECTS GRID
    ----------------------------- */

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card img {
        min-height: 400px;
    }


    /* -----------------------------
       NEW PROJECTS PAGE
    ----------------------------- */

    /*
       Keep the new project cards
       side-by-side on tablets.

       This means:
       Project 1 | Project 2
       Project 3 | Project 4
    */

    .projects-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 18px;
    }

    .project-page-card {
        width: 100%;
        min-width: 0;
        min-height: 330px;
    }

    .project-page-content {
        padding: 25px;
    }

    .project-card-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }

    .view-gallery-btn {
        width: 100%;
    }


    /* -----------------------------
       PROJECT GALLERY MODAL
    ----------------------------- */

    .project-gallery-modal {
        padding: 15px;
    }

    .project-gallery-dialog {
        padding: 25px;

        max-height: 94vh;
    }

    .gallery-project-info {
        padding-right: 45px;
    }

    .gallery-project-info h2 {
        font-size: 1.7rem;
    }


    /*
       object-fit: contain in style.css
       keeps the full horizontal image
       visible inside the carousel.
    */

    .carousel-image-container {
        height: 380px;
    }

    .carousel-control {
        flex: 0 0 40px;

        width: 40px;

        height: 40px;
    }


    /* -----------------------------
       BENEFITS
    ----------------------------- */

    .benefits-grid {
        grid-template-columns: 1fr 1fr;

        gap: 18px;
    }

    .benefit-card {
        padding: 28px 20px;
    }


    /* -----------------------------
       TESTIMONIALS
    ----------------------------- */

    .testimonials-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------
       CTA
    ----------------------------- */

    .consultation-cta {
        padding: 55px 25px;
    }

    .consultation-cta h2 {
        font-size: 2.1rem;
    }


    /* -----------------------------
       FOOTER
    ----------------------------- */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* -----------------------------
       WHATSAPP
    ----------------------------- */

    .whatsapp-float {
        width: 50px;

        height: 50px;

        right: 17px;

        bottom: 17px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading h2 {
        font-size: 2rem;
    }


    /* -----------------------------
       HERO
    ----------------------------- */

    .hero {
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content p {
        font-size: 0.94rem;
    }


    /* -----------------------------
       SERVICES
    ----------------------------- */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-image {
        height: 220px;
    }


    /* -----------------------------
       ABOUT PREVIEW
    ----------------------------- */

    .about-preview {
        padding: 18px;

        border-radius: 14px;
    }

.about-preview {
        border-radius: 14px;
    }

    .about-preview-content {
        padding: 30px 22px;
    }

    .about-preview-content h3 {
        font-size: 1.65rem;
    }

    .about-preview-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .about-preview-content .btn {
        width: 100%;
        text-align: center;
    }


    /* -----------------------------
       COMPANY STORY
    ----------------------------- */
 .about-story {
        border-radius: 14px;
    }

    .about-story-content {
        padding: 30px 22px;
    }

    .about-story-content h2 {
        font-size: 1.75rem;
    }

    .about-story-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }


    /* -----------------------------
       OLD PROJECT CARDS
    ----------------------------- */

    .project-card,
    .project-card img {
        min-height: 360px;
    }

    .project-card-overlay {
        padding: 22px;
    }


    /* -----------------------------
       NEW PROJECTS PAGE
    ----------------------------- */

    /*
       Small phones switch to one
       column only.
    */

    .projects-page-grid {
        grid-template-columns: 1fr !important;
    }

    .project-page-card {
        min-height: 280px;
    }

    .project-page-content {
        padding: 25px;
    }

    .project-page-content h3 {
        font-size: 1.35rem;
    }


    /* -----------------------------
       PROJECT GALLERY
    ----------------------------- */

    .project-gallery-modal {
        padding: 8px;
    }

    .project-gallery-dialog {
        padding: 20px;

        border-radius: 14px;
    }

    .gallery-close {
        top: 12px;

        right: 12px;

        width: 38px;

        height: 38px;
    }

    .gallery-project-info {
        padding-right: 35px;

        margin-bottom: 20px;
    }

    .gallery-project-info h2 {
        font-size: 1.5rem;
    }

    .gallery-project-info p {
        font-size: 0.9rem;
    }

    .project-carousel {
        gap: 8px;
    }

    .carousel-image-container {
        height: 280px;

        border-radius: 9px;
    }

    .carousel-control {
        flex: 0 0 34px;

        width: 34px;

        height: 34px;

        font-size: 0.75rem;
    }

    .carousel-thumbnail {
        flex-basis: 65px;

        width: 65px;

        height: 48px;
    }


    /* -----------------------------
       BENEFITS
    ----------------------------- */

    .benefits-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------
       CTA
    ----------------------------- */

    .consultation-cta {
        padding: 45px 20px;
    }

    .consultation-cta h2 {
        font-size: 1.9rem;
    }

}

/* =========================================
   PROJECTS PAGE - FINAL 2 x 2 GRID FIX
========================================= */

.projects-gallery-section .projects-page-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.projects-gallery-section .project-page-card {
    width: 100%;
    min-width: 0;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .projects-gallery-section .projects-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px) {

    .projects-gallery-section .projects-page-grid {
        grid-template-columns: 1fr !important;
    }

}