/* ── Offer groups ────────────────────────────────────────────
   Figma (Christmas): desktop 1628:9562, mobile 1628:9322.
   Each group 32px above and below (24px on phones, the last 48px),
   40px from its heading to its cards, the line under the heading 8px.
   ─────────────────────────────────────────────────────────── */

.offer-groups__group {
    padding: 32px var(--pad-x);
}

.offer-groups__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.offer-groups__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* A panel (Christmas Residential) and the cards after it are two sections
   in the Figma: 32 + 32 between them. */
.offer-groups__panel + .offer-groups__cards {
    margin-top: 24px;
}

/* The heading, and a copper rule out to the edge */
.offer-groups__heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.offer-groups__heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-copper);
}

.offer-groups__title {
    flex: 0 1 auto;
    font-size: 40px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.offer-groups__text {
    max-width: none; /* one line across, as the Figma (1628:9612) */
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
}

.offer-groups__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.offer-groups .card {
    --card-image-h: auto;
    gap: 9px;
}

.offer-groups .card__text {
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.07px;
    color: var(--color-ink-soft);
}

/* Desktop (Figma 1628:9612): three across, the pictures 421 × 380, the
   price with Enquire at the right; four across (the lunches, 1628:9649),
   the pictures 316 × 240 and Enquire under the price. */
.offer-groups__cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-groups .card__media {
    aspect-ratio: 421 / 380;
}

.offer-groups__cards--four .card__media {
    aspect-ratio: 316 / 240;
}

.offer-groups .card__price {
    font-size: 20px;
}

.offer-groups__cards--four .card__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}


/* Tablet — 1024px and below: two across */
@media (max-width: 1024px) {
    .offer-groups__group {
        padding: 24px var(--pad-x);
    }

    .offer-groups__group:last-child {
        padding-bottom: 48px;
    }

    .offer-groups__panel + .offer-groups__cards {
        margin-top: 0;
    }

    .offer-groups__inner,
    .offer-groups__header {
        gap: 20px;
    }

    .offer-groups__title {
        font-size: 24px;
        line-height: 1.18;
        letter-spacing: -0.12px;
    }

    .offer-groups__cards,
    .offer-groups__cards--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* Tablet and phones (Figma 1628:9322): 353 × 267, the price over Enquire */
    .offer-groups .card__media,
    .offer-groups__cards--four .card__media {
        aspect-ratio: 353 / 267;
    }

    .offer-groups .card__price {
        font-size: 16px;
    }

    .offer-groups .card__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Mobile — 767px and below: one under another */
@media (max-width: 767px) {
    .offer-groups__cards,
    .offer-groups__cards--four {
        grid-template-columns: minmax(0, 1fr);
    }
}
