/* ==========================================================================
   INNER PAGES
   --------------------------------------------------------------------------
   Brings events, gallery and celebration-cakes onto the homepage's visual
   language: cinematic left-aligned heroes, the same section rhythm, eyebrow
   with a rule, and one display type scale.

   This maps the pages' existing class names onto the new system rather than
   rewriting their markup, so page content stays exactly where it is.
   ========================================================================== */

/* ─── HEROES ─────────────────────────────────────────────
   Were centred boxes with the logomark stacked above the copy. Now they match
   the homepage: full-height, image-led, type anchored bottom-left. */
.hero-ev,
.hero-ck,
.hero-ab {
    position: relative;
    min-height: var(--hero-height);
    display: flex;
    align-items: flex-end;
    padding: 0;
    text-align: left;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Scrim so the copy holds up over any photograph. */
/* These heroes already blended their photo with a 60-70% black overlay via
   background-blend-mode. With the shared scrim on top that darkened twice, so
   the images were barely visible. Re-declare each background as just the
   photograph and let the scrim do all the darkening, exactly like the
   homepage hero does. */
.hero-ev { background-image: url(img/kg-img/event-gallery/event17.jpg); }
.hero-ck { background-image: url(img/cheese-cakes/Wedding-Cheese-Cake-portrait.JPG); }
.hero-ab { background-image: url(img/kg-img/event-gallery/event9.JPG); }

.hero-ev,
.hero-ck,
.hero-ab { background-blend-mode: normal; }

.hero-ev::before,
.hero-ck::before,
.hero-ab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hero-scrim);
}

.hero-ev .hero-container,
.hero-ck .hero-container,
.hero-ab .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4.5rem;
    display: block;
    text-align: left;
}

/* The homepage hero carries no logomark, so hide it here too. */
.hero-ev .logo,
.hero-ck .logo,
.hero-ab .logo { display: none; }

.hero-ev .hero-text,
.hero-ck .hero-text,
.hero-ab .hero-text { max-width: none; }

.hero-ev .hero-text h1,
.hero-ck .hero-text h1,
.hero-ab .hero-text h1 {
    font-family: var(--font-family-display);
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #fffef7;
    text-shadow: 0 2px 24px rgba(6, 22, 14, 0.45);
    margin: 0 0 1.2rem;
    max-width: 16ch;
    text-wrap: balance;
}

.hero-ev .hero-text p,
.hero-ck .hero-text p,
.hero-ab .hero-text p {
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 254, 247, 0.85);
    text-shadow: 0 1px 16px rgba(6, 22, 14, 0.5);
    max-width: 52ch;
    margin: 0 0 1.8rem;
}

.hero-ev .hero-text p i,
.hero-ck .hero-text p i,
.hero-ab .hero-text p i { color: #f7cdbd; }

.hero-ev .hero-buttons-container,
.hero-ck .hero-buttons-container,
.hero-ab .hero-buttons-container {
    justify-content: flex-start;
    gap: 0.9rem;
    width: auto;
    margin-top: 0;
    flex-wrap: wrap;
}

/* Hero buttons: light outline on the dark scrim, matching the homepage. */
.hero-ev .hero-button,
.hero-ck .hero-button,
.hero-ab .hero-button {
    color: #fffef7;
    border-color: #fffef7;
}

.hero-ev .hero-button:hover,
.hero-ck .hero-button:hover,
.hero-ab .hero-button:hover {
    background: rgba(255, 254, 247, 0.12);
    color: #fffef7;
}

@media (max-width: 760px) {
    .hero-ev, .hero-ck, .hero-ab { min-height: var(--hero-height-sm); }
    /* These heroes anchor their copy to the bottom. With no top padding the
       hero's full height sat above the text as dead space. Worse, on a real
       phone svh is smaller than a desktop emulator suggests, so the hero
       shrinks, the copy is pushed up and the heading ends up almost touching
       the opening-hours bar. The navbar ends at 96px and the bar at 130px,
       so 12rem is what actually guarantees clearance on a short screen. On a
       tall one the hero floats the copy lower anyway and this is inert. */
    .hero-ev .hero-container,
    .hero-ck .hero-container,
    .hero-ab .hero-container { padding: 12rem 1.4rem 3.5rem; }
}

/* ─── SECTION RHYTHM ─────────────────────────────────────
   One container width and one vertical rhythm across the inner pages. */
.deals-section,
.events-section,
.ck-cakes-section,
.ck-extras-section,
.gallery-section,
.vouchers-how {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) 2rem;
}

@media (max-width: 760px) {
    .deals-section,
    .events-section,
    .ck-cakes-section,
    .ck-extras-section,
    .gallery-section,
    .vouchers-how { padding: var(--space-2xl) 1.4rem; }
}

