/* ── Fonts (self-hosted) ───────────────────────────────── */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}

/* ── Design tokens ─────────────────────────────────────── */
:root {
    --clr-bg:      #0e0a06;
    --clr-surface: #fdf6ec;
    --clr-primary: #7b2d2d;
    --clr-gold:    #c9a25c;
    --clr-gold-lt: #e8c97e;
    --clr-ink:     #2c1810;
    --clr-muted:   #6b5544;

    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-ui:      'Lato', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Stage ─────────────────────────────────────────────── */
body {
    margin: 0;
    overflow: hidden;
    background: var(--clr-bg);
    font-family: var(--font-ui);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

/* ── Scene frame (16:9, fills viewport) ───────────────── */
.view {
    display: none;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100vw;
    max-width: calc(100vh * 16 / 9);
    height: auto;
    overflow: hidden;
}

.view.active-view { display: block; }

/* ══════════════════════════════════════════════════════════
   Scene 1 — Restaurant exterior
   ══════════════════════════════════════════════════════════ */

.restaurant-wrapper {
    position: absolute;
    inset: 0;
    /* placeholder background — hidden once real image loads */
    background: linear-gradient(175deg, #2b4a2e 0%, #183020 45%, #0d1c12 100%);
}

.restaurant-wrapper .restaurant {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Restaurant sign — floats over façade */
.restaurant-name {
    position: absolute;
    top: 40.75%;
    left: 52%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    color: var(--clr-gold);
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0,0,0,.75);
    pointer-events: auto;
    cursor: pointer;
    letter-spacing: .03em;
    transition: color .15s;
}

.restaurant-name:hover,
.restaurant-name:focus-visible {
    color: var(--clr-gold-lt);
    outline: none;
}

/* Clickable door overlay — adjust left/top/width/height to match final image */
.door-hotspot {
    position: absolute;
    left: 36%;
    top: 47%;
    width: 7%;
    height: 39%;

    cursor: pointer;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    transition: background .2s;
    /* dev helper — remove once real image is in place */
    outline: 2px dashed rgba(255,200,0,.55);
}

.door-hotspot:hover        { background: rgba(255,255,255,.09); }
.door-hotspot:focus-visible { outline: 3px solid var(--clr-gold); outline-offset: 2px; }

/* Waiter — bottom left; column-reverse puts bubble above, tail points down */
.waiter-wrapper {
    position: absolute;
    bottom: 0;
    left: 15%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.waiter-wrapper .waiter {
    width: auto;
    height: 45vh;
    object-fit: contain;
}

/* Speech bubble — fades in via .visible added by JS */
.speech-bubble {
    position: relative;
    background: var(--clr-surface);
    border: 2px solid var(--clr-gold);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    max-width: 240px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--clr-ink);
    line-height: 1.55;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .5s ease, transform .5s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,.32);
}

.speech-bubble.visible { opacity: 1; transform: translateY(0); }

/* Tail pointing down toward the waiter */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--clr-gold);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--clr-surface);
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   Scene 2 — Restaurant table
   ══════════════════════════════════════════════════════════ */

.back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(201,162,92,.4);
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: var(--clr-gold);
    font-size: 16px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}

.back-btn:hover { background: rgba(201,162,92,.2); color: var(--clr-gold-lt); }

/* Cards and menu card are all absolutely positioned — no grid needed */
.table-wrapper {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #3b2a1a 0%, #241507 100%);
}

.table-wrapper .table {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── Menu card — printed restaurant card lying on the table */
.menu-wrapper {
    position: absolute;
    z-index: 3;
    background: #f9f2e0;
    border: 1px solid #b89a5a;
    border-radius: 2px;
    padding: 25px 15px;
    box-shadow: 3px 6px 24px rgba(0,0,0,.6),
                inset 0 0 0 3px rgba(160,120,50,.16);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    aspect-ratio: 1 / 1.414;
}

.menu-restaurant-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--clr-ink);
    text-align: center;
    letter-spacing: .05em;
}

.menu-rule {
    border: none;
    border-top: 1px solid rgba(100, 70, 20, .28);
    margin: 7px 0;
}

.menu-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.menu-tab-sep { color: rgba(100,70,20,.4); font-size: 12px; }

.menu-btn {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--clr-muted);
    padding: 2px 4px;
    border: none;
    background: none;
    transition: color .15s;
}

.menu-btn:hover  { color: var(--clr-primary); }
.menu-btn.active { color: var(--clr-primary); font-weight: 700; text-decoration: underline; }

.menu-info {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--clr-muted);
    line-height: 1.55;
    overflow-y: auto;
}

.menu-info ul { padding-left: 1.1em; }
.menu-info li + li { margin-top: 3px; }

/* ── Hotspot container — covers the table image ─────────── */

.hotspot-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    border: none;
    border-radius: var(--r-sm);
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: filter .2s, transform .2s;
    filter: drop-shadow(2px 6px 14px rgba(0,0,0,.5));
}

