/* =====================================================================
   Grand Ballroom page styles — gb-* only.
   Layout follows the Pool / Courtroom Bar / Fitness pattern:
   hero, a content section, the gallery, the CTA banner, the collapsible.
   ===================================================================== */

/* ---------- Shared eyebrow + section headings ---------- */
.gb-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}
.gb-section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}
.gb-section-sub {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}
.gb-no-data { grid-column: 1 / -1; text-align: center; color: var(--text-light); }

/* === Breadcrumbs === */
.breadcrumbs { background: var(--extra-light); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.breadcrumbs_inner { max-width: var(--max-width); margin: 0 auto; padding: 0.85rem 1rem; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.breadcrumbs a { color: var(--text-dark); font-weight: 600; }
.breadcrumbs .current { color: var(--text-light); }

/* =====================================================================
   Hero — full-bleed slideshow, scroll cue on the photograph, breadcrumbs
   running under an overlapping card.
   ===================================================================== */
.gb-edge {
    position: relative;
    background: var(--white);
    padding: 0 0 clamp(4rem, 9vw, 7rem);
    /* hero-about-us-style.css gives the bare header selector min-height 100vh. */
    min-height: 0;
    isolation: isolate;
    --gb-card-overlap: 5rem;
    --gb-crumb-h: 3rem;
}

.gb-edge .breadcrumbs {
    position: relative;
    z-index: 1;
    min-height: var(--gb-crumb-h);
    display: flex;
    align-items: center;
}
.gb-edge .breadcrumbs_inner { width: 100%; padding-block: 0; }

/* The hero card sits over the middle of this strip and these page names are
   long, so the trail leaves the centred box and hugs the left edge instead. */
.gb-edge .breadcrumbs_inner {
    max-width: none;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.gb-edge_media {
    position: relative;
    margin: 0;
    height: 88vh;
    min-height: 560px;
    overflow: hidden;
}

/* The global sheet sizes and darkens these for a 100vh header; scope it back. */
.gb-edge .header_bg_swiper,
.gb-edge .header_bg_swiper .swiper-slide { width: 100%; height: 100%; }
.gb-edge .header_bg_swiper { position: absolute; inset: 0; }
.gb-edge .header_bg_swiper img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block !important;
    filter: none;
}

.gb-edge_card {
    position: relative;
    z-index: 2;
    max-width: min(660px, calc(100% - 2.5rem));
    margin: calc((var(--gb-card-overlap) + var(--gb-crumb-h)) * -1) auto 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 24px 60px rgba(10, 34, 64, 0.14);
    text-align: center;
    animation: gb-hero-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gb-edge_title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.08;
    margin: 0 0 1.4rem;
}

.gb-edge_card p,
.gb-edge_copy { color: var(--text-light); line-height: 1.85; margin: 0 0 1.75rem; }
.gb-edge_copy p { margin: 0 0 1.1rem; }
.gb-edge_copy p:last-child { margin-bottom: 0; }

.gb-edge_scroll {
    position: absolute;
    left: 50%;
    bottom: calc(var(--gb-card-overlap) + 2.5rem);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    animation: gb-bounce 2.4s ease-in-out infinite;
}
.gb-edge_scroll:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.gb-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.gb-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.2rem;
    background: var(--cream-light, #f9f7f4);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}
.gb-chips li:hover { background: var(--white); border-color: var(--primary-color); transform: translateY(-2px); }
.gb-chips i { color: var(--primary-color); font-size: 1.05rem; }

@keyframes gb-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}
@keyframes gb-hero-rise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}

/* The Spaces */
.gb-spaces {
    background: var(--white);
    padding-bottom: 2rem;
}
.gb-spaces_inner { max-width: var(--max-width); margin: 0 auto; }
.gb-spaces_head { text-align: center; }


.gb-sheet {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 20px 46px rgba(10, 34, 64, 0.09);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.gb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.gb-table thead th {
    padding: 0 0.6rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}
.gb-table thead th:first-child { padding-left: 0.2rem; }
.gb-table thead th:last-child { padding-right: 0.2rem; }
.gb-table thead th:not(:first-child),
.gb-table tbody td { text-align: right; }

.gb-table tbody tr { transition: background 0.3s ease; }
.gb-table tbody tr:hover { background: var(--cream-light, #f9f7f4); }

.gb-table tbody th,
.gb-table tbody td {
    padding: 1.05rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    vertical-align: baseline;
}
.gb-table tbody th:first-child,
.gb-table tbody td:first-child { padding-left: 0.2rem; }
.gb-table tbody td:last-child { padding-right: 0.2rem; }
.gb-table tbody tr:last-child th,
.gb-table tbody tr:last-child td { border-bottom: 0; }

/* The whole room leads, so its row is set a shade heavier. */
.gb-table tbody tr.is-lead th,
.gb-table tbody tr.is-lead td { border-bottom-color: rgba(196, 156, 116, 0.5); }
.gb-table tbody tr.is-lead .gb-table_name { font-size: 1.12rem; }

.gb-table_name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.gb-table_no {
    display: inline-block;
    min-width: 2.1em;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--primary-color);
}

.gb-table tbody td b {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}
.gb-table tbody td span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-left: 0.15rem;
}

/* At phone width the table stays a table — it just sets tighter, with the
   row number moved above the name so the first column can wrap. */
@media (max-width: 560px) {
    .gb-sheet { padding: 1.15rem 1rem; }
    .gb-table thead th {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        padding: 0 0.35rem 0.7rem;
    }
    .gb-table tbody th,
    .gb-table tbody td { padding: 0.9rem 0.35rem; }
    .gb-table_name { font-size: 0.92rem; white-space: normal; }
    .gb-table tbody tr.is-lead .gb-table_name { font-size: 1rem; }
    .gb-table_no { display: block; min-width: 0; margin-bottom: 0.2rem; }
    .gb-table tbody td b { font-size: 1.05rem; }
    .gb-table tbody td span { font-size: 0.62rem; letter-spacing: 0.05em; margin-left: 0.1rem; }
}

/* =====================================================================
   The Partition — the gallery. Two photographs in one frame, split by a
   wall that runs on a brass track.
   ===================================================================== */
.gb-stage {
    background: var(--extra-light, #f4f1ed);
    padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem clamp(4.5rem, 10vw, 7rem);
}
.gb-stage_inner { max-width: var(--max-width); margin: 0 auto; }
.gb-stage_head { text-align: center; }

.gb-wall { position: relative; }

/* The track the wall runs on, set just above the frame. */
.gb-wall_track {
    height: 3px;
    margin-bottom: 0.9rem;
    background: linear-gradient(to right,
        rgba(196, 156, 116, 0) 0%,
        rgba(196, 156, 116, 0.75) 12%,
        rgba(196, 156, 116, 0.75) 88%,
        rgba(196, 156, 116, 0) 100%);
}

.gb-wall_frame {
    position: relative;
    overflow: hidden;
    height: clamp(300px, 46vw, 540px);
    background: #10161f;
    box-shadow: 0 24px 60px rgba(10, 34, 64, 0.18);
    touch-action: pan-y;
    user-select: none;
}

.gb-plate {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
/* The left photograph sits whole; the right one is cut by the wall. */
.gb-plate.is-left  { opacity: 1; z-index: 1; }
.gb-plate.is-right { opacity: 1; z-index: 2; clip-path: inset(0 0 0 var(--split)); }

.gb-plate img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

.gb-plate_no {
    position: absolute;
    bottom: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.gb-plate.is-left  .gb-plate_no { left: 1.15rem; }
.gb-plate.is-right .gb-plate_no { right: 1.15rem; }

/* The wall itself — a brass seam with a grip you can take hold of. */
.gb-wall_handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    z-index: 4;
    width: 46px;
    transform: translateX(-50%);
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    cursor: ew-resize;
    touch-action: none;
}
.gb-wall_handle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(196,156,116,0.35), var(--primary-color) 45%, rgba(196,156,116,0.35));
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}
.gb-wall_grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}
/* Two ticks on the grip, so it reads as something to take hold of. */
.gb-wall_grip::before,
.gb-wall_grip::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2px;
    height: 13px;
    transform: translateY(-50%);
    background: var(--primary-color);
}
.gb-wall_grip::before { left: 17px; }
.gb-wall_grip::after  { right: 17px; }

