/* Service-specific styles. The existing layout remains in assets/site.css. */
.services .service-card {
    position: relative;
    padding-bottom: 64px;
}

.ss-service-trigger {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

/* Reserve space for the cue beneath the service illustration. */
.ss-service-more {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.service-card:hover .ss-service-more,
.ss-service-trigger:focus-visible .ss-service-more {
    color: var(--orange);
}

.ss-service-trigger[hidden],
.ss-service-dialog:not([open]) {
    display: none;
}

.ss-service-trigger:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: -4px;
}

.ss-service-dialog :focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}

.ss-service-dialog {
    box-sizing: border-box;
    width: min(1000px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 48px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #202020;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

.ss-service-dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

.ss-service-dialog h2 {
    margin: 0 32px 24px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ss-service-dialog p {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ss-service-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: inherit;
    font: 28px / 1 sans-serif;
    cursor: pointer;
}

.ss-service-dialog .ss-service-quote {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-height: 48px;
    max-width: 100%;
    padding: 14px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--orange);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}


.ss-service-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 32px;
    align-items: start;
}
.ss-service-dialog .ss-service-eyebrow {
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ss-service-art {
    width: 200px;
    height: 220px;
    margin-top: 24px;
    object-fit: contain;
}
.ss-service-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}
.ss-service-sections section {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
}
.ss-service-sections h3 {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.35;
}
.ss-service-sections ul,
.ss-service-sections ol {
    margin: 0;
    padding-left: 22px;
}
.ss-service-sections li {
    margin-bottom: 12px;
    padding-left: 4px;
    font-size: 14px;
    line-height: 1.65;
}
.ss-service-sections li::marker {
    color: var(--orange);
    font-weight: 600;
}
.ss-service-sections li:last-child {
    margin-bottom: 0;
}
.ss-service-sections .ss-service-result {
    grid-column: 1 / -1;
    background: var(--warm);
}
.ss-service-result p {
    margin-bottom: 0;
}
.ss-service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ss-service-action p {
    max-width: 440px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}
@media (max-width: 700px) {
    .ss-service-heading,
    .ss-service-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ss-service-heading {
        position: relative;
        padding-top: 0;
    }
    .ss-service-art {
        display: none;
    }
    .ss-service-sections section {
        padding: 20px;
    }
    .ss-service-action {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .ss-service-dialog {
        padding: 56px 24px 28px;
        border-radius: 20px;
    }

    .ss-service-dialog .ss-service-quote {
        width: 100%;
    }
}
