.flex-content.services {
    padding-block: clamp(5rem, 8vw, 8rem);
}

.flex-content.services .main-title {
    font-size: clamp(2rem, 8vw, 2.625rem);
}

.flex-content.services .service-explorer {
    display: grid;
    grid-template-columns: minmax(320px, 38%) minmax(0, 62%);
    grid-template-rows: auto repeat(var(--service-count), auto) minmax(0, 1fr);
    min-height: 750px;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        var(--deep-forest) 0,
        var(--deep-forest) 38%,
        var(--parchment) 38%,
        var(--parchment) 100%
    );
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18);
}

.flex-content.services .service-explorer__titles {
    grid-column: 1;
    grid-row: 1;
    padding: clamp(2.25rem, 4vw, 4rem) clamp(1.5rem, 3.5vw, 3.5rem) 2.5rem;
}

.flex-content.services .service-explorer__item {
    display: contents;
}

.flex-content.services .service-explorer__toggle {
    display: flex;
    grid-column: 1;
    grid-row: var(--service-row);
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    padding: 1.25rem clamp(1.5rem, 3.5vw, 3.5rem);
    border: 0;
    border-top: 1px solid rgba(243, 236, 220, 0.2);
    border-left: 4px solid transparent;
    background: transparent;
    color: var(--parchment);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.flex-content.services .service-explorer__toggle svg {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--veritas-gold);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform 180ms ease;
}

.flex-content.services .service-explorer__toggle:hover,
.flex-content.services .service-explorer__toggle[aria-expanded="true"] {
    border-left-color: var(--veritas-gold);
    background: rgba(201, 168, 76, 0.09);
    color: var(--veritas-gold);
}

.flex-content.services .service-explorer__toggle:hover svg,
.flex-content.services .service-explorer__toggle[aria-expanded="true"] svg {
    transform: translateX(0.25rem);
}

.flex-content.services .service-explorer__toggle:focus-visible {
    outline: 2px solid var(--veritas-gold);
    outline-offset: -4px;
}

.flex-content.services .service-explorer__panel {
    grid-column: 2;
    grid-row: 1 / -1;
    min-width: 0;
    background: var(--parchment);
    color: var(--midnight-ink);
}

.flex-content.services .service-explorer__panel[hidden] {
    display: none;
}

.flex-content.services .service-explorer__panel-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(3rem, 6vw, 6rem);
}

.flex-content.services .service-explorer__panel .eyebrow {
    margin-bottom: 1.5rem;
    color: #8a6b2d;
}

.flex-content.services .service-explorer__panel .eyebrow > h3 {
    font-size: inherit;
    font-family: inherit;
}

.flex-content.services .service-explorer__copy {
    max-width: 760px;
    font-size: 1.0625rem;
}

.flex-content.services .service-explorer__copy p a {
    color: var(--slate);
}

.flex-content.services .service-explorer__copy ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 2rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.flex-content.services .service-explorer__copy li {
    position: relative;
    padding-left: 1.25rem;
}

.flex-content.services .service-explorer__copy li::before {
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--veritas-gold);
    content: "";
}

.flex-content.services .service-explorer__panel-cta {
    margin-top: 1.5rem;
}

.flex-content.services .service-explorer__footer {
    display: flex;
    grid-column: 1;
    grid-row: calc(var(--service-count) + 2);
    align-items: flex-end;
    padding: 2.5rem clamp(1.5rem, 3.5vw, 3.5rem);
    border-top: 1px solid rgba(243, 236, 220, 0.2);
}

.flex-content.services .service-explorer__footer .cta {
    margin: 0;
}

@media (max-width: 991px) {
    .flex-content.services .container {
        max-width: 720px;
    }

    .flex-content.services .service-explorer {
        display: block;
        min-height: 0;
        background: var(--deep-forest);
    }

    .flex-content.services .service-explorer__titles {
        padding: 3rem 1.5rem 2.5rem;
    }

    .flex-content.services .service-explorer__item {
        display: block;
    }

    .flex-content.services .service-explorer__toggle {
        padding: 1.25rem 1.5rem;
    }

    .flex-content.services .service-explorer__toggle[aria-expanded="true"] svg {
        transform: rotate(90deg);
    }

    .flex-content.services .service-explorer__panel-inner {
        min-height: 0;
        padding: 2.75rem 1.5rem 3rem;
    }

    .flex-content.services .service-explorer__copy ul {
        grid-template-columns: 1fr;
    }

    .flex-content.services .service-explorer__footer {
        padding: 2rem 1.5rem;
        background: var(--parchment);
    }
}

@media (max-width: 575px) {
    .flex-content.services {
        padding-block: 0;
    }

    .flex-content.services .container {
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .flex-content.services .service-explorer {
        border-right: 0;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flex-content.services .service-explorer__toggle,
    .flex-content.services .service-explorer__toggle svg {
        transition: none;
    }
}
