/* ============================================================
   TRUEFLOW GUTTER SYSTEMS
   SERVICES PAGE
============================================================ */


/* ============================================================
   HERO
============================================================ */

.services-hero {
    position: relative;
    min-height: clamp(640px, 78vh, 820px);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: var(--color-light);
    background: var(--color-dark);
}

.services-hero__media,
.services-hero__overlay {
    position: absolute;
    inset: 0;
}

.services-hero__media {
    overflow: hidden;
}

.services-hero__media img {
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: center;
}

.services-hero__overlay {
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(17, 24, 39, 0.97) 0%,
            rgba(17, 24, 39, 0.88) 38%,
            rgba(17, 24, 39, 0.58) 70%,
            rgba(17, 24, 39, 0.28) 100%);
}

.services-hero__lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.services-hero__lines span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.075);
}

.services-hero__lines span:first-child {
    left: 36%;
}

.services-hero__lines span:last-child {
    left: 72%;
}

.services-hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    align-items: center;
    gap: clamp(60px, 8vw, 120px);
    padding-top: clamp(85px, 8vw, 120px);
    padding-bottom: clamp(90px, 8vw, 125px);
}

.services-hero__content {
    max-width: 830px;
}

.services-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.services-hero__kicker::before {
    content: "";
    width: 42px;
    height: 2px;
    background: var(--color-red);
}

.services-hero h1 {
    max-width: 860px;
    margin-bottom: 27px;
    font-size: clamp(58px, 7vw, 106px);
    font-weight: 630;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.services-hero h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.53);
}

.services-hero__lead {
    max-width: 720px;
    margin-bottom: 34px;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.72);
}

.services-hero__lead strong {
    color: var(--color-light);
    font-weight: 750;
}

.services-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.services-hero__phone span,
.services-hero__phone strong {
    display: block;
}

.services-hero__phone span {
    margin-bottom: 1px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.52);
}

.services-hero__phone strong {
    font-size: 16px;
}

.services-hero__side {
    justify-self: end;
    width: 100%;
    padding: 28px;
    background: rgba(23, 71, 166, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.26);
}

.services-hero__side-label {
    display: block;
    margin-bottom: 25px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.services-hero__stat {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.services-hero__stat strong {
    font-size: 55px;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.services-hero__stat span {
    max-width: 135px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.services-hero__side-list {
    display: grid;
}

.services-hero__side-list span {
    position: relative;
    padding: 8px 0 8px 17px;
    font-size: 11px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.76);
}

.services-hero__side-list span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--color-red);
    border-radius: 50%;
    transform: translateY(-50%);
}


/* ============================================================
   JUMP NAV
============================================================ */

.services-jump {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.site-header.is-scrolled~main .services-jump {
    top: 92px;
}

.services-jump__inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.services-jump a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 66px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 750;
    color: var(--color-text);
    border-right: 1px solid var(--color-border);
    transition:
        color var(--transition),
        background var(--transition);
}

.services-jump a:first-child {
    border-left: 1px solid var(--color-border);
}

.services-jump a span {
    font-size: 8px;
    color: var(--color-red);
}

.services-jump a:hover {
    color: var(--color-blue);
    background: var(--color-grey);
}


/* ============================================================
   INTRO
============================================================ */

.services-intro {
    background: var(--color-light);
}

.services-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(65px, 9vw, 140px);
}

.services-intro__copy {
    max-width: 620px;
    padding-top: 16px;
}

.services-intro__copy>p:not(.section-lead) {
    color: var(--color-muted);
}

.services-intro__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.services-intro__types span {
    padding: 8px 13px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-blue);
    background: var(--color-grey);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}


/* ============================================================
   SERVICE SHOWCASES
============================================================ */

.service-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(95px, 10vw, 150px) 0;
}

.service-showcase--light {
    background: var(--color-grey);
}

.service-showcase--dark {
    color: var(--color-light);
    background: var(--color-dark);
}

.service-showcase--blue {
    color: var(--color-light);
    background: var(--color-blue);
}

.service-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(70px, 9vw, 135px);
}

.service-showcase--reverse .service-showcase__media {
    order: 2;
}

.service-showcase--reverse .service-showcase__content {
    order: 1;
}

.service-showcase__media {
    position: relative;
    min-height: 620px;
}

.service-showcase__image {
    position: absolute;
    inset: 0 70px 50px 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.service-showcase__image--portrait img {
    object-position: center;
}

.service-showcase__image--landscape img {
    object-position: center;
}

.service-showcase__image img,
.service-showcase__detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-showcase__detail {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 42%;
    height: 280px;
    overflow: hidden;
    background: var(--color-light);
    border: 9px solid currentColor;
    border-color: var(--color-grey);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.service-showcase--dark .service-showcase__detail {
    border-color: var(--color-dark);
}

.service-showcase--blue .service-showcase__detail {
    border-color: var(--color-blue);
}

.service-showcase__index {
    position: absolute;
    z-index: 3;
    top: 22px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-light);
    background: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(215, 25, 32, 0.24);
}

.service-showcase__content {
    max-width: 620px;
}

.service-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-red);
}

