/* Palvelut: kolme tekstilaatikkoa (sama ruudukko kuin toimeksiannot-korteilla) */

.service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.service-card h2 {
    margin: 0 0 0.65em;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
}

.service-card p:last-child,
.service-card ul:last-child {
    margin-bottom: 0;
}

.service-card ul {
    margin: 0.5em 0 1em;
    padding-left: 1.25em;
}

.palvelut-about {
    margin-top: clamp(2rem, 5vw, 3.75rem);
}

/* Vuorottelevat kuva + teksti -osiot (split-band), käytössä vain sivuilla joilla sections_layout */

.split-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.75rem);
}

.split-band {
    display: grid;
    /* Kuva ~2/3, teksti ~1/3 (DOM: kuva | teksti) */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.75rem);
    align-items: center;
}

/* Teksti vasemmalla, kuva oikealla: sarakkeet teksti | kuva → 1fr | 2fr */
.split-band--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.split-band--reverse .split-band__media {
    order: 2;
}

.split-band--reverse .split-band__body {
    order: 1;
}

.split-band__media {
    margin: 0;
}

.split-band__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.split-band__media--credited {
    position: relative;
}

.split-band__credit {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 1.75rem 0.5rem 0.35rem;
    font-size: 0.625rem;
    line-height: 1.25;
    text-align: right;
    color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
}

.split-band__credit a:link,
.split-band__credit a:visited {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 1px;
}

.split-band__credit a:hover,
.split-band__credit a:active {
    color: #fff;
    background: transparent;
}

.split-band__body h2 {
    margin-top: 0;
    margin-bottom: 0.65em;
}

.split-band__body p:last-child {
    margin-bottom: 0;
}

.split-foot {
    max-width: min(42rem, 100%);
    margin: 0;
}

.split-foot p:last-child {
    margin-bottom: 0;
}

/* Täysleveä tekstiosio (esim. FAQ), ilman kuvaa — erottuu split-band -riveistä */
.content-faq {
    width: 100%;
    max-width: none;
    margin: clamp(2rem, 5vw, 3rem) 0 0;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(0.25rem, 1vw, 0.5rem);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.content-faq h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
}

.content-faq__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-faq details {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.content-faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.content-faq summary::-webkit-details-marker {
    display: none;
}

.content-faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.35em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    opacity: 0.55;
}

.content-faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 0.2em;
}

.content-faq .content-faq__answer {
    margin: 0;
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.98rem;
    line-height: 1.5;
}

.content-faq .content-faq__answer p:first-child {
    margin-top: 0.75rem;
}

.content-faq .content-faq__answer p:last-child {
    margin-bottom: 0;
}

.content-faq summary:focus-visible {
    outline: 2px solid #c74350;
    outline-offset: 2px;
}

@media (max-width: 52rem) {
    .split-band {
        grid-template-columns: 1fr;
    }

    .split-band--reverse .split-band__media,
    .split-band--reverse .split-band__body {
        order: unset;
    }

    .split-band__media {
        max-width: 36rem;
    }
}
