/* ── Theme variables (dark = default) ── */
:root {
  --bg: #0f0f12;
  --card: #181921;
  --card-2: #202230;
  --text: #f6f7fb;
  --muted: #b5b8c8;
  --accent: #e7ad62;
  --accent-2: #ffcf8f;
  --line: #2e3245;
  color-scheme: dark;
}

/* ── Light-mode overrides ── */
:root.light {
  --bg: #f4f5f7;
  --card: #ffffff;
  --card-2: #eef0f4;
  --text: #1a1b1e;
  --muted: #5c5f6e;
  --accent: #c4852e;
  --accent-2: #a86b1d;
  --line: #d4d7e0;
  color-scheme: light;
}

/* ── Base ── */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Dark mode gets the fancy radial gradient */
:root:not(.light) body {
  background: radial-gradient(1200px 600px at 20% -10%, #2d2432 0%, #161722 45%, var(--bg) 100%);
}

/* ── Scroll-reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Headings (serif accent font) ── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ── Notice topbar ── */
.notice-topbar {
  background: #d26d2d;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

/* ── Links ── */
a { color: var(--accent-2); }
a:hover { color: var(--accent); }
:root.light a { color: var(--accent); }
:root.light a:hover { color: #8a5518; }

/* ── Social icons ── */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}
.social-icon.fb {
  background: #1877f2;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
}
.social-icon.fb:hover {
  color: #fff !important;
  filter: brightness(1.12);
}

/* ── Sticky header ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 18, 0.8);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}
:root.light .topbar {
  background: rgba(244, 245, 247, 0.85);
}

.brand { display: flex; align-items: center; }
.brand-link { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; transition: filter 0.3s ease; }
:root.light .brand-logo { filter: invert(1); }

nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }

/* ── Hamburger button — hidden on desktop ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: border-color 0.2s ease;
  padding: 0;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ── Buttons ── */
.button {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  color: #1b1a1a;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
}
.button:hover { filter: brightness(1.05); color: #000; }
.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: brightness(0.5) contrast(1.1);
}
/* Gradient overlay for modern look */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 18, 0.15) 0%,
    rgba(15, 15, 18, 0.3) 40%,
    rgba(15, 15, 18, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}
:root.light .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 44px 24px;
  text-align: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-2); font-size: 0.8rem; }
.hero .eyebrow { color: #ffcf8f; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; margin: 10px 0 12px; }
.hero h1 { color: #fff; }
.hero p { max-width: 780px; margin: 0 auto 18px; color: #e7e8f0; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Main layout ── */
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
:root.light .section {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.sub { color: var(--muted); margin-top: -5px; margin-bottom: 18px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery img,
.card img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.gallery img:first-child { grid-column: 1 / -1; height: 260px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ── Menu switcher tabs ── */
.menu-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: #12141e;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 4px 0 14px;
  transition: background 0.3s ease;
}
:root.light .menu-switcher { background: var(--card-2); }

.menu-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.menu-tab.is-active {
  background: #d26d2d;
  color: #fff;
}

.menu-pane { display: none; }
.menu-pane.is-active { display: block; }

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: var(--card);
  transition: background 0.3s ease, border-color 0.3s ease;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-2);
}
:root.light summary { color: var(--accent); }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* ── Menu items (with hover effect) ── */
.menu-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid #30344a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-color: var(--accent);
}
:root.light .menu-item {
  border-color: var(--line);
}
:root.light .menu-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.menu-item h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.menu-item .price {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.menu-item .desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Entree includes callout ── */
.menu-note {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(231,173,98,0.12), rgba(231,173,98,0.04));
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.menu-note strong {
  color: var(--accent-2);
}
:root.light .menu-note {
  background: linear-gradient(135deg, rgba(196,133,46,0.10), rgba(196,133,46,0.03));
}

@media (min-width: 980px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Hours list ── */
.hours {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.hours li {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.small { color: var(--muted); font-size: 0.9rem; }
.opentable { max-width: 180px; margin-top: 14px; }

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--muted);
  padding: 26px 10px 40px;
}

/* ── Back-to-top button ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: #1b1a1a;
  border-color: var(--accent);
}

/* ── Lightbox ── */
body.lightbox-open { overflow: hidden; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* ── Modal (existing) ── */
body.modal-open { overflow: hidden; }
.modal { display: none; }
.modal.is-open { display: block; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
}
.modal-panel {
  position: fixed;
  z-index: 201;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 680px);
  max-height: 88vh;
  overflow: auto;
  padding: 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ── OpenTable reservation form ── */
.ot-form {
  background: #fff;
  color: #1f1f23;
  border: 1px solid #d9d9df;
  border-radius: 12px;
  padding: 16px;
}
.ot-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555b66;
  font-weight: 700;
}
.ot-form input,
.ot-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d3d6df;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #14151a;
  font-size: 0.95rem;
}
.ot-form input:focus,
.ot-form textarea:focus {
  outline: none;
  border-color: #d26d2d;
  box-shadow: 0 0 0 3px rgba(210, 109, 45, 0.14);
}
.ot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.ot-grid p,
.ot-form p { margin: 0 0 10px; }

.ot-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #d26d2d;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}
.ot-submit:hover { filter: brightness(1.03); }
.ot-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Mobile action bar (call + directions) ── */
.mobile-actions {
  display: none;
}

@media (max-width: 900px) {
  .mobile-actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  :root.light .mobile-actions {
    background: rgba(244, 245, 247, 0.95);
  }
  .mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .mobile-action-btn:first-child {
    background: linear-gradient(135deg, #2a7d4f, #34a060);
    color: #fff;
  }
  .mobile-action-btn:first-child:hover {
    color: #fff;
  }
  .mobile-action-btn:last-child {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
  }
  .mobile-action-btn:last-child:hover {
    color: #fff;
  }
  .mobile-action-btn:active {
    transform: scale(0.97);
  }
  .mobile-action-btn svg {
    flex-shrink: 0;
  }

  /* Add bottom padding to footer so content isn't hidden behind the bar */
  footer {
    padding-bottom: 80px;
  }
  .back-to-top {
    bottom: 78px;
  }
}

/* ── Responsive / Mobile ── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .ot-grid { grid-template-columns: 1fr; }

  /* Center logo, show hamburger */
  .topbar {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .brand {
    grid-column: 2;
    justify-content: center;
  }
  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  /* Mobile nav: full-width dropdown */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 18, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    z-index: 100;
  }
  :root.light nav {
    background: rgba(244, 245, 247, 0.96);
  }
  nav.is-open { display: flex; }
  nav a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  nav a:last-child { border-bottom: none; }
  nav a:hover { background: rgba(255,255,255,0.04); color: var(--accent); }

  .back-to-top { bottom: 18px; right: 18px; }
}