/* ─── SECTION HEADERS ────────────────────────────────────
   Left-aligned, eyebrow with a rule, big display heading. */
.deals-header,
.events-header,
.ck-cakes-header,
.gallery-header {
    text-align: left;
    align-items: flex-start;
    max-width: 60ch;
    margin: 0 0 var(--space-xl);
}

.deals-header .reviews-label,
.events-header .reviews-label,
.ck-cakes-header .ck-eyebrow,
.gallery-header .green-eyebrow {
    justify-content: flex-start;
}

.deals-header .reviews-label::before,
.events-header .reviews-label::before,
.hours-section .hours-eyebrow::before,
.location-header .location-eyebrow::before { content: none; }

.deals-title,
.ck-cakes-title,
.gallery-title {
    font-size: var(--step-4);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
    max-width: 20ch;
}

.deals-subtitle,
.ck-cakes-subtitle,
.gallery-subtitle {
    margin: 1.1rem 0 0;
    max-width: 54ch;
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-secondary);
    /* these were styled as eyebrows in places, reset them to body copy */
    letter-spacing: normal;
    text-transform: none;
}

.deals-header .reviews-divider,
.ck-cakes-header .reviews-divider,
.gallery-header .reviews-divider { display: none; }

/* ─── CARDS ──────────────────────────────────────────── */
.deal-card,
.ck-cake-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-sm);
}

.deal-day,
.ck-cake-name {
    font-family: var(--font-family-display);
    letter-spacing: -0.015em;
}

/* foundations.css centres these headings for the old centred layouts; on the
   redesigned inner pages they align left with the hero instead. */
.deals-header .deals-title,
.location-header .location-title,
.ck-cakes-header .ck-cakes-title,
.gallery-header .gallery-title {
    margin-left: 0;
    margin-right: 0;
}

.deals-header .deals-subtitle,
.ck-cakes-header .ck-cakes-subtitle { margin-left: 0; margin-right: 0; }

/* Intro blocks: left-aligned like every other section header. */
.ck-intro,
.events-intro,
.vouchers-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) 2rem 0;
    text-align: left;
}

.ck-intro .ck-eyebrow,
.ck-intro .ck-eyebrow-dark { justify-content: flex-start; }

.ck-intro p,
.events-intro p {
    max-width: 60ch;
    margin-left: 0;
    margin-right: 0;
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .ck-intro, .events-intro, .vouchers-intro { padding: var(--space-xl) 1.4rem 0; }
}

/* ─── GALLERY ────────────────────────────────────────────
   The header and filters sit in the shared container; the photo grid stays
   full-bleed, which suits it. */
.gallery-header,
.gallery-filters {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.gallery-header {
    padding-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.gallery-filters {
    justify-content: flex-start;
    margin-bottom: var(--space-xl);
}

.gallery-header .gallery-title,
.gallery-header h2 {
    font-family: var(--font-family-display);
    font-size: var(--step-4);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--color-text-primary);
    margin: 0 0 0.8rem;
}

.gallery-header p {
    max-width: 54ch;
    margin: 0;
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.8;
    font-style: normal;
    color: var(--color-text-secondary);
}

@media (max-width: 760px) {
    .gallery-header, .gallery-filters { padding-left: 1.4rem; padding-right: 1.4rem; }
    .gallery-header { padding-top: var(--space-xl); }
}

/* ─── EVENTS GRID ────────────────────────────────────────
   Was four narrow columns, which made tall thin cards with the copy running
   over many short lines. Fewer, wider columns and tighter internals. */
.deals-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: none;
}

@media (max-width: 720px) {
    .deals-grid { grid-template-columns: 1fr; }
}

.deal-card {
    padding: 1.5rem 1.4rem;
    gap: 0.4rem;
}

.deal-card--img-top .deal-card__body {
    padding: 1.25rem 1.4rem 1.4rem;
    gap: 0.4rem;
}

/* Cap the image so a tall photo can't stretch the whole row. */
.deal-card__img {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.deal-day {
    font-family: var(--font-family-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--color-text-accent);
}

.deal-time {
    font-size: 0.8rem;
    margin-top: 0;
    /* Same colour as the heading, not muted, dates are worth reading at a
       glance rather than fading into the description. */
    color: var(--color-text-primary);
}

.deal-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: none;
    margin: 0.35rem 0 0;
}

/* Push the tag/button to the bottom so cards in a row line up. */
.deal-card .deal-tag,
.deal-card .toggle-btn,
.deal-card .add-to-cal-btn { margin-top: auto; }

/* Height comes mostly from the stacked footer items (tag, link, add-to-calendar
   each on their own line) plus a tall image band. Group the footer onto a
   wrapping row and shorten the image. */
.deal-card--img-top .deal-card__img {
    height: 132px;
}

