﻿.services-overview-lower {
    --site-geology-height: 100%;
    --site-geology-y: 0px;
    padding-block: clamp(36px, 3vw, 56px) clamp(44px, 4vw, 72px);
    background: #fff;
}

    .services-overview-lower::before {
        opacity: .035;
    }

    .services-overview-lower .services-overview-eyebrow {
        font-size: .8125rem;
        line-height: 1.5;
        letter-spacing: .1em;
        overflow-wrap: anywhere;
    }

.services-content-heading {
    margin: 0 0 18px;
    min-width: 0;
}

    .services-content-heading h2 {
        margin: 8px 0 0;
        color: var(--site-navy-deep);
        font: 600 clamp(1.625rem, 1.85vw, 2rem)/1.2 Georgia, "Times New Roman", serif;
        letter-spacing: -.02em;
        overflow-wrap: anywhere;
    }

.services-catalog-heading {
    margin-bottom: 22px;
}

    .services-catalog-heading > .services-overview-eyebrow {
        display: flex;
        align-items: center;
        gap: 28px;
    }

        .services-catalog-heading > .services-overview-eyebrow::after {
            content: "";
            height: 1px;
            flex: 1 1 60px;
            background: var(--site-line);
        }

.services-catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

    .services-catalog-grid[data-count="1"] {
        grid-template-columns: minmax(0, 1fr);
        max-width: 380px;
    }

    .services-catalog-grid[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 780px;
    }

    .services-catalog-grid[data-count="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1180px;
    }

    .services-catalog-grid[data-count="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .services-catalog-grid[data-count="5"] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

.services-catalog-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    row-gap: 18px;
    min-width: 0;
    min-height: 220px;
    padding: 24px 20px 20px;
    color: var(--site-navy);
    text-decoration: none;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--site-line);
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .services-catalog-card.has-icon {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .services-catalog-card:hover {
        color: var(--site-navy);
        border-color: var(--site-accent-line);
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(11, 37, 70, .06);
    }

.services-catalog-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    display: block;
    width: 48px;
    height: 58px;
}

    .services-catalog-icon .service-custom-icon {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.services-catalog-copy {
    grid-column: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .services-catalog-copy h3 {
        margin: 0 0 10px;
        color: var(--site-navy-deep);
        font-size: clamp(1.125rem, 1.1vw, 1.3125rem);
        line-height: 1.35;
        font-weight: 700;
    }

    .services-catalog-copy p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        margin: 0;
        color: var(--site-muted);
        font-size: 1rem;
        line-height: 1.65;
    }

.services-catalog-arrow {
    grid-column: 1;
    align-self: end;
    color: var(--site-accent);
    font-size: 1.625rem;
    line-height: 1;
}

.services-catalog-card.has-icon .services-catalog-copy,
.services-catalog-card.has-icon .services-catalog-arrow {
    grid-column: 2;
}

.services-catalog + .services-support-grid {
    margin-top: clamp(34px, 3vw, 50px);
}

.services-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .9fr) minmax(0, 1fr);
    gap: clamp(24px, 2vw, 36px);
    align-items: start;
}

    .services-support-grid[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-support-grid[data-count="1"] {
        grid-template-columns: minmax(0, 720px);
    }

    .services-support-grid.has-quality[data-count="1"] {
        grid-template-columns: minmax(0, 960px);
    }

.services-quality,
.services-quality-copy,
.services-faq {
    min-width: 0;
}

    .services-quality.has-image {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
        align-items: start;
        gap: 22px;
    }

.services-content-description {
    margin: 0;
    color: var(--site-muted);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.services-quality-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

    .services-quality-list li {
        position: relative;
        padding-left: 25px;
        min-width: 0;
        color: var(--site-navy);
        font-size: 1rem;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

        .services-quality-list li::before {
            content: "";
            position: absolute;
            top: 4px;
            left: 0;
            width: 16px;
            height: 16px;
            border: 1px solid var(--site-accent);
            border-radius: 50%;
        }

        .services-quality-list li::after {
            content: "";
            position: absolute;
            top: 8px;
            left: 6px;
            width: 4px;
            height: 7px;
            border-right: 1px solid var(--site-accent);
            border-bottom: 1px solid var(--site-accent);
            transform: rotate(40deg);
        }

    .services-quality-list strong {
        display: block;
        font-weight: 600;
    }

    .services-quality-list li > span {
        display: block;
        margin-top: 4px;
        color: var(--site-muted);
        white-space: pre-line;
    }

.services-quality-media {
    position: relative;
    min-width: 0;
    min-height: 260px;
    max-height: 420px;
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f3f4;
}

    .services-quality-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.services-faq-list {
    display: grid;
    gap: 10px;
}

.services-faq-item {
    min-width: 0;
    border: 1px solid var(--site-line);
    border-radius: 5px;
    background: rgba(255, 255, 255, .96);
}

    .services-faq-item > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 56px;
        padding: 14px 16px;
        color: var(--site-navy);
        list-style: none;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1.55;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

        .services-faq-item > summary > span:first-child {
            min-width: 0;
        }

        .services-faq-item > summary::-webkit-details-marker,
        .services-faq-more > summary::-webkit-details-marker {
            display: none;
        }

.services-faq-toggle {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: var(--site-accent);
}

    .services-faq-toggle::before,
    .services-faq-toggle::after {
        content: "";
        position: absolute;
        top: 6px;
        left: 0;
        width: 14px;
        height: 2px;
        background: currentColor;
    }

    .services-faq-toggle::after {
        transform: rotate(90deg);
    }

.services-faq-item[open] > summary .services-faq-toggle::after {
    transform: none;
}

.services-faq-item[open] {
    border-color: var(--site-accent-line);
}

.services-faq-item > p {
    margin: 0;
    padding: 0 16px 18px;
    color: var(--site-muted);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.services-faq-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding-block: 10px 6px;
    color: var(--site-accent-dark);
    border-bottom: 1px solid var(--site-accent-line);
    list-style: none;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    overflow-wrap: anywhere;
}

    .services-faq-more > summary > span:last-child {
        flex: 0 0 auto;
        font-size: 1.5rem;
    }

.services-faq-more[open] > summary {
    margin-bottom: 14px;
}

    .services-faq-more > summary .services-faq-hide,
    .services-faq-more[open] > summary .services-faq-show {
        display: none;
    }

    .services-faq-more[open] > summary .services-faq-hide {
        display: inline;
    }

.services-consultation {
    --site-geology-height: 100%;
    --site-geology-y: 0px;
    position: relative;
    min-width: 0;
    min-height: 280px;
    overflow: hidden;
    padding: clamp(24px, 2vw, 34px);
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: #fffdfa;
}

    .services-consultation::before {
        opacity: .075;
    }

.services-consultation-copy {
    position: relative;
    z-index: 1;
}

.services-consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 20px;
    border: 1px solid var(--site-accent);
    border-radius: 3px;
    background: var(--site-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, border-color .2s ease;
}

    .services-consultation-button > span:last-child {
        flex: 0 0 auto;
        font-size: 1.5rem;
        line-height: 1;
    }

    .services-consultation-button:hover {
        color: #fff;
        background: var(--site-navy);
        border-color: var(--site-navy);
    }

.services-overview-lower a:focus-visible,
.services-overview-lower summary:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 4px;
}

@media (max-width: 1500px) {
    .services-catalog-grid:not([data-count="1"]):not([data-count="2"]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .services-support-grid[data-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .services-support-grid[data-count="3"] > .services-quality {
            grid-column: 1 / -1;
        }

    .services-support-grid[data-count="2"] .services-quality.has-image {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .services-overview-lower .services-catalog-grid:not([data-count="1"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .services-overview-lower .services-support-grid[data-count] {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .services-support-grid[data-count="2"] .services-quality.has-image {
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    }
}

@media (max-width: 620px) {
    .services-overview-lower .services-catalog-grid[data-count] {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        gap: 14px;
    }

    .services-catalog-card {
        min-height: 0;
        padding: 24px;
    }

    .services-catalog-copy h3 {
        font-size: 1.3125rem;
    }

    .services-overview-lower .services-support-grid .services-quality.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-quality-media {
        min-height: 0;
        max-height: none;
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-catalog-card,
    .services-consultation-button {
        transition: none;
    }

        .services-catalog-card:hover {
            transform: none;
        }
}

.services-overview-lower {
    padding-block: clamp(72px, 7vw, 112px);
    background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}

.services-content-heading h2 {
    font-size: clamp(30px, 2.5vw, 42px);
    line-height: 1.12;
}

.services-support-grid {
    gap: clamp(22px, 2.5vw, 38px);
}

.services-quality,
.services-faq,
.services-consultation {
    border-radius: 16px;
    border-color: rgba(11, 37, 70, .1);
    box-shadow: 0 20px 58px rgba(11, 37, 70, .055);
}

.services-quality,
.services-faq {
    padding: clamp(30px, 3vw, 48px);
    background: #fff;
}

.services-quality-media {
    border-radius: 12px;
    overflow: hidden;
}

.services-faq-item {
    border-color: rgba(11, 37, 70, .11);
    border-radius: 8px;
}

.services-consultation {
    padding: clamp(34px, 3.4vw, 54px);
    background: var(--site-navy-deep);
    color: #fff;
}

    .services-consultation .services-overview-eyebrow,
    .services-consultation .services-content-heading h2 {
        color: #fff;
    }

    .services-consultation .services-content-description {
        color: rgba(255, 255, 255, .74);
    }

    .services-consultation::before {
        opacity: .18;
    }

@media (max-width: 680px) {
    .services-overview-lower {
        padding-block: 56px;
    }

    .services-quality,
    .services-faq,
    .services-consultation {
        border-radius: 10px;
    }
}


/* Group the optional quality / FAQ / CTA blocks when all three are populated. */
.services-support-grid[data-count="3"] {
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(11, 37, 70, .08);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 22px 64px rgba(11, 37, 70, .045);
}

    .services-support-grid[data-count="3"] > .services-quality,
    .services-support-grid[data-count="3"] > .services-faq,
    .services-support-grid[data-count="3"] > .services-consultation {
        height: 100%;
        box-sizing: border-box;
        box-shadow: none;
    }

@media (max-width: 740px) {
    .services-support-grid[data-count="3"] {
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
    }
}


.services-overview-page .services-support-grid[data-count="3"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(11, 37, 70, .09);
    border-radius: 24px;
    background: radial-gradient(circle at 8% 10%, rgba(201, 120, 61, .045), transparent 26%), rgba(255, 255, 255, .74);
    box-shadow: 0 24px 72px rgba(11, 37, 70, .05);
}

    .services-overview-page .services-support-grid[data-count="3"]::after {
        content: "";
        position: absolute;
        right: -125px;
        bottom: -150px;
        z-index: 0;
        width: 360px;
        height: 230px;
        border: 1px solid rgba(201, 120, 61, .24);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(201, 120, 61, .035), 0 0 0 62px rgba(201, 120, 61, .02);
        transform: rotate(-12deg);
        pointer-events: none;
    }

    .services-overview-page .services-support-grid[data-count="3"] > * {
        position: relative;
        z-index: 1;
    }

    .services-overview-page .services-support-grid[data-count="3"] > .services-quality,
    .services-overview-page .services-support-grid[data-count="3"] > .services-faq {
        border-color: rgba(11, 37, 70, .09);
        box-shadow: 0 14px 38px rgba(11, 37, 70, .035);
    }

    .services-overview-page .services-support-grid[data-count="3"] > .services-consultation {
        box-shadow: 0 18px 44px rgba(11, 37, 70, .10);
    }

@media (max-width: 740px) {
    .services-overview-page .services-support-grid[data-count="3"] {
        padding: 10px;
        border-radius: 16px;
    }

        .services-overview-page .services-support-grid[data-count="3"]::after {
            right: -210px;
            bottom: -175px;
            opacity: .72;
        }
}


.services-consultation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(34px, 4vw, 54px);
}

.services-consultation-scope {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

    .services-consultation-scope > span {
        display: block;
        margin-bottom: 14px;
        color: rgba(255, 255, 255, .56);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .services-consultation-scope ol {
        display: grid;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .services-consultation-scope li {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
    }

        .services-consultation-scope li b {
            color: var(--site-accent);
            font-size: 11px;
            line-height: 1.55;
        }

        .services-consultation-scope li strong {
            color: rgba(255, 255, 255, .9);
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
        }

@media (max-width: 740px) {
    .services-consultation {
        gap: 30px;
    }

    .services-consultation-scope {
        padding-top: 18px;
    }
}
