/* Block: services-panel */
.services-panel {
    padding: calc(54 * var(--tgc-u)) 0 calc(40 * var(--tgc-u));
}

.services-panel__inner {
    max-width: var(--tgc-container);
    margin: 0 auto;
    padding: 0 var(--tgc-gutter);
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: calc(80 * var(--tgc-u));
    align-items: start;
}

.services-panel__intro p {
    margin-bottom: calc(18 * var(--tgc-u));
    font-size: var(--tgc-text-body);
    line-height: 1.75;
    color: var(--tgc-ink-muted);
    max-width: 34ch;
}

.services-panel__intro p:last-child {
    margin-bottom: 0;
}

.service-item {
    border-bottom: 1px solid var(--tgc-line-soft);
}

.service-item:first-child {
    border-top: 1px solid var(--tgc-line-soft);
}

.service-item__summary {
    display: flex;
    align-items: center;
    gap: calc(55 * var(--tgc-u));
    padding: calc(15 * var(--tgc-u)) 4px;
    cursor: pointer;
    list-style: none;
}

/*
 * Figma gives every row its own mark in a 60px slot, and they are different
 * widths (39.8 to 60), so the box is fixed and the art centres inside it —
 * otherwise the titles would not line up with each other.
 */
.service-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: calc(60 * var(--tgc-u));
    height: calc(60 * var(--tgc-u));
    /* The marks take their colour from the context, the same as .motif does —
       violet solids on cream here, white on the violet service hero. */
    color: var(--tgc-violet);
    --tgc-motif-accent: var(--tgc-lilac);
}

.service-item__icon svg {
    width: auto;
    height: 100%;
    max-width: 100%;
}

.service-item__summary::-webkit-details-marker {
    display: none;
}

/* Same type as the accordion on the service pages (accordion-item.css). */
.service-item__title {
    flex: 1;
    font-size: calc(20 * var(--tgc-ut));
    font-weight: 500;
    line-height: calc(30 * var(--tgc-ut));
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--tgc-ink);
}

.service-item__chevron {
    display: inline-flex;
    color: var(--tgc-ink);
    transition: transform 0.25s ease;
}

.service-item__chevron svg {
    display: block;
    width: calc(17.5 * var(--tgc-u));
    height: 10px;
}

.service-item[open] .service-item__chevron {
    transform: rotate(180deg);
}

.service-item__summary:hover .service-item__title {
    color: var(--tgc-violet);
}

.service-item__summary:focus-visible {
    outline: 2px solid var(--tgc-violet);
    outline-offset: 2px;
}

.service-item__body {
    /* Aligns with the title, which sits past the summary's own 4px, the 60
       icon slot and the 55 gap. */
    padding: 0 4px calc(22 * var(--tgc-u)) calc(4px + 115 * var(--tgc-u));
}

.service-item__body p {
    font-size: calc(20 * var(--tgc-ut));
    line-height: calc(30 * var(--tgc-ut));
    color: var(--tgc-ink-muted);
    max-width: 56ch;
}

.service-item__cta {
    margin-top: calc(26 * var(--tgc-u));
}

/*
 * The marks turn slowly all the time, like the Expertise list on
 * slowdowncreative.com that the client pointed to.
 */
.service-item__icon svg {
    animation: tgc-spin 24s linear infinite;
}

.service-item:nth-child(2n) .service-item__icon svg {
    animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
    .service-item__icon svg {
        animation: none;
    }
}

@media (max-width: 968px) {
    .services-panel__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 20px;
    }

    .services-panel__intro p {
        max-width: none;
    }
}
