:root {
  --cream: #fff7ea;
  --cream-strong: #f7e8cf;
  --terracotta: #b85c38;
  --terracotta-dark: #8e3f28;
  --olive: #657343;
  --olive-dark: #404b2a;
  --espresso: #2c1d17;
  --espresso-soft: #594238;
  --paper: #fffdf8;
  --line: rgba(44, 29, 23, 0.16);
  --shadow: 0 22px 55px rgba(44, 29, 23, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(44, 29, 23, 0.78);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.86;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--cream-strong);
  opacity: 1;
}

.header-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 234, 0.1);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-order:hover,
.header-order:focus-visible {
  border-color: rgba(255, 247, 234, 0.58);
  background: rgba(255, 247, 234, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.header-order strong {
  color: var(--cream-strong);
}

.header-order.has-items {
  border-color: rgba(255, 247, 234, 0.46);
  background: var(--terracotta);
  box-shadow: 0 10px 22px rgba(44, 29, 23, 0.18);
}

.header-order.has-items:hover,
.header-order.has-items:focus-visible {
  background: var(--terracotta-dark);
  box-shadow: 0 14px 28px rgba(44, 29, 23, 0.24);
}

.header-order.is-updated {
  animation: orderPulse 420ms ease;
}

@keyframes orderPulse {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.06);
  }
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  place-items: center;
  padding: 120px 22px 80px;
  overflow: hidden;
  background:
    linear-gradient(rgba(44, 29, 23, 0.32), rgba(44, 29, 23, 0.58)),
    url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=1800&q=82")
      center / cover;
  color: var(--paper);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(
    to bottom,
    rgba(255, 247, 234, 0) 0%,
    rgba(255, 247, 234, 0.08) 24%,
    rgba(255, 247, 234, 0.32) 52%,
    rgba(255, 247, 234, 0.72) 78%,
    var(--cream) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  transform: translateY(-4vh);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--cream-strong);
}

.hero-content .eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-content .eyebrow::before,
.hero-content .eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: rgba(255, 253, 248, 0.46);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.8rem);
}

h1 span {
  display: inline-block;
  font-size: 0.84em;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.8rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 36rem;
  margin: 22px auto 24px;
  color: rgba(255, 253, 248, 0.92);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  margin-bottom: 30px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: default;
}

.hero-badges span::before {
  content: "•";
  margin: 0 14px;
  color: rgba(255, 253, 248, 0.42);
  font-size: 0.9em;
  line-height: 1;
}

.hero-badges span:first-child::before {
  content: "";
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 12px 24px rgba(142, 63, 40, 0.24);
}

.button-primary:hover {
  background: var(--terracotta-dark);
}

.button-secondary {
  background: var(--olive);
  color: var(--paper);
}

.button-full {
  width: 100%;
}

.section {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.section-soft {
  background: var(--cream-strong);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section p,
.order-copy p {
  color: var(--espresso-soft);
  font-size: 1.02rem;
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.section-heading p:last-child {
  max-width: 660px;
  margin: 14px 0 0;
}

.menu-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 22px;
}

.menu-category {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(44, 29, 23, 0.08);
}

.menu-category h3 {
  margin-bottom: 18px;
}

.menu-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-item:first-of-type {
  border-top: 0;
}

.menu-item:hover {
  background: rgba(247, 232, 207, 0.36);
}

.menu-item.is-selected {
  background: rgba(184, 92, 56, 0.045);
  box-shadow: inset 0 0 0 1px rgba(184, 92, 56, 0.14);
}

.menu-item.is-selected:hover {
  background: rgba(184, 92, 56, 0.075);
  box-shadow:
    inset 0 0 0 1px rgba(184, 92, 56, 0.2),
    0 10px 20px rgba(44, 29, 23, 0.06);
}

.menu-item-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.menu-item p {
  margin: 0;
  font-size: 0.93rem;
}

.menu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.menu-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--cream-strong);
  color: var(--olive-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.price {
  color: var(--terracotta-dark);
  font-weight: 800;
  white-space: nowrap;
}

.add-button {
  justify-self: start;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(101, 115, 67, 0.32);
  border-radius: var(--radius);
  background: rgba(101, 115, 67, 0.1);
  color: var(--olive-dark);
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.add-button:hover,
.add-button:focus-visible {
  border-color: rgba(101, 115, 67, 0.54);
  background: rgba(101, 115, 67, 0.18);
  color: var(--olive-dark);
  outline: none;
  transform: translateY(-1px);
}

.menu-stepper {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 40px;
  padding: 5px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 900;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.menu-stepper:hover {
  box-shadow: 0 10px 22px rgba(44, 29, 23, 0.18);
  transform: translateY(-1px);
}

.menu-stepper button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream-strong);
  color: var(--espresso);
  cursor: pointer;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.menu-stepper button:hover,
.menu-stepper button:focus-visible,
.quantity-controls button:hover,
.quantity-controls button:focus-visible {
  background: var(--terracotta);
  color: var(--paper);
  outline: none;
  transform: scale(1.04);
}

.order-layout {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 26px;
}

.order-copy {
  align-self: start;
}

.order-panel {
  position: sticky;
  top: 82px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.order-panel-header,
.order-total,
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.item-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream-strong);
  color: var(--espresso-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.order-items {
  display: grid;
  max-height: 330px;
  margin: 20px 0;
  gap: 12px;
  overflow: auto;
}

.empty-order {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--espresso-soft);
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-line strong,
.receipt-line strong {
  font-size: 0.95rem;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button,
.remove-button,
.modal-close {
  border: 0;
  cursor: pointer;
}

.quantity-controls button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-strong);
  color: var(--espresso);
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.remove-button {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--terracotta-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.order-total {
  padding: 16px 0;
  border-top: 2px solid var(--espresso);
  font-size: 1.18rem;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--espresso-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--espresso);
}

.checkout-form input:focus {
  border-color: var(--terracotta);
  outline: 3px solid rgba(184, 92, 56, 0.16);
}

.find-us {
  display: grid;
  gap: 24px;
}

.contact-card {
  max-width: 580px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.contact-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  color: var(--olive-dark);
  font-weight: 900;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--espresso-soft);
}

.map-frame {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(44, 29, 23, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--espresso);
  color: var(--paper);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 253, 248, 0.7);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(44, 29, 23, 0.58);
}

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

.receipt-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-strong);
  color: var(--espresso);
  font-weight: 900;
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
  color: var(--espresso-soft);
}

.receipt-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--cream-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.receipt-lines {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt-total {
  margin-top: 16px;
  font-size: 1.15rem;
}

.receipt-thanks {
  margin: 22px 0 0;
  color: var(--espresso-soft);
}

.order-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(340px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--espresso);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.order-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .order-layout,
  .find-us {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  }

  .find-us {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-order {
    margin-left: auto;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    transform: none;
  }

  .order-panel {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
