/* Shared foundation for both designs: fonts, reset, accessibility helpers and
   the structural (not visual) rules for components both pages use.
   Each design sets its own tokens and look in its own styles.css. */

/* ---------- Fonts (self-hosted, Latin subset; only downloaded when used) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Workbench */
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fonts/caveat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Heritage */
@font-face { font-family: "Libre Caslon Display"; src: url("../assets/fonts/libre-caslon-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../assets/fonts/libre-caslon-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("../assets/fonts/cabin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100svh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"], .price-list { list-style: none; padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 18px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
/* Elements that JS animates in start hidden only when JS + motion are available. */
.js.motion-ok [data-reveal] { visibility: hidden; }

/* ---------- Responsive images ---------- */
.media { position: relative; overflow: hidden; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Price tabs (structure) ---------- */
.price-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.price-tabs::-webkit-scrollbar { display: none; }
.price-tab { flex: none; border: 0; min-height: 44px; }
.price-panel:focus-visible { outline-offset: 8px; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-item { flex: 0 1 auto; }
.price-leader { flex: 1 1 24px; min-width: 16px; border-bottom: 1px dotted currentColor; opacity: .45; transform: translateY(-4px); }
.price-amount { flex: none; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; }
.hours-table th, .hours-table td { padding: 7px 0; text-align: left; font-weight: inherit; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Open status pill ---------- */
[data-open-status] { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
[data-open-status]:empty { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
[data-open-status][data-state="open"] .status-dot { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); animation: status-pulse 2.4s infinite; }
[data-open-status][data-state="closing-soon"] .status-dot { background: #e08a00; }
[data-open-status][data-state="closed"] .status-dot { background: #b8452e; }
.status-detail { opacity: .75; }
@keyframes status-pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }

/* ---------- Map facade ---------- */
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* ---------- Get in touch: call, WhatsApp, email (structure) ---------- */
.reach-list { display: grid; gap: 12px; padding: 0; }
.reach-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon label" "icon value";
  align-items: center; column-gap: 16px; min-height: 64px; padding: 12px 18px; text-decoration: none;
}
.reach-link .icon { grid-area: icon; width: 26px; height: 26px; }
.reach-label { grid-area: label; }
.reach-value { grid-area: value; overflow-wrap: anywhere; }

/* ---------- Mobile action bar (structure) ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.show-action-bar .action-bar { transform: none; }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; text-decoration: none; }
.action-bar svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Compare pill (structure) ---------- */
.compare-pill { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; display: inline-flex; align-items: center; transition: transform .35s, opacity .35s; }
.compare-pill a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 16px; text-decoration: none; }
.compare-pill button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; }
@media (max-width: 899px) { .show-action-bar .compare-pill { opacity: 0; pointer-events: none; transform: translateY(12px); } }
.menu-open .compare-pill { opacity: 0; pointer-events: none; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Print ---------- */
@media print {
  .action-bar, .compare-pill, .site-header, [data-intro], .thread { display: none !important; }
}

/* ---------- Grid safety: never let wide content (tab strips, long words) widen a column ---------- */
main > section, main > section > *, .contact-grid > *, .hero-grid > *, .prices > * { min-width: 0; }
.prices { grid-template-columns: minmax(0, 1fr); }
.prices > * { width: 100%; }
.price-tabs { min-width: 0; max-width: 100%; }
