/* ═══════════════════════════════════════════════════════════
   GENESIS — "Alma" Design System
   Palette:  Sage #5b7553 · Gold #c9a96e · Cream #f7f4ee
   Fonts:    Cormorant Garamond (heading) · Plus Jakarta Sans (body)

   To re-theme per restaurant:
   → JS sets --accent from config.accentColor
   → Swap hero image, done.
   ═══════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts ──────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --accent:       #5b7553;    /* sage green — brand anchor */
  --accent-soft:  #6d8965;
  --gold:         #c9a96e;    /* warm gold — secondary / prices */
  --gold-dim:     rgba(201, 169, 110, 0.35);

  --ink:          #2a2a28;    /* near-black, warm */
  --text:         #4a4a46;    /* body text */
  --text-muted:   #8a8880;    /* descriptions, labels */
  --text-light:   #e8e4dc;    /* text on dark bgs */
  --text-faint:   rgba(255, 255, 255, 0.3);

  --cream:        #f7f4ee;    /* warm background */
  --white:        #fefdfb;    /* almost-white */
  --dark:         #1e1d1b;    /* dark sections */
  --darker:       #161614;    /* footer */

  --border:       rgba(0, 0, 0, 0.07);
  --border-dark:  rgba(255, 255, 255, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --section-py:   clamp(5rem, 10vw, 8rem);
  --container-px: clamp(1.5rem, 5vw, 2.5rem);
  --container-max: 68rem;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   HERO — full viewport, cinematic
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.08);
  transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}
body.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 14, 0.25) 0%,
    rgba(20, 18, 14, 0.40) 40%,
    rgba(20, 18, 14, 0.70) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem var(--container-px);
  max-width: 52rem;
}

/* Thin decorative line above title */
.hero-content::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.28em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  margin-top: 1.25rem;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; justify-content: center; gap: 1rem; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   SECTION SYSTEM
   ═══════════════════════════════════════════════════════════ */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--cream); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: center;
}

/* Diamond divider ◆ */
.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
  width: 8rem;
}
.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
}
.section-rule::after { /* same as before */ }
/* The diamond is a pseudo-element on the rule itself */
.section-rule .diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Dark sections */
.section-dark { background: var(--dark); }
.section-dark .section-label { color: var(--gold); opacity: 0.7; }
.section-dark .section-title { color: var(--text-light); }
.section-dark .section-rule::before,
.section-dark .section-rule::after { background: rgba(201, 169, 110, 0.2); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-wrap {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.about-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
  margin-top: 2.5rem;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   MENU — classic printed-menu aesthetic
   ═══════════════════════════════════════════════════════════ */

/* Language toggle */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.lang-btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Container */
.menu-container {
  max-width: 46rem;
  margin: 2.5rem auto 0;
}

/* Category tabs — minimal underline style */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.category-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  color: var(--accent);
}
.tab-btn.active::after {
  width: 100%;
  left: 0;
}

/* Items wrap */
.menu-items-wrap {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
  padding: 0.5rem 0;
}
.menu-items-wrap::-webkit-scrollbar { width: 3px; }
.menu-items-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

/* Single menu item — classic leader dots */
.menu-item {
  padding: 0.875rem 0;
}
.menu-item + .menu-item {
  border-top: none;
}

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
  margin: 0 0.625rem;
  min-width: 1.5rem;
  height: 0.6em;
}
.menu-item-price {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.menu-item-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.5;
  padding-right: 4rem;
}

/* States */
.state-msg {
  text-align: center;
  padding: 3.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
}
.state-error {
  color: #8b3a3a;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.5rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s ease;
  filter: saturate(0.9);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 13, 11, 0.92);
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lightbox-close svg { width: 1rem; height: 1rem; }
.lightbox-img {
  position: relative; z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   CONTACTS
   ═══════════════════════════════════════════════════════════ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 28rem;
  margin: 3rem auto 0;
}
@media (min-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 36rem;
  }
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-left: 2px solid var(--gold-dim);
  transition: border-color 0.2s ease;
}
.contact-card:hover { border-color: var(--gold); }

.contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  opacity: 0.7;
}

.contact-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.contact-card a,
.contact-card span {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-light);
  transition: color 0.15s ease;
}
.contact-card a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--darker);
  padding: 2.5rem var(--container-px);
  text-align: center;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.footer-copy {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease both; }

/* Stagger animation for menu items */
.menu-item:nth-child(1)  { animation-delay: 0s; }
.menu-item:nth-child(2)  { animation-delay: 0.04s; }
.menu-item:nth-child(3)  { animation-delay: 0.08s; }
.menu-item:nth-child(4)  { animation-delay: 0.12s; }
.menu-item:nth-child(5)  { animation-delay: 0.16s; }
.menu-item:nth-child(6)  { animation-delay: 0.2s; }
.menu-item:nth-child(7)  { animation-delay: 0.24s; }
.menu-item:nth-child(8)  { animation-delay: 0.28s; }
.menu-item:nth-child(9)  { animation-delay: 0.32s; }
.menu-item:nth-child(10) { animation-delay: 0.36s; }