.service-showcase__eyebrow::before {
    content: "";
    width: 33px;
    height: 1px;
    background: currentColor;
}

.service-showcase--dark .service-showcase__eyebrow,
.service-showcase--blue .service-showcase__eyebrow {
    color: #ffd2d4;
}

.service-showcase__content h2 {
    margin-bottom: 26px;
    font-size: clamp(43px, 5vw, 75px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: var(--color-dark);
}

.service-showcase__content h2 span {
    display: block;
    color: var(--color-blue);
}

.service-showcase--dark .service-showcase__content h2,
.service-showcase--blue .service-showcase__content h2 {
    color: var(--color-light);
}

.service-showcase--dark .service-showcase__content h2 span,
.service-showcase--blue .service-showcase__content h2 span {
    color: rgba(255, 255, 255, 0.5);
}

.service-showcase__lead {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text);
}

.service-showcase__content>p:not(.service-showcase__lead) {
    color: var(--color-muted);
}

.service-showcase--dark .service-showcase__lead,
.service-showcase--blue .service-showcase__lead {
    color: rgba(255, 255, 255, 0.86);
}

.service-showcase--dark .service-showcase__content>p,
.service-showcase--blue .service-showcase__content>p {
    color: rgba(255, 255, 255, 0.62);
}

.service-showcase__lead strong {
    color: inherit;
}

.service-showcase__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 29px 0 33px;
}

.service-showcase__points span {
    padding: 8px 12px;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-blue);
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.service-showcase--dark .service-showcase__points span,
.service-showcase--blue .service-showcase__points span {
    color: var(--color-light);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}


/* ============================================================
   BENEFITS
============================================================ */

.services-benefits {
    background: var(--color-light);
}

.services-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.services-benefit {
    min-height: 260px;
    padding: 30px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transition:
        background var(--transition),
        transform var(--transition);
}

.services-benefit:hover {
    background: var(--color-grey);
    transform: translateY(-4px);
}

.services-benefit>span {
    display: inline-block;
    margin-bottom: 52px;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-red);
}

.services-benefit h3 {
    margin-bottom: 10px;
    font-size: 19px;
    letter-spacing: -0.035em;
    color: var(--color-dark);
}

.services-benefit p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: var(--color-muted);
}


/* ============================================================
   TRANSFORMATION
============================================================ */

.services-transformation {
    color: var(--color-light);
    background: var(--color-dark);
}

.services-transformation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "before after"
        "content content";
    gap: 16px;
    padding-top: clamp(80px, 8vw, 120px);
    padding-bottom: clamp(80px, 8vw, 120px);
}

.services-transformation__before,
.services-transformation__after {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 20px;
}

.services-transformation__before {
    grid-area: before;
}

.services-transformation__after {
    grid-area: after;
}

.services-transformation__before img,
.services-transformation__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-transformation__before span,
.services-transformation__after span {
    position: absolute;
    top: 18px;
    padding: 8px 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-light);
    border-radius: 999px;
}

.services-transformation__before span {
    left: 18px;
    background: rgba(17, 24, 39, 0.78);
}

.services-transformation__after span {
    right: 18px;
    background: var(--color-blue);
}

.services-transformation__content {
    grid-area: content;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 60px;
    padding-top: 42px;
}

.services-transformation__content .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: -35px;
}

.services-transformation__content h2 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(40px, 5vw, 74px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;
}

.services-transformation__content h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.48);
}

.services-transformation__content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
}


/* ============================================================
   PROCESS
============================================================ */

.services-process {
    background: var(--color-grey);
}

.services-process__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(70px, 9vw, 130px);
}

.services-process__visual {
    position: relative;
    min-height: 600px;
}

.services-process__visual>img {
    position: absolute;
    inset: 0 35px 45px 0;
    width: calc(100% - 35px);
    height: calc(100% - 45px);
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.services-process__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 220px;
    padding: 20px 22px;
    color: var(--color-light);
    background: var(--color-blue);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(23, 71, 166, 0.22);
}

.services-process__badge::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    width: 40px;
    height: 4px;
    background: var(--color-red);
}

.services-process__badge span,
.services-process__badge strong {
    display: block;
}

.services-process__badge span {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
}

.services-process__badge strong {
    margin-top: 2px;
    font-size: 18px;
}

.services-process__steps {
    display: grid;
    margin-top: 34px;
}

.services-process__steps article {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}

.services-process__steps article:last-child {
    border-bottom: 1px solid var(--color-border);
}

.services-process__steps article>span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-light);
    background: var(--color-red);
    border-radius: 50%;
}

.services-process__steps h3 {
    margin-bottom: 4px;
    font-size: 16px;
    letter-spacing: -0.025em;
}

.services-process__steps p {
    margin: 0;
    font-size: 12px;
    color: var(--color-muted);
}


/* ============================================================
   AREAS
============================================================ */

.services-areas {
    color: var(--color-light);
    background: var(--color-blue);
}

