/* =====================================================================
   VENUES — NHÀ HÀNG PHÌ LŨ
   Phase 12 — public venue selection and per-venue hall grid.

   Sections:
     1. Homepage venue cards (.venues + .venue-card)
     2. Standalone /tiec-cuoi venue selection page (.venues-page)
     3. Per-venue hall grid (.venue-hall-grid + .venue-hall-card)

   All classes use the `venue-` prefix so they never collide with the
   homepage `.hall-*` rules or the halls listing `.halls-*` rules.
   ===================================================================== */

/* ---------- Homepage venue section (.venues) ----------
   Cream-yellow page tint so the venue cards (which carry the same
   cream-yellow "paper" inside their gold border) read as physical
   invitation cards resting on a single surface — the cream flows
   from the page into the card, leaving the champagne border +
   chamfered inner frame + corner dots to do the invitation work. */
.venues {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
    background-color: var(--color-card-cream);
}

.venues .section-head--center {
    margin-bottom: var(--space-10);
}

/* Two venue cards side-by-side from 480px and up.
   Below that (very narrow phones) we still stack to keep each
   card readable. The grid is tightened on the smallest breakpoint
   so the 2-column row reads as a balanced pair rather than a stack. */
.venues__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8) var(--space-5);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Venue card (shared) ---------- */
.venue-card {
    background-color: transparent;
}

.venue-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Cream-paper card: the image sits ON TOP of a warm cream paper
   backing (think of a wedding invitation card — aged stationery with
   a photo mounted in the middle). The padding reveals a generous
   cream border; the inner gold frame lives in that border; small
   decorative gold dots sit at the four outer corners like real
   invitation ornaments. */
.venue-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-card-cream);
    margin-bottom: var(--space-6);
    border: 1.5px solid var(--color-champagne);
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
    transition: border-color var(--dur-base) var(--ease-soft),
                box-shadow var(--dur-base) var(--ease-soft);
    /* Subtle lift off the page — reads as a physical invitation card. */
    box-shadow: 0 8px 24px rgba(74, 58, 46, 0.08);
}

.venue-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 720ms var(--ease-soft);
    /* Tiny drop on the photo so it reads as a print glued on the paper. */
    box-shadow: 0 2px 6px rgba(74, 58, 46, 0.12);
}

/* Inner gold chamfered frame — sits in the cream border just outside
   the photo edge. Slightly inset from the padding so a thin cream
   gap shows between the frame and the photo (the photo is mounted
   on the cream, the frame is printed around it). */
.venue-card__media::before {
    content: "";
    position: absolute;
    inset: calc(clamp(1.25rem, 2.4vw, 1.75rem) - 8px);
    border: 1px solid var(--color-champagne);
    pointer-events: none;
    z-index: 3;
    transition: border-color var(--dur-base) var(--ease-soft);
    clip-path: polygon(
        14px 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        14px 100%,
        0 calc(100% - 14px),
        0 14px
    );
}

/* Decorative gold corner ornaments — four small dots on the cream
   paper, between the chamfered frame and the outer gold border.
   Pure CSS via four radial-gradient backgrounds, one per corner. */
.venue-card__media::after {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    z-index: 4;
    background:
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) top left / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) top right / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) bottom left / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) bottom right / 6px 6px no-repeat;
}

.venue-card__link:hover .venue-card__media > img,
.venue-card__link:focus-visible .venue-card__media > img {
    transform: scale(1.035);
}

.venue-card__body {
    text-align: center;
    padding: 0 var(--space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.venue-card__meta {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--color-muted-brown);
    margin-bottom: var(--space-3);
}

.venue-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-ink);
    margin-bottom: var(--space-3);
    /* Keep long Phì Lũ title on one line — scale-down at very narrow widths. */
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
}

.venue-card__desc {
    font-size: var(--fs-body);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-muted-brown);
    line-height: 1.7;
    max-width: 48ch;
    margin-bottom: var(--space-2);
}

.venue-card .link-arrow--inline {
    margin-top: var(--space-5);
}

/* ---------- Standalone /tiec-cuoi venue selection ---------- */
.venues-page {
    padding-top: var(--space-10);
    padding-bottom: var(--space-12);
    background-color: var(--color-paper);
}

.venues-page__head {
    max-width: 760px;
    margin: 0 auto var(--space-10);
    text-align: center;
}

.venues-page__head .eyebrow {
    justify-content: center;
}

.venues-page__title {
    font-size: var(--fs-h1);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--color-ink);
}

.venues-page__title span {
    display: block;
}

