:root {
    --services-pearl: #dcebd5;
    --services-green: #aac699;
    --services-green-deep: #3f5f39;
    --services-green-dark: #263e2b;
    --services-green-pale: #edf4e9;
    --services-cream: #f7f5ef;
    --services-white: #ffffff;
    --services-ink: #203027;
    --services-muted: #647168;
    --services-border: rgba(63, 95, 57, 0.16);
}

.services-modern,
.services-modern * {
    box-sizing: border-box;
}

.services-modern {
    overflow: hidden;
    background: var(--services-white);
    color: var(--services-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.services-shell {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.services-eyebrow {
    margin: 0 0 12px;
    color: var(--services-green-deep);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.services-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        var(--services-green-dark)
        url("/images/backgrounds/lisajoey.jpg")
        center 38% / cover no-repeat;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(25, 42, 30, 0.91) 0%,
            rgba(31, 51, 36, 0.78) 48%,
            rgba(31, 51, 36, 0.24) 100%
        ),
        linear-gradient(
            180deg,
            rgba(170, 198, 153, 0.18),
            rgba(20, 35, 25, 0.3)
        );
}

.services-hero::after {
    position: absolute;
    inset: -40% -30%;
    background:
        linear-gradient(
            112deg,
            transparent 35%,
            rgba(255, 255, 255, 0.1) 49%,
            transparent 63%
        );
    content: "";
    pointer-events: none;
    transform: rotate(-6deg);
}

.services-hero-content {
    position: relative;
    z-index: 1;
    padding-block: 92px;
}

.services-hero .services-eyebrow {
    color: #d7e7cf;
}

.services-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--services-white);
    font-size: clamp(3.1rem, 8vw, 6.5rem);
    letter-spacing: -0.06em;
    line-height: 0.94;
    text-wrap: balance;
}

.services-hero-copy {
    max-width: 650px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 830px;
    margin-top: 30px;
}

.service-pills span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--services-white);
    font-size: 0.82rem;
    font-weight: 750;
    padding: 9px 13px;
    backdrop-filter: blur(7px);
}

.hero-button {
    display: inline-flex;
    margin-top: 34px;
    border-radius: 999px;
    background: var(--services-green);
    color: var(--services-green-dark);
    font-weight: 850;
    padding: 14px 21px;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.hero-button:hover,
.hero-button:focus {
    background: var(--services-white);
    color: var(--services-green-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

.services-introduction {
    background:
        radial-gradient(circle at 90% 20%, #ffffff 0, transparent 28%),
        linear-gradient(135deg, var(--services-pearl), var(--services-green));
    padding: 80px 0;
}

.introduction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: end;
    gap: 70px;
}

.introduction-grid h2,
.service-copy h2,
.services-cta h2 {
    margin: 0;
    color: var(--services-green-dark);
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.introduction-grid h2 {
    max-width: 700px;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.introduction-grid > p {
    margin: 0;
    color: rgba(32, 48, 39, 0.78);
    font-size: 1.08rem;
    line-height: 1.7;
}

.service-section {
    padding: 88px 0;
}

.service-section-light {
    background: var(--services-white);
}

.service-section-green {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.62), transparent 26%),
        var(--services-green-pale);
}

.service-section-cream {
    background: var(--services-cream);
}

.service-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1.5fr) minmax(245px, 0.55fr);
    align-items: start;
    gap: clamp(24px, 5vw, 64px);
}

.service-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: var(--services-green-pale);
    color: var(--services-green-deep);
    font-size: 0.82rem;
    font-weight: 900;
}

.service-section-green .service-number {
    background: var(--services-white);
}

.service-copy h2 {
    font-size: clamp(2.15rem, 5vw, 3.75rem);
}

.service-copy > p:not(.services-eyebrow) {
    max-width: 730px;
    margin: 18px 0 0;
    color: var(--services-muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.official-link,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
    color: var(--services-green-deep);
    font-weight: 850;
    text-decoration: none;
}

.official-link:hover,
.official-link:focus,
.text-link:hover,
.text-link:focus {
    color: var(--services-green-dark);
    text-decoration: underline;
}

.official-link span {
    font-size: 1.15em;
}

.service-summary {
    border-left: 4px solid var(--services-green);
    border-radius: 0 14px 14px 0;
    background: var(--services-green-pale);
    padding: 22px;
}

.service-section-green .service-summary {
    background: var(--services-white);
}

.service-summary p {
    margin: 0 0 6px;
    color: var(--services-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-summary strong {
    color: var(--services-green-dark);
    font-size: 1.08rem;
    line-height: 1.5;
}

.services-cta {
    background:
        linear-gradient(135deg, var(--services-green-dark), #365840);
    color: var(--services-white);
    padding: 82px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.services-cta .services-eyebrow {
    color: #c9ddbf;
}

.services-cta h2 {
    max-width: 720px;
    color: var(--services-white);
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.services-cta p:last-child {
    max-width: 640px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.65;
}

.services-cta a {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--services-green);
    color: var(--services-green-dark);
    font-weight: 850;
    padding: 15px 22px;
    text-decoration: none;
}

.services-cta a:hover,
.services-cta a:focus {
    background: var(--services-white);
    color: var(--services-green-dark);
    text-decoration: none;
}

@media (max-width: 900px) {
    .services-hero {
        min-height: 620px;
    }

    .introduction-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 28px;
    }

    .service-layout {
        grid-template-columns: auto 1fr;
    }

    .service-summary {
        grid-column: 2;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .services-shell {
        width: min(100% - 28px, 1160px);
    }

    .services-hero {
        min-height: 580px;
        background-position: 58% center;
    }

    .services-hero-overlay {
        background: rgba(25, 42, 30, 0.82);
    }

    .services-hero-content {
        padding-block: 64px;
    }

    .services-introduction,
    .service-section,
    .services-cta {
        padding-block: 58px;
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-summary {
        grid-column: auto;
    }

    .service-number {
        width: 44px;
        height: 44px;
    }
}

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