.deal-card .deal-tag,
.deal-card .add-to-cal-btn,
.deal-card .toggle-btn {
    align-self: flex-start;
}

/* The tag row: everything after the description sits together and wraps. */
.deal-card__body,
.deal-card {
    row-gap: 0.35rem;
}

.deal-card .deal-tag + .deal-tag,
.deal-card .deal-tag + .add-to-cal-btn,
.deal-card .toggle-btn + .deal-tag { margin-top: 0.15rem; }

.deal-card .add-to-cal-btn {
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

.deal-card .toggle-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.68rem;
    margin-top: 0.35rem;
}

.deal-desc { margin-bottom: 0.15rem; }

/* ─── EVENTS: FULL-WIDTH LIST ────────────────────────────
   Was a 3-column grid of tall, narrow cards. Now one event per row, the full
   width of the page, so a real description fits without cramming. */

.event-group { margin-bottom: var(--space-2xl); }
.event-group:last-child { margin-bottom: 0; }

.event-group__title {
    font-family: var(--font-family-display);
    font-size: var(--step-2);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    margin: 0 0 0.4rem;
    max-width: none;
}

.event-group__note {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 62ch;
    margin: 0 0 1.4rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 1180px;
    margin: 0 auto;
}

.event-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease);
}

.event-row--clickable { cursor: pointer; }
.event-row:hover { box-shadow: var(--shadow-md); }

.event-row__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
}

.event-row__media--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.event-row:hover .event-row__media--photo img { transform: scale(1.04); }

/* Ticket posters keep their own design intact rather than being cropped to
   fill the box, the whole thing (title, price, illustration) stays visible. */
.event-row__media--poster {
    background: var(--color-bg-surface);
}

.event-row__media--poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
    box-sizing: border-box;
    display: block;
}

/* Partner logos (Tommy's, At Your Table) sit on white, exactly as they did
   in the old card layout. */
.event-row__media--partner {
    background: #fff;
    padding: 1.5rem;
}

.event-row__media--partner img {
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
}

/* Our own events get the brand plate instead of a photo, so nothing here
   relies on stock or borrowed photography. */
.event-row__media--brand {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(221, 90, 58, 0.22) 0%, rgba(221, 90, 58, 0) 55%),
        var(--color-bg-strong);
    padding: 1.5rem;
}

.event-row__media--brand img {
    max-width: 78%;
    max-height: 140px;
    object-fit: contain;
}

.event-row__body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.event-row__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-row__price {
    font-family: var(--font-family-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.event-row__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.event-row__actions .deal-tag,
.event-row__actions .add-to-cal-btn,
.event-row__actions .toggle-btn { margin-top: 0; }

/* "Save the date" / "coming soon" reads differently to "free, walk in". */
.deal-tag--soon {
    color: var(--color-text-accent);
    border-color: currentColor;
}

/* Mobile: a compact list row, rounded thumbnail pinned top-left rather than a
   full-bleed banner. The thumbnail is a fixed square so it never stretches to
   the card's height, and the description is clamped, the full version lives on
   the ticket page or in the walk modal. */
@media (max-width: 640px) {
    .event-list { gap: 0.65rem; }

    /* The inset lives on the row, not the thumbnail: a left margin on the
       thumbnail would overflow its own 64px track and steal the body's
       padding, collapsing the gap it was meant to create. */
    .event-row {
        grid-template-columns: 56px 1fr;
        padding-left: 0.5rem;
    }

    .event-row__media {
        width: 56px;
        height: 56px;
        min-height: 0;
        align-self: start;
        margin: 0.85rem 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .event-row__media--poster img { padding: 2px; }

    .event-row__media--partner,
    .event-row__media--brand { padding: 0.3rem; }

    .event-row__media--partner img,
    .event-row__media--brand img { max-width: 100%; max-height: 100%; }

    .event-row__body { padding: 0.8rem 0.6rem 0.85rem 1.05rem; gap: 0.1rem; }

    .event-row__top { gap: 0.5rem; }
    .deal-day { font-size: 0.88rem; }
    .deal-time { font-size: 0.74rem; }
    .event-row__price { font-size: 0.92rem; }

    .event-row__body .deal-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem;
        line-height: 1.45;
        margin: 0.25rem 0 0;
    }

    .event-row__actions { margin-top: 0.5rem; gap: 0.3rem; }

    .event-row__actions .deal-tag,
    .event-row__actions .add-to-cal-btn {
        font-size: 10px;
        padding: 3px 7px;
        letter-spacing: 0.03em;
    }

    .event-row__buy { padding: 0.42rem 0.85rem; font-size: 0.72rem; }
}

/* Tommy's side-by-side confirmed dates, replacing the old "next date" +
   toggle pattern now there are only ever a couple of these live at once. */


/* Quick jump links under the events intro, to the two sections below. */
.deals-header__jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}
