/* Pizarra Lounge menu */
:root {
    --bg: #0e151d;
    --bg-raised: #131c26;
    --surface: #17212c;
    --surface-hover: #1c2834;
    --line: rgba(226, 196, 138, 0.16);
    --line-strong: rgba(226, 196, 138, 0.38);
    --gold: #d4af6a;
    --gold-soft: #e8cf9c;
    --text: #f4ede1;
    --muted: #a9b0b8;
    --radius: 14px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nav-h: 64px;
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(212, 175, 106, 0.10), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a { color: inherit; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 76px 20px 56px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(14, 21, 29, 0.78) 0%, rgba(14, 21, 29, 0.9) 70%, var(--bg) 100%),
        url("../images/surf-and-turf.jpg") center 40% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero__inner { max-width: 720px; margin: 0 auto; }

.hero__eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand { margin: 0; font-weight: 400; }

.brand__name {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(3.1rem, 12vw, 6rem);
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-left: 0.16em; /* balance the trailing letter-spacing */
    color: var(--text);
}

.brand__sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-family: var(--sans);
    font-size: clamp(0.85rem, 2.6vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
}

.brand__sub::before,
.brand__sub::after {
    content: "";
    width: min(18vw, 90px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.brand__sub::after { transform: scaleX(-1); }

.hero__title {
    margin: 28px 0 6px;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--gold-soft);
}

.hero__note { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* VIP menu (vip.php) */
.vip-badge {
    display: inline-block;
    position: relative;
    top: -0.12em;
    margin-right: 0.35em;
    padding: 0.14em 0.65em 0.1em;
    border-radius: 999px;
    background: linear-gradient(135deg, #e9cf98, var(--gold) 55%, #b88d45);
    color: #16110a;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 600;
    font-size: 0.6em;
    letter-spacing: 0.2em;
    line-height: 1.5;
    vertical-align: middle;
}

.is-vip .hero,
.is-vip .catnav { border-bottom-color: var(--line-strong); }

/* ---------- Category navigation ---------- */
.catnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 21, 29, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.catnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.catnav__search {
    position: relative;
    flex: 0 0 230px;
    order: 2;
}

.catnav__search input {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-raised);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
}

.catnav__search input::placeholder { color: var(--muted); }

.catnav__search input:focus { outline: none; border-color: var(--gold); }

.catnav__search svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.catnav__track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    padding-right: 24px;
}

.catnav__track::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--muted);
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--line-strong); }

.chip[aria-current="true"] {
    background: var(--gold);
    border-color: var(--gold);
    color: #16110a;
}

/* ---------- Menu sections ---------- */
.menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 40px;
}

.menu-section {
    padding-top: 44px;
    scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    line-height: 1.1;
    color: var(--gold-soft);
}

.section-head::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
    align-self: center;
}

.section-head__count {
    order: 2;
    flex: 0 0 auto;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-head::after { order: 1; }

.dish-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 22px;
}

.dish {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.dish:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--surface-hover);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.dish__photo {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1d2935;
    cursor: zoom-in;
}

.dish__photo--empty { cursor: default; }

.dish__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish:hover .dish__photo img { transform: scale(1.04); }

.dish__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}

.dish__name {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--text);
}

.dish__desc {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.dish__price {
    margin: auto 0 0;
    padding-top: 10px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.dish__price--ask {
    font-size: 0.86rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* Long lists (drinks): smaller cards so a 15-item section stays scannable */
.menu-section--compact .dish-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.menu-section--compact .dish__body { padding: 10px 12px 12px; }
.menu-section--compact .dish__name { font-size: 1.12rem; }
.menu-section--compact .dish__price { padding-top: 6px; font-size: 1rem; }

.notice {
    margin: 48px auto;
    max-width: 560px;
    padding: 20px 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    color: var(--text);
}

.notice--search { color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
    padding: 36px 20px 48px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer p { margin: 4px 0; }

.footer__link { color: var(--gold); text-underline-offset: 3px; }

.footer__brand {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

/* ---------- Photo viewer ---------- */
.viewer {
    width: min(92vw, 900px);
    max-height: 92vh;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-raised);
    color: var(--text);
    overflow: hidden;
}

.viewer::backdrop { background: rgba(5, 8, 12, 0.82); }

.viewer__img { width: 100%; height: auto; max-height: calc(92vh - 64px); object-fit: contain; background: #000; }

.viewer__caption {
    margin: 0;
    padding: 14px 18px;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.viewer__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 21, 29, 0.75);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
    :root { --nav-h: 112px; }

    .catnav__inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 16px; }
    .catnav__search { order: 0; flex-basis: auto; }
    .catnav__track { margin-right: -16px; }

    .menu { padding: 4px 16px 32px; }
    .menu-section { padding-top: 34px; }
    .section-head { margin-bottom: 16px; }
}

@media (max-width: 560px) {
    .hero { padding: 56px 16px 40px; }

    .dish-grid,
    .menu-section--compact .dish-grid { grid-template-columns: 1fr; gap: 12px; }

    .dish {
        flex-direction: row;
        align-items: stretch;
    }

    .dish:hover { transform: none; box-shadow: none; }

    .dish__photo {
        flex: 0 0 116px;
        aspect-ratio: auto;
        min-height: 100px;
    }

    .menu-section--compact .dish__photo { flex-basis: 92px; min-height: 78px; }

    .dish__body { padding: 12px 14px; gap: 2px; }
    .dish__name { font-size: 1.14rem; }
    .dish__desc { font-size: 0.82rem; }
    .dish__price { padding-top: 6px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
