:root {
  --sage: #8b9a6b;
  --sage-dark: #5c6649;
  --yellow: #f4c95f;
  --cream: #f7f4ec;
  --ink: #2a3224;
  --muted: #6a7360;
  --line: rgba(42, 50, 36, 0.12);
  --surface: rgba(255, 255, 255, 0.72);
  --danger: #9b3b2e;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --max: 68rem;
  --radius: 1.1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(244, 201, 95, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(139, 154, 107, 0.22), transparent 50%),
    linear-gradient(165deg, #fffdf8 0%, var(--cream) 42%, #eef1e4 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f7f4ec;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(42, 50, 36, 0.05);
}

.site-header__inner,
.page,
.footer-inner,
.cat-nav-wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.55rem 0 0.45rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark__logo {
  width: clamp(5.5rem, 17vw, 7.25rem);
  height: auto;
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.header-meta {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.header-meta--table {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 154, 107, 0.22);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(92, 102, 73, 0.18);
}

.nav {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover {
  color: var(--sage-dark);
}

.nav a[aria-current="page"] {
  color: var(--sage-dark);
}

.page-menu .nav a[aria-current="page"] {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.page {
  padding-block: 1.5rem 4rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  min-height: min(78vh, 42rem);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    linear-gradient(180deg, rgba(42, 50, 36, 0.15), rgba(42, 50, 36, 0.62)),
    url("../assets/photos/interior.webp?v=2") center / cover no-repeat;
  color: #fffdf8;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  animation: hero-in 0.9s ease both;
}

.hero__brand {
  width: clamp(9rem, 28vw, 13rem);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero p {
  margin: 0.85rem 0 0;
  max-width: 34ch;
  font-size: 1.08rem;
  color: rgba(255, 253, 248, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(244, 201, 95, 0.35);
}

.btn--primary:hover {
  background: #ffd76f;
  color: var(--ink);
}

.btn--ghost {
  background: rgba(255, 253, 248, 0.14);
  color: #fffdf8;
  border: 1px solid rgba(255, 253, 248, 0.35);
}

.btn--solid {
  background: var(--sage-dark);
  color: #fffdf8;
}

.btn--solid:hover {
  background: #4a533a;
  color: #fffdf8;
}

.btn--wide {
  width: 100%;
}

.section {
  margin-top: 2.75rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section > p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.photo-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: #d9decc;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-strip figure:hover img {
  transform: scale(1.04);
}

.contacts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.contacts a {
  font-weight: 600;
  text-decoration: none;
}

.contacts dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.contacts dd {
  margin: 0.15rem 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}

.social-link:hover {
  color: var(--sage-dark);
}

.social-link__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.map-frame {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #d9decc;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Menu */
.menu-top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.menu-top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.cat-nav-wrap {
  padding: 0 0 0.7rem;
}

.cat-nav-viewport {
  --cat-fade: 1.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.cat-nav-viewport.can-scroll-left {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 100%
  );
}

.cat-nav-viewport.can-scroll-right {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
}

.cat-nav-viewport.can-scroll-left.can-scroll-right {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--cat-fade),
    #000 calc(100% - var(--cat-fade)),
    transparent 100%
  );
}

.cat-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* No side gutter — first/last chips align with .page content column
     (Menu / section titles / product tiles share the same max width). */
  padding-inline: 0;
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-nav a:hover {
  border-color: var(--sage);
  background: rgba(139, 154, 107, 0.12);
}

.cat-nav a.is-active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fffdf8;
}

.menu-section {
  margin-bottom: 2rem;
  scroll-margin-top: var(--sticky-offset, 8.5rem);
}

.menu-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.85rem;
}

.menu-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.menu-item__media {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(139, 154, 107, 0.25), rgba(244, 201, 95, 0.18)),
    #e4e8d8;
}

.menu-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item__body {
  padding: 0.85rem 0.95rem 0.15rem;
}

.menu-item__name {
  margin: 0;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.3;
}

.menu-item__price {
  margin: 0;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
}

.menu-item__actions {
  padding: 0.4rem 0.95rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-item__actions .qty {
  flex-shrink: 0;
  gap: 0.28rem;
  padding: 0.15rem;
}

.menu-item__actions .qty button {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.92rem;
}

.menu-item__actions .qty span {
  min-width: 1.15rem;
  font-size: 0.9rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 154, 107, 0.12);
  border-radius: 999px;
  padding: 0.2rem;
}

.qty button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.qty span {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(42, 50, 36, 0.94);
  color: #fffdf8;
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.order-bar.is-visible {
  transform: translateY(0);
}

.order-bar__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.order-bar .btn--primary {
  flex: 0 0 auto;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.35s ease both;
}

.review-list,
.review-meta {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row__name {
  font-weight: 650;
}

.review-row__price {
  color: var(--muted);
  font-size: 0.92rem;
}

.review-row__mods {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.25rem;
}

.review-row__mod {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.review-row__mod-price {
  font-weight: 650;
  color: var(--ink);
  opacity: 0.72;
}

.mod-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(42, 50, 36, 0.45);
}

.mod-backdrop[hidden],
.mod-sheet[hidden] {
  display: none !important;
}

.mod-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  max-height: min(88vh, 40rem);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.mod-sheet:not([hidden]) {
  pointer-events: auto;
}

.mod-sheet__inner {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border-radius: 1.1rem 1.1rem 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 1.1rem 1.1rem 0;
  box-shadow: 0 -12px 40px rgba(42, 50, 36, 0.18);
  max-height: min(88vh, 40rem);
  overflow: hidden;
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: panel-in 0.28s ease both;
}

.mod-sheet__inner h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  flex: 0 0 auto;
}

.mod-body {
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
}

.mod-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.mod-group legend {
  font-weight: 700;
  margin-bottom: 0.45rem;
  padding: 0;
}

.mod-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}

.mod-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
  cursor: pointer;
}

.mod-option--qty {
  grid-template-columns: 1fr auto auto;
  cursor: default;
}

.mod-option--qty .mod-option__name {
  font-weight: 550;
}

.mod-option--qty .qty {
  margin-left: 0.15rem;
}

.mod-option:has(input:checked),
.mod-option.is-active {
  border-color: var(--sage-dark);
  background: rgba(139, 154, 107, 0.14);
}

.mod-option input {
  accent-color: var(--sage-dark);
}

.mod-option__price {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.mod-sheet__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  margin-top: 0.75rem;
  padding: 0.85rem 0 calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.mod-sheet__price {
  font-weight: 750;
  font-size: 1.2rem;
}

.mod-sheet__actions {
  display: flex;
  gap: 0.55rem;
}

body.has-mod-sheet {
  overflow: hidden;
}

.service-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
}

.service-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 650;
}

.service-toggle label:has(input:checked) {
  border-color: var(--sage-dark);
  background: rgba(139, 154, 107, 0.18);
}

.service-toggle input {
  accent-color: var(--sage-dark);
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.pay-callout {
  color: var(--danger);
  font-weight: 650;
  background: rgba(155, 59, 46, 0.14);
  border: 1px solid rgba(155, 59, 46, 0.4);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0 0;
}

.success-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: calc(var(--radius) + 0.2rem);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  max-width: 28rem;
  margin: 2rem auto;
}

.success-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.order-id {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(139, 154, 107, 0.18);
  font-weight: 750;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
}

.error-banner {
  background: rgba(155, 59, 46, 0.1);
  color: var(--danger);
  border: 1px solid rgba(155, 59, 46, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

/* Honeypot — off-screen; bots that fill "company" are rejected server-side */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loading,
.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

body.has-order-bar {
  padding-bottom: 5.5rem;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .header-meta:not(.header-meta--table) {
    display: none;
  }

  .nav {
    display: none;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip figure:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
