/*======================================================================
  CUYAMEL CONSTRUCTION & REMODELING LLC
  RESPONSIVE.CSS
  Version: 2.1

  TABLE OF CONTENTS
  01. Large tablets and small laptops (≤1200px)
      1.1 Layout grids
      1.2 Contact and footer
  02. Tablets (≤991px)
      2.1 Header and navigation drawer
  03. Mobile landscape and tablets (≤768px)
      3.1 Layout and header
      3.2 Home, about, projects, gallery and testimonials
      3.3 Contact, CTA and footer
      3.4 Legal pages
  04. Small phones (≤576px)
      4.1 Header, hero and cards
      4.2 Gallery, CTA, footer and WhatsApp
======================================================================*/

/*==================================================
1200px
==================================================*/

@media (max-width:1200px){

    .container{
        width:94%;
    }

    .contact-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .contact-info{
        position:relative;
        top:0;
    }

    .service-grid{
        grid-template-columns:1fr;
        gap:50px;
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
        gap:50px;
    }

    .grid-4{
        grid-template-columns:repeat(2,1fr);
    }

    .grid-3{
        grid-template-columns:repeat(2,1fr);
    }

}

/*==================================================
991px
==================================================*/

@media (max-width:991px){

    .container{
        width:94%;
    }

    #header,
    #header .container{
        height:80px;
    }

    .logo img{
        width:200px;
    }

    .header-right .phone{
        display:none;
    }

    .navbar{

        position:fixed;

        top:80px;
        left:-100%;

        width:280px;
        height:calc(100vh - 80px);

        padding:40px 30px;

        background:var(--primary);

        transition:var(--transition);

        z-index:998;

    }

    .navbar.show-menu{
        left:0;
    }

    .navbar ul{

        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:25px;

    }

    .navbar a{

        color:var(--white);

        font-size:18px;
        font-weight:600;

    }

    #menu-toggle{
        display:flex;
    }

    #menu-toggle.active{
        transform:rotate(90deg);
    }

    #menu-overlay{

        position:fixed;
        inset:0;

        background:rgba(0,0,0,.45);

        opacity:0;
        visibility:hidden;

        transition:var(--transition);

        z-index:997;

    }

    #menu-overlay.show{

        opacity:1;
        visibility:visible;

    }

}

/*==================================================
768px
==================================================*/

@media (max-width:768px){

    /* LAYOUT */

    .container{
        width:92%;
    }

    /* HEADER */

    .logo img{
        width:170px;
    }

    #menu-toggle{
        display:flex;
    }

    .header-right{
        display:flex;
        align-items:center;
    }

    .header-right .phone{
        display:none;
    }

    .header-right .btn-primary{
        display:inline-flex;
    }

    /* WHATSAPP */

    .whatsapp-btn{
        right:18px;
        bottom:18px;
        width:58px;
        height:58px;
        font-size:30px;
    }

    /* PAGE HERO */

    .page-hero{
        padding:120px 0 80px;
    }

    .page-hero h1{
        font-size:38px;
        line-height:1.15;
        letter-spacing:0;
        word-break:break-word;
    }

    .page-hero p{
        font-size:16px;
        line-height:1.8;
    }

    .page-buttons{
        display:flex;
        flex-direction:column;
        gap:15px;
        align-items:center;
    }

    .page-buttons a{
        width:100%;
        max-width:320px;
        justify-content:center;
    }

    /* HOME */

    #hero{
        min-height:auto;
        height:auto;
        padding:140px 0 80px;
    }

    .hero-overlay{
        background:rgba(8,20,35,.78);
    }

    .hero-content{
        max-width:100%;
        width:100%;
        text-align:center;
        padding-top:0;
    }

    .hero-content h1{
        font-size:42px;
        line-height:1.15;
    }

    .hero-content p{
        font-size:16px;
        line-height:1.7;
    }

    .hero-buttons{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .hero-buttons a{
        width:100%;
    }

    .hero-features{
        justify-content:center;
        gap:15px;
    }

    /* GRIDS */

    .about-container,
.about-grid,
.contact-grid,
.service-grid,
.services-grid,
.projects-grid,
.why-container,
.why-grid{
    grid-template-columns:1fr;
    gap:50px;
}

/* ABOUT HOME */

.about-image{
    order:1;
}

.about-content{
    order:2;
}

.about-image img{
    width:100%;
    max-width:100%;
    display:block;
    margin:0 auto;
}

#about{
    padding:90px 0;
}

.about-content h2{
    font-size:36px;
}

.about-content p{
    font-size:16px;
    line-height:1.8;
}

    .grid-2,
    .grid-3,
    .grid-4{
        grid-template-columns:1fr;
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .trust-strip{
        grid-template-columns:1fr;
    }

    .trust-item{
        border-right:none;
        border-bottom:1px solid #ECECEC;
    }

    .trust-item:last-child{
        border-bottom:none;
    }

    /* CONTACT */

    .contact-form{
        padding:35px;
    }

    .contact-info,
    .contact-card{
        position:static;
        padding:35px;
    }

    .contact-card{
        margin-top:40px;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    /* SERVICE */

    .service-map iframe{
        height:350px;
    }

    .service-btn{
        margin:40px auto 0;
    }

    /* CTA */

    .cta h2{
        font-size:36px;
    }

    .cta-buttons{
        flex-direction:column;
    }

    .cta-buttons a{
        width:100%;
    }

    /* FOOTER */

    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
        gap:45px;
    }

    .footer-logo{
        margin:auto auto 25px;
    }

    .footer-social{
        justify-content:center;
    }

    .footer-col h4::after{
        left:50%;
        transform:translateX(-50%);
    }

    .footer-bottom{
        flex-direction:column;
        text-align:center;
    }

    /* OVERFLOW */

    html,
    body,
    main{
        overflow-x:hidden;
    }

    section{
        overflow-x:clip;
    }

/*==================================================
FEATURED PROJECTS MOBILE
==================================================*/

#projects{
    padding:90px 0;
}

