:root {
  --teal-950: #173942;
  --teal-900: #203f49;
  --teal-800: #294e59;
  --cream-50: #fffaf3;
  --cream-100: #f7eddf;
  --cream-200: #ead9c5;
  --cream-300: #dcc6ae;
  --brown-500: #9d6242;
  --brown-600: #815036;
  --gold-300: #eadb8b;
  --ink: #283438;
  --muted: #69777a;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(31, 55, 62, .12);
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(219, 201, 110, .17), transparent 28rem),
    var(--cream-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  border-radius: 10px;
  color: var(--teal-950);
  background: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--cream-100);
  background: rgba(29, 65, 75, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(10, 31, 37, .18);
}
.header-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(234, 219, 139, .35);
  border-radius: 14px;
}
.brand span { min-width: 0; display: grid; }
.brand strong { color: #fff0ad; letter-spacing: .14em; }
.brand small { color: rgba(255,255,255,.74); font-size: .75rem; }
.header-actions { display: flex; gap: .55rem; }
.action-link {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--teal-950);
  background: var(--gold-300);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.action-link.secondary {
  color: var(--cream-100);
  background: transparent;
  border-color: rgba(255,255,255,.28);
}
.brand-pattern {
  height: 7px;
  background-image: url("assets/brand/brand-pattern.jpg");
  background-position: center;
  background-size: auto 38px;
}

.hero {
  width: min(1240px, calc(100% - 28px));
  min-height: 450px;
  margin: 28px auto 20px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  overflow: hidden;
  border-radius: 30px;
  background: var(--teal-900);
  box-shadow: var(--shadow);
}
.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--cream-100);
}
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--gold-300);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff4bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: .98;
}
.hero-copy > p:not(.eyebrow):not(.address) {
  max-width: 58ch;
  margin: 1.45rem 0;
  color: rgba(255,255,255,.8);
}
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--gold-300);
  font-weight: 800;
}
.hero-contacts a { text-decoration: none; }
.address {
  max-width: 50ch;
  margin: .85rem 0 0;
  color: rgba(255,255,255,.62);
  font-size: .88rem;
}
.hero-image {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: center;
}

.menu-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 28px auto 60px;
}
.menu-toolbar-wrap {
  position: sticky;
  top: 81px;
  z-index: 20;
  padding: 12px;
  border: 1px solid rgba(129, 80, 54, .12);
  border-radius: 22px;
  background: rgba(255, 250, 243, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(31, 55, 62, .09);
}
.search-box {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: 0 .75rem 0 1rem;
  border: 1px solid var(--cream-300);
  border-radius: 15px;
  background: var(--white);
}
.search-box:focus-within {
  border-color: var(--brown-500);
  box-shadow: 0 0 0 4px rgba(157, 98, 66, .12);
}
.search-icon {
  color: var(--brown-500);
  font-size: 1.4rem;
  transform: rotate(-20deg);
}
.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}
.search-box input::placeholder { color: #8c9698; }
.search-box input[type="search"]::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; }
#clear-search {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--brown-600);
  background: var(--cream-100);
  font-size: 1.35rem;
  cursor: pointer;
}
.filter-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-chips {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  scrollbar-width: thin;
}
.category-chip {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 .85rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  color: #5c6769;
  background: var(--white);
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
}
.category-chip.is-active {
  color: var(--white);
  border-color: var(--brown-500);
  background: var(--brown-500);
}
.suggestion-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}
.suggestion-toggle input { accent-color: var(--brown-500); }
.results-summary { margin: 22px 4px 12px; color: var(--muted); }
.results-summary strong { color: var(--teal-900); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.menu-card {
  position: relative;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(129, 80, 54, .12);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,237,223,.72));
  box-shadow: 0 10px 30px rgba(31,55,62,.065);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.menu-card:not(.has-image)::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 118px;
  height: 118px;
  border: 22px solid rgba(157,98,66,.07);
  border-radius: 50%;
}
.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157,98,66,.28);
  box-shadow: 0 18px 35px rgba(31,55,62,.11);
}
.card-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f6ebdc;
  border-bottom: 1px solid rgba(129, 80, 54, .1);
}
.card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(23,57,66,.08), transparent);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.menu-card:hover .card-image img { transform: scale(1.025); }
.card-content {
  min-height: 164px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 19px;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.card-category {
  margin: 0 0 .45rem;
  color: var(--brown-500);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.menu-card h2 {
  margin: 0;
  color: var(--teal-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.27rem;
  font-weight: 650;
  line-height: 1.2;
}
.price-block { flex: 0 0 auto; text-align: right; }
.price-single {
  display: block;
  color: var(--brown-600);
  font-size: 1.08rem;
  font-weight: 900;
  white-space: nowrap;
}
.currency {
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .07em;
}
.variant-list {
  display: grid;
  gap: .34rem;
  margin-top: 15px;
}
.variant {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .32rem;
  border-top: 1px dashed rgba(129,80,54,.2);
  color: var(--muted);
  font-size: .83rem;
}
.variant strong { color: var(--brown-600); white-space: nowrap; }
.card-note { margin: 11px 0 0; color: var(--muted); font-size: .78rem; }
.card-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.suggestion-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 .55rem;
  border-radius: 999px;
  color: var(--brown-600);
  background: #f3e6d5;
  font-size: .68rem;
  font-weight: 850;
}
mark {
  padding: 0 .08em;
  color: inherit;
  background: #f7e59a;
  border-radius: .18em;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--cream-300);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.62);
}
.empty-state strong {
  color: var(--teal-900);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}
