/* Divon Lounge — public e-menu styles
   Light luxury: cream, champagne gold, espresso text. Mobile first. */

:root {
  --gold: #f26a1b;
  --accent: #fde6d2;
  --gold-deep: color-mix(in srgb, var(--gold) 78%, #000);
  --cream: #faf9f7;
  --cream-2: #f0efec;
  --paper: #ffffff;
  --espresso: #141414;
  --ink-soft: #5f5f5f;
  --line: rgba(20, 20, 20, .12);
  --ok: #2f7a4d;
  --bad: #a8402f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.kicker {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 10px;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--gold); color: var(--espresso); }
.button-primary:hover { background: color-mix(in srgb, var(--gold) 88%, white); }
.button-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.button-ghost:hover { background: rgba(255, 255, 255, .18); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(92vh, 780px); display: flex;
  background-color: var(--espresso); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-wash {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, .62) 0%, rgba(12, 12, 12, .42) 35%, rgba(12, 12, 12, .82) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, .55) 0%, rgba(12, 12, 12, .25) 55%, transparent 80%),
    radial-gradient(80% 60% at 20% 80%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 70%);
}
.hero-content { display: flex; flex-direction: column; padding-block: 18px 56px; }

.site-header { display: flex; align-items: center; gap: 18px; position: relative; }
.site-logo { display: block; flex: none; }
.site-logo img {
  width: 68px; height: 68px; object-fit: contain; background: #fff;
  border-radius: 18px; padding: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  text-decoration: none; padding: 9px 16px; border-radius: 999px; font-size: .93rem;
  color: rgba(255, 255, 255, .85); transition: background .2s, color .2s;
}
.site-nav a:hover, .site-nav a.is-current { background: rgba(255, 255, 255, .14); color: #fff; }
.header-reserve {
  text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: var(--gold); color: var(--espresso);
}
.header-reserve:hover { background: color-mix(in srgb, var(--gold) 85%, white); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1); flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-copy { margin-block: auto; padding-top: 56px; max-width: 720px; }
.hero-copy .kicker { color: var(--gold); }
.hero-copy h1 { font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 600; letter-spacing: .01em; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--accent); margin-top: 8px; }
.hero-intro { margin-top: 18px; max-width: 540px; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- featured ---------- */
.featured-section { padding: 70px 0 20px; }
.featured-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.featured-heading h2, .section-heading h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.featured-menu-link { color: var(--gold-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }
.featured-menu-link:hover { text-decoration: underline; }
.featured-grid { display: grid; gap: 22px; grid-template-columns: repeat(var(--featured-columns, 3), minmax(0, 1fr)); }
.featured-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 20, 20, .13); }
.featured-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.featured-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.featured-category, .eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.featured-card h3 { font-size: 1.7rem; }
.featured-description { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.featured-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.featured-card-footer strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.featured-action {
  border: 1px solid var(--espresso); background: transparent; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .88rem;
  transition: background .2s, color .2s;
}
.featured-action:hover:not(:disabled) { background: var(--espresso); color: #fff; }
.featured-action:disabled { opacity: .45; cursor: not-allowed; }
.featured-card.is-unavailable > img { filter: grayscale(1); opacity: .6; }

/* ---------- menu section ---------- */
.menu-section { padding: 60px 0 40px; }
.menu-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.menu-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; min-width: 240px; flex: 1 1 240px;
}
.search-box span { color: var(--ink-soft); font-size: 1.1rem; }
.search-box input { border: 0; background: transparent; padding: 11px 0; width: 100%; outline: none; }
.filter-toggle {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: .9rem;
}
.filter-toggle[aria-expanded="true"] { background: var(--espresso); color: #fff; }
.view-switcher { display: inline-flex; gap: 6px; background: var(--cream-2); padding: 4px; border-radius: 999px; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 80%, white); color: var(--gold-deep); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.view-toggle { border: 0; font-size: .82rem; padding: 8px 14px; background: transparent; color: var(--ink-soft); }
.view-toggle.is-active { background: var(--espresso); color: #fff; }

.filter-panel {
  display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.filter-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.filter-group label { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; cursor: pointer; }
.filter-group input { accent-color: var(--gold-deep); }
.clear-filters { margin-left: auto; border: 0; background: transparent; color: var(--gold-deep); font-weight: 600; text-decoration: underline; }

.category-tabs {
  position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin-inline: -20px; padding-inline: 20px;
  background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.category-tabs::-webkit-scrollbar, .subcategory-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; letter-spacing: .1em; font-size: .8rem; transition: all .2s;
}
.category-tab:hover { border-color: var(--gold); }
.category-tab.is-active { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.subcategory-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 4px; }
.subcategory-tab {
  flex: none; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: .88rem; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.subcategory-tab:hover { color: var(--espresso); }
.subcategory-tab.is-active { color: var(--espresso); font-weight: 700; background: color-mix(in srgb, var(--accent) 70%, white); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h3 { font-size: 1.8rem; color: var(--espresso); margin: 8px 0; }
.empty-icon { font-size: 2.4rem; color: var(--gold); }

.menu-groups { margin-top: 10px; }
.menu-group { margin-top: 38px; }
.group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-heading h3 { font-size: 2.2rem; }
.group-heading span { color: var(--ink-soft); font-size: .88rem; }

/* ---------- item cards ---------- */
.menu-grid { display: grid; gap: 18px; }
.menu-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.menu-card:hover { box-shadow: var(--shadow); }
.image-button { position: relative; display: block; padding: 0; border: 0; background: var(--cream-2); overflow: hidden; cursor: zoom-in; }
.image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.menu-card:hover .image-button img { transform: scale(1.05); }
.image-expand {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); font-size: .85rem; opacity: 0; transition: opacity .2s;
}
.image-button:hover .image-expand, .image-button:focus-visible .image-expand { opacity: 1; }
.menu-card-body { padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.menu-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-card h3 { font-size: 1.5rem; }
.menu-card-description {
  color: var(--ink-soft); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.menu-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.menu-card-footer strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.availability { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.availability.available { color: var(--ok); }
.availability.unavailable { color: var(--bad); }
.item-details-button { border: 0; background: transparent; color: var(--gold-deep); font-size: .82rem; padding: 4px 0; }
.item-details-button:hover { text-decoration: underline; }
.menu-card.is-unavailable .image-button img { filter: grayscale(1); opacity: .55; }
.menu-card.is-unavailable h3, .menu-card.is-unavailable .menu-card-footer strong { color: var(--ink-soft); }

/* Editorial view: horizontal rows */
.menu-groups[data-view-mode="editorial"] .menu-grid { grid-template-columns: 1fr; }
.menu-groups[data-view-mode="editorial"] .menu-card {
  display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "img body" "img btn"; align-items: start;
}
.menu-groups[data-view-mode="editorial"] .image-button { grid-area: img; align-self: stretch; min-height: 112px; }
.menu-groups[data-view-mode="editorial"] .menu-card-body { grid-area: body; }
.menu-groups[data-view-mode="editorial"] .item-details-button { grid-area: btn; justify-self: start; padding: 0 18px 14px; align-self: end; }
.menu-groups[data-view-mode="editorial"] .mosaic-label, .menu-groups[data-view-mode="mosaic"] .editorial-label { display: none; }

/* Mosaic view: image-led tiles */
.menu-groups[data-view-mode="mosaic"] .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-groups[data-view-mode="mosaic"] .menu-card { display: flex; flex-direction: column; }
.menu-groups[data-view-mode="mosaic"] .image-button { aspect-ratio: 1 / 1; }
.menu-groups[data-view-mode="mosaic"] .menu-card h3 { font-size: 1.25rem; }
.menu-groups[data-view-mode="mosaic"] .menu-card-description { display: none; }
.menu-groups[data-view-mode="mosaic"] .item-details-button { margin: auto 18px 14px; text-align: left; }

/* ---------- lightbox & details ---------- */
.lightbox, .details-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 10, 10, .78); backdrop-filter: blur(6px); animation: fade .2s ease;
}
.lightbox img { max-width: min(94vw, 1100px); max-height: 88vh; border-radius: 14px; background: #fff; object-fit: contain; }
.lightbox-close, .details-dialog-close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; z-index: 2;
}
.details-dialog {
  position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--paper);
  border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: rise .25s ease;
}
.details-dialog > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.details-dialog-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.details-dialog-body h3 { font-size: 2.1rem; }
.details-dialog-body > p:not(.eyebrow) { color: var(--ink-soft); }
.details-dialog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.details-dialog-price { font-family: var(--serif); font-size: 2rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { padding: 50px 0 28px; margin-top: 40px; background: var(--cream-2); border-top: 1px solid var(--line); }
.footer-card {
  max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 36px 28px; box-shadow: var(--shadow);
}
.footer-qr { padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); min-height: 40px; }
.footer-qr img, .footer-qr canvas { width: 132px !important; height: 132px !important; }
.footer-qr-fallback { color: var(--gold-deep); font-weight: 600; }
.footer-title { font-size: 2.4rem; margin-top: 6px; }
.footer-phone { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; font-weight: 600; }
.footer-contact-line { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.footer-contact-line span { color: var(--gold-deep); }
.footer-hours { color: var(--ink-soft); font-size: .9rem; max-width: 380px; }
.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--cream); color: var(--espresso); transition: all .2s;
}
.social-link:hover { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.footer-copy { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-deep); margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: .82rem; color: var(--ink-soft); }
.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--espresso); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .menu-groups[data-view-mode="mosaic"] .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-groups[data-view-mode="mosaic"] .menu-card-description { display: -webkit-box; }
  .menu-groups[data-view-mode="editorial"] .menu-card { grid-template-columns: 140px 1fr; }
}
@media (min-width: 960px) {
  .menu-groups[data-view-mode="editorial"] .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-groups[data-view-mode="editorial"] .menu-card { grid-template-columns: 170px 1fr; }
  .menu-groups[data-view-mode="mosaic"] .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-reserve { display: none; }
  .site-nav {
    position: absolute; top: 78px; left: 0; right: 0; z-index: 20; flex-direction: column; margin: 0; padding: 10px;
    background: rgba(12, 12, 12, .96); border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 16px; }
}
@media (max-width: 560px) {
  .container { width: min(1180px, 100% - 32px); }
  .category-tabs { margin-inline: -16px; padding-inline: 16px; }
  .hero { min-height: 86vh; }
  .menu-tools { width: 100%; }
  .view-switcher { width: 100%; }
  .view-toggle { flex: 1; }
  .featured-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- subcategory chips: wrap onto several rows, filled when active ---------- */
.subcategory-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 16px 0 6px;
}
.subcategory-tab {
  flex: none; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: var(--paper);
  color: var(--gold-deep); border-radius: 999px; padding: 7px 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s;
}
.subcategory-tab:hover { background: color-mix(in srgb, var(--accent) 70%, white); color: var(--gold-deep); }
.subcategory-tab.is-active { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

/* ---------- black accents: subcategory chips + hero "Explore menu" ---------- */
.subcategory-tab { border-color: var(--line); color: var(--espresso); background: var(--paper); }
.subcategory-tab:hover { border-color: var(--gold); background: var(--paper); color: var(--espresso); }
.subcategory-tab.is-active { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.hero-actions .button-primary { background: #111111; color: #fff; border: 1.5px solid rgba(255, 255, 255, .65); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.hero-actions .button-primary:hover { background: #000; border-color: #fff; }
