/* Services page (services.html). Reuses the page head and tags from case-index.css. The
   industry panels are stacked on the right; the list on the left stays pinned and
   scroll-list.js marks the panel being read, after roboflow.com. */

.service-catalogue {
    padding: clamp(56px, 4vw + 32px, 96px) 0;
}

.service-switcher {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 112px);
    align-items: start;
}

.service-index {
    position: sticky;
    top: 110px;
}

.service-tabs-label {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-line);
}

.service-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.2;
    transition: color .2s ease;
}

.service-nav-link:hover,
.service-nav-link[aria-current="true"] {
    color: var(--color-ink);
}

/* Fills as the matching panel scrolls past (--progress is set by scroll-list.js). */
.service-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: calc(var(--progress, 0) * 100%);
    height: 2px;
    background: var(--color-accent-deep);
    opacity: 0;
    transition: opacity .2s ease;
}

.service-nav-link[aria-current="true"]::after {
    opacity: 1;
}

.service-tab-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--color-muted);
    background: var(--color-paper-soft);
    box-shadow: inset 0 0 0 1px var(--color-line);
    transition: color .2s ease, background .2s ease;
}

/* Lime fails contrast on light surfaces, so the current icon uses the deep green. */
.service-nav-link[aria-current="true"] .service-tab-icon {
    color: var(--color-accent-deep);
    background: rgba(124, 252, 0, .18);
    box-shadow: none;
}

.service-skip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: var(--space-4);
    padding: 0 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: border-color .2s ease;
}

.service-skip:hover {
    border-color: var(--color-ink);
}

.service-panels {
    display: grid;
    gap: clamp(64px, 6vw, 112px);
}

.service-panel {
    scroll-margin-top: 110px;
}

.service-media {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--space-4);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-ink);
}

.service-media video,
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-panel h3 {
    margin: 0 0 12px;
    color: var(--color-ink);
    font-size: clamp(32px, 1.6vw + 20px, 44px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.service-panel h3 + p {
    max-width: 600px;
    margin: 0 0 var(--space-3);
    color: var(--color-muted);
    font-size: 17px;
    line-height: 26px;
}

.service-points-label {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-panel .service-points {
    margin-bottom: var(--space-4);
}

.service-points {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-points li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-ink);
    font-size: 14px;
    line-height: 20px;
}

.service-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-deep);
}

.service-proofs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-2);
}

/* Proof card: the client, the result from its case study, and a link to read it. */
.service-proof {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: var(--space-3);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-paper);
    transition: border-color .2s ease;
}

.service-proof:hover {
    border-color: var(--color-ink);
}

.service-proof--ask {
    border-style: dashed;
}

.service-proof-result {
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.service-proof-result mark {
    padding: 0 4px;
    color: inherit;
    background: rgba(124, 252, 0, .32);
}

.service-proof-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-accent-deep);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-proof-link svg {
    transition: transform .2s var(--ease-out);
}

.service-proof:hover .service-proof-link svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    /* On a phone the panels simply stack; the pinned list would cover them. */
    .service-switcher {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-index {
        display: none;
    }
}

@media (max-width: 600px) {
    .service-media {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-nav-link::after,
    .service-proof-link svg {
        transition: none;
    }
}