.hotspot:hover        { filter: drop-shadow(4px 12px 26px rgba(0,0,0,.68)); transform: scale(1.07); }
.hotspot:focus-visible { outline: 3px solid var(--clr-gold); outline-offset: 2px; }

/* ══════════════════════════════════════════════════════════
   Modal — styled as a restaurant menu page
   ══════════════════════════════════════════════════════════ */

.modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(14,8,2,.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.modal-overlay[hidden] { display: none; }
.modal-overlay.visible { opacity: 1; }

/* Menu card */
.modal-box {
    position: relative;
    background: #f9f2e0;
    border: 2px solid #b89a5a;
    border-radius: 3px;
    padding: 0;
    width: 80%;
    max-height: 90%;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(.93);
    transition: transform .28s ease;
    box-shadow: 0 20px 72px rgba(0,0,0,.72),
                inset 0 0 0 5px rgba(160,120,50,.14);
}

.modal-overlay.visible .modal-box { transform: scale(1); }

/* Header bar — flex row: restaurant name centred, close button absolute-right */
.modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 40px 11px;
    border-bottom: 1px solid rgba(100,70,20,.22);
    margin-bottom: 0;
}

.modal-restaurant-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    letter-spacing: .07em;
    color: var(--clr-muted);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    color: var(--clr-muted);
    transition: background .15s, color .15s;
}

.modal-close:hover { background: rgba(0,0,0,.1); color: var(--clr-ink); }

/* Body — owns the side padding so full-bleed image can negate it */
.modal-body {
    padding: 0 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* e.g. "VORSPEISE" */
.modal-course-label {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--clr-primary);
    text-align: center;
    margin-top: 18px;
    margin-bottom: 6px;
}

/* Dish name */
.modal-title {
    font-family: var(--font-display);
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 600;
    color: var(--clr-ink);
    line-height: 1.2;
    text-align: center;
}

/* Ornamental gradient rule below dish name */
.modal-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 60%;
    margin: 16px auto 0;
    background: linear-gradient(to right, transparent, #b89a5a 25%, #b89a5a 75%, transparent);
}

/* Dish image — full-bleed, negates .modal-body side padding */
.modal-img {
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-height: 450px;
    aspect-ratio: 4/3;
}

.modal-img[src=""] { display: none; }

/* Description */
.modal-desc {
    font-size: clamp(16px, 1.15vw, 18px);
    color: var(--clr-muted);
    line-height: 1.72;
    margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════
   Support / Credits modal — shown on load, reachable via info button
   ══════════════════════════════════════════════════════════ */

.support-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(14,8,2,.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-overlay[hidden] { display: none; }

.support-card {
    position: relative;
    background: #f9f2e0;
    border: 2px solid #b89a5a;
    border-radius: var(--r-md);
    padding: 32px 36px 28px;
    width: min(90%, 420px);
    max-height: 90%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 72px rgba(0,0,0,.72),
                inset 0 0 0 5px rgba(160,120,50,.14);
}

.support-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.support-logo {
    display: block;
    margin: 14px auto 0;
    min-width: 150px;
    max-width: 260px;
    max-height: 110px;
    width: auto;
    height: auto;
}

.support-rule {
    border: none;
    height: 1px;
    margin: 22px auto;
    width: 70%;
    background: linear-gradient(to right, transparent, #b89a5a 25%, #b89a5a 75%, transparent);
}

.support-credits-label {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 21px);
    color: var(--clr-ink);
    margin-bottom: 10px;
}

.support-credits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    color: var(--clr-muted);
    font-size: 16px;
    line-height: 1.9;
}

.support-credits-list li::before { content: "– "; color: var(--clr-gold); }

.support-cta {
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--clr-surface);
    background: var(--clr-primary);
    border: 1px solid var(--clr-gold);
    border-radius: var(--r-sm);
    padding: 12px 28px;
    transition: background .15s, transform .15s;
}

.support-cta:hover { background: #943a3a; transform: translateY(-1px); }

.support-info-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 400;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f2e0;
    border: 2px solid var(--clr-gold);
    color: var(--clr-primary);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
    transition: background .15s, transform .15s;
}

.support-info-btn:hover { background: var(--clr-gold-lt); transform: scale(1.06); }

/* ══════════════════════════════════════════════════════════
   Restaurant-name info modal — opened by clicking the sign on the façade
   ══════════════════════════════════════════════════════════ */

.restaurant-info-card {
    text-align: left;
    padding-top: 40px;
}

.restaurant-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    color: var(--clr-muted);
    transition: background .15s, color .15s;
}

.restaurant-info-close:hover { background: rgba(0,0,0,.1); color: var(--clr-ink); }

.restaurant-info-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 600;
    color: var(--clr-ink);
    text-align: center;
}

.restaurant-info-text {
    font-size: 16px;
    color: var(--clr-muted);
    line-height: 1.72;
    margin-top: 16px;
}
