/* =====================================================
   SOUTHERN TIER HOME REMODELING & REPAIR
   MASTER STYLESHEET
===================================================== */

:root{

    --primary:#0f172a;
    --secondary:#dc2626;
    --secondary-dark:#b91c1c;

    --dark:#111827;
    --gray:#64748b;
    --light:#f8fafc;
    --white:#ffffff;

    --border:#e5e7eb;

    --shadow-sm:
        0 2px 10px rgba(0,0,0,.05);

    --shadow:
        0 10px 25px rgba(0,0,0,.08);

    --shadow-lg:
        0 20px 40px rgba(0,0,0,.15);

    --radius:12px;

    --transition:.3s ease;
}

/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    color:#333;
    background:#fff;
    line-height:1.6;
    overflow-x:hidden;
}

img{
    display:block;
    width:100%;
    height:auto;
}

ul{
    list-style:none;
}

a{
    text-decoration:none;
}

section{
    padding:90px 0;
}

.container{
    width:min(90%,1200px);
    margin:auto;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1{
    font-size:clamp(2.5rem,5vw,4.5rem);
    line-height:1.1;
    font-weight:800;
    color:var(--primary);
}

h2{
    font-size:clamp(2rem,4vw,3rem);
    margin-bottom:20px;
    color:var(--primary);
}

h3{
    font-size:1.3rem;
    margin-bottom:10px;
}

p{
    color:#555;
}

.section-header{
    text-align:center;
    max-width:800px;
    margin:0 auto 60px;
}

.section-header p{
    font-size:1.1rem;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary,
.btn-secondary,
.call-btn{

    display:inline-block;
    padding:15px 30px;
    border-radius:50px;
    font-weight:600;
    transition:var(--transition);
}

.btn-primary{
    background:var(--secondary);
    color:white;
}

.btn-primary:hover{
    background:var(--secondary-dark);
    transform:translateY(-2px);
}

.btn-secondary{
    border:2px solid white;
    color:white;
}

.btn-secondary:hover{
    background:white;
    color:var(--primary);
}

.call-btn{
    background:var(--secondary);
    color:white;
}

.call-btn:hover{
    background:var(--secondary-dark);
}

/* =====================================================
   HEADER
===================================================== */

.header{

    position:sticky;
    top:0;
    z-index:1000;

    background:white;
    border-bottom:1px solid var(--border);

    transition:var(--transition);
}

.header.scrolled{
    box-shadow:var(--shadow);
}

.nav-container{

    display:flex;
    align-items:center;
    justify-content:space-between;

    min-height:85px;
}

.logo{

    font-size:1.2rem;
    font-weight:800;
    color:var(--primary);

    max-width:320px;
}

.nav-links{

    display:flex;
    gap:35px;
}

.nav-links a{

    color:var(--dark);
    font-weight:600;
    position:relative;
}

.nav-links a::after{

    content:'';

    position:absolute;
    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:var(--secondary);

    transition:var(--transition);
}

.nav-links a:hover::after{
    width:100%;
}

.hamburger{

    display:none;

    background:none;
    border:none;

    font-size:2rem;
    cursor:pointer;
}

/* =====================================================
   HERO
===================================================== */

.hero{

    background:
    linear-gradient(
    rgba(15,23,42,.85),
    rgba(15,23,42,.85)),
    url('../images/hero-handyman.jpg');

    background-size:cover;
    background-position:center;

    color:white;

    min-height:700px;

    display:flex;
    align-items:center;
}

.hero-grid{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.hero h1{
    color:white;
    margin-bottom:25px;
}

.hero p{

    color:#e2e8f0;
    font-size:1.15rem;

    margin-bottom:35px;
}

.hero-tag{

    display:inline-block;

    background:rgba(255,255,255,.1);

    padding:10px 18px;

    border-radius:50px;

    margin-bottom:20px;
}

.hero-buttons{

    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.hero-image img{

    border-radius:var(--radius);
    box-shadow:var(--shadow-lg);
}

/* =====================================================
   TRUST SECTION
===================================================== */

.trust-section{
    background:var(--light);
}

.trust-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.trust-card{

    background:white;
    padding:30px;

    text-align:center;

    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);
}

.trust-card h3{
    color:var(--primary);
}

/* =====================================================
   SERVICES
===================================================== */

.card-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:30px;
}

.service-card{

    background:white;

    padding:35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.service-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);
}

.service-card h3{
    color:var(--primary);
}

/* =====================================================
   WHY US
===================================================== */

.why-us{
    background:var(--light);
}

.why-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:25px;
}

