/* ==========================================
   TONY'S HOME IMPROVEMENT LLC
   STYLE.CSS
   PART 2A
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#f8fafc;

    color:#222;

    line-height:1.6;

}

/* ===================== */

img{

    max-width:100%;

    display:block;

}

/* ===================== */

.container{

    width:90%;

    max-width:1300px;

    margin:auto;

}

/* ===================== */

section{

    padding:90px 0;

}

/* ===================== */

h1{

    font-size:2rem;

}

h2{

    font-size:2.8rem;

    margin-bottom:20px;

    text-align:center;

    color:#1f2937;

}

p{

    color:#555;

}

/* ===================================
NAVIGATION
=================================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:white;

    z-index:999;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:85px;

}

.logo{

    color:#0f172a;

    font-weight:800;

    letter-spacing:1px;

}

nav{

    display:flex;

    gap:35px;

}

nav a{

    text-decoration:none;

    color:#333;

    font-weight:600;

    transition:.3s;

}

nav a:hover{

    color:#f59e0b;

}

.phoneButton{

    text-decoration:none;

    background:#f59e0b;

    color:white;

    padding:14px 22px;

    border-radius:10px;

    font-weight:700;

    transition:.3s;

}

.phoneButton:hover{

    background:#d97706;

    transform:translateY(-2px);

}

/* ===================================
HERO
=================================== */

.hero{

    position:relative;

    height:100vh;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

}

.heroImage{

    position:absolute;

    width:100%;

    height:100%;

    object-fit:cover;

}

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.heroContent{

    position:relative;

    z-index:5;

    text-align:center;

    color:white;

    width:90%;

    max-width:900px;

}

.heroContent h2{

    color:white;

    font-size:4rem;

    margin-bottom:20px;

    line-height:1.15;

}

.heroContent p{

    color:#f1f5f9;

    font-size:1.35rem;

    margin-bottom:40px;

}

/* ===================== */

.buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

/* ===================== */

.primary{

    text-decoration:none;

    color:white;

    background:#f59e0b;

    padding:18px 34px;

    border-radius:10px;

    font-weight:700;

    transition:.3s;

}

.primary:hover{

    background:#d97706;

    transform:translateY(-3px);

}

/* ===================== */

.secondary{

    text-decoration:none;

    color:white;

    border:2px solid white;

    padding:18px 34px;

    border-radius:10px;

    font-weight:700;

    transition:.3s;

}

.secondary:hover{

    background:white;

    color:#222;

}

/* ===================================
SECTION TITLES
=================================== */

section h2{

    position:relative;

}

section h2::after{

    content:"";

    width:90px;

    height:5px;

    background:#f59e0b;

    display:block;

    margin:18px auto 0;

    border-radius:100px;

}

/* ===================================
SMOOTH FADE
=================================== */

.fade{

    opacity:0;

    transform:translateY(40px);

    transition:1s;

}

.fade.show{

    opacity:1;

    transform:none;

}

/* ===================================
SCROLLBAR
=================================== */

::-webkit-scrollbar{

    width:12px;

}

::-webkit-scrollbar-thumb{

    background:#f59e0b;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#ececec;

}
/* ===================================
SERVICES SECTION
=================================== */

.serviceGrid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-top:50px;

}


.card{

    background:white;

    padding:35px 30px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;

    border-bottom:4px solid transparent;

}


.card:hover{

    transform:translateY(-10px);

    border-bottom:4px solid #f59e0b;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}


.card h3{

    font-size:1.4rem;

    margin-bottom:15px;

    color:#1f2937;

}


.card p{

    font-size:.95rem;

}


/* ===================================
GALLERY
=================================== */


.gallery{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    margin-top:45px;

}


.gallery img{

    width:100%;

    height:350px;

    object-fit:cover;

    border-radius:15px;

    cursor:pointer;

    transition:.4s;

}


.gallery img:hover{

    transform:scale(1.05);

    box-shadow:0 15px 35px rgba(0,0,0,.25);

}



/* ===================================
CALL TO ACTION
=================================== */


.cta{

    background:

    linear-gradient(

    rgba(15,23,42,.9),

    rgba(15,23,42,.9)

    ),

    url("https://i0.wp.com/tonyshomeimprovementllc.com/wp-content/uploads/2020/02/20170409_165759.jpg?ssl=1&fit=3840%2C1563");

    background-size:cover;

    background-position:center;

    text-align:center;

    color:white;

    padding:90px 20px;

}


.cta h2{

    color:white;

}


.cta p{

    color:#e5e7eb;

    font-size:1.2rem;

    margin-bottom:30px;

}


.cta a{

    display:inline-block;

    text-decoration:none;

    background:#f59e0b;

    color:white;

    padding:16px 35px;

    border-radius:10px;

    font-weight:700;

    transition:.3s;

}


.cta a:hover{

    background:#d97706;

    transform:translateY(-4px);

}



/* ===================================
REVIEWS
=================================== */


.reviewGrid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-top:50px;

}