.empty-state p { color: var(--muted); }
.empty-state button {
  min-height: 43px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--brown-500);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 32px max(18px, env(safe-area-inset-left));
  color: rgba(255,255,255,.72);
  background: var(--teal-950);
}
.site-footer img { flex: 0 0 auto; border-radius: 14px; }
.site-footer strong { color: var(--gold-300); }
.site-footer p { max-width: 70ch; margin: .2rem 0 0; font-size: .82rem; }
.noscript { margin: 1rem; padding: 1rem; border-radius: 12px; color: #513f2c; background: #fff0d5; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .menu-toolbar-wrap { top: 80px; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 66px; }
  .brand img { width: 50px; height: 50px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .68rem; }
  .action-link { min-height: 38px; padding: 0 .8rem; font-size: .78rem; }
  .hero { margin-top: 14px; grid-template-columns: 1fr; }
  .hero-copy { order: 2; padding: 28px 24px 30px; }
  .hero-image {
    order: 1;
    min-height: 0;
    height: auto;
    aspect-ratio: 1418 / 1050;
    object-position: center 61%;
  }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4.2rem); }
  .menu-shell { margin-top: 18px; }
  .menu-toolbar-wrap { top: 73px; padding: 9px; border-radius: 18px; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .category-chips { width: 100%; }
  .suggestion-toggle { padding-left: 4px; }
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
  .menu-card { min-height: 0; }
  .card-content { min-height: 146px; padding: 18px; }
  .site-footer { align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-inner { width: min(100% - 18px, 1240px); }
  .brand small { display: none; }
  .header-actions { gap: .35rem; }
  .action-link.secondary { display: none; }
  .action-link { padding: 0 .72rem; }
  .hero-contacts { font-size: .9rem; }
  .search-box { min-height: 49px; }
  .card-top { gap: .65rem; }
  .menu-card h2 { font-size: 1.16rem; }
  .price-single { font-size: 1rem; }
}

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

.admin-preview-notice {
  width: min(1240px, calc(100% - 28px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: .65rem 1rem;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  border: 1px solid rgba(157, 98, 66, .26);
  border-radius: 15px;
  color: #5e402f;
  background: #fff3d5;
  box-shadow: 0 8px 25px rgba(31,55,62,.06);
}
.admin-preview-notice[hidden] { display: none; }
.admin-preview-notice strong { color: var(--teal-900); }
.admin-preview-notice span { flex: 1 1 420px; }
.admin-preview-notice a { font-weight: 800; }
