/* =============================================================
   Broadway Steakhouse & Wine — Temporary one-screen coming-soon
   Palette: warm photographic hero + ivory / wine-red modal surface
   Type:    Cormorant Garamond (display) + Inter (body)
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg:            #f6efe0;   /* warm ivory paper (modal surface) */
    --bg-card:       #fbf6ea;   /* lighter cream for cards inside modal */
    --bg-dark:       #1a0f0c;   /* near-black warm for hero */
    --bg-wine:       #2a1011;   /* deep wine */

    --text:          #1a0f0c;
    --text-soft:     #4a2f2a;
    --text-mute:     #8a7060;

    --text-on-dark:       #f6efe0;
    --text-on-dark-soft:  #d9c9b0;
    --text-on-dark-mute:  #a89078;
    --hero-gold:          #f3d7ab;   /* warm cream-gold, for hero italics */

    --accent:        #a62023;       /* refined wine-red */
    --accent-hover:  #841519;
    --accent-brand:  #c22226;       /* exact logo red */
    --accent-deep:   #5e1214;

    --line:          rgba(26, 15, 12, 0.10);
    --line-strong:   rgba(26, 15, 12, 0.22);
    --line-red:      rgba(166, 32, 35, 0.28);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --maxw: 1280px;
    --pad:  clamp(20px, 4vw, 48px);

    --ease:     cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.is-modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

::selection { background: var(--accent); color: var(--text-on-dark); }

:focus-visible {
    outline: 2px solid var(--hero-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Film grain (subtle, warm) ---------- */
.grain {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-on-dark-soft);
    margin: 0;
}
.eyebrow__rule {
    display: inline-block;
    width: 44px; height: 1px;
    background: rgba(246, 239, 224, 0.45);
}
.eyebrow--center { justify-content: center; }

/* ---------- Topbar (centered logo) ---------- */
.topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 28px 0 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.topbar__brand {
    display: inline-flex;
    align-items: center;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    pointer-events: auto;
}
.topbar__brand:hover { opacity: 0.92; transform: translateY(-1px); }
.topbar__logo {
    height: 92px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.55));
}

@media (max-width: 560px) {
    .topbar { padding-top: 20px; }
    .topbar__logo { height: 84px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fbf6ea;
    border: 1px solid var(--accent);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform .45s var(--ease-out),
        background .3s var(--ease),
        color .3s var(--ease),
        border-color .3s var(--ease),
        box-shadow .4s var(--ease);
    position: relative;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(166, 32, 35, 0.28);
}
.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 16px 40px rgba(166, 32, 35, 0.38);
}
.btn:active { transform: translateY(0); }

.btn__icon { width: 18px; height: 18px; flex: 0 0 18px; }
.btn__sub {
    display: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.85;
    font-size: 11px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(251, 246, 234, 0.35);
}
@media (min-width: 520px) { .btn__sub { display: inline-block; } }

/* Ghost on dark surfaces (hero) */
.btn--ghost {
    background: transparent;
    color: var(--text-on-dark);
    border-color: rgba(246, 239, 224, 0.45);
    box-shadow: none;
}
.btn--ghost:hover {
    background: rgba(246, 239, 224, 0.1);
    border-color: var(--text-on-dark);
    color: var(--text-on-dark);
    box-shadow: none;
}

/* Ghost on light surfaces (modal fallback) */
.modal .btn--ghost {
    color: var(--text);
    border-color: var(--line-strong);
}
.modal .btn--ghost:hover {
    background: var(--text);
    color: var(--bg-card);
    border-color: var(--text);
}

