/* ── Dining feature — The WinePress ──────────────────────────
   Figma: desktop 1397:12228, mobile 1397:11945.
   ─────────────────────────────────────────────────────────── */

.dining-feature {
    container-type: inline-size; /* cqw: the full width, for --edge */
    display: flex;
    background: var(--color-teal);
    color: var(--color-canvas);
}

.dining-feature__media {
    position: relative;
    flex: 0 0 50%;
}

.dining-feature__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dining-feature__panel {
    display: flex;
    flex-direction: column;
    gap: 60px;
    flex: 1;
    min-width: 0;
    --panel-x: 96px;
    padding: 80px var(--panel-x);
}

.dining-feature__words {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dining-feature__eyebrow {
    max-width: 500px;
    color: var(--color-canvas);
}

.dining-feature__title {
    line-height: 1.11; /* "The" is set at 72px / 1.05 in Figma */
    color: var(--color-on-dark);
}

.dining-feature__title em {
    color: var(--color-ochre);
}

.dining-feature__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
}

.dining-feature__actions {
    display: flex;
    flex-wrap: wrap; /* a third link (Christmas party nights →) goes onto its own line when there isn't room */
    align-items: center;
    gap: 40px;
}


/* Laptop — 1366px and below: less room round the panel */
@media (max-width: 1366px) {
    .dining-feature__panel {
        --panel-x: 64px;
        padding: 64px;
    }
}

/* Tablet and mobile — 1024px and below: picture on top */
@media (max-width: 1024px) {
    .dining-feature {
        flex-direction: column;
    }

    .dining-feature__media {
        flex: none;
        aspect-ratio: 4 / 3;
    }

    .dining-feature__panel {
        gap: 32px;
        padding: var(--section-y) var(--pad-x);
    }

    .dining-feature__words {
        gap: 16px;
    }

    .dining-feature__title {
        line-height: 1.06;
    }

    .dining-feature__eyebrow {
        font-size: 12px;
        letter-spacing: 3.84px;
    }

    .dining-feature__text {
        gap: 16px;
    }

    .dining-feature__actions {
        flex-direction: column;
        gap: 20px;
    }

    .dining-feature__primary {
        width: 100%;
    }
}


/* ── Dark — Meetings & Events, Private dining ────────────────
   Figma: 1366:85453 (Spaces page 1366:77106). Beamwood, the
   picture on the right, an ochre eyebrow and figures.
   ─────────────────────────────────────────────────────────── */
.dining-feature--dark {
    flex-direction: row-reverse;
    background: var(--color-beamwood);
}

.dining-feature--dark .dining-feature__panel {
    justify-content: center;
    gap: 24px;
    padding: 64px var(--panel-x);
}

.dining-feature--dark .dining-feature__words {
    gap: 24px;
}

.dining-feature--dark .dining-feature__eyebrow {
    color: var(--color-ochre);
}

.dining-feature--dark .dining-feature__title {
    font-size: 64px;
    line-height: 0.9;
    letter-spacing: -0.96px;
}

.dining-feature--dark .dining-feature__actions {
    gap: 24px;
    padding-top: 16px;
}

/* The figures in one row, upright, ochre labels, no rule */
.dining-feature--dark .stats--dining::before {
    display: none;
}

.dining-feature--dark .stats--dining .stats__list {
    grid-template-columns: repeat(3, max-content);
    gap: 20px 60px;
}

.dining-feature--dark .stats--dining .stats__item {
    gap: 4px;
}

.dining-feature--dark .stats--dining .stats__figure {
    font-size: 40px;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.dining-feature--dark .stats--dining .stats__label {
    color: var(--color-ochre);
}

@media (max-width: 1366px) {
    .dining-feature--dark .dining-feature__panel {
        --panel-x: 64px;
        padding: 64px;
    }
}

@media (max-width: 1024px) {
    .dining-feature--dark {
        flex-direction: column;
    }

    .dining-feature--dark .dining-feature__panel {
        padding: var(--section-y) var(--pad-x);
    }

    .dining-feature--dark .stats--dining .stats__list {
        gap: 20px 32px;
    }

    .dining-feature--dark .stats--dining .stats__figure {
        font-size: 32px;
    }

    .dining-feature--dark .dining-feature__title {
        font-size: 40px;
        line-height: 1.06;
        letter-spacing: -0.4px;
    }
}


/* Desktop: the words keep to the site's content box — on wide screens the
   panel's outer side is at least the content margin (--edge), so the text
   lines up with the rest of the page; the colour still runs to the edge. */
@media (min-width: 1025px) {
    .dining-feature > .dining-feature__panel {
        --edge: max(var(--pad-x), calc((100cqw - var(--site-max-w)) / 2));
        padding-right: max(var(--panel-x), var(--edge));
    }

    /* Dark: the picture on the right, the words' outer side the left */
    .dining-feature--dark > .dining-feature__panel {
        padding-right: var(--panel-x);
        padding-left: max(var(--panel-x), var(--edge));
    }
}
