@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&display=swap');

:root {
  --white: #ffffff;
  --cream: #FAFAF8;
  --black: #111111;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --border: #E5E5E5;
  --nav-h: 60px;
  --accent: #7d2a2a;
  --accent-dark: #5e1f1f;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--black);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

/* ── NAV ──────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 350ms ease, border-color 350ms ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 350ms ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 180ms ease, color 350ms ease;
}

.nav-links a:hover {
  opacity: 0.4;
}

.nav-order {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid var(--accent-dark) !important;
  padding: 9px 20px;
  transition: background 200ms ease, border-color 200ms ease !important;
}

.nav-order:hover {
  background: rgba(82, 0, 0, 0.12) !important;
  border-color: var(--accent-dark) !important;
  opacity: 1 !important;
}

/* scrolled state — frosted glass */
.site-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav.nav-scrolled .nav-logo img {
  filter: brightness(0);
}

.site-nav.nav-scrolled .nav-links a {
  color: var(--black);
}

.site-nav.nav-scrolled .nav-order {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: transparent !important;
}

.site-nav.nav-scrolled .nav-order:hover {
  background: var(--accent-dark) !important;
}

/* ── OVERLAY ─────────────────────────────────────── */

#bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}

/* ── HERO ─────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}

.hero-content {
  max-width: 820px;
  color: var(--white);
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-location {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────────── */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 34px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: #5e1f1f5d;
}

/* ── INFO BAR ─────────────────────────────────────── */

.info-bar {
  position: relative;
  z-index: 10;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.info-link {
  color: var(--black);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.info-link:hover {
  opacity: 1;
  color: var(--accent);
}

.info-sep {
  color: var(--gray-light);
  user-select: none;
}

/* ── FOOTER ───────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

#socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

#socials a {
  display: flex;
  align-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#socials a:hover {
  opacity: 0.4;
  transform: translateY(-2px);
}

#socials img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-light);
  letter-spacing: 0.03em;
}

/* ── MENU SECTION ─────────────────────────────────── */

.menu-full {
  position: relative;
  z-index: 10;
  background: var(--white);
}

.menu-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 36px 100px;
}

.menu-page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 72px;
  position: sticky;
  top: calc(var(--nav-h) + 0px);
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  padding-bottom: 12px;
  transform: translateX(40vw);
  transition: transform 0.85s ease-in-out, opacity 0.6s ease-in-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-page-title h2 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

#open-time {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

#open-time[data-status="open"] {
  color: #2a7d4f;
}

#open-time[data-status="closed"] {
  color: #c0392b;
}

.menu-page-title.in-view {
  opacity: 1;
  transform: translateX(0);
}

.menu-page-title.is-sticky {
  transform: translateX(var(--sticky-x, 0));
  transition: transform 0.6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .menu-page-title {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.menu-cat {
  margin-bottom: 64px;
}

.menu-cat:last-child {
  margin-bottom: 0;
}

.cat-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
}

.items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.item-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-body h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.item-body p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
}

.item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.adds-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin: 20px 0 10px;
}

.adds-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adds-list li {
  font-size: 0.8rem;
  color: var(--gray-dark);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 4px 12px;
  transition: color 180ms ease, border-color 180ms ease;
}

.adds-list li:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .menu-wrap {
    padding: 56px 20px 72px;
  }

  .menu-page-title {
    margin-bottom: 48px;
  }

  .items-list {
    grid-template-columns: 1fr;
  }

  .item-thumb {
    width: 64px;
    height: 64px;
  }
}

/* ── ENTRY ANIMATIONS ─────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-target {
  opacity: 0;
}

body.animate-in .animate-target {
  animation: fadeUp 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ── TOOLTIP ──────────────────────────────────────── */

.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── SCROLL REVEAL ────────────────────────────────── */

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sr-delay, 0ms);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── PHONE QR MODAL ───────────────────────────────── */

#phone-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
}

#phone-modal.is-open {
  display: flex;
}

#phone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

#phone-modal-inner {
  position: relative;
  background: var(--white);
  padding: 44px 40px 36px;
  text-align: center;
  z-index: 1;
  min-width: 260px;
}

#phone-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-light);
  transition: color 180ms ease;
}

#phone-modal-close:hover {
  color: var(--black);
}

#phone-modal-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

#phone-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#phone-modal-number {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* ── RESPONSIVE ───────────────────────────────────── */

/* ── 404 PAGE ─────────────────────────────────────── */

/* Anchor the footer to the bottom when the page is short on content */
body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-404 .hero {
  flex: 1 0 auto;
}

body.page-404 .info-bar,
body.page-404 .site-footer {
  flex-shrink: 0;
}

/* Give the "Error 404" tagline the brand accent */
body.page-404 .hero-tagline {
  opacity: 1;
}

@media (max-width: 600px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .nav-order {
    padding: 8px 14px;
  }

  .info-bar {
    padding: 20px;
    gap: 8px;
    font-size: 0.82rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
}
