:root {
  --ink: #27221c;
  --muted: #746b61;
  --paper: #f4efe5;
  --paper-light: #fbf8f1;
  --green: #31473a;
  --green-soft: #dfe6da;
  --terracotta: #ad5b3d;
  --gold: #b58a45;
  --line: rgba(39, 34, 28, 0.15);
  --shadow: 0 18px 60px rgba(60, 44, 31, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(181, 138, 69, 0.12), transparent 28rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--green);
  font: 600 1.35rem Georgia, serif;
}

.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.12rem Georgia, serif; letter-spacing: 0.12em; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; }

.language-switcher { display: flex; gap: 0.25rem; }
.language-switcher button {
  min-width: 2.65rem;
  min-height: 2.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  width: min(1180px, calc(100% - 2rem));
  min-height: 39rem;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.5rem, 9.2vw, 8.2rem);
  line-height: 0.91;
  letter-spacing: -0.052em;
}

h1 em { color: var(--green); font-weight: 400; }
.hero-intro { max-width: 660px; margin: 2rem 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.hero-note { padding-left: 1.5rem; border-left: 1px solid var(--gold); color: var(--muted); }
.hero-note span { color: var(--gold); font: 500 clamp(2.4rem, 5vw, 4.2rem) Georgia, serif; }
.hero-note p { margin: 0.4rem 0 0; font-size: 0.9rem; }

.menu-shell { padding: clamp(3rem, 7vw, 6.5rem) max(1rem, calc((100% - 1180px) / 2)); background: var(--paper-light); }
.menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.menu-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -0.035em; }
.load-state { max-width: 21rem; margin: 0 0 0.5rem; color: var(--muted); font-size: 0.88rem; text-align: right; }
.load-state[data-state="ready"]::before { content: "●"; margin-right: 0.5rem; color: #578252; }
.load-state[data-state="error"] { color: #9c3d30; }

.category-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin: 2.5rem -1rem 0;
  padding: 0.8rem 1rem;
  background: rgba(251, 248, 241, 0.94);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a { flex: 0 0 auto; padding: 0.52rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.78rem; font-weight: 720; }

.menu-group {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.menu-group-head { display: grid; grid-template-columns: minmax(180px, 0.45fr) 1fr; gap: 2rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.menu-group-head h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.025em; }
.menu-group-head p { justify-self: end; margin: 0; color: var(--muted); font-size: 0.85rem; }

.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); padding-top: 1.5rem; }
.food-card { min-width: 0; overflow: hidden; border-radius: 0.5rem; background: #fff; box-shadow: 0 8px 30px rgba(58, 45, 34, 0.08); }
.food-card figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1.25 / 1; background: var(--green-soft); }
.food-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.food-card:hover img { transform: scale(1.025); }
.card-copy { padding: 1rem; }
.item-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.item-title { margin: 0; font: 600 1.16rem/1.25 Georgia, serif; }
.price { white-space: nowrap; color: var(--terracotta); font-weight: 800; }
.description { min-height: 1.3rem; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.84rem; }

.add-button {
  width: 100%;
  min-height: 2.7rem;
  margin-top: 0.9rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 760;
}
.add-button:hover, .add-button:focus-visible { background: var(--green); color: #fff; }

.drink-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.8vw, 1.4rem); padding-top: 1.5rem; }
.drink-visual-card figure { aspect-ratio: 1; }
.drink-visual-card .item-title { font-size: 1rem; }
.drink-visual-card .card-copy { padding: 0.85rem; }
.drink-visual-card .description { display: none; }
.drink-visual-card .add-button { min-height: 2.35rem; margin-top: 0.7rem; font-size: 0.75rem; }
.missing-image { border: 2px solid #9c3d30; }

.empty-state { padding: 3rem 0; color: #9c3d30; font-size: 1.1rem; }
.loading-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 3rem; }
.loading-card span { height: 18rem; border-radius: 0.5rem; background: linear-gradient(100deg, #eee8dc 25%, #f7f2e8 40%, #eee8dc 55%); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }

.cart-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: flex; align-items: center; gap: 0.7rem; min-height: 3.4rem; padding: 0.4rem 0.5rem 0.4rem 1rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 800; }
.cart-fab strong { display: grid; min-width: 2.45rem; min-height: 2.45rem; place-items: center; border-radius: 50%; background: #fff; color: var(--green); }
.cart-dialog { width: min(540px, calc(100% - 1.2rem)); max-height: min(760px, calc(100% - 1.2rem)); padding: 1.35rem; border: 0; border-radius: 0.75rem; background: var(--paper-light); color: var(--ink); box-shadow: var(--shadow); }
.cart-dialog::backdrop { background: rgba(28, 24, 20, 0.64); backdrop-filter: blur(3px); }
.cart-head { display: flex; justify-content: space-between; gap: 1rem; }
.cart-head h2 { margin: 0; font-size: 2.2rem; }
.icon-button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.5rem; }
.cart-note, .cart-status { color: var(--muted); font-size: 0.82rem; }
.cart-list { margin: 1rem 0; padding: 0; list-style: none; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.quantity { display: flex; gap: 0.4rem; grid-column: 1 / -1; }
.quantity button { width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; margin: 1rem 0; font-size: 1.08rem; }
.room-field span { display: block; margin-bottom: 0.4rem; font-size: 0.82rem; font-weight: 750; }
.room-field input { width: 100%; min-height: 3rem; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: 0.35rem; background: #fff; }
.whatsapp-button, .clear-button { width: 100%; min-height: 3.1rem; margin-top: 0.75rem; border-radius: 999px; cursor: pointer; font-weight: 800; }
.whatsapp-button { border: 0; background: #217b50; color: #fff; }
.clear-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-note { max-width: 24rem; }
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drink-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  .brand small { display: none; }
  .language-switcher { gap: 0; }
  .language-switcher button { min-width: 2.35rem; min-height: 2.35rem; }
  .hero { padding-top: 4.5rem; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.2rem); }
  .menu-heading { display: block; }
  .load-state { margin-top: 1rem; text-align: left; }
  .menu-group-head { grid-template-columns: 1fr; gap: 0.35rem; }
  .menu-group-head p { justify-self: start; }
  .food-grid { grid-template-columns: 1fr; }
  .food-card figure { aspect-ratio: 1.45 / 1; }
  .drink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drink-visual-card .item-title-row { display: block; }
  .drink-visual-card .price { display: block; margin-top: 0.3rem; }
  .loading-card { grid-template-columns: 1fr; }
  .loading-card span:not(:first-child) { display: none; }
  footer { display: grid; }
}

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