/* ============================================================
   base.css — Pixelate shared skeleton. DO NOT EDIT PER CLIENT.
   All per-client design lives in theme.css (tokens) and, if a
   build truly needs extra components, a new components layer
   BELOW these rules. Class names are fixed contract: pixelate.js
   and the page templates rely on them.
   Order: tokens (theme.css) > base > layout > components > utilities.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { padding-left: 1.2em; }

table { border-collapse: collapse; width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- A11y ---------- */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--paper);
  min-height: 44px; /* a11y-gate 29 Sep 2026: rendered 42px tall */
  display: inline-flex;
  align-items: center;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface); }

.grid-2,
.grid-3 { display: grid; gap: var(--space-4); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header + nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.75rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-close { display: none; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover:not(.btn) { text-decoration: underline; }
.site-nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    background: var(--paper);
    padding: var(--space-6) var(--space-4) var(--space-4);
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .site-nav a:not(.btn) { font-size: var(--step-3); }

  .nav-close {
    display: block;
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    font-size: 2rem;
    line-height: 1;
    padding: var(--space-2);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.btn:hover { background: var(--accent-soft); }

/* Reserved accent: booking/calling CTAs ONLY (see CONVENTIONS.md). */
.btn-accent {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-accent-ink);
}
.btn-accent:hover { background: var(--brand-accent); filter: brightness(1.12); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--hero-pad); }
.hero .lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 38rem;
}

.rating-line {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.card h3 { margin-bottom: var(--space-2); }

.price-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .price { font-weight: 600; white-space: nowrap; }

/* ---------- Hours table ---------- */
.hours-table th,
.hours-table td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.hours-table th { font-weight: 600; }
.hours-table tr.today { background: var(--accent-soft); }
.hours-table .today-flag {
  font-size: var(--step--1);
  color: var(--brand-accent);
  font-weight: 600;
}

/* ---------- Forms (Netlify Forms contract) ---------- */
.form-grid {
  display: grid;
  gap: var(--space-3);
  max-width: 34rem;
}
.form-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid input:focus-visible,
.form-grid textarea:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 0;
}
.form-note {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Honeypot field: hidden from humans, present for bots. */
.hp-field { position: absolute; left: -999px; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-3);
}
.gallery-item { padding: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.85);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 60rem);
  max-height: 85vh;
  width: auto;
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  padding: var(--space-2);
}

/* ---------- Footer (trust block contract — see CONVENTIONS.md) ---------- */
.site-footer {
  background: var(--ink-panel);
  color: var(--ink-panel-text);
  padding-block: var(--space-6) var(--space-5);
  font-size: var(--step--1);
}
.site-footer a { color: inherit; }

.footer-grid {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin-bottom: var(--space-2);
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: var(--space-2); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Sticky mobile call-bar ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.call-bar.show { transform: translateY(0); }
.call-bar a {
  padding: 0.9rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}
.call-bar-call {
  background: var(--ink-panel);
  color: var(--ink-panel-text);
  border-top: 1px solid var(--line);
}
.call-bar-book {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
}
@media (max-width: 720px) {
  .call-bar { display: grid; }
  /* Stop the bar covering the footer's legal line */
  body { padding-bottom: 3.2rem; }
}

/* ---------- Scroll reveal ----------
   M2 fix 4: only .reveal-hold hides, set by pixelate.js on what sits wholly below the fold, so nothing on screen
   fades out on load. Fix 3: a [data-stagger] group stays put; its children cascade 40 ms apart on animation-delay. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js [data-reveal].reveal-hold:not([data-stagger]):not(.revealed):not(:focus-within) {
    opacity: 0;
    transform: translateY(16px);
  }
  html.js [data-reveal].reveal-hold.revealed:not([data-stagger]) {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }
  html.js [data-stagger].reveal-hold:not(.revealed):not(:focus-within) > * { opacity: 0; }
  html.js [data-stagger].reveal-hold.revealed > * { animation: reveal-in 0.4s ease-out backwards; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(2) { animation-delay: 40ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(3) { animation-delay: 80ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(4) { animation-delay: 120ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(5) { animation-delay: 160ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(6) { animation-delay: 200ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(7) { animation-delay: 240ms; }
  html.js [data-stagger].reveal-hold.revealed > :nth-child(n+8) { animation-delay: 280ms; }
}
@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Utilities (last layer per CONVENTIONS.md ordering) ----------
   Spacing helpers so pages never need inline style attributes
   (the preship html-validate gate rejects no-inline-style). */
.mt-4 { margin-top: var(--space-4); }
