/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body.menu-open, body.modal-open { overflow: hidden; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F5F0E3; }
::-webkit-scrollbar-thumb { background: #1F3A2E; }
::-webkit-scrollbar-thumb:hover { background: #C2471E; }

/* ---------- nav ---------- */
.nav-shell {
  background: transparent;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav-shell.is-scrolled {
  background: rgba(245, 240, 227, 0.9);
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  border-bottom-color: rgba(20, 20, 14, 0.08);
}
.nav-link {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: #C2471E;
  transition: width 0.4s cubic-bezier(0.6, 0, 0.1, 1);
}
.nav-link:hover { color: #C2471E; }
.nav-link:hover::after { width: 100%; }

/* burger */
.burger-lines {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.3px;
  background: currentColor;
  transition: transform 0.35s ease, top 0.25s ease;
}
.burger-lines span:first-child { top: 2px; }
.burger-lines span:last-child  { top: 7px; }
.menu-open .burger-lines span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .burger-lines span:last-child  { top: 4.5px; transform: rotate(-45deg); }
.menu-open #mobile-menu { display: block; animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(20, 20, 14, 0.1);
}
.mobile-link:active { color: #C2471E; }

/* ---------- hero ---------- */
.hero-title {
  font-size: clamp(3.5rem, 13vw, 9rem);
}
@media (min-width: 768px) {
  .hero-title { font-size: clamp(4.5rem, 7.5vw, 10rem); }
}
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}
@media (min-width: 768px) {
  .hero-media { aspect-ratio: 3 / 4; height: 100%; min-height: 520px; }
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media-tag {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(20, 20, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 768px) {
  .hero-media-tag { left: 1.5rem; right: 1.5rem; bottom: 1.5rem; padding: 1.25rem 1.5rem; }
}

/* reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-visible.reveal-up, .loaded .reveal-up { opacity: 1; transform: translateY(0); }

/* ---------- ticker ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 1.75rem;
  align-items: center;
  padding-right: 1.75rem;
  animation: marquee 42s linear infinite;
  will-change: transform;
  color: #14140E;
}
.marquee .dot { color: #C2471E; font-style: normal; opacity: 0.55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- labels ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #7A746A;
}

/* story frame */
.story-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.story-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story-frame:hover img { transform: scale(1.04); }

/* ---------- menu tabs ---------- */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 20, 14, 0.15);
}
.menu-tab {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 14, 0.15);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #14140E;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.menu-tab:hover { border-color: #1F3A2E; }
.menu-tab.is-active {
  background: #1F3A2E;
  color: #F5F0E3;
  border-color: #1F3A2E;
}

/* ---------- dish grid ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; }
}
.dish { display: flex; flex-direction: column; gap: 1rem; }
.dish.is-hidden { display: none; }
.dish-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFE6D2;
}
.dish-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
  filter: saturate(1.05);
}
.dish:hover .dish-media img { transform: scale(1.045); filter: saturate(1.15); }
.dish-body { padding: 0 0.25rem; }
.dish-cat {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C2471E;
}
.dish-title {
  margin-top: 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}
.dish-desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgba(20, 20, 14, 0.65);
  line-height: 1.5;
}
.dish-foot {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
}
.dish-foot .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(20, 20, 14, 0.3);
  transform: translateY(-4px);
}
.dish-foot .price {
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  color: #1F3A2E;
}

.dish--feature { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .dish--feature { grid-column: span 2 / span 2; }
  .dish--feature .dish-title { font-size: 2.5rem; }
  .dish--feature .dish-media { aspect-ratio: 16 / 9; }
}

/* ---------- chef ---------- */
.chef-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.chef-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chef-frame:hover img { transform: scale(1.03); }

/* ---------- gallery ---------- */
.gallery-strip {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.gallery-strip.dragging { cursor: grabbing; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-track {
  display: inline-flex;
  gap: 1rem;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .gallery-track { gap: 1.5rem; padding: 0 2.5rem; } }
.gallery-track figure {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: center;
  background: #EFE6D2;
}
@media (min-width: 768px) {
  .gallery-track figure:nth-child(2n) { aspect-ratio: 5 / 6; margin-top: 3rem; }
  .gallery-track figure:nth-child(3n) { aspect-ratio: 3 / 4; }
}
.gallery-track img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-track figure:hover img { transform: scale(1.05); }

/* ---------- map/visit card ---------- */
.map-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFE6D2;
}
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-card-tag {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(31, 58, 46, 0.85);
  backdrop-filter: blur(6px);
}

/* ---------- footer ---------- */
.footer-head {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(245, 240, 227, 0.5);
}

/* ---------- floating CTA ---------- */
.fab-cta {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  background: #1F3A2E;
  color: #F5F0E3;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  box-shadow: 0 10px 40px -10px rgba(20, 20, 14, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) {
  .fab-cta { right: 2rem; bottom: 2rem; padding: 1rem 1.75rem; }
}
.fab-cta:hover { background: #C2471E; transform: translateY(-2px); }
.fab-icon {
  display: inline-flex;
  width: 1.4rem; height: 1.4rem;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: #C2471E;
  color: #F5F0E3;
  font-size: 0.8rem;
  transition: transform 0.4s ease;
}
.fab-cta:hover .fab-icon { transform: rotate(90deg); background: #F5F0E3; color: #C2471E; }

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 768px) {
  .modal { align-items: center; padding: 2rem; }
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.3s ease;
}
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #F5F0E3;
  color: #14140E;
  padding: 1.75rem 1.5rem 1.5rem;
  max-height: 92vh;
  overflow-y: auto;
  animation: sheet-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 20px 20px 0 0;
}
@media (min-width: 768px) {
  .modal-sheet { padding: 2.5rem 2.5rem 2rem; border-radius: 20px; }
}
@keyframes sheet-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-close {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(20, 20, 14, 0.15);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  color: #14140E;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: #1F3A2E; color: #F5F0E3; }

/* stepper */
.stepper { margin-top: 1.75rem; }
.stepper-bar {
  height: 3px;
  background: rgba(20, 20, 14, 0.1);
  overflow: hidden;
}
.stepper-fill {
  height: 100%;
  width: 33.33%;
  background: #1F3A2E;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stepper-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #7A746A;
}
.stepper-labels span.is-active { color: #1F3A2E; }

/* steps */
.modal-body { margin-top: 1.75rem; }
.step { display: none; animation: step-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.step.is-active { display: block; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-head {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.step-head--small { margin-top: 2rem; font-size: 1.15rem; }

/* chips */
.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
@media (min-width: 520px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.6rem;
  border: 1px solid rgba(20, 20, 14, 0.15);
  background: #FAF6EC;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover span { border-color: #1F3A2E; }
.chip input:checked + span {
  background: #1F3A2E;
  color: #F5F0E3;
  border-color: #1F3A2E;
}
.chip--soft input:checked + span { background: #C2471E; border-color: #C2471E; color: #F5F0E3; }

/* fields inside modal */
.row-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 520px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #7A746A;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 14, 0.2);
  background: transparent;
  padding: 0.55rem 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: #14140E;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: #1F3A2E;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231F3A2E' fill='none' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 10px;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-bottom-color: #C2471E;
}
.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  font-family: "DM Mono", monospace;
  font-style: normal;
  font-size: 0.7rem;
  color: #C2471E;
  transition: opacity 0.2s ease;
}
.field-error:empty { opacity: 0; }

/* summary on step 3 */
.summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #F2E8CA;
  border-left: 3px solid #1F3A2E;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #14140E;
}
.summary strong { color: #1F3A2E; }

/* modal footer */
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 20, 14, 0.1);
}
.btn-ghost {
  padding: 0.6rem 1rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #14140E;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.btn-ghost:disabled { color: #B2ABA0; cursor: not-allowed; }
.btn-solid {
  padding: 0.8rem 1.4rem;
  background: #1F3A2E;
  color: #F5F0E3;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-solid:hover { background: #C2471E; }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.hidden { display: none !important; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  padding: 1rem 1.5rem;
  background: #1F3A2E;
  color: #F5F0E3;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  max-width: min(560px, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 20px 60px -20px rgba(20, 20, 14, 0.35);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.is-error { background: #8E3418; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
}
