/* Casa Fermín — "Azulejo"
   Lime-wash white, cobalt ink, a touch of ochre. Gloock for display, Instrument Sans for reading. Arch motif. */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --lime: #fbfaf7;
  --white: #ffffff;
  --cobalt: #1f3a7a;
  --cobalt-deep: #172c5e;
  --ink: #1d2742;
  --tile: #e6ecf6;
  --tile-2: #d5dfef;
  --ochre: #b9822b;
  --ochre-text: #8a5f1c;
  --slate: #5a6072;
  --rule: #d9dde6;

  --gutter: 20px;
  --max: 1200px;
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(.22, .7, .2, 1);

  --step--1: .9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 5vw, 5.6rem);

  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23fbfaf7'/%3E%3Cg fill='%231f3a7a'%3E%3Cpath d='M24 6c3 6 3 12 0 18c-3-6-3-12 0-18zM24 42c-3-6-3-12 0-18c3 6 3 12 0 18zM6 24c6-3 12-3 18 0c-6 3-12 3-18 0zM42 24c-6 3-12 3-18 0c6-3 12-3 18 0z'/%3E%3Ccircle cx='24' cy='24' r='2.6' fill='%23b9822b'/%3E%3Cpath d='M0 0h7a7 7 0 0 1-7 7zM48 0v7a7 7 0 0 1-7-7zM0 48v-7a7 7 0 0 1 7 7zM48 48h-7a7 7 0 0 1 7-7z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--lime); color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0); line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cobalt); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 36px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: "Gloock", Georgia, serif; font-weight: 400; color: var(--cobalt); margin: 0; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); line-height: 1.06; }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.muted { color: var(--slate); }
