/* Homepage-specific layout, imagery and component variations. Shared typography,
   buttons, links, labels and heading styles live in base.css. */
#hero {
    background: var(--sw-cream) url('../assets/images/hero-background.webp') center/cover no-repeat;
}

.hero-left {
    background: url('../assets/images/hero-pipes2.webp') left center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-left: 2.5vw;
    padding: 75px 45px 75px 35px;
}

.hero-title {
    font-weight: 700;
    line-height: .8;
}

.hero-title span {
    color: var(--sw-olive);
}

.hero-content p {
    max-width: 430px;
}

.hero-right {
    background: url('../assets/images/hero-sam.webp') center/cover no-repeat;
    min-height: 550px;
}

#home-services {
    background: var(--sw-charcoal);
    color: var(--sw-cream);
}

#home-services .eyebrow,
#home-services .section-title span {
    color: var(--sw-light-olive);
}

#home-services .row>.col-lg-5 p {
    color: #c6c8c0;
}

.service-card {
    height: 100%;
    padding: 35px 32px 30px;
    background: var(--sw-cream);
    border-top: 4px solid var(--sw-olive);
    border-radius: 5px;
    color: var(--sw-charcoal);
    transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .24);
}

.service-card .card-number {
    display: block;
    color: var(--sw-olive);
    font-size: .7rem;
}

.service-card img {
    display: block;
    width: 50%;
    max-height: 125px;
    object-fit: contain;
    margin: 12px auto 18px;
}

.service-card h3 {
    font-size: 2.5rem;
    line-height: .92;
    margin-bottom: 18px;
}

.service-card p {
    color: var(--sw-muted);
    font-size: .9rem;
    line-height: 1.75;
    margin-bottom: 30px;
}

.problems,
.work {
    background: var(--sw-cream);
}

.problems-photo {
    background: #a5a79f url('../assets/images/problems-sink.webp') center/cover no-repeat;
    min-height: 400px;
}

.problems p,
.work p,
.local p {
    color: var(--sw-muted);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 35px;
}

.problem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 8px;
    border: 1px solid rgba(32, 35, 32, .12);
    background: rgba(255, 255, 255, .3);
    text-align: center;
}

.problem-card img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.problem-card span {
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}

.work-image {
    min-height: 400px;
    background: #b3b6ad url('../assets/images/work-sam.webp') center/cover no-repeat;
}

.renovations {
    background: var(--sw-charcoal);
    color: var(--sw-cream);
}

.renovations-photo {
    min-height: 420px;
    background: #8e938a url('../assets/images/renovations-bathroom.webp') center/cover no-repeat;
}

.renovations .eyebrow,
.renovations .section-title span {
    color: var(--sw-light-olive);
}

.renovations p {
    color: #c6c8c0;
}

.local {
    background: var(--sw-cream) url('../assets/images/hero-background.webp') center/cover no-repeat;
}

.final-cta {
    background: var(--sw-olive);
    color: #fff;
}

.final-cta .eyebrow {
    justify-content: center;
    color: #e0e6d8;
}

.final-cta .section-title {
    font-size: clamp(4rem, 7vw, 6.6rem);
}

.final-cta .section-title span {
    color: #d6dfca;
}

.final-cta p {
    color: #f0f2ea;
    max-width: 540px;
    margin: 0 auto 28px;
}

.final-cta .btn-primary {
    background: var(--sw-cream);
    border-color: var(--sw-cream);
    color: var(--sw-charcoal);
}

.final-cta .btn-primary:hover {
    background: #fff;
    border-color: #fff;
}

.final-cta .btn-outline {
    border-color: var(--sw-cream);
    color: #fff;
}

.final-cta .btn-outline:hover {
    background: var(--sw-cream);
    color: var(--sw-charcoal);
}

@media(min-width:992px) and (max-width:1399.98px) {
    .hero-content {
        margin-left: 6vw;
        padding: 65px 25px;
    }

    .hero-title {
        font-size: clamp(4.3rem, 6.2vw, 5.5rem);
    }
}

@media(max-width:991.98px) {
    .hero-content {
        margin-left: 6vw;
        padding: 65px 40px;
    }

    .hero-title {
        font-size: clamp(4.5rem, 10vw, 6rem);
    }

    .hero-right {
        min-height: 430px;
    }

    .problems {
        padding: 50px 0;
    }

    .work {
        padding: 20px 0 75px;
    }

    .work-image,
    .renovations-photo {
        min-height: 420px;
    }

    .local {
        padding: 80px 0;
    }

    .local-aside {
        padding-left: 0;
    }
}

@media(max-width:767.98px) {
    .problem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:575.98px) {
    .hero-left {
        background-position: center top;
    }

    .hero-content {
        margin-left: 0;
        padding: 55px 0;
    }

    .hero-title {
        font-size: clamp(4.5rem, 12.5vw, 4.7rem);
    }

    .hero-content p {
        max-width: 320px;
    }

    .hero-right {
        min-height: 330px;
    }

    .service-card {
        padding: 28px 25px;
    }

    .problems {
        padding: 45px 0;
    }

    .problems-photo {
        min-height: 300px;
    }

    .work {
        padding: 10px 0 70px;
    }

    .work-image {
        min-height: 310px;
    }

    .renovations-photo {
        min-height: 330px;
    }

    .local {
        padding: 65px 0;
    }

    .final-cta {
        padding: 65px 0 75px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}