.venues-page__title span:nth-child(even) {
    font-style: italic;
    color: var(--color-brown);
}

.venues-page__lede {
    margin-top: var(--space-5);
    font-size: var(--fs-body-lg);
    color: var(--color-muted-brown);
    line-height: 1.75;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.venues-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-9) var(--space-7);
    margin-bottom: var(--space-10);
}

.venue-card--page .venue-card__title {
    font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
}

.venues-page__cta {
    text-align: center;
}

.venues-page__cta-note {
    max-width: 56ch;
    margin: 0 auto var(--space-6);
    font-size: var(--fs-body-lg);
    color: var(--color-muted-brown);
    line-height: 1.7;
}

.venues-page__cta .btn {
    margin-bottom: var(--space-3);
}

.venues-page__cta-home {
    margin-top: var(--space-3);
}

@media (min-width: 480px) {
    .venues__grid,
    .venues-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-9) var(--space-6);
    }
}

@media (min-width: 1024px) {
    .venues__grid,
    .venues-page__grid {
        gap: var(--space-10) var(--space-8);
    }
}

/* ---------- Per-venue hall grid (.venue-hall-grid) ---------- */
.venue-hall-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8) var(--space-6);
    margin-bottom: var(--space-10);
}

.venue-hall-card {
    background-color: transparent;
}

.venue-hall-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.venue-hall-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-card-cream);
    margin-bottom: var(--space-5);
    border: 1.5px solid var(--color-champagne);
    padding: clamp(1.125rem, 2.2vw, 1.5rem);
    transition: border-color var(--dur-base) var(--ease-soft),
                box-shadow var(--dur-base) var(--ease-soft);
    box-shadow: 0 8px 24px rgba(74, 58, 46, 0.08);
}

.venue-hall-card__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 720ms var(--ease-soft);
    box-shadow: 0 2px 6px rgba(74, 58, 46, 0.12);
}

/* Inner gold chamfered frame — same envelope-cut as venue cards, scaled
   down slightly for the smaller hall cards. Sits in the cream border
   just outside the photo so a thin cream gap shows between the frame
   and the photo edge. */
.venue-hall-card__media::before {
    content: "";
    position: absolute;
    inset: calc(clamp(1.125rem, 2.2vw, 1.5rem) - 7px);
    border: 1px solid var(--color-champagne);
    pointer-events: none;
    z-index: 3;
    transition: border-color var(--dur-base) var(--ease-soft);
    clip-path: polygon(
        12px 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        12px 100%,
        0 calc(100% - 12px),
        0 12px
    );
}

/* Decorative gold corner ornaments — four small dots on the cream
   paper. Same vocabulary as venue cards so every card type reads
   as the same invitation style. */
.venue-hall-card__media::after {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    z-index: 4;
    background:
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) top left / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) top right / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) bottom left / 6px 6px no-repeat,
        radial-gradient(circle, var(--color-champagne) 2px, transparent 2.5px) bottom right / 6px 6px no-repeat;
}

.venue-hall-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--fs-body-sm);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted-brown);
    background:
        linear-gradient(135deg, transparent 49%, var(--color-line) 49% 51%, transparent 51%) center / 22px 22px no-repeat,
        var(--color-cream);
}

.venue-hall-card__link:hover .venue-hall-card__media,
.venue-hall-card__link:focus-visible .venue-hall-card__media {
    border-color: var(--color-brown);
    box-shadow: 0 12px 30px rgba(74, 58, 46, 0.14);
}

.venue-hall-card__link:hover .venue-hall-card__media > img,
.venue-hall-card__link:focus-visible .venue-hall-card__media > img {
    transform: scale(1.04);
}

.venue-hall-card__body {
    text-align: center;
    padding: 0 var(--space-2);
}

.venue-hall-card__meta {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    letter-spacing: 0.005em;
}

.venue-hall-card__capacity {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-brown);
    margin: 0 0 var(--space-2);
}

.venue-hall-card .link-arrow--inline {
    margin-top: var(--space-5);
}

/* The 2x2 desktop grid: exactly 2 columns, 2 rows visible at once. */
@media (min-width: 720px) {
    .venue-hall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-9) var(--space-7);
    }
}

/* ---------- Venue page header (shared) ---------- */
.halls-venue .halls-page__title {
    font-size: var(--fs-h1);
}

.halls-page__cta-back {
    display: inline-flex;
    margin-bottom: var(--space-6);
    letter-spacing: 0.18em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .venue-card__media img,
    .venue-hall-card__media img {
        transition: none;
    }
}