.projects-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:35px;
    margin-top:55px;
}

.project-card{
    width:100%;
    max-width:100%;
    margin:0 auto;
    border-radius:22px;
    overflow:hidden;
}

.project-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.project-info{
    padding:30px;
}

.project-info h3{
    font-size:22px;
    line-height:1.3;
    margin-bottom:14px;
}

.project-info p{
    font-size:16px;
    line-height:1.8;
}

    .project-card:hover{
        transform:none;
    }

    /* PROJECT GALLERY */

    .masonry-gallery{
        grid-template-columns:1fr;
        grid-auto-rows:260px;
        gap:20px;
        margin-top:45px;
    }

    .gallery-item.large,
    .gallery-item.wide{
        grid-column:auto;
        grid-row:auto;
    }

    .gallery-overlay{
        padding:22px;
    }

    .gallery-overlay h3{
        font-size:1.35rem;
    }

    .gallery-dialog{
        width:94vw;
    }

/*==================================================
WHY CHOOSE US MOBILE
==================================================*/

#why-us{
    padding:90px 0;
}

.why-container{
    display:grid;
    grid-template-columns:1fr;
    gap:45px;
}

.why-image{
    order:1;
}

.why-content{
    order:2;
}

.why-image img{
    width:100%;
    display:block;
    border-radius:20px;
}

.why-content h2{
    font-size:36px;
    line-height:1.2;
    margin:18px 0 22px;
}

.why-content p{
    font-size:16px;
    line-height:1.8;
}

.why-grid{
    gap:24px;
    margin-top:35px;
}

.why-item{
    align-items:flex-start;
    gap:16px;
}

.why-item i{
    width:54px;
    height:54px;
    font-size:22px;
}

.why-item h4{
    font-size:20px;
    margin-bottom:8px;
}

.why-item p{
    font-size:15px;
    line-height:1.7;
}

/*==================================================
TESTIMONIALS MOBILE
==================================================*/

#testimonials{
    padding:90px 0;
}

.testimonials-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
    margin-top:55px;
}

.testimonial-card{
    padding:35px 30px;
    border-radius:22px;
}

.stars{
    margin-bottom:18px;
    font-size:20px;
}

.testimonial-card p{
    font-size:16px;
    line-height:1.8;
    margin-bottom:24px;
}

.testimonial-card h4{
    font-size:20px;
    margin-bottom:6px;
}

.testimonial-card span{
    font-size:14px;
}

/*==================================================
CONTACT MOBILE
==================================================*/

.contact-section{
    margin-top:0;
    padding:60px 0 80px;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
    width:100%;
}

.contact-form,
.contact-card{
    width:100%;
    max-width:100%;
    padding:24px;
    margin:0;
    border-radius:20px;
    box-sizing:border-box;
}

.contact-form h2{
    font-size:32px;
}

    .contact-form p{
        font-size:16px;
        margin-bottom:25px;
    }

    /* LEGAL PAGES */

    .legal-page{
        padding:80px 0;
    }

    .legal-content{
        padding:30px 24px;
        border-radius:20px;
    }

    .legal-intro,
    .legal-content p,
    .legal-content li{
        font-size:16px;
    }

    .form-row{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}

.input-group input,
.input-group select{
    height:58px;
}

.input-group textarea{
    min-height:180px;
}

}


/*==================================================
576px
==================================================*/

@media (max-width:576px){

    /* HEADER */

    #header,
    #header .container{
        height:72px;
    }

    .logo img{
        width:150px;
    }

    .navbar{
        top:72px;
        height:calc(100vh - 72px);
        width:100%;
        padding:35px 25px;
    }

    .header-right .btn-primary{
        padding:12px 18px;
        font-size:13px;
    }

    /* HERO */

    #hero{
        padding:125px 0 70px;
    }

    .hero-content h1{
        font-size:34px;
        line-height:1.15;
    }

    .hero-content p{
        font-size:15px;
    }

    .hero-features{
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

    /* PAGE HERO */

    .page-hero{
        padding:110px 0 70px;
    }

    .page-hero h1{
        font-size:30px;
    }

    .page-hero p{
        font-size:15px;
    }

    /* BUTTONS */

    .hero-buttons a,
    .page-buttons a,
    .cta-buttons a{
        width:100%;
    }

    /* STATS */

    .stats-grid{
        grid-template-columns:1fr;
    }

    /* CARDS */

    .service-card,
    .project-card,
    .testimonial-card,
    .contact-card,
    .contact-form{
        padding:28px;
    }

    /* CTA */

    .cta{
        padding:70px 0;
    }

    .cta h2{
        font-size:30px;
    }

    /* FOOTER */

    .footer{
        padding-top:70px;
    }

    .footer-grid{
        gap:35px;
    }

    .footer-bottom{
        gap:12px;
        font-size:14px;
    }

    /* WHATSAPP */

    .whatsapp-btn{
        width:54px;
        height:54px;
        font-size:28px;
        right:15px;
        bottom:15px;
    }

    .masonry-gallery{
        grid-auto-rows:220px;
    }

    .gallery-dialog figcaption{
        padding:14px 52px 16px 16px;
        font-size:14px;
    }

}
