:root {
  --bg: #14110f;
  --bg-elevated: #1e1a17;
  --bg-card: #241f1b;
  --text: #f5efe6;
  --text-muted: #b5a99a;
  --accent: #c4a574;
  --accent-hover: #d4b88a;
  --accent-dim: rgba(196, 165, 116, 0.15);
  --border: rgba(196, 165, 116, 0.22);
  --danger: #c45c5c;
  --success: #5a9e6f;
  --radius: 14px;
  --header-h: 68px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: #c4a574 #14110f;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #14110f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4b88a, #a08050);
  border-radius: 9999px;
  border: 2px solid #14110f;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0c99a, #c4a574);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.header.scrolled {
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo:hover { color: var(--accent); }
.logo-mark { font-size: 1.35rem; }
.nav { display: flex; gap: 0.25rem; }
.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--accent-dim);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-toggle {
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cart-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1410;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cart-badge:empty,
.cart-badge[data-empty="1"] { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #1a1410;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1410;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #2a221c 0%, #14110f 50%, #1a1512 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  background-blend-mode: soft-light;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(20, 17, 15, 0.75) 40%, rgba(20, 17, 15, 0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
}
.hero-eyebrow,
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.features { padding: 3rem 0 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 0.65rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.section-desc { color: var(--text-muted); max-width: 40ch; margin: 0 auto; }

.menu { padding: 4rem 0; }
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--accent);
  color: #1a1410;
  border-color: var(--accent);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.menu-card.hidden { display: none; }
.menu-card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--bg-elevated);
}
.menu-card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.45rem;
}
.menu-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}
.menu-card p { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.menu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.menu-price { font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.qty-row { display: flex; align-items: center; gap: 0.35rem; }
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.about { padding: 4rem 0; background: var(--bg-elevated); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo-main {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(196, 165, 116, 0.2), transparent 50%),
    url("../img/menu-1.jpg") center/cover;
  border: 1px solid var(--border);
}
.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(20, 17, 15, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}
.about-visual { position: relative; }
.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}
.about-text > p { color: var(--text-muted); margin-bottom: 1.25rem; }
.about-list { list-style: none; margin-bottom: 1.75rem; }
.about-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.reviews { padding: 4rem 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.review-stars { color: var(--accent); margin-bottom: 0.75rem; }
.review-card p { color: var(--text-muted); margin-bottom: 1rem; }

.contact { padding: 4rem 0 5rem; background: var(--bg-elevated); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.contact-row {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head, .cart-foot { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart-foot { border-bottom: 0; border-top: 1px solid var(--border); margin-top: auto; }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 2rem; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.cart-close { border: 0; background: transparent; color: var(--text-muted); font-size: 1.75rem; cursor: pointer; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  z-index: 300;
  opacity: 0;
  transition: 0.3s;
  font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(20, 17, 15, 0.97);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-grid { grid-template-columns: 1fr; }
}