.gb-wall_handle:hover .gb-wall_grip,
.gb-wall_handle:focus-visible .gb-wall_grip { transform: translate(-50%, -50%) scale(1.08); }
.gb-wall_handle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.gb-wall.is-dragging .gb-wall_grip { transform: translate(-50%, -50%) scale(0.94); }

/* A single photograph has nothing to split, so the wall stands down. */
.gb-wall.is-single .gb-wall_handle,
.gb-wall.is-single .gb-wall_track,
.gb-wall.is-single .gb-wall_bar { display: none; }

/* Prev / dots / next under the frame. */
.gb-wall_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 1.4rem;
}
.gb-wall_step {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gb-wall_step:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.gb-wall_dots { display: flex; align-items: center; gap: 0.55rem; }
.gb-wall_dot {
    width: 9px;
    height: 9px;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.gb-wall_dot.is-on { background: var(--primary-color); border-color: var(--primary-color); transform: scale(1.25); }

/* =====================================================================
   CTA banner
   ===================================================================== */
.gb-cta {
    position: relative;
    min-height: 440px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    padding: 6rem 1.25rem;
    isolation: isolate;
}
.gb-cta_media { position: absolute; inset: 0; z-index: 0; }
.gb-cta_media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}
.gb-cta_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.85) 0%, rgba(10, 34, 64, 0.7) 100%);
}
.gb-cta_content { position: relative; z-index: 2; text-align: center; max-width: 900px; width: 100%; }
.gb-cta_eyebrow {
    display: inline-block;
    font-size: 0.86rem;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.gb-cta_title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--white);
    font-weight: 400;
    margin: 1rem 0;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 620px;
    margin-inline: auto;
}
.gb-cta_text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 2rem;
}
.gb-cta_actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.gb-cta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.6rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-family: 'roasterregular', sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
                transform 0.2s ease, box-shadow 0.35s ease;
}
.gb-cta_btn:hover {
    background: var(--primary-color);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(196, 156, 116, 0.35);
}
.gb-cta_btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.gb-cta_btn--ghost:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--text-dark); }
.gb-cta_icon { transition: transform 0.3s ease; }
.gb-cta_btn:hover .gb-cta_icon--arrow { transform: translateX(5px); }
.gb-expand_toggle_btn[aria-expanded="true"] .gb-cta_icon { transform: rotate(180deg); }