/* ---------- STAGE (full-height one-screen) ---------- */
.stage {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}
.stage__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.stage__img {
    position: absolute;
    inset: -6% -2% -12% -2%;
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    transform: scale(1.06);
    will-change: transform;
    filter: saturate(0.9) contrast(1.02) brightness(0.78);
    animation: stageZoom 22s ease-out forwards;
}
@keyframes stageZoom {
    from { transform: scale(1.14); }
    to   { transform: scale(1.04); }
}
.stage__scrim {
    position: absolute; inset: 0;
    background:
        /* Warm wash kept lighter so the photography remains present. */
        radial-gradient(120% 90% at 25% 40%, rgba(26, 15, 12, 0.16), rgba(42, 16, 17, 0.46) 62%, rgba(26, 15, 12, 0.68) 100%),
        linear-gradient(180deg, rgba(26, 15, 12, 0.34) 0%, rgba(42, 16, 17, 0.30) 55%, rgba(26, 15, 12, 0.58) 100%);
}
.stage__vignette {
    position: absolute; inset: 0;
    background: radial-gradient(130% 90% at 50% 50%, transparent 0%, rgba(26, 15, 12, 0.16) 58%, rgba(26, 15, 12, 0.48) 100%);
    mix-blend-mode: multiply;
}

.stage__content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 160px var(--pad) 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
}
.stage__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(42px, 6.6vw, 92px);
    line-height: 1.05;
    letter-spacing: -0.012em;
    max-width: min(26ch, 100%);
    margin: 4px 0 2px;
    color: var(--text-on-dark);
    word-wrap: break-word;
}
.stage__lede,
.stage__ctas,
.stage__meta,
.eyebrow { max-width: 100%; }
.stage__ctas { flex-wrap: wrap; }
.eyebrow { flex-wrap: wrap; }
.stage__title em {
    font-style: italic;
    color: var(--hero-gold);
    font-weight: 500;
}
.stage__lede {
    font-size: clamp(16px, 1.35vw, 18.5px);
    line-height: 1.7;
    color: var(--text-on-dark-soft);
    max-width: 54ch;
    margin: 0 auto;
}
.stage__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 6px 0 4px;
}

/* ---- Minimal info strip ---- */
.stage__meta {
    list-style: none;
    margin: 14px 0 0;
    padding: 18px 28px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(246, 239, 224, 0.14);
    border-radius: 999px;
    background: rgba(26, 15, 12, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 100%;
}
.stage__meta-item {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.2;
    text-align: left;
}
.stage__meta-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-on-dark-mute);
    font-weight: 600;
}
.stage__meta-value {
    font-size: 14px;
    color: var(--text-on-dark);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .3s var(--ease);
}
.stage__meta-value svg {
    width: 12px; height: 12px;
    opacity: 0.55;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
a.stage__meta-value:hover {
    color: var(--hero-gold);
}
a.stage__meta-value:hover svg {
    opacity: 1;
    transform: translate(1px, -1px);
}
.stage__meta-rule {
    width: 1px; height: 26px;
    background: rgba(246, 239, 224, 0.18);
}
@media (max-width: 720px) {
    .stage__meta {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
        padding: 18px 22px;
        gap: 14px;
        width: 100%;
        max-width: 440px;
    }
    .stage__meta-rule { display: none; }
}

/* ---- Footer credit (pinned to bottom of stage) ---- */
.stage__foot {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px var(--pad) 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(246, 239, 224, 0.08);
}
.stage__copy {
    font-size: 11px;
    color: var(--text-on-dark-mute);
    letter-spacing: 0.06em;
    margin: 0;
}
.stage__credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-on-dark-mute);
    margin: 0;
}
.stage__heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brand);
    filter: drop-shadow(0 0 10px rgba(194, 34, 38, 0.35));
}
.stage__heart svg {
    width: 12px;
    height: 12px;
}
.stage__credit-link {
    color: var(--hero-gold);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), color .3s var(--ease);
    padding-bottom: 1px;
    font-weight: 500;
}
.stage__credit-link:hover { border-bottom-color: var(--hero-gold); color: var(--text-on-dark); }

