/* Services section — #ydelser. Card composition transcribed from the
   export (.card / .image / .overlay / .content / .btn.more), measured off
   the rendered mockup rather than read from its class soup:
     card    neutral-200, radius 16, padding 8px 8px 0
     image   inset 8px, radius 8, height clamp(124px … 220px)
     badge   80x80 green at the image's top-left corner, icon right-16px
     content 56px side margins (20px mobile)
     more    full-width 48px row, 4px white top border, text at 56px,
             arrow at right-20px
   The export's flip interaction (Læs mere swaps in a detail panel) stays
   deferred — here the whole card is a link to the service page. */

.services {
    /* Tightened top pad: the highlight strip already ends on whitespace,
       so a full --section-pad above read as a gap (owner note 2026-07-18). */
    padding-top: var(--section-pad-sm);
    padding-bottom: var(--section-pad);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-24);
    margin-top: var(--space-32);
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-32);
    }
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-8) 0;
    border-radius: var(--radius-lg);
    background: var(--neutral-200);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--motion-micro);
}

.service-card:hover {
    background: var(--neutral-400);
}

.service-card__image {
    position: relative;
    display: block;
    height: clamp(124px, 68.8px + 11.52vw, 220px);
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.service-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--motion-reveal) var(--ease-out);
}

.service-card:hover .service-card__img {
    transform: scale(1.1);
}

/* Sits on the image's own top-left corner (both are inset 8px from the
   card edge, so the badge lines up with the image corner exactly). */
.service-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 56px;
    height: 56px;
    padding-right: var(--space-12);
    border-radius: var(--radius-sm);
    background: var(--green);
}

.service-card__badge img {
    width: 28px;
    height: 28px;
}

@media (min-width: 768px) {
    .service-card__badge {
        width: 80px;
        height: 80px;
        padding-right: var(--space-16);
    }

    .service-card__badge img {
        width: 32px;
        height: 32px;
    }
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
    /* Pushes the "Læs mere" row to the card's bottom edge so a short and a
       long card end at the same place in the 2-up grid. */
    flex-grow: 1;
    margin-inline: var(--space-20);
    padding-block: var(--space-28);
}

@media (min-width: 768px) {
    .service-card__body {
        gap: var(--space-28);
        margin-inline: 56px;
        padding-top: 48px;
        padding-bottom: var(--space-32);
    }
}

.service-card__name {
    color: var(--primary);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: 32px;
}

@media (min-width: 768px) {
    .service-card__name {
        font-size: var(--text-h3);
    }
}

.service-card__short {
    color: var(--secondary);
    font-size: var(--text-base);
    line-height: 28px;
}

/* Footer row: full card width, separated by a 4px white rule (the export
   uses white rather than a grey border — it reads as a gap in the tint). */
.service-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    height: 48px;
    margin-inline: calc(-1 * var(--space-8));
    padding-inline: var(--space-20) var(--space-20);
    border-top: 4px solid var(--white);
    color: var(--secondary);
    font-size: var(--text-sm);
    font-weight: 500;
}

@media (min-width: 768px) {
    .service-card__more {
        padding-inline: 56px var(--space-20);
    }
}

.service-card__more-arrow {
    display: inline-flex;
    color: var(--secondary);
    transition: transform var(--motion-micro);
}

.service-card:hover .service-card__more-arrow {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__img,
    .service-card__more-arrow {
        transition: none;
    }
}
