/* ==========================================================================
   Ember & Vine — site styles
   Change the brand colours and fonts in :root below.
   ========================================================================== */

:root {
  --ink: #1c1512;
  --ink-soft: #4a3f39;
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --sand: #ebe0cf;
  --ember: #c4502a;
  --ember-dark: #9e3c1c;
  --gold: #e3a857;
  --line: rgba(28, 21, 18, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 21, 18, 0.1);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ember-dark); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold); }

p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.8em;
}
.muted { color: var(--ink-soft); opacity: 0.85; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ember);
  background: var(--ember);
  color: #fff;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 241, 232, 0.5); }
.btn-ghost:hover { background: rgba(247, 241, 232, 0.1); border-color: var(--cream); }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(28, 21, 18, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--cream); text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand em { color: var(--gold); font-weight: 500; }
.brand-mark { width: 34px; height: 34px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--cream); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; opacity: 0.85;
}
.site-nav a:not(.btn):hover { opacity: 1; color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--cream); transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px;
    background: rgba(28, 21, 18, 0.98);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(247, 241, 232, 0.1); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 80% 110%, rgba(196, 80, 42, 0.55), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(227, 168, 87, 0.15), transparent 50%),
    linear-gradient(160deg, #2a1d17 0%, #1c1512 60%, #120d0b 100%);
}
.hero-glow {
  position: absolute; right: -10%; bottom: -30%;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 168, 87, 0.28), rgba(196, 80, 42, 0.12) 40%, transparent 65%);
  filter: blur(20px);
  animation: flicker 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flicker {
  0% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0.85; transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

.hero-inner { position: relative; max-width: 1140px; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { font-size: 1.15rem; max-width: 560px; color: rgba(247, 241, 232, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 56px; }
.hero-facts {
  list-style: none; margin: 0; padding: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 20px 48px;
  border-top: 1px solid rgba(247, 241, 232, 0.15);
  max-width: 640px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--cream); }
.hero-facts span { font-size: 0.88rem; color: rgba(247, 241, 232, 0.65); }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark a { color: var(--gold); }
.section-dark .muted { color: rgba(247, 241, 232, 0.7); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Decorative art panels (swap for real photos any time) ------------------ */
.art-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 360px; /* older browsers without aspect-ratio */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.art-panel img { width: 100%; height: 100%; object-fit: cover; }
.art-fire {
  background:
    radial-gradient(circle at 50% 85%, #ffd27a 0%, #f08a3c 12%, #c4502a 26%, transparent 48%),
    radial-gradient(circle at 30% 90%, rgba(255, 160, 70, 0.7), transparent 30%),
    radial-gradient(circle at 70% 92%, rgba(255, 120, 50, 0.6), transparent 28%),
    radial-gradient(ellipse at 50% 20%, #3a2a22, #1c1512 70%);
}
.art-fire::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 18%; height: 58%;
  border: 2px solid rgba(227, 168, 87, 0.25);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.art-caption {
  position: absolute; left: 20px; bottom: 18px;
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(247, 241, 232, 0.8);
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ember); line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* Menu ------------------------------------------------------------------- */
.tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.tabs button {
  font: 500 0.95rem var(--font-body);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.tabs button:hover { border-color: var(--ember); color: var(--ember); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.menu-panel { animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 64px;
}
@media (max-width: 720px) { .menu-list { grid-template-columns: 1fr; } }
.menu-list li { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.item-head { display: flex; align-items: baseline; gap: 12px; }
.item-head h3 { margin: 0; font-size: 1.4rem; }
.item-head::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(28, 21, 18, 0.25); transform: translateY(-4px); }
.price { order: 2; font-weight: 600; color: var(--ember-dark); white-space: nowrap; }
.menu-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.tags { display: inline-flex; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 4px;
  background: var(--sand); color: var(--ink-soft);
}
.menu-note { text-align: center; margin-top: 28px; font-style: italic; color: var(--ink-soft); }
.legend { text-align: center; margin-top: 40px; font-size: 0.85rem; color: var(--ink-soft); }
.legend .tag { margin: 0 4px 0 14px; }

/* Quotes ----------------------------------------------------------------- */
.quotes { background: var(--ember); color: #fff; padding: 72px 0; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; gap: 32px; } }
.quote-grid figure { margin: 0; }
.quote-grid blockquote {
  margin: 0 0 12px;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.55rem; line-height: 1.3;
}
.quote-grid figcaption { font-size: 0.85rem; letter-spacing: 0.05em; opacity: 0.85; }


/* Reservation form ------------------------------------------------------- */
.big-contact { font-family: var(--font-display); font-size: 2.2rem; margin: 24px 0 8px; }
.big-contact a { text-decoration: none; }

.reserve-form {
  background: rgba(247, 241, 232, 0.05);
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
@media (max-width: 520px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

.reserve-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; color: rgba(247, 241, 232, 0.85); }
.optional { font-weight: 400; opacity: 0.6; }
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(247, 241, 232, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color-scheme: dark;
}
.reserve-form select option { color: var(--ink); background: var(--paper); }
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 168, 87, 0.25); }
.reserve-form [aria-invalid="true"] { border-color: #ff8a6b; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.92rem; }
.form-status.error { color: #ff9f85; }
.form-status.success { color: #a8e6a1; }

/* Visit ------------------------------------------------------------------ */
.hours-title { margin-top: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.6rem; }
.open-now {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.open-now:empty { display: none; }
.open-now.is-open { background: #e3f3df; color: #25632a; }
.open-now.is-closed { background: var(--sand); color: var(--ink-soft); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--ember-dark); }


/* Footer ----------------------------------------------------------------- */
.site-footer { background: #120d0b; color: var(--cream); padding: 64px 0 28px; }
.site-footer .muted { color: rgba(247, 241, 232, 0.6); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 32px; }
.site-footer h4 { font-size: 1.2rem; color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 232, 0.1);
  font-size: 0.85rem;
}
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }

/* Scroll reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Floating "Order on WhatsApp" button on the main site ----------------------- */
.chat-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--ember); color: #fff; text-decoration: none;
  font: 600 0.95rem var(--font-body);
  box-shadow: 0 12px 30px rgba(196, 80, 42, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.chat-fab:hover { background: var(--ember-dark); color: #fff; transform: translateY(-2px); }
.chat-fab svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .chat-fab span { display: none; } .chat-fab { padding: 16px; } }
.tag-spicy { background: #f7ddd2; color: #8c3413; }
.tag-popular { background: #fdecc8; color: #7a4b00; }
.menu-list li.sold-out { opacity: 0.55; }
.menu-list li.sold-out .price { color: var(--ink-soft); font-weight: 500; }

/* Restaurants and food photos ------------------------------------------- */
.restaurant-picker { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 20px; scroll-snap-type: x mandatory; }
.restaurant-picker[hidden], .restaurant-info[hidden] { display: none; }
.restaurant-card {
  flex: none; width: 140px; scroll-snap-align: start;
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 10px; border-radius: var(--radius); border: 2px solid transparent;
  background: var(--paper); box-shadow: var(--shadow); cursor: pointer;
  font: 600 0.92rem var(--font-body); color: var(--ink);
}
.restaurant-card[aria-pressed="true"] { border-color: var(--ember); }
.restaurant-card img, .restaurant-card-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.restaurant-card-ph { display: grid; place-items: center; background: var(--sand); color: var(--ember); font: 600 2.2rem var(--font-display); }
.restaurant-info { display: flex; gap: 18px; align-items: center; max-width: 760px; margin: 0 auto 28px; }
.restaurant-info h3 { font-size: 1.8rem; margin: 0 0 4px; }
.restaurant-info p { margin: 0; color: var(--ink-soft); }
.restaurant-photo { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); flex: none; box-shadow: var(--shadow); }
@media (max-width: 520px) { .restaurant-info { flex-direction: column; text-align: center; } .restaurant-photo { width: 100%; height: 180px; } }
.menu-list li.has-img { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: start; }
.dish-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--sand); }

/* Homepage photo (set on the admin page) ---------------------------------- */
.hero.has-photo {
  background:
    linear-gradient(90deg, rgba(18, 13, 11, 0.82) 0%, rgba(18, 13, 11, 0.55) 60%, rgba(18, 13, 11, 0.25) 100%),
    linear-gradient(180deg, rgba(18, 13, 11, 0.15) 0%, rgba(18, 13, 11, 0.55) 100%),
    var(--hero-photo) center / cover no-repeat,
    #1c1512;
}
.hero.has-photo .hero-glow { display: none; }
@media (max-width: 720px) { .hero.has-photo { background-position: center, center, 70% center; } }

/* "Our kitchen" photo (set on the admin page) ----------------------------- */
.art-panel.has-photo { background: var(--sand); }
.art-panel.has-photo::before { display: none; }
.art-panel.has-photo img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.art-panel.has-photo .art-caption { z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