.services-areas__heading {
    max-width: 900px;
    margin-bottom: 55px;
}

.services-areas__heading h2 {
    margin-bottom: 24px;
    font-size: clamp(44px, 5.5vw, 82px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.services-areas__heading h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
}

.services-areas__heading p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.services-areas__heading strong {
    color: var(--color-light);
}

.services-areas__links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.services-areas__links a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition:
        background var(--transition),
        transform var(--transition);
}

.services-areas__links a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.services-areas__links span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.services-areas__links small {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.52);
}

.services-areas__footer {
    margin-top: 35px;
}


/* ============================================================
   SEO COPY
============================================================ */

.services-seo {
    background: var(--color-light);
}

.services-seo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    align-items: start;
    gap: clamp(70px, 9vw, 135px);
}

.services-seo__copy {
    max-width: 650px;
    padding-top: 18px;
}

.services-seo__copy p {
    color: var(--color-muted);
}

.services-seo__copy .text-link {
    margin-top: 10px;
}


/* ============================================================
   RESPONSIVE — 1100
============================================================ */

@media (max-width: 1100px) {

    .services-hero__inner {
        grid-template-columns: 1fr 300px;
        gap: 45px;
    }

    .service-showcase__grid {
        gap: 65px;
    }

    .services-areas__links {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* ============================================================
   RESPONSIVE — 900
============================================================ */

@media (max-width: 900px) {

    .services-hero {
        min-height: auto;
    }

    .services-hero__inner {
        grid-template-columns: 1fr;
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .services-hero__side {
        display: none;
    }

    .services-hero__lines span:first-child {
        left: 50%;
    }

    .services-hero__lines span:last-child {
        display: none;
    }

    .services-jump {
        position: relative;
        top: auto !important;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .services-jump::-webkit-scrollbar {
        display: none;
    }

    .services-jump__inner {
        display: flex;
        width: max-content;
        min-width: 100%;
    }

    .services-jump a {
        min-width: 150px;
    }

    .services-intro__grid,
    .service-showcase__grid,
    .services-process__grid,
    .services-seo__grid {
        grid-template-columns: 1fr;
    }

    .service-showcase--reverse .service-showcase__media,
    .service-showcase--reverse .service-showcase__content {
        order: initial;
    }

    .service-showcase__media {
        min-height: 560px;
        max-width: 720px;
    }

    .service-showcase__content {
        max-width: 760px;
    }

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

    .services-transformation__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-transformation__content .section-kicker {
        grid-column: auto;
        margin-bottom: 0;
    }

    .services-process__visual {
        max-width: 720px;
    }

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

}


/* ============================================================
   RESPONSIVE — 700
============================================================ */

@media (max-width: 700px) {

    .services-hero__inner {
        padding-top: 70px;
        padding-bottom: 72px;
    }

    .services-hero h1 {
        font-size: clamp(48px, 13vw, 68px);
    }

    .services-hero__lead {
        font-size: 16px;
    }

    .services-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .services-hero__actions .button {
        width: 100%;
    }

    .services-hero__phone {
        text-align: center;
    }

    .service-showcase {
        padding: 78px 0;
    }

    .service-showcase__media {
        min-height: 470px;
    }

    .service-showcase__image {
        inset: 0 35px 40px 0;
    }

    .service-showcase__detail {
        width: 44%;
        height: 210px;
        border-width: 6px;
    }

    .service-showcase__content h2 {
        font-size: clamp(40px, 11vw, 58px);
    }

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

    .services-benefit {
        min-height: auto;
    }

    .services-benefit>span {
        margin-bottom: 32px;
    }

    .services-transformation__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "before"
            "after"
            "content";
    }

    .services-transformation__before,
    .services-transformation__after {
        min-height: 340px;
    }

    .services-process__visual {
        min-height: 470px;
    }

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

    .services-areas__links a {
        min-height: 105px;
    }

}


/* ============================================================
   RESPONSIVE — 520
============================================================ */

@media (max-width: 520px) {

    .services-hero h1 {
        font-size: clamp(44px, 12.5vw, 58px);
    }

    .services-jump a {
        min-height: 58px;
        min-width: 138px;
        font-size: 10px;
    }

    .service-showcase__media {
        min-height: 390px;
    }

    .service-showcase__image {
        inset: 0 25px 35px 0;
        border-radius: 17px;
    }

    .service-showcase__detail {
        width: 48%;
        height: 175px;
        border-radius: 14px;
    }

    .service-showcase__index {
        top: 14px;
        left: 14px;
        width: 42px;
        height: 42px;
    }

    .service-showcase__lead {
        font-size: 16px;
    }

    .services-transformation__before,
    .services-transformation__after {
        min-height: 285px;
    }

    .services-process__visual {
        min-height: 390px;
    }

    .services-process__visual>img {
        inset: 0 22px 38px 0;
        width: calc(100% - 22px);
        height: calc(100% - 38px);
    }

    .services-process__badge {
        min-width: 190px;
        padding: 16px 18px;
    }

}