/* Highlight strip — values transcribed from the designer's export CSS
   (swiper-slide items after #forside): white band, icon-box 80px (68 mobile)
   on neutral-200, icon 48px growing to 64px on hover (44→56 mobile),
   box bg → white on hover.
   3.2: the wrapping grid became a horizontal scroll-snap rail (the export
   uses a swiper here). Touch swipe and keyboard scrolling are native — JS
   only adds mouse drag and the optional auto-advance. Items per view stay
   1 / 2 / 3 so the strip looks the same at rest as the Stage 2 grid. */

.highlights {
    padding-top: clamp(36px, 24.5px + 2.4vw, 56px);
    /* Less below than above: the services section that follows brings its
       own top padding, and the two together read as a gap (owner note). */
    padding-bottom: var(--space-24);
    background: var(--white);
}

.highlights__viewport {
    position: relative;
    max-width: var(--container-max);
    margin-inline: auto;
}

/* Arrow controls — ship hidden, revealed by js/slider.js.
   They sit in a reserved gutter beside the rail rather than floating over
   it: overlapping arrows covered the first and last card (owner note
   2026-07-18). Below 1024px there is no room for a gutter, so they stay
   hidden and the rail is swipe-only — which is the native gesture there.
   Styling follows the page's other circular control (.login-btn__icon):
   neutral-200 chip, green icon on hover, no drop shadow. */
.highlights__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius-pill);
    background: var(--neutral-200);
    color: var(--secondary);
    cursor: pointer;
    transition: background-color var(--motion-micro), color var(--motion-micro);
}

.highlights__nav:hover {
    background: var(--neutral-400);
    color: var(--green-dark);
}

.highlights__nav--prev {
    left: 0;
    rotate: 180deg;
}

.highlights__nav--next {
    right: 0;
}

@media (min-width: 1024px) {
    /* Gutter for the arrows; the rail's own padding is removed to match, so
       the cards keep their original width. */
    .highlights__viewport {
        padding-inline: 56px;
    }

    .highlights__nav:not([hidden]) {
        display: flex;
    }

    .highlights__container {
        padding-inline: 0;
    }
}

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

.highlights__container {
    --rail-gap: var(--space-24);
    --rail-per-view: 1;
    /* Leave the next item peeking in: the scrollbar is hidden, so this edge
       is the only cue that the strip scrolls. */
    --rail-peek: 32px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(
        (100% - var(--rail-peek) - (var(--rail-per-view) - 1) * var(--rail-gap)) / var(--rail-per-view)
    );
    gap: var(--rail-gap);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-24);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.highlights__container::-webkit-scrollbar {
    display: none;
}

.highlights__container.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

@media (min-width: 768px) {
    .highlights__container {
        --rail-gap: var(--space-32);
        --rail-per-view: 2;
    }
}

@media (min-width: 1024px) {
    .highlights__container {
        --rail-per-view: 3;
    }
}

.highlight {
    scroll-snap-align: start;
    --icon-box-bg: var(--neutral-200);
    --icon-scale-size: 44px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-16);
    color: inherit;
    text-decoration: none;
}

.highlight:hover {
    --icon-box-bg: var(--white);
    --icon-scale-size: 56px;
    color: inherit;
}

@media (min-width: 768px) {
    .highlight {
        --icon-scale-size: 48px;
        gap: var(--space-20);
    }

    .highlight:hover {
        --icon-scale-size: 64px;
    }
}

.highlight__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 68px;
    min-height: 68px;
    border-radius: var(--radius-sm);
    background: var(--icon-box-bg);
    transition: background-color var(--motion-micro) ease;
}

@media (min-width: 768px) {
    .highlight__icon-box {
        min-width: 80px;
        min-height: 80px;
    }
}

.highlight__icon {
    width: var(--icon-scale-size);
    height: var(--icon-scale-size);
    transition: width var(--motion-micro) ease, height var(--motion-micro) ease;
}

@media (prefers-reduced-motion: reduce) {
    .highlight__icon,
    .highlight__icon-box {
        transition: none;
    }
}

.highlight__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding-top: var(--space-4);
}

@media (min-width: 768px) {
    .highlight__text {
        gap: 12px;
    }
}

.highlight__name {
    color: var(--primary);
    font-size: var(--text-button);
    font-weight: 600;
    line-height: 24px;
}

.highlight__blurb {
    color: var(--secondary);
    font-size: var(--text-sm);
    line-height: 22px;
}
