/* ============================================================
   Base + layout. Mobile-first, single column, thumb-reachable.
   Sibling groups are laid out with flex/grid + gap — no per-element
   margins that collapse or double.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  /* the shop is open early; the page must not be a white flash at 7am */
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* room for the sticky order bar so nothing is ever hidden behind it */
  padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p  { margin: 0; max-width: var(--measure); }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--radius);
}
img, svg, video { max-width: 100%; height: auto; display: block; }

.shell { width: var(--shell); margin-inline: auto; }
.stack { display: flex; flex-direction: column; }
.stack-3 { gap: var(--s-3); } .stack-4 { gap: var(--s-4); }
.stack-5 { gap: var(--s-5); } .stack-6 { gap: var(--s-6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- header ---------- */
.masthead {
  display: flex; align-items: center; gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
/* The badge is an external, cached SVG used as a MASK, not an <img> —
   so it still takes currentColor and flips with the theme, without
   inlining 44KB of path data into every page. */
.masthead__mark {
  width: 3rem; aspect-ratio: 1; flex: none;
  background: var(--ink);
  -webkit-mask: url("../img/badge.svg") center / contain no-repeat;
          mask: url("../img/badge.svg") center / contain no-repeat;
}
.masthead__name {
  font-family: var(--display); font-weight: 800; font-size: var(--step-1);
  letter-spacing: -0.015em; line-height: 1.05; flex: 1 1 auto;
}
.masthead__name span { display: block; font-size: var(--step--1); font-weight: 400;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); font-family: var(--body); }

/* language toggle — a real link pair, not a JS widget */
.langswitch { display: flex; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; flex: none; }
.langswitch a {
  padding: .3rem .55rem; font-size: var(--step--1); font-weight: 600;
  background: var(--surface); color: var(--ink-2); text-decoration: none;
}
.langswitch a[aria-current="true"] { background: var(--ink); color: var(--ground); }

/* ---------- open/closed pill ---------- */
.state {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .32rem .7rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--rule);
}
.state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.state[data-state="open"]    { background: var(--open-wash); color: var(--open); border-color: transparent; }
.state[data-state="soon"]    { background: var(--accent-wash); color: var(--accent-ink); border-color: transparent; }
.state[data-state="closed"]  { background: var(--shut-wash); color: var(--shut); border-color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; }
.hero__media { grid-area: 1 / 1; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ground-sunk); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 46rem) { .hero__media img { aspect-ratio: 16 / 9; } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(20 16 14 / 88%) 0%, rgb(20 16 14 / 55%) 42%, rgb(20 16 14 / 8%) 100%);
}
.hero__body {
  grid-area: 1 / 1; align-self: end; z-index: 1;
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4);
  /* fixed light-on-dark: the scrim guarantees the ground in both themes */
  color: #FBF7F3;
}
.hero__body .eyebrow { color: #E8DCD1; }
.hero h1 { font-size: var(--step-4); }
.hero__sub { color: #EDE3DA; max-width: 34ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.25rem;
  font-family: var(--display); font-weight: 700; font-size: var(--step-0);
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #23150A; }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }

/* ---------- sticky order bar ----------
   The one action, never scrolled away. Above the fold on load and
   thumb-reachable forever after. */
.orderbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--s-2); align-items: center;
  padding: .6rem max(.7rem, env(safe-area-inset-left)) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}
.orderbar__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.orderbar__meta .state { align-self: flex-start; }
.orderbar .btn { flex: none; }
.orderbar__call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}

/* ---------- sections ---------- */
.section { padding-block: var(--s-6); }
.section__head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.section__head p { color: var(--ink-2); }

/* ---------- menu ---------- */
.menu-nav { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); }
.menu-nav a {
  flex: none; padding: .45rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--rule);
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.menu-group { display: flex; flex-direction: column; gap: var(--s-3); }
.menu-group h3 { color: var(--accent-ink); font-size: var(--step-0);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem var(--s-3);
  padding-block: var(--s-3); border-top: 1px solid var(--rule);
}
.menu-item__name { font-weight: 600; }
.menu-item__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--step--1); max-width: var(--measure); }
.menu-item__price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.menu-item__unit { color: var(--ink-3); font-weight: 400; }
.flag {
  display: inline-block; margin-left: .45rem; padding: .05rem .4rem; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-ink);
  font-size: .72em; font-weight: 700; letter-spacing: .04em; vertical-align: .1em;
}

/* ---------- paquetes ---------- */
.packs { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pack {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.pack__price { font-family: var(--display); font-weight: 800; font-size: var(--step-2);
  font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.pack__includes { color: var(--ink-2); font-size: var(--step--1); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: var(--s-2); grid-auto-flow: column; grid-auto-columns: 78%;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
@media (min-width: 46rem) { .gallery { grid-auto-columns: 40%; } }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery figcaption { padding-top: var(--s-2); font-size: var(--step--1); color: var(--ink-2); }

/* ---------- visit / footer ---------- */
.facts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fact { display: flex; flex-direction: column; gap: .2rem; }
.fact dt { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin: 0; font-weight: 600; }

.sitefoot { border-top: 1px solid var(--rule); padding-block: var(--s-5); color: var(--ink-2); font-size: var(--step--1); }
.disclaimer {
  border: 1px solid var(--accent); background: var(--accent-wash);
  border-radius: var(--radius-lg); padding: var(--s-4);
  color: var(--ink); font-size: var(--step-0); max-width: var(--measure);
}
.disclaimer strong { display: block; margin-bottom: var(--s-2); font-family: var(--display); }

/* ---------- hero motion (P3) ----------
   There is no owner video to cut a loop from, so the motion is a slow move
   ACROSS THEIR OWN PHOTOGRAPH: cinematic, honest, and zero video bytes — the
   LCP stays an image. 28s is deliberately below the threshold where the eye
   notices travel; it should feel like the page is breathing, not panning. */
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -1.8%, 0); }
}
.hero__media img {
  transform-origin: 58% 62%;   /* the coals, not the frame centre */
  will-change: transform;
}
.hero[data-motion="kenburns"] .hero__media img {
  animation: kenburns 28s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .hero[data-motion="kenburns"] .hero__media img { animation: none; transform: scale(1.06); }
}

/* ---------- gallery, continued ---------- */
.gallery a {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-lg);
}
.gallery a:hover img { filter: brightness(1.05); }
.gallery img { transition: filter .15s ease; }
.gallery figcaption { display: flex; align-items: baseline; gap: .4rem; }
.gallery figcaption .go {
  color: var(--accent-ink); font-weight: 600; white-space: nowrap;
}

/* ---------- honest placeholder (demo only) ---------- */
.placeholder {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  border: 2px dashed var(--rule-strong); border-radius: var(--radius-lg);
  background: var(--surface-2); color: var(--ink-2);
  max-width: var(--measure);
}
.placeholder strong { font-family: var(--display); color: var(--ink); font-size: var(--step-1); }

/* ---------- promo slot ---------- */
.promo {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-wash), var(--surface));
  border: 1px solid var(--accent);
  max-width: var(--measure);
}
.promo strong { font-family: var(--display); font-size: var(--step-2); color: var(--ink); }
