/* ─────────────────────────────────────────────────────────────────────────────
   base.css — structure only. NO color / font / spacing literals: everything is
   a CSS custom property that a style sheet (assets/css/styles/<style>.css) sets
   and the site owner's params can override (see layouts/partials/head.html).
   The AI content engine never edits this file.
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size, 1.0625rem);
  line-height: var(--line-height, 1.65);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  letter-spacing: var(--heading-tracking, normal);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: var(--h1-size, clamp(2rem, 5vw, 3rem)); }
h2 { font-size: var(--h2-size, clamp(1.6rem, 3.5vw, 2.25rem)); }
h3 { font-size: var(--h3-size, 1.2rem); }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--max-width, 60rem); margin-inline: auto; padding-inline: 1.25rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: var(--btn-pad, .75rem 1.4rem);
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--btn-font, inherit);
  font-weight: 600;
  letter-spacing: var(--btn-tracking, normal);
  text-transform: var(--btn-transform, none);
  text-decoration: none;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); filter: none; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg, color-mix(in srgb, var(--bg) 88%, transparent));
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline, 1px solid var(--border));
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.brand {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem;
  letter-spacing: var(--brand-tracking, normal); text-transform: var(--brand-transform, none);
  color: var(--text); text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500;
  font-size: var(--nav-size, 1rem); letter-spacing: var(--nav-tracking, normal);
  text-transform: var(--nav-transform, none);
}
.nav a:hover { color: var(--accent); }
.nav__cta { color: var(--accent) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 4rem 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 22rem; }
  .nav a { padding: .9rem 1.25rem; width: 100%; border-top: 1px solid var(--border); }
}

/* ---- hero ---- */
.hero { padding: var(--hero-pad, clamp(3.5rem, 10vw, 7rem)) 0; text-align: var(--hero-align, center); }
.hero__inner { max-width: var(--hero-width, 44rem); margin-inline: var(--hero-align-margin, auto); }
.hero__heading { margin-bottom: .3em; font-size: var(--hero-size, var(--h1-size, clamp(2rem, 6vw, 3.5rem))); }
.hero__sub { font-size: var(--hero-sub-size, 1.2rem); color: var(--muted); margin-bottom: 1.75rem; }
.hero--color { background: var(--hero-color-bg, var(--accent)); color: var(--hero-color-fg, var(--accent-contrast)); }
.hero--color .hero__sub { color: color-mix(in srgb, currentColor 82%, transparent); }
.hero--color .btn { background: var(--hero-color-fg, var(--accent-contrast)); color: var(--hero-color-bg, var(--accent)); border-color: currentColor; }
.hero--image {
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)), var(--hero-image) center/cover no-repeat;
}
.hero--image .hero__sub { color: rgba(255,255,255,.9); }
.hero--minimal { padding-block: calc(var(--hero-pad, 5rem) * .7); }

/* ---- sections ---- */
.section { padding: var(--section-pad, clamp(3rem, 8vw, 5rem)) 0; }
.section:nth-of-type(even) { background: var(--section-even-bg, var(--surface)); }
.section__title { text-align: var(--title-align, center); margin-bottom: 1.5rem; }
.section__note { text-align: var(--title-align, center); color: var(--muted); margin-bottom: 2rem; }
.section__grid { display: grid; gap: 2.5rem; }
.section__grid--split { grid-template-columns: 1fr; }
@media (min-width: 820px) { .section__grid--split { grid-template-columns: 3fr 2fr; align-items: center; } }
.section__media img, .section__media .contact__map { border-radius: var(--radius); }
.prose > :last-child { margin-bottom: 0; }

/* ---- menu ---- */
.menu__cats { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .menu__cats { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
.menu__cat-name {
  padding-bottom: .4rem;
  border-bottom: var(--menu-rule, 2px solid var(--accent));
  display: inline-block;
}
.menu__cat-note { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.menu__items { list-style: none; margin: 1rem 0 0; padding: 0; }
.menu__item { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.menu__item:last-child { border-bottom: 0; }
.menu__item-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.menu__item-price { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__item-desc { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.menu__pdf { text-align: center; margin-top: 2.5rem; }

/* ---- hours ---- */
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table th, .hours__table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.hours__table td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours__address { font-weight: 600; }

/* ---- events ---- */
.events__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.events__item {
  display: grid; gap: .25rem 1.5rem; padding: 1.25rem;
  background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: var(--radius);
}
@media (min-width: 640px) { .events__item { grid-template-columns: 12rem 1fr; align-items: baseline; } }
.events__when { color: var(--accent); font-weight: 600; }
.events__title { margin: 0; }
.events__body p { margin: .25rem 0 0; color: var(--muted); }

/* ---- gallery ---- */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery__fig { margin: 0; }
.gallery__fig img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---- contact ---- */
.contact__list { list-style: none; margin: 1rem 0; padding: 0; }
.contact__list li { padding: .35rem 0; }
.contact__map {
  display: flex; align-items: center; justify-content: center; min-height: 12rem;
  background: var(--surface); border: 1px dashed var(--border); color: var(--muted);
  text-decoration: none; font-weight: 600;
}

/* ---- footer ---- */
.site-footer {
  background: var(--footer-bg, var(--text));
  color: var(--footer-fg, color-mix(in srgb, #fff 78%, transparent));
  padding: 3rem 0 1.5rem; margin-top: auto;
}
.site-footer a { color: var(--footer-link, #fff); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer__inner p { margin: .15rem 0; }
.site-footer__name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--footer-fg, #fff); }
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__legal { text-align: center; font-size: .85rem; margin: 2rem 0 0; opacity: .7; }

/* ---- misc pages ---- */
.page { padding-block: 3rem; }

/* ---- showroom style switcher (demo only) ---- */
.showroom {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; gap: .3rem; padding: .35rem;
  background: #111; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.showroom button {
  border: 0; background: transparent; color: #fff; font: inherit; font-size: .85rem;
  padding: .35rem .8rem; border-radius: 999px; cursor: pointer;
}
.showroom button[aria-pressed="true"] { background: #fff; color: #111; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
