@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #202020;
  --muted: #6f6f6f;
  --paper: #f7f5f0;
  --card: #ffffff;
  --accent: #a76a32;
  --accent-dark: #7d4b20;
  --line: #e7e1d8;
  --shadow: 0 12px 35px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  min-height: 590px;
  color: white;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,12,9,.88), rgba(15,12,9,.38)),
    url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1800&q=85")
    center/cover no-repeat;
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1.15rem;
  color: white;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.cart-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  display: none;
}
.nav-order {
  color: white;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 11px 17px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-order:hover {
  background: rgba(255, 255, 255, 0.1);
}
.hero-content { padding: 105px 0 90px; max-width: 760px; margin-left: max(18px, calc((100vw - 1120px)/2)); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero .eyebrow { color: #e8bb8b; }
h1, h2 { font-family: "Playfair Display", serif; }
h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .94; margin: 0 0 24px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; line-height: 1.05; }
.hero-text { max-width: 600px; font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { border: 1px solid rgba(255,255,255,.5); color: white; }
.btn-light { background: white; color: var(--ink); }

.intro { padding: 82px 0 36px; text-align: center; max-width: 760px; }
.intro p:last-child { color: var(--muted); line-height: 1.7; }

.menu-section { padding: 20px 0 90px; }
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
}
.category {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.category.active { background: var(--ink); color: white; border-color: var(--ink); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.menu-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.menu-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.menu-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.description { color: var(--muted); font-size: .93rem; line-height: 1.55; min-height: 44px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font-weight: 800; font-size: 1.08rem; }
.add-btn {
  border: 0; background: var(--ink); color: white; border-radius: 999px;
  padding: 10px 14px; cursor: pointer; font-weight: 700;
}
.add-btn:hover { background: var(--accent); }

.order-banner { background: var(--ink); color: white; padding: 56px 0; }
.order-banner p { color: rgba(255,255,255,.7); line-height: 1.6; max-width: 600px; }
.order-banner .eyebrow { color: #e8bb8b; }
.order-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.footer { background: #111; color: white; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 35px; }
.footer p { color: #aaa; line-height: 1.6; margin: 8px 0; }
.copyright { border-top: 1px solid #2c2c2c; padding-top: 18px; text-align: center; color: #777; font-size: .85rem; }

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-item-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-item-price {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--line);
}

.qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  background: white;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.remove-btn:hover {
  background: #e74c3c;
  color: white;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 1rem;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
}

.total-amount {
  color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

@media (max-width: 850px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 540px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { height: 68px; }
  .nav-right {
    gap: 8px;
  }
  .cart-btn, .nav-order {
    font-size: .82rem;
    padding: 9px 12px;
  }
  .hero-content { padding: 90px 0 70px; margin-left: 12px; margin-right: 12px; }
  h1 { font-size: 3.5rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .order-banner-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-controls {
    width: 100%;
    margin-top: 12px;
    justify-content: space-between;
  }
  .modal-actions {
    flex-direction: column;
  }
}