.ochre { color: var(--ochre-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-line { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-line:hover { background: var(--tile); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
/* arch-topped button: the motif in small */
.btn-arch { border-radius: 26px 26px 6px 6px; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--cobalt); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-underline-offset .2s var(--ease); }
.text-link:hover { text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 26px; height: 34px; flex: none; }
.brand span { font-family: "Gloock", Georgia, serif; font-size: 1.45rem; color: var(--cobalt); line-height: 1; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--cobalt); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { min-height: 44px; padding: 0 1.15em; font-size: .95rem; }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--cobalt); position: relative; transition: transform .25s var(--ease), background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 68px 0 0 0; z-index: 39; background: var(--lime); padding: 28px var(--gutter) 40px; display: none; flex-direction: column; }
.menu-open .mobile-nav { display: flex; }
.mobile-nav a { font-family: "Gloock", Georgia, serif; font-size: 2.1rem; color: var(--cobalt); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.mobile-nav a[aria-current="page"] { color: var(--ochre-text); }
.mobile-nav .btn { margin-top: 28px; font-family: inherit; }
body.menu-open { overflow: hidden; }
@media (min-width: 960px) { .nav { display: flex; gap: 26px; } .menu-btn, .mobile-nav { display: none !important; } }

/* ---------- tile band ---------- */
.tiles { height: 48px; background: var(--tiles) 0 0 / 48px 48px repeat-x; border-block: 1px solid var(--cobalt); }
.tiles.thin { height: 24px; background-size: 24px 24px; }

/* ---------- hero ---------- */
.hero { padding: 20px 0 56px; }
.hero .wrap { display: grid; gap: 28px; }
.hero-arch { position: relative; margin: 0 auto; width: min(100%, 420px); }
.hero-arch .frame { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); border: 1px solid var(--cobalt); padding: 8px 8px 0; }
.hero-arch .frame > div { border-radius: var(--arch); overflow: hidden; height: 100%; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-arch .sill { height: 14px; background: var(--cobalt); margin: 0 -10px; border-radius: 2px; }
.hero-text { text-align: center; }
.hero-text .place { color: var(--slate); margin: 0 auto 10px; font-size: 1rem; }
.hero-text h1 { font-size: clamp(3.2rem, 2rem + 7vw, 6.4rem); line-height: .95; margin-bottom: 18px; }
.hero-text .lead { margin: 0 auto 26px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-hours { margin-top: 22px; font-size: .95rem; color: var(--slate); }
.hero-hours strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .hero { padding: 48px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
  .hero-text { text-align: left; order: -1; }
  .hero-text .place, .hero-text .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-arch { width: min(100%, 470px); margin-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-arch .frame > div { animation: arch-open 1.4s var(--ease) .1s both; }
  .js .hero-arch img { animation: rise-in 1.8s var(--ease) .1s both; }
  .js .hero-text > * { animation: fade-up .9s var(--ease) both; }
  .js .hero-text > :nth-child(1) { animation-delay: .5s; }
  .js .hero-text > :nth-child(2) { animation-delay: .65s; }
  .js .hero-text > :nth-child(3) { animation-delay: .85s; }
  .js .hero-text > :nth-child(4) { animation-delay: 1s; }
  .js .hero-text > :nth-child(5) { animation-delay: 1.1s; }
}
@keyframes arch-open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { from { transform: translateY(8%) scale(1.08); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 112px; } }
.section-head { margin-bottom: 36px; display: grid; gap: 12px; }
.section-head p { color: var(--slate); margin: 0; }
.panel { background: var(--tile); }

.house { display: grid; gap: 36px; align-items: center; }
.house figure { margin: 0; width: min(78%, 360px); }
.house figure img { border-radius: var(--arch); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.house .quote { font-family: "Gloock", Georgia, serif; font-size: var(--step-2); line-height: 1.25; color: var(--cobalt); margin: 0 0 20px; max-width: 24ch; }
@media (min-width: 900px) { .house { grid-template-columns: 5fr 7fr; gap: 80px; } .house figure { width: 100%; } }

/* signature dishes: staggered arches */
.dishes { display: grid; gap: 40px; list-style: none; margin: 0; padding: 0; }
.dishes li { display: grid; gap: 14px; }
.dishes .ph { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); }
.dishes img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dishes li:hover img { transform: scale(1.04); }
.dishes .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.dishes h3 { font-size: 1.45rem; }
.price { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.dishes p { color: var(--slate); margin: 0; font-size: .98rem; }
@media (min-width: 720px) {
  .dishes { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
  .dishes li:nth-child(2) { margin-top: 72px; }
  .dishes li:nth-child(3) { margin-top: 24px; }
}

/* ---------- today's menu teaser / board ---------- */
.board {
  background: var(--white); border: 1px solid var(--cobalt); border-radius: 180px 180px 14px 14px;
  padding: 72px 22px 32px; text-align: center; position: relative; max-width: 620px; margin: 0 auto;
  box-shadow: 0 0 0 8px var(--lime), 0 0 0 9px var(--tile-2);
}
.board h2 { font-size: var(--step-3); margin-bottom: 6px; }
.board .day { color: var(--ochre-text); font-weight: 600; margin: 0 0 22px; }
.board .course { margin: 0 0 22px; }
.board .course h3 { font-family: "Instrument Sans", sans-serif; font-size: .95rem; font-weight: 600; color: var(--slate); letter-spacing: .02em; margin-bottom: 6px; }
.board .course ul { list-style: none; margin: 0; padding: 0; }
.board .course li { font-family: "Gloock", Georgia, serif; font-size: 1.25rem; color: var(--ink); line-height: 1.35; padding: 3px 0; }
.board .orn { width: 64px; height: 12px; margin: 0 auto 20px; color: var(--ochre); }
.board .total { font-family: "Gloock", Georgia, serif; font-size: 2.6rem; color: var(--cobalt); line-height: 1; margin: 6px 0 6px; }
.board .incl { color: var(--slate); font-size: .95rem; margin: 0 auto; }
@media (min-width: 720px) { .board { padding: 96px 56px 44px; border-radius: 310px 310px 16px 16px; } }

.day-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 28px; }
.day-tabs button {
  min-width: 64px; min-height: 48px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--white); color: var(--ink);
  border-radius: 24px 24px 6px 6px; font-weight: 600;
  transition: background-color .2s var(--ease), color .2s, border-color .2s;
}
.day-tabs button:hover { border-color: var(--cobalt); }
.day-tabs button[aria-selected="true"] { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.day-tabs .today { display: block; font-size: .82rem; font-weight: 500; line-height: 1; margin-top: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .board .swap { animation: fade-up .45s var(--ease) both; }
}

/* ---------- page head ---------- */
.page-head { padding: 44px 0 36px; text-align: center; }
.page-head h1 { font-size: var(--step-4); }
.page-head p { color: var(--slate); margin: 14px auto 0; font-size: var(--step-1); line-height: 1.45; max-width: 36ch; }
.page-head .arch-mark { width: 40px; height: 52px; margin: 0 auto 16px; color: var(--ochre); }
@media (min-width: 900px) { .page-head { padding: 80px 0 56px; } }
.demo-note { display: inline-block; margin-top: 16px; font-size: .9rem; color: var(--slate); border: 1px dashed var(--tile-2); background: var(--white); border-radius: 8px; padding: 6px 12px; }

/* ---------- la carta (showcase) ---------- */
.menu-bar {
  position: sticky; top: 68px; z-index: 30; background: rgba(251, 250, 247, .97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-block: 1px solid var(--rule);
}
.menu-cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; scroll-behavior: smooth; max-width: var(--max); margin: 0 auto; }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 22px 22px 6px 6px; text-decoration: none; color: var(--ink); font-weight: 500;
  border: 1px solid transparent; transition: background-color .25s var(--ease), color .25s, border-color .25s;
}
.menu-cats a:hover { border-color: var(--rule); }
.menu-cats a.active { background: var(--cobalt); color: var(--white); }

.menu-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0 0; }
.menu-tools .lbl { color: var(--slate); font-size: .95rem; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--white); color: var(--ink); font-weight: 500; font-size: .95rem;
  transition: background-color .2s var(--ease), border-color .2s, color .2s;
}
.chip:hover { border-color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--tile); border-color: var(--cobalt); color: var(--cobalt); }
.chip .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid currentColor; display: grid; place-items: center; }
.chip[aria-pressed="true"] .box::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.filter-status { width: 100%; color: var(--slate); font-size: .92rem; min-height: 1.6em; margin: 4px 0 0; }

