/* Services page */

.service-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 92px 0 72px;
    background: var(--cream);
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(255, 248, 241, .98) 0%, rgba(255, 248, 241, .9) 44%, rgba(58, 0, 0, .72) 44.2%, rgba(180, 0, 8, .84) 100%),
        url("images/Septic-Tank-Cleaning.webp") center/cover;
}

.service-hero-bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 92px;
    background: linear-gradient(180deg, transparent, var(--cream));
}

.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: 46px;
    align-items: center;
}

.service-hero-copy h1 {
    max-width: 760px;
    margin-top: 14px;
    font-size: clamp(42px, 5.5vw, 78px);
    line-height: .96;
    letter-spacing: 0;
}

.service-hero-copy p {
    max-width: 640px;
    margin-top: 22px;
    color: #3c3c3c;
    font-size: 18px;
    line-height: 1.8;
}

.service-hero-actions,
.service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.service-hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 55px rgba(47, 0, 0, .2);
    backdrop-filter: blur(10px);
}

.service-hero-panel img {
    height: 360px;
    object-fit: contain;
    padding: 26px 22px 90px;
    background:
        radial-gradient(circle at 72% 24%, rgba(215, 169, 52, .24), transparent 34%),
        linear-gradient(135deg, #fff, #fff4ea);
}

.panel-stats {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.panel-stats span {
    min-height: 74px;
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    background: linear-gradient(135deg, var(--deep), var(--red));
}

.panel-stats strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.service-ribbon {
    position: relative;
    z-index: 2;
    margin-top: -18px;
}

.ribbon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.ribbon-grid span {
    position: relative;
    min-height: 82px;
    display: grid;
    place-items: center;
    padding: 16px;
    color: var(--deep);
    text-align: center;
    font-weight: 800;
    border-right: 1px solid var(--line);
}

.ribbon-grid span:last-child {
    border-right: 0;
}

.ribbon-grid span::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 8px rgba(180, 0, 8, .1);
}

.service-showcase {
    background:
        linear-gradient(180deg, var(--cream), #fff 46%, var(--cream));
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-detail-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(234, 223, 218, .9);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 14px 32px rgba(47, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: serviceFadeUp .55s ease both;
}

.service-detail-card:hover {
    transform: translateY(-7px);
    border-color: rgba(180, 0, 8, .24);
    box-shadow: 0 22px 46px rgba(47, 0, 0, .14);
}

.feature-card,
.accent-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(0, 1fr);
}

.service-media {
    overflow: hidden;
    background: #f7ede5;
}

.service-media img {
    height: 250px;
    object-fit: cover;
    transition: transform .4s ease;
}

.feature-card .service-media img,
.accent-card .service-media img {
    height: 100%;
    min-height: 340px;
}

.service-detail-card:hover .service-media img {
    transform: scale(1.04);
}

.service-card-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.service-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--dark-red));
    font-weight: 800;
}

.service-card-body h3 {
    color: var(--deep);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
}

.service-card-body p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.78;
}

.service-card-body ul {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding-left: 0;
    list-style: none;
}

.service-card-body li {
    position: relative;
    padding-left: 22px;
    color: #3c3c3c;
    font-weight: 700;
}

.service-card-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.service-process {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(58, 0, 0, .96), rgba(180, 0, 8, .92)),
        url("images/Drain & Pipe Cleaning.webp") center/cover;
}

.service-process .section-title span {
    color: var(--red);
    background: #fff;
}

.service-process .section-title h2 {
    max-width: 700px;
}

.process-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 42px;
    align-items: start;
}

.process-grid-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.process-grid-services article {
    min-height: 220px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    animation: serviceFadeUp .55s ease both;
}

.process-grid-services span {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    border-radius: 50%;
    color: var(--red);
    background: #fff;
    font-weight: 800;
}

.process-grid-services h3 {
    font-size: 20px;
}

.process-grid-services p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
}

.why-services {
    padding: 86px 0;
    background: #fff;
}

.why-services-grid {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
    gap: 46px;
    align-items: center;
}

.why-services-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.why-services-image img {
    height: 530px;
    object-fit: cover;
}

.why-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.why-service-list article {
    min-height: 178px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, #fff, #fff8f1);
    box-shadow: 0 12px 26px rgba(47, 0, 0, .07);
    animation: serviceFadeUp .55s ease both;
}

.why-service-list h3 {
    color: var(--red);
    font-size: 19px;
}

.why-service-list p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.service-cta {
    padding: 84px 0;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(58, 0, 0, .95), rgba(180, 0, 8, .86)),
        url("images/Manhole & Chamber-Cleaning.webp") center/cover;
}

.service-cta-inner {
    max-width: 850px;
}

.service-cta span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 99px;
    color: var(--red);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-cta h2 {
    margin-top: 18px;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.03;
}

.service-cta p {
    max-width: 680px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, .86);
    line-height: 1.8;
}

.service-cta-actions {
    justify-content: center;
}

@keyframes serviceFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .service-hero-grid,
    .process-layout,
    .why-services-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-bg {
        background:
            linear-gradient(135deg, rgba(255, 248, 241, .97), rgba(255, 248, 241, .9)),
            url("images/Septic-Tank-Cleaning.webp") center/cover;
    }

    .service-hero-panel {
        max-width: 680px;
    }

    .service-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card,
    .accent-card {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .service-hero {
        padding: 72px 0 56px;
    }

    .service-hero-copy h1 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .service-hero-copy p {
        font-size: 16px;
    }

    .service-hero-actions,
    .service-cta-actions {
        flex-direction: column;
    }

    .service-hero-actions .btn,
    .service-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ribbon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ribbon-grid span:nth-child(2) {
        border-right: 0;
    }

    .ribbon-grid span:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .service-detail-grid,
    .feature-card,
    .accent-card,
    .process-grid-services,
    .why-service-list {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .accent-card {
        display: flex;
        grid-column: auto;
    }

    .feature-card .service-media img,
    .accent-card .service-media img,
    .service-media img {
        height: 240px;
        min-height: 0;
    }

    .why-services {
        padding: 68px 0;
    }

    .why-services-image img {
        height: 360px;
    }

    .process-grid-services article {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .service-hero-panel img {
        height: 320px;
        padding: 18px 14px 126px;
    }

    .panel-stats {
        grid-template-columns: 1fr;
    }

    .panel-stats span {
        min-height: 54px;
    }

    .panel-stats strong {
        font-size: 20px;
    }

    .ribbon-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-grid span {
        min-height: 70px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ribbon-grid span:last-child {
        border-bottom: 0;
    }

    .service-card-body,
    .process-grid-services article,
    .why-service-list article {
        padding: 22px;
    }

    .service-cta {
        padding: 68px 0;
    }
}
