/* Salonica website — the one stylesheet.
   Colours + wordmark font are copied from the Salonica scheduler
   (salonica/scheduler/app/css/styles.css) so the two look like one brand.

   Responsive approach (lessons from mmih_v2/app/css/header.css + layout.css):
   - ONE breakpoint for the header: below 1010px = hamburger + full-screen menu,
     1010px and up = three-zone bar (links | wordmark | call).
   - Sizes scale with clamp() instead of piling up media queries.
   - Grids use minmax(min(100%, X), 1fr) so nothing can overflow a 320px phone.
   - Sticky footer: body is a flex column and <main> grows.
   - Tap targets are at least 44px (Apple/WCAG), and the notch is respected. */

@font-face {
  font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/lobster.woff2') format('woff2');
}

:root {
  --bg: #f4f1ea;          /* cream page */
  --surface: #ffffff;
  --ink: #2a2622;
  --muted: #5d6770;
  --line: #e4ded2;
  --brown: #604237;       /* header brown */
  --brown-dark: #4a3229;
  --blue: #aed9e6;        /* the Salonica sign blue */
  --blue-dark: #8cc6da;
  --blue-soft: #e8f3f8;
  --on-blue: #45301f;     /* brown text on blue (contrast-safe) */
  --script: 'Lobster', 'Brush Script MT', cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.09), 0 1px 2px rgba(0,0,0,.05);
  --maxw: 1100px;
  --gutter: clamp(1rem, 5vw, 2rem);
  --header-h: 4rem;
  --tap: 44px;
}
@media (min-width: 1010px) { :root { --header-h: 4.75rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* #anchors land below the sticky header */
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
}
body > main { flex: 1 0 auto; }
body.menu-open { overflow: hidden; }  /* no background scroll behind the phone menu */
img, video { max-width: 100%; display: block; }
a { color: var(--on-blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list li { margin-bottom: .3rem; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap); padding: .55rem 1.15rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-blue { background: var(--blue); color: var(--on-blue); }
.btn-blue:hover, .btn-blue:focus-visible { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: #fff; background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(174,217,230,.15); }

/* ---------- header ---------- */
#site-header {                 /* placeholder: reserves the bar's space before the partial loads */
  position: sticky; top: 0; z-index: 1000;
  min-height: var(--header-h); background: var(--brown);
  box-shadow: var(--shadow); padding-top: env(safe-area-inset-top);
  border-bottom: 3px solid var(--blue);   /* diner trim, full width */
}
.site-header {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
  max-width: 1280px; margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 3000; background: var(--blue); color: var(--on-blue); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 1rem; }
.wordmark {
  grid-column: 2; display: inline-flex; align-items: center; min-height: var(--tap);
  font-family: var(--script); color: var(--blue); text-decoration: none;
  font-size: clamp(2.1rem, 9vw, 2.9rem); line-height: 1; white-space: nowrap;
}
.main-nav { display: none; }
.header-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; min-width: 0; }
.btn-call { display: none; padding: .45rem 1rem; }          /* desktop only — phones get .icon-call */
.icon-call {
  grid-column: 1; justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border-radius: 999px; background: var(--blue); color: var(--on-blue);
}
.icon-call:hover { background: var(--blue-dark); }
.menu-toggle {
  width: var(--tap); height: var(--tap); border: 0; border-radius: 999px;
  background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.menu-toggle:hover { background: rgba(174,217,230,.18); }

/* Phone/tablet full-screen menu: a column stack — close (top), links (flexible middle),
   contact block (bottom) — so the links can never run under the contact block. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000; display: none;
  flex-direction: column; align-items: center;
  padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--brown-dark); color: #fff; overflow-y: auto;
}
.mobile-menu.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu-close {
  position: absolute; top: calc(.75rem + env(safe-area-inset-top)); right: 1rem;
  width: var(--tap); height: var(--tap); border: 0; background: none; color: #fff; font-size: 2.2rem; cursor: pointer;
}
.mobile-links { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem; }
.mobile-links a {
  display: block; padding: .35rem .75rem; text-decoration: none;
  font-family: var(--script); color: var(--blue); font-size: clamp(2rem, 9vw, 2.75rem);
}
.mobile-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.mobile-menu-foot { flex: 0 0 auto; text-align: center; padding-top: 1.5rem; }
.mobile-menu-foot p { margin-bottom: .6rem; color: #f0e9e2; }

/* Desktop: three equal-weight zones keep the wordmark centred; min-width:0 lets the
   side zones shrink, and the links wrap rather than ever crossing the wordmark. */
@media (min-width: 1010px) {
  .mobile-menu { display: none !important; }   /* can't linger after a phone→desktop resize */
  .menu-toggle, .icon-call { display: none; }
  .btn-call { display: inline-flex; }
  .site-header { display: flex; gap: 1.5rem; }
  .main-nav { display: block; flex: 1 1 0; min-width: 0; }
  .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
  .main-nav a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; padding: .3rem 0; border-bottom: 2px solid transparent; }
  .main-nav a:hover { color: var(--blue); }
  .main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
  .wordmark { flex: 0 0 auto; font-size: 3rem; }
  .header-right { flex: 1 1 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: radial-gradient(120% 140% at 15% 0%, #7a5547 0%, var(--brown) 45%, var(--brown-dark) 100%);
  border-bottom: 6px solid var(--blue);
}
.hero.has-image {                    /* set by site.js only if heroImage actually loads */
  background-image: linear-gradient(rgba(58,38,31,.78), rgba(58,38,31,.86)), var(--hero-img);
  background-size: cover; background-position: center;
}
.hero-inner { padding-top: clamp(3rem, 10vw, 6.5rem); padding-bottom: clamp(3rem, 10vw, 6.5rem); }  /* same left edge as the sections below */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; max-width: 16em; }
.hero h1 .script { font-family: var(--script); font-weight: 400; color: var(--blue); }
.hero-blurb { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #f3ebe4; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.open-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #c9a99a; }
.open-status.is-open::before { background: #5fd38d; }

/* ---------- page banner (inner pages) ---------- */
.page-banner { background: var(--brown); color: #fff; border-bottom: 6px solid var(--blue); }
.page-banner .wrap { padding-top: clamp(2rem, 6vw, 3.5rem); padding-bottom: clamp(1.75rem, 5vw, 3rem); }
.page-banner h1 { font-family: var(--script); font-weight: 400; color: var(--blue); font-size: clamp(2.6rem, 9vw, 4rem); margin: 0; }
.page-banner p { color: #f3ebe4; margin: .4rem 0 0; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--script); font-weight: 400; color: var(--brown); font-size: clamp(2.1rem, 6vw, 2.8rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.section-head .section-title { margin: 0; }
.lead { font-size: 1.15rem; max-width: 46rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.5rem); }
.card h3 { font-size: 1.2rem; }
.grid-auto { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* ---------- hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.hours-table td { text-align: right; white-space: nowrap; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today { background: var(--blue-soft); font-weight: 700; }
.hours-table th { font-weight: inherit; }
.card .open-status { margin-bottom: .75rem; }
.card .open-status::before { background: #b9a197; }
.card .open-status.is-open::before { background: #2e9d5f; }
.note { color: var(--muted); font-size: .95rem; margin: .75rem 0 0; }

/* ---------- map ---------- */
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; margin-top: 1rem; background: var(--line); }
.address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.order-links { margin-top: 1rem; }                       /* "Order on DoorDash / Uber Eats" (site.json → orderLinks) */
.hero .order-links { margin: -.25rem 0 1rem; }
.mobile-menu-foot .order-links { justify-content: center; margin-top: .6rem; }
.btn-plain { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-plain:hover { border-color: var(--blue-dark); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery-item { margin: 0; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.gallery-item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-item button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: -3px; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img { transition: transform .3s ease; }
.gallery-item button:hover img { transform: scale(1.04); }
.empty-note { color: var(--muted); font-style: italic; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(30,20,16,.88); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: .5rem 0 0; }
.lightbox-close { position: fixed; top: .75rem; right: .75rem; width: var(--tap); height: var(--tap); border: 0; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- menu page ---------- */
.menu-notice { background: var(--blue-soft); border: 1px solid var(--blue); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1.5rem; }
.menu-jump {
  position: sticky; top: calc(var(--header-h) + 3px); z-index: 50; background: var(--bg);
  display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.menu-jump::-webkit-scrollbar { display: none; }
.menu-jump a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: var(--tap); padding: .3rem 1rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink);
}
.menu-jump a:hover { border-color: var(--blue-dark); background: var(--blue-soft); }
.menu-section { margin-bottom: 2.5rem; }
.menu-section > .note { margin: -.25rem 0 1rem; }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.menu-items li { padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.item-head { display: flex; align-items: baseline; gap: .5rem; }
.item-name { font-weight: 700; }
.item-dots { flex: 1; border-bottom: 2px dotted #cbbfae; transform: translateY(-.3em); min-width: 1rem; }
.item-price { font-weight: 700; color: var(--brown); white-space: nowrap; }
.item-desc { color: var(--muted); margin: .2rem 0 0; font-size: .98rem; }
.menu-images { display: grid; gap: 1rem; margin-bottom: 2rem; }
.menu-images img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-dark); color: #efe6df; padding: 2.5rem 0 calc(1.25rem + env(safe-area-inset-bottom)); border-top: 6px solid var(--blue); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-wordmark { font-size: 2.4rem; display: inline-block; margin-bottom: .4rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: .6rem; }
.site-footer .plain-list a { display: inline-block; padding: .1rem 0; }
.copyright { text-align: center; font-size: .9rem; color: #cbbcb1; margin: 2rem 0 0; padding: 0 var(--gutter); }

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