@charset "UTF-8";
/* CSS Document */
/*==================================================
    CYE Poulin Painting
    Responsive Styles
===================================================*/


/* ==========================================
   Large Desktop
========================================== */

@media (max-width:1400px){

.container{

    width:100%;

}

}


/* ==========================================
   Laptop
========================================== */

@media (max-width:1200px){

.hero h1{

    font-size:3rem;

}

.about-grid{

    gap:50px;

}

.services-grid{

    grid-template-columns:repeat(2,1fr);

}

.gallery-grid{

    grid-template-columns:repeat(2,1fr);

}

.footer-grid{

    grid-template-columns:repeat(2,1fr);

}

}


/* ==========================================
   Tablet (≤991px)
========================================== */
@media (max-width: 991px) {

    .logo img {
        height: 50px;
        width: auto;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
        z-index: 9999;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.92);
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px 0;
    }

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

    section {
        padding: 70px 0;
    }

    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .navbar {
        justify-content: flex-end;
    }

    nav ul {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Header + Hero adjustments */
    .header {
        min-height: 160px;
        background-size: 100% auto;
    }

    .hero {
        height: auto;
        min-height: 700px;
        text-align: center;
        padding: 180px 0 90px;          /* increased top padding */
    }

    .hero-content {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .about-image {
        order: -1;
    }

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

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

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

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


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

    .logo img {
        height: 50px;
        width: auto;
    }

    body {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        width: 94%;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Header + Hero */
    .header {
        min-height: 140px;
        background-size: 100% auto;
    }

    .hero {
        min-height: 650px;
        padding-top: 170px;             /* increased */
        padding-bottom: 80px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 260px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

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

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

    .section-title {
        margin-bottom: 45px;
    }

    .service-card {
        padding: 35px;
    }

    .testimonial {
        padding: 30px;
    }
}


/* ==========================================
   Mobile Phones (≤576px)
========================================== */
@media (max-width: 576px) {

    .logo img {
        height: 45px;
        width: auto;
    }

    /* Keep the drip image – just make the header shorter */
    .header {
        position: relative;             /* or keep fixed if you prefer */
        min-height: 120px;
        background-size: 100% auto;
    }

    .logo {
        font-size: 1.6rem;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        min-height: auto;
        padding-top: 160px;             /* key value – clears the drip */
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        padding: 16px;
        text-align: center;
    }

    .about-grid {
        gap: 35px;
    }

    .gallery-grid {
        gap: 15px;
    }

    .gallery-grid img {
        border-radius: 8px;
    }

    .stat h3 {
        font-size: 2.4rem;
    }

    .stat p {
        font-size: 0.95rem;
    }

    footer {
        text-align: center;
    }

    footer ul {
        padding: 0;
    }
}


/* ==========================================
   Small Phones (≤420px)
========================================== */
@media (max-width: 420px) {

    .logo img {
        height: 40px;
        width: auto;
    }

    .header {
        min-height: 110px;
        background-size: 100% auto;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding-top: 150px;             /* still enough clearance */
        padding-bottom: 50px;
    }

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

    .service-card {
        padding: 25px;
    }

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