/* =====================================================================
   Collapsible — the event types
   ===================================================================== */
.gb-expansion {
    display: none;
    border-top: 1px solid rgba(10, 34, 64, 0.07);
    animation: gb-expand-in 0.5s ease;
}
.gb-expansion.open { display: block; }

@keyframes gb-expand-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gb-events { background: var(--white); padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem; }
.gb-events_inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.gb-event_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    text-align: left;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.gb-event_row:first-of-type { border-top: 0; }
.gb-event_row--reverse .gb-event_media { order: 2; }

.gb-event_media { margin: 0; overflow: hidden; }
.gb-event_media img {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block !important;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.gb-event_row:hover .gb-event_media img { transform: scale(1.04); }

.gb-event_title {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.9rem;
}
.gb-event_desc { color: var(--text-light); line-height: 1.8; margin: 0 0 1.25rem; }

.gb-event_link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s ease, gap 0.3s ease;
}
.gb-event_link:hover { color: var(--primary-color); gap: 1rem; }

/* =====================================================================
   Scroll-reveal — JS toggles .is-visible
   ===================================================================== */
.gb-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gb-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .gb-edge_card,
    .gb-edge_scroll { animation: none !important; }
    .gb-edge_scroll { transform: translateX(-50%); }
    .gb-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Narrower screens
   ===================================================================== */
@media (max-width: 860px) {
    .gb-event_row { grid-template-columns: 1fr; gap: 1.25rem; }
    .gb-event_row--reverse .gb-event_media { order: 0; }
}

@media (max-width: 640px) {
    .gb-edge_media { height: 78vh; min-height: 460px; }
    .gb-edge { --gb-card-overlap: 2.5rem; }
    .gb-spaces,
    .gb-stage,
    .gb-events,
    .gb-cta { padding-left: 1rem; padding-right: 1rem; }
    .gb-cta { padding-top: 4.5rem; padding-bottom: 4.5rem; min-height: 380px; }
    .gb-wall_frame { height: clamp(260px, 62vw, 360px); }
    .gb-wall_handle { width: 56px; }
    .gb-cta_eyebrow { font-size: 0.78rem; letter-spacing: 0.36em; }
}