.why-grid div{

    background:white;

    padding:25px;

    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);

    font-weight:600;
}

/* =====================================================
   SERVICE AREA
===================================================== */

.service-area{

    text-align:center;
    background:white;
}

.service-area p{

    font-size:1.25rem;
    font-weight:500;
}

/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonials{

    background:var(--light);
    text-align:center;
}

.testimonial-slider{

    max-width:800px;
    margin:auto;
}

.testimonial{

    display:none;

    background:white;

    padding:50px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);
}

.testimonial.active{
    display:block;
}

.testimonial p{

    font-size:1.2rem;
    margin-bottom:20px;
}

.testimonial h4{
    color:var(--secondary);
}

/* =====================================================
   CTA
===================================================== */

.cta-section{

    background:
    linear-gradient(
    rgba(15,23,42,.9),
    rgba(15,23,42,.9));

    text-align:center;

    color:white;
}

.cta-section h2{
    color:white;
}

.cta-section p{

    color:#e2e8f0;

    margin-bottom:25px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer{

    background:var(--dark);

    color:white;

    padding-top:70px;
}

.footer-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap:40px;
}

.footer h3,
.footer h4{

    color:white;
    margin-bottom:20px;
}

.footer p,
.footer a{

    color:#cbd5e1;
}

.footer li{
    margin-bottom:10px;
}

.footer a:hover{
    color:white;
}

.copyright{

    text-align:center;

    border-top:1px solid rgba(255,255,255,.1);

    margin-top:50px;
    padding:25px;
}

/* =====================================================
   GENERIC PAGE HERO
===================================================== */

.page-hero{

    background:
        linear-gradient(
            rgba(15,23,42,.88),
            rgba(15,23,42,.88)
        ),
        url('../images/contact-hero.jpg');

    background-size:cover;
    background-position:center;

    color:white;

    text-align:center;

    padding:140px 0;
}

.page-hero h1{

    color:white;

    margin-bottom:20px;
}

.page-hero p{

    color:#e2e8f0;

    max-width:800px;

    margin:auto;
}
/* =====================================================
   FORMS
===================================================== */

.contact-form{

    max-width:800px;
    margin:auto;
}

.form-group{
    margin-bottom:20px;
}

input,
textarea,
select{

    width:100%;

    padding:15px;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:1rem;
}

textarea{
    min-height:180px;
}

input:focus,
textarea:focus{

    outline:none;

    border-color:var(--secondary);
}

/* =====================================================
   GALLERY
===================================================== */

.gallery-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:20px;
}

.gallery-grid img{

    border-radius:var(--radius);

    transition:var(--transition);
}

.gallery-grid img:hover{

    transform:scale(1.03);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:992px){

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .trust-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .why-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .nav{

        position:absolute;

        top:85px;
        left:0;

        width:100%;

        background:white;

        display:none;
    }

    .nav.active{
        display:block;
    }

    .nav-links{

        flex-direction:column;

        padding:20px;
        gap:20px;
    }

    .hamburger{
        display:block;
    }

    .call-btn{
        display:none;
    }

    .trust-grid{
        grid-template-columns:1fr;
    }

    .why-grid{
        grid-template-columns:1fr;
    }

    section{
        padding:70px 0;
    }

    .hero{
        min-height:auto;
        padding:120px 0;
    }
}

@media(max-width:480px){

    .logo{
        font-size:1rem;
        max-width:220px;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
        text-align:center;
    }

    .hero-buttons{
        flex-direction:column;
    }
}

/* Scroll Reveal */

.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.revealed{
    opacity:1;
    transform:translateY(0);
}

/* Active Nav Link */

.active-page{
    color:var(--secondary) !important;
}

/* Page Fade In */

body{
    opacity:0;
    transition:opacity .4s ease;
}

body.loaded{
    opacity:1;
}

/* ==========================================
   SERVICES HERO
========================================== */

.services-hero{

    background:
    linear-gradient(
    rgba(15,23,42,.85),
    rgba(15,23,42,.85)),
    url('../images/services-hero.jpg');

    background-size:cover;
    background-position:center;

    color:white;

    text-align:center;

    padding:140px 0;
}

