:root {
  --ink: #1a120c;
  --paper: #fff4e3;
  --accent: #c99412;
  --accent-dark: #a87008;
  --accent-2: #f1c27d;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 2000;
}
.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: linear-gradient(90deg, rgba(20, 14, 8, 0.88), rgba(20, 14, 8, 0.48)),
    url("INTERIOR.jfif") center/cover no-repeat;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav ul li a:hover,
.cart-link:hover {
  color: var(--accent-2);
}

.cart-link {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 44px;
  height: 44px;
}

.logo-text {
  color: #f3e9ff;
}

.hero {
  min-height: 90vh;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 11, 7, 0.72), rgba(16, 11, 7, 0.28)),
    url("INTERIOR.jfif") center/cover no-repeat;
  color: #fff1d6;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero h2 {
  font-size: 48px;
  max-width: 720px;
  letter-spacing: -0.02em;
  margin: 10px 0;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.cta,
.secondary-cta,
.hero button,
.contact button,
.modal button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a120c;
  border-radius: 999px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.cta:hover,
.secondary-cta:hover,
.hero button:hover,
.contact button:hover,
.modal button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.secondary-cta {
  background: transparent;
  color: #fff1d6;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

section {
  padding: 80px 40px;
  text-align: center;
}

.about {
  background: #f9ebd4;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
}

.menu {
  background: #fff8ef;
}

.menu-subtitle {
  margin-top: -10px;
  color: #5a442f;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.menu-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.menu-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-card h3 {
  margin: 12px 0 6px;
}

.contact {
  background: #fff2dc;
}

.contact form {
  max-width: 520px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  font-family: inherit;
}

.contact-info {
  font-size: 16px;
  line-height: 1.6;
}

.contact-info .separator {
  margin: 0 8px;
  opacity: 0.6;
}

.order-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.form-note {
  font-size: 14px;
  color: #4a3b2a;
  margin: 10px 0 0;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 4px;
  font-size: 14px;
}

.rating-label {
  font-weight: 700;
}

.rating label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
}

.rating input {
  position: absolute;
  opacity: 0;
}

.rating .stars {
  letter-spacing: 2px;
  color: var(--accent);
}

.rating input:checked + .stars {
  color: #7c3aed;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.qty-btn {
  background: var(--accent);
  color: #1a120c;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
  line-height: 32px;
}

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

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: #1a120c;
}

.qty-add {
  background: var(--accent);
  color: #1a120c;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.qty-add:hover {
  background: var(--accent-dark);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1200;
}

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

.modal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: min(92vw, 420px);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.ghost-btn {
  background: transparent;
  color: #4a3b2a;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: none;
}

.cart-total {
  font-weight: 700;
}

#status-message.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1a120c;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
}

#status-message.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.menu-card.is-adding {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.site-footer {
  text-align: center;
  padding: 40px;
  background: #140e08;
  color: #fff;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    text-align: center;
  }

  .nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding: 80px 20px;
    background-position: center top;
  }

  .hero h2 {
    font-size: 30px;
  }

  section {
    padding: 60px 20px;
  }
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-weight: 700;
}

.cart-item-sub {
  font-size: 13px;
  color: #6b5642;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  background: var(--accent);
  color: #1a120c;
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 700;
  line-height: 28px;
}

.cart-btn:hover {
  background: var(--accent-dark);
}

.cart-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.cart-remove {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #4a3b2a;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.cart-remove:hover {
  background: rgba(0, 0, 0, 0.05);
}


@media (max-width: 768px) {
  .menu-container { grid-template-columns: 1fr; }
  .menu-card img { height: 200px; }
  .modal .modal-content { width: min(94vw, 420px); }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 26px; }
  .nav ul { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Cart modal scroll fix */
.modal { overflow: auto; }
.modal .modal-content { max-height: 85vh; overflow-y: auto; padding-bottom: 24px; }
.modal-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; }

html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