@media (max-width: 560px) {
    .stage__content { padding-top: 130px; padding-bottom: 24px; gap: 22px; }
    .stage__ctas { width: 100%; }
    .stage__ctas .btn { flex: 1 1 calc(50% - 7px); min-width: 0; padding-left: 14px; padding-right: 14px; }
    .stage__ctas .btn__sub { display: none; }
    .stage__foot { flex-direction: column; text-align: center; gap: 6px; padding: 18px var(--pad) 22px; }
    .eyebrow__rule { width: 22px; }
}

/* ---------- Entrance reveal (pure CSS, no JS required) ---------- */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    animation: revealUp .9s var(--ease-out) 0ms forwards;
}

/* ---------- MODAL (booking) ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 32px);
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition: opacity .24s var(--ease);
    will-change: opacity;
}
.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(14, 6, 5, 0.58);
    backdrop-filter: blur(13px) saturate(112%);
    -webkit-backdrop-filter: blur(13px) saturate(112%);
    transform: translateZ(0);
    will-change: backdrop-filter;
}
.modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - clamp(32px, 6vw, 64px));
    color: var(--text);
    padding: 0;
    overflow: visible;
    transform: translateY(14px) scale(0.985);
    transition: transform .45s var(--ease-out);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__close {
    position: absolute;
    top: -16px; right: -16px;
    width: 40px; height: 40px;
    border-radius: 999px;
    display: grid; place-items: center;
    color: var(--text-soft);
    border: 1px solid rgba(26, 15, 12, 0.12);
    background: rgba(251, 246, 234, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.94);
    transition:
        opacity .3s var(--ease),
        color .3s var(--ease),
        border-color .3s var(--ease),
        transform .3s var(--ease),
        background .3s var(--ease);
    z-index: 2;
}
.modal.is-widget-ready .modal__close {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover {
    color: var(--accent);
    border-color: var(--line-red);
    background: var(--bg-card);
    transform: translateY(0) scale(1) rotate(90deg);
}
.modal__close:focus-visible {
    outline-color: var(--accent);
}

@media (max-width: 640px) {
    .modal__close {
        top: -14px;
        right: 0;
    }
}

/* Short branded hold state while the iframe catches up. */
.modal__loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 460px;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease), visibility 0s linear 0s;
    pointer-events: none;
}
.modal__loader::before {
    content: "";
    position: absolute;
    width: 138px;
    height: 138px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(20, 10, 8, 0.56) 0%, rgba(20, 10, 8, 0.40) 44%, transparent 72%),
        radial-gradient(circle, rgba(166, 32, 35, 0.32) 0%, transparent 66%);
    box-shadow:
        0 22px 90px rgba(0, 0, 0, 0.48),
        inset 0 0 0 1px rgba(246, 239, 224, 0.10);
    animation: loaderGlow 1.6s var(--ease) infinite alternate;
}
.modal.is-widget-ready .modal__loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal__spinner {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    border: 4px solid rgba(246, 239, 224, 0.28);
    border-top-color: var(--accent-brand);
    border-right-color: var(--hero-gold);
    box-shadow:
        0 0 0 1px rgba(246, 239, 224, 0.16),
        0 0 54px rgba(166, 32, 35, 0.52);
    animation: modalSpin .78s linear infinite;
}
.modal__spinner::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: inherit;
    border: 2px solid rgba(246, 239, 234, 0.22);
    border-bottom-color: rgba(246, 239, 224, 0.88);
    animation: modalSpin 1.1s linear infinite reverse;
}
@keyframes modalSpin {
    to { transform: rotate(360deg); }
}
@keyframes loaderGlow {
    from { opacity: 0.68; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1.04); }
}

/* ---- TableGo widget (iframe sits directly inside the panel) ---- */
#tablego-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.modal.is-widget-ready #tablego-widget {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#tablego-booking {
    width: 100%;
    max-width: 560px;
    min-width: 300px;
    min-height: 460px;
    display: block;
    margin: 0 auto;
    border: none;
    background: transparent;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .stage__img { animation: none; transform: none; }
    .reveal { opacity: 1; transform: none; }
    .modal__panel { transform: none; }
}