.services-hero h1{

    color:white;

    max-width:900px;

    margin:20px auto;
}

.services-hero p{

    color:#e2e8f0;

    max-width:850px;

    margin:auto auto 30px;

    font-size:1.15rem;
}

.services-hero-content{

    max-width:1000px;
    margin:auto;
}

/* ==========================================
   SERVICES OVERVIEW
========================================== */

.services-overview{
    background:white;
}

/* ==========================================
   SERVICE DETAIL
========================================== */

.service-detail{

    background:#f8fafc;
}

.service-detail-grid{

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:60px;

    align-items:center;
}

.service-image img{

    border-radius:12px;

    box-shadow:
    0 20px 40px rgba(0,0,0,.15);
}

.service-label{

    display:inline-block;

    background:#dc2626;

    color:white;

    padding:8px 15px;

    border-radius:50px;

    margin-bottom:15px;

    font-size:.9rem;

    font-weight:600;
}

.service-content h2{

    margin-bottom:20px;
}

.service-content p{

    margin-bottom:20px;
}

.service-list{

    margin:25px 0;
}

.service-list li{

    padding:10px 0;

    border-bottom:
    1px solid #e5e7eb;
}

.service-cta{

    margin-top:30px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .service-detail-grid{

        grid-template-columns:1fr;
    }
}

/* ==========================================
   FAQ SECTION
========================================== */

.faq-section{
    background:#f8fafc;
}

.faq-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

.faq-card{

    background:white;

    padding:30px;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.faq-card h3{

    color:#0f172a;

    margin-bottom:15px;
}

.faq-card p{

    color:#555;
}

/* ==========================================
   CONTACT PAGE
========================================== */

.contact-section{
    background:#f8fafc;
}

.contact-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr;

    gap:40px;

    align-items:start;
}

/* Contact Form Card */

.contact-form-wrapper{

    background:white;

    padding:40px;

    border-radius:12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}

.contact-form-wrapper h2{

    margin-bottom:15px;
}

.contact-form-wrapper p{

    margin-bottom:30px;
}

/* Form */

.contact-form{

    max-width:none;
}

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:var(--primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select{

    width:100%;

    padding:15px;

    border:1px solid #d1d5db;

    border-radius:8px;

    font-size:1rem;

    font-family:'Inter',sans-serif;

    transition:var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{

    outline:none;

    border-color:var(--secondary);

    box-shadow:
        0 0 0 3px rgba(220,38,38,.15);
}

.contact-form textarea{

    min-height:180px;

    resize:vertical;
}

.contact-submit{

    width:100%;

    border:none;

    cursor:pointer;

    font-size:1rem;
}

/* Contact Information */

.contact-info{

    display:flex;

    flex-direction:column;

    gap:25px;
}

.contact-card{

    background:white;

    padding:30px;

    border-radius:12px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);
}

.contact-card h3{

    color:var(--primary);

    margin-bottom:15px;
}

.contact-card p{

    margin-bottom:10px;
}

.contact-card a{

    color:var(--secondary);

    font-weight:600;
}

.contact-card a:hover{

    color:var(--secondary-dark);
}

/* Service Area Box */

.service-area-card{

    background:var(--primary);

    color:white;
}

.service-area-card h3{

    color:white;
}

.service-area-card p{

    color:#e2e8f0;
}

/* Contact CTA */

.contact-cta{

    background:
        linear-gradient(
            rgba(15,23,42,.95),
            rgba(15,23,42,.95)
        );

    text-align:center;

    color:white;

    padding:70px 40px;

    border-radius:12px;
}

.contact-cta h3{

    color:white;

    margin-bottom:15px;
}

.contact-cta p{

    color:#cbd5e1;

    margin-bottom:25px;
}

/* ==========================================
   CONTACT PAGE RESPONSIVE
========================================== */

@media(max-width:992px){

    .contact-grid{

        grid-template-columns:1fr;
    }

    .contact-form-wrapper{

        padding:30px;
    }
}

@media(max-width:768px){

    .contact-form-wrapper{

        padding:25px;
    }

    .contact-card{

        padding:25px;
    }

    .contact-cta{

        padding:40px 25px;
    }
}