.carta { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.carta-sec { padding-top: 56px; scroll-margin-top: 140px; }
.carta-sec > header { text-align: center; margin-bottom: 18px; }
.carta-sec > header .arch-mark { width: 30px; height: 38px; margin: 0 auto 10px; color: var(--ochre); }
.carta-sec > header h2 { font-size: var(--step-2); }
.carta-sec > header p { color: var(--slate); margin: 6px auto 0; font-style: italic; }
.cols-head { display: flex; justify-content: flex-end; gap: 0; font-size: .82rem; color: var(--slate); padding-bottom: 6px; border-bottom: 1px solid var(--cobalt); }
.cols-head span { width: 58px; text-align: right; }
.carta-list { list-style: none; margin: 0; padding: 0; }
.carta-sec:not(:has(.cols-head)) .carta-list { border-top: 1px solid var(--cobalt); }
.dish { padding: 16px 0 15px; border-bottom: 1px solid var(--rule); transition: opacity .3s var(--ease); }
.dish[hidden] { display: none; }
.dish .line { display: flex; align-items: baseline; gap: 10px; }
.dish .name { font-family: "Gloock", Georgia, serif; font-size: 1.22rem; line-height: 1.25; color: var(--ink); flex: 0 1 auto; }
.dish .lead-dots { flex: 1 1 24px; min-width: 16px; border-bottom: 1.5px dotted #a7aec0; transform: translateY(-5px); }
.dish .p { display: flex; flex: none; }
.dish .p span { width: 58px; text-align: right; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; color: var(--cobalt); }
.dish .p span.na { color: #9aa0ad; font-weight: 400; }
.dish .desc { color: var(--slate); margin: 4px 0 0; font-size: .98rem; max-width: 52ch; }
.dish .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .86rem; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 6px; }
.tag.t-house { background: #f6ecd9; color: #6f4b12; }
.tag.t-veg { background: #e5efe3; color: #2f5a2a; }
.tag.t-gf { background: var(--tile); color: var(--cobalt); }
.allergens { display: none; margin-top: 8px; font-size: .88rem; color: var(--slate); }
.allergens b { font-weight: 600; color: var(--ink); }
.show-allergens .allergens { display: block; }
.carta-foot { margin-top: 40px; color: var(--slate); font-size: .95rem; text-align: center; }
@media (min-width: 720px) {
  .dish .name { font-size: 1.35rem; }
  .cols-head span, .dish .p span { width: 84px; }
}
.carta-photo { margin: 36px auto 0; width: min(70%, 300px); }
.carta-photo img { border-radius: var(--arch); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- reservation ---------- */
.res { max-width: 680px; margin: 0 auto; padding-bottom: 96px; }
.res-card { background: var(--white); border: 1px solid var(--rule); border-radius: 200px 200px 16px 16px; padding: 88px 18px 28px; position: relative; }
@media (min-width: 720px) { .res-card { padding: 120px 48px 44px; border-radius: 340px 340px 18px 18px; } }
.res-summary { text-align: center; margin: -40px 0 28px; }
.res-summary .s1 { font-family: "Gloock", Georgia, serif; font-size: var(--step-2); color: var(--cobalt); line-height: 1.15; }
.res-summary .s2 { color: var(--slate); margin-top: 6px; min-height: 1.6em; }
.res-block { padding: 24px 0; border-top: 1px solid var(--rule); }
.res-block > h2 { font-family: "Instrument Sans", sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.res-block > h2 small { font-weight: 400; color: var(--slate); font-size: .92rem; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 20px; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--cobalt); background: var(--white); color: var(--cobalt); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--tile); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { font-family: "Gloock", Georgia, serif; font-size: 3rem; color: var(--cobalt); min-width: 2ch; text-align: center; line-height: 1; }
.stepper-note { text-align: center; color: var(--slate); font-size: .92rem; margin: 10px 0 0; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head .m { font-family: "Gloock", Georgia, serif; font-size: 1.35rem; color: var(--cobalt); }
.cal-head button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--white); cursor: pointer; color: var(--cobalt); font-size: 1.2rem; }
.cal-head button:disabled { opacity: .3; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal .wd { font-size: .875rem; color: var(--slate); padding: 4px 0; }
.cal button {
  height: 46px; min-width: 44px; justify-self: center; width: 100%; max-width: 54px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font-variant-numeric: tabular-nums; font-weight: 500; transition: background-color .2s var(--ease), color .2s;
}
.cal button:hover:not(:disabled) { background: var(--tile); }
.cal button:disabled { color: #a3a8b4; cursor: not-allowed; text-decoration: line-through; text-decoration-color: #c9cdd6; }
.cal button[aria-pressed="true"]:not(:disabled) { background: var(--cobalt); color: var(--white); }
.cal button.today { box-shadow: inset 0 0 0 1px var(--ochre); }
.cal-legend { font-size: .85rem; color: var(--slate); margin: 8px 0 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--tile); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; color: var(--cobalt); transition: background-color .25s var(--ease), color .25s; }
.seg button[aria-pressed="true"] { background: var(--cobalt); color: var(--white); }
.seg button:disabled { color: #8a92a6; cursor: not-allowed; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.times button { min-height: 48px; border-radius: 22px 22px 6px 6px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, border-color .2s; }
.times button:hover:not(:disabled) { border-color: var(--cobalt); }
.times button[aria-pressed="true"] { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.times button:disabled { color: #a3a8b4; text-decoration: line-through; cursor: not-allowed; }
.hint { color: var(--slate); font-size: .95rem; margin: 0; grid-column: 1 / -1; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .98rem; }
.field label small { font-weight: 400; color: var(--slate); }
.field input, .field textarea { min-height: 52px; padding: 12px 14px; border-radius: 10px; background: var(--lime); border: 1px solid #c4cad6; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--tile); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .9rem; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.consent { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: .95rem; color: var(--slate); margin: 4px 0 20px; cursor: pointer; }
.consent input { width: 22px; height: 22px; accent-color: var(--cobalt); flex: none; margin: 0; }
.res-submit { width: 100%; }

/* demo dialog */
.demo-dialog { border: 0; padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; background: var(--white); color: var(--ink); border-radius: 220px 220px 16px 16px; }
.demo-dialog::backdrop { background: rgba(23, 44, 94, .55); }
.demo-dialog .dd-top { padding: 72px 28px 8px; text-align: center; }
.demo-dialog .arch-mark { width: 36px; height: 46px; margin: 0 auto 12px; color: var(--ochre); }
.demo-dialog h2 { font-size: 2.2rem; }
.demo-dialog .dd-body { padding: 8px 28px 28px; text-align: center; }
.demo-dialog .ticket { font-family: "Gloock", Georgia, serif; font-size: 1.3rem; color: var(--cobalt); line-height: 1.35; margin: 12px 0 16px; padding: 14px 0; border-block: 1px solid var(--rule); }
.demo-dialog p { color: var(--slate); margin-inline: auto; }
.demo-dialog .dd-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-dialog[open] { animation: dlg .6s var(--ease) both; }
}
@keyframes dlg { from { opacity: 0; clip-path: inset(30% 0 0 0 round 220px 220px 16px 16px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 220px 220px 16px 16px); } }

/* ---------- contact / directions ---------- */
.info-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--cobalt); font-weight: 600; }
.hours tr.closed td { color: var(--slate); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-bottom: 1px solid var(--rule); }
.contact-list a, .contact-list .item { display: flex; gap: 14px; align-items: center; min-height: 56px; text-decoration: none; color: var(--ink); }
.contact-list svg { width: 22px; height: 22px; color: var(--cobalt); flex: none; }
.contact-list a:hover .t { text-decoration: underline; text-decoration-color: var(--ochre); }
.map-card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; }
.map-card .cap { padding: 14px 18px; color: var(--slate); font-size: .92rem; border-top: 1px solid var(--rule); }
.ways { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.ways li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.ways .ic { width: 40px; height: 40px; border-radius: 20px 20px 4px 4px; background: var(--tile); display: grid; place-items: center; color: var(--cobalt); }
.ways .ic svg { width: 20px; height: 20px; }
.ways h3 { font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.ways p { margin: 0; color: var(--slate); font-size: .98rem; }

/* ---------- legal ---------- */
.legal { max-width: 72ch; padding-block: 24px 96px; }
.legal h2 { font-size: var(--step-1); margin: 36px 0 10px; }
.legal .ph { color: var(--ochre-text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); }

/* ---------- footer ---------- */
.site-footer { background: var(--cobalt); color: #e9eef8; }
.site-footer a { color: #ffffff; }
.footer-main { padding: 56px 0 28px; display: grid; gap: 32px; }
.footer-main .big { font-family: "Gloock", Georgia, serif; font-size: var(--step-3); line-height: 1.05; color: #fff; margin: 0 0 18px; max-width: 14ch; }
.footer-main .btn { background: #fff; color: var(--cobalt); }
.footer-main .btn:hover { background: var(--tile); }
.footer-cols { display: grid; gap: 24px; font-size: .98rem; }
.footer-cols h3 { font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 6px; }
.footer-cols p { margin: 0; color: #d4dcee; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #d4dcee; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .9rem; color: #d4dcee; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-bottom nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: #d4dcee; }
.footer-bottom nav a:hover { color: #fff; text-decoration: underline; }
.demo-badge { font-size: .82rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 12px; color: #e9eef8; }
@media (min-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1fr 1.3fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-arch .ph, .js .reveal-arch figure img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
  .js .reveal-arch.in .ph, .js .reveal-arch.in figure img { clip-path: inset(0 0 0 0); }
  .js .dishes.reveal-arch.in li:nth-child(2) .ph { transition-delay: .15s; }
  .js .dishes.reveal-arch.in li:nth-child(3) .ph { transition-delay: .3s; }
  html { scroll-behavior: smooth; }
}
