/* ============================================================
   Spaces page — 2026 design system
   ============================================================ */

/* ── Body wrapper ───────────────────────────────────────────── */
.spaces-body {
    font-family: 'Nunito Sans', system-ui, sans-serif;
    color: var(--color-black);
    background: var(--color-white);
}

/* ── Hero ───────────────────────────────────────────────────── */
.spaces-hero {
    background: var(--color-navy);
    color: var(--color-white);
}

.spaces-hero__inner {
    padding-block: 64px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.spaces-hero__eyebrow {
    color: var(--color-orange);
}

.spaces-hero__heading {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 72px;
    line-height: 1;
    text-transform: uppercase;
    max-width: 14em;
    text-wrap: balance;
}

.spaces-hero__intro {
    margin: 0;
    font-size: 20px;
    color: var(--color-footer-text);
    max-width: 40em;
}

/* ── Shared room heading ────────────────────────────────────── */
.spaces-room__heading {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--color-black);
}

/* ── Two-column room sections (Gaming, Youth gym) ──────────── */
.spaces-room {
    padding-block: 88px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
}

.spaces-room__media {
    flex: 1 1 520px;
    min-width: 0;
}

.spaces-room__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.spaces-room__text {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spaces-room__text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.spaces-room__credit {
    font-size: 16px !important;
    color: var(--color-text-muted);
}

/* ── The Vault (grey band, text-left + images-right) ────────── */
.spaces-vault {
    background: var(--color-light-grey);
}

.spaces-vault__inner {
    padding-block: 88px;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 48px;
    align-items: center;
}

.spaces-vault__text {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spaces-vault__text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.spaces-vault__images {
    flex: 1 1 520px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.spaces-vault__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* ── More rooms (grey band, card grid) ──────────────────────── */
.spaces-more {
    background: var(--color-light-grey);
}

.spaces-more__inner {
    padding-block: 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.spaces-more__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* ── Room card ──────────────────────────────────────────────── */
.spaces-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
}

.spaces-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.spaces-card__media--navy {
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spaces-card__name-tile {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
    padding-inline: 16px;
    line-height: 1.1;
}

.spaces-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spaces-card__body {
    padding: 18px 20px 22px;
}

.spaces-card__title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: var(--color-black);
}

.spaces-card__desc {
    margin: 6px 0 0;
    font-size: 16px;
    color: var(--color-text-muted);
}

/* ── Come and see for yourself (CTA) ───────────────────────── */
.spaces-cta {
    padding-block: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.spaces-cta__text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spaces-cta__desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 18px;
}

/* ── Mobile (375px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .spaces-hero__heading {
        font-size: 40px;
    }

    .spaces-room__heading {
        font-size: 36px;
    }

    /* Stack image above text */
    .spaces-room {
        flex-direction: column;
        padding-block: 48px;
    }

    .spaces-room__media,
    .spaces-room__text {
        flex: none;
        width: 100%;
    }

    /* Vault: stack image above text (wrap-reverse becomes column-reverse) */
    .spaces-vault__inner {
        flex-direction: column;
        padding-block: 48px;
    }

    .spaces-vault__text,
    .spaces-vault__images {
        flex: none;
        width: 100%;
    }

    /* Vault side-by-side images stay side by side (as per spec) */
    .spaces-vault__images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* More rooms: one column */
    .spaces-more__grid {
        grid-template-columns: 1fr;
    }

    .spaces-cta {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 48px;
    }
}