.review{

    background:white;

    padding:35px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    font-size:1.05rem;

}


.review:first-letter{

    color:#f59e0b;

}


/* ===================================
CONTACT SECTION
=================================== */


#contact{

    background:#f1f5f9;

}


#contact h2{

    margin-bottom:40px;

}


form{

    max-width:700px;

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:15px;

}


input,
textarea{

    width:100%;

    padding:16px;

    border:none;

    border-radius:10px;

    background:white;

    font-size:1rem;

    box-shadow:0 5px 15px rgba(0,0,0,.06);

    outline:none;

}


input:focus,
textarea:focus{

    border:2px solid #f59e0b;

}


textarea{

    height:150px;

    resize:none;

}


form button{

    padding:18px;

    background:#f59e0b;

    color:white;

    border:none;

    border-radius:10px;

    font-size:1.1rem;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}


form button:hover{

    background:#d97706;

    transform:translateY(-3px);

}



/* ===================================
FOOTER
=================================== */


footer{

    background:#0f172a;

    color:white;

    text-align:center;

    padding:30px;

    font-size:.95rem;

}
/* ===================================
TABLET DESIGN
=================================== */

@media(max-width:1000px){


    .serviceGrid{

        grid-template-columns:repeat(2,1fr);

    }


    .gallery{

        grid-template-columns:repeat(2,1fr);

    }


    .reviewGrid{

        grid-template-columns:repeat(2,1fr);

    }


    .heroContent h2{

        font-size:3.2rem;

    }


    nav{

        gap:15px;

    }


}



/* ===================================
PHONE DESIGN
=================================== */

@media(max-width:700px){


    section{

        padding:70px 0;

    }



    .nav{

        height:auto;

        padding:15px 0;

        flex-direction:column;

        gap:15px;

    }



    .logo{

        text-align:center;

        font-size:1.4rem;

    }



    nav{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }



    nav a{

        font-size:.9rem;

    }



    .phoneButton{

        padding:10px 18px;

    }



    .hero{

        height:90vh;

    }



    .heroContent h2{

        font-size:2.2rem;

    }



    .heroContent p{

        font-size:1rem;

    }



    .buttons{

        flex-direction:column;

        align-items:center;

    }



    .primary,
    .secondary{

        width:90%;

        text-align:center;

    }



    h2{

        font-size:2rem;

    }



    .serviceGrid{

        grid-template-columns:1fr;

    }



    .gallery{

        grid-template-columns:1fr;

    }



    .gallery img{

        height:300px;

    }



    .reviewGrid{

        grid-template-columns:1fr;

    }


}



/* ===================================
IMAGE ANIMATION
=================================== */


.gallery img{

    overflow:hidden;

}



.gallery img:hover{

    filter:brightness(1.08);

}



/* ===================================
BUTTON ANIMATION
=================================== */


.primary,
.secondary,
.phoneButton,
.cta a,
form button{

    position:relative;

    overflow:hidden;

}



.primary::before,
.secondary::before,
.phoneButton::before,
.cta a::before,
form button::before{


    content:"";

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:100%;

    background:rgba(255,255,255,.2);

    transition:.4s;

}



.primary:hover::before,
.secondary:hover::before,
.phoneButton:hover::before,
.cta a:hover::before,
form button:hover::before{

    left:100%;

}



/* ===================================
PAGE LOAD EFFECT
=================================== */


.heroContent{

    animation:heroFade 1.2s ease;

}



@keyframes heroFade{


    from{

        opacity:0;

        transform:translateY(40px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }


}



/* ===================================
CARD ANIMATION
=================================== */


.card,
.review{

    animation:cardUp .8s ease;

}



@keyframes cardUp{


    from{

        opacity:0;

        transform:translateY(30px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }


}



/* ===================================
SMOOTH IMAGE LOADING
=================================== */


.heroImage,
.gallery img{

    animation:imageFade 1s ease;

}



@keyframes imageFade{


    from{

        opacity:0;

    }


    to{

        opacity:1;

    }


}



/* ===================================
FINAL POLISH
=================================== */


::selection{

    background:#f59e0b;

    color:white;

}



a{

    transition:.3s;

}



button{

    font-family:'Poppins',sans-serif;

}
