/* Bon Profit! demo, from sites/template. Bilingual one-page site template. Re-skin per site by overriding the tokens in :root.
   The defaults are the "polish floor" Nick asked for on every demo so far: full-bleed photo hero with a directional
   scrim, fact strip, large imagery, rounded cards and pill buttons, one dark band, light display type, generous space.
   Mood-led sites (restaurants, bars) may set --radius: 0 and --pill: 0; keep the rest. */

:root {
  /* Bon Profit!: warm paper, terracotta from the cazuela and the facade tiles, cocoa band, slate chalkboard */
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --ink: #241a14;
  --muted: #625649;      /* 6.4:1 on --bg */
  --line: #e3d9cb;
  --accent: #9a3b1e;     /* terracotta; white on it 7:1 */
  --accent-ink: #ffffff;
  --band: #2a1d16;
  --band-ink: #f3ece2;
  --band-muted: #c7b9a8;
  --scrim: 28 16 9;
  --slate: #2e3330;
  --chalk: #eeebe3;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 400;
  --display-tracking: -.03em;

  --radius: 10px;
  --radius-lg: 16px;
  --pill: 999px;
  --shadow: 0 1px 2px rgb(40 20 10 / .05), 0 8px 24px rgb(40 20 10 / .07);
  --max: 72rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --section: clamp(4.5rem, 11vw, 8.5rem);
  --header: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  scroll-padding-bottom: 5rem; /* mobile action bar */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* Language: every bilingual string is a pair of [lang] spans; hide the inactive one. */
html[data-lang="en"] [lang="es"]:not(html),
html[data-lang="es"] [lang="en"]:not(html) { display: none !important; }
/* Reviews: EN shows our translation; the Spanish original sits in a "Show original" disclosure. */
html[data-lang="en"] .orig [lang="es"] { display: block !important; }
html[data-lang="es"] .only-en { display: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; }

.wrap { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header); }
.brand {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font: 600 1.125rem/1 var(--font-display); letter-spacing: -.01em; text-decoration: none;
}
.nav { display: none; gap: .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem;
  border-radius: var(--pill); font-size: .9375rem; text-decoration: none; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (min-width: 60rem) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.lang-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.lang-toggle button {
  min-width: 2.75rem; min-height: 2.75rem;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .06em;
  border: 0; background: transparent; color: var(--muted);
  border-radius: var(--pill); cursor: pointer;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  border-radius: var(--pill); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 .9375rem/1 var(--font-body); text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease;
}
.btn:hover { box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 10px 26px color-mix(in srgb, var(--accent) 36%, transparent); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--small { min-height: 2.75rem; padding: .5rem 1.05rem; font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* Eyebrow: short, sentence case, with a rule. Full opacity (it failed contrast at .85). */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font: 500 .875rem/1.2 var(--font-body); color: var(--accent); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }

/* Hero: full-bleed photo, scrim dark bottom-left and clear top-right so the photo reads and the text passes. */
.hero { position: relative; min-height: min(92svh, 52rem); display: grid; align-items: end; color: #fff; padding: 0; }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(var(--scrim) / .78), rgb(var(--scrim) / .25) 45%, rgb(var(--scrim) / 0) 70%),
    linear-gradient(to right, rgb(var(--scrim) / .45), rgb(var(--scrim) / 0) 60%);
}
.hero__body { position: relative; padding-block: calc(var(--section) + var(--header)) clamp(2.5rem, 7vw, 5rem); }
.hero .eyebrow { color: #fff; }
.hero h1 {
  font: var(--display-weight) clamp(2.75rem, 8vw, 6rem)/1 var(--font-display);
  letter-spacing: var(--display-tracking); margin: 0 0 1.25rem; max-width: 13ch; text-wrap: balance;
  text-shadow: 0 1px 24px rgb(0 0 0 / .25);
}
.hero p.lede { font-size: clamp(1.0625rem, 2vw, 1.3125rem); max-width: 40ch; margin: 0 0 2rem; text-shadow: 0 1px 12px rgb(0 0 0 / .3); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn--ghost { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .55); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { background: rgb(255 255 255 / .22); border-color: #fff; }
.trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 1.25rem 0 0; margin: 2rem 0 0;
  border-top: 1px solid rgb(255 255 255 / .3); font-size: .9375rem;
}
.trust b { font-weight: 600; }

/* Fact strip under the hero */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.facts li { padding: 1.25rem 0; display: grid; gap: .2rem; }
@media (min-width: 46rem) { .facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
.facts__label { font-size: .8125rem; color: var(--muted); }
.facts a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -.6rem; text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Sections */
section { padding-block: var(--section); }
[id] { scroll-margin-top: calc(var(--header) + 1rem); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 42rem; }
h2 {
  font: var(--display-weight) clamp(2rem, 4.5vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: var(--display-tracking); margin: 0 0 1rem; text-wrap: balance;
}
h3 { font: 600 1.0625rem/1.3 var(--font-body); margin: 0 0 .35rem; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }

.split { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); } }
.split img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split__text { max-width: 34rem; }
/* Photo pane runs to the screen edge on desktop */
@media (min-width: 52rem) {
  .split--bleed img { width: calc(100% + (100vw - min(100vw - 2 * var(--gap), var(--max))) / 2); max-width: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg); aspect-ratio: 5 / 6; }
}

/* Cards (services, rooms, treatments) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  display: grid; align-content: start; gap: .25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card p { margin: 0; color: var(--muted); }
.card img { border-radius: calc(var(--radius) - 4px); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.price { margin-top: .75rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }

/* Item list (long menus, price lists) */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(2rem, 5vw, 4rem); }
@media (min-width: 46rem) { .items { grid-template-columns: 1fr 1fr; } }
.items li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.items p { margin: .15rem 0 0; color: var(--muted); font-size: .9375rem; }

/* Gallery: edge to edge, large */
.gallery-section { padding-block: 0; }
.gallery { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 46rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Dark band (reviews by default) */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band .muted, .band .review figcaption, .band .orig { color: var(--band-muted); }

/* Reviews */
.reviews { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.review {
  margin: 0; padding: 1.75rem; border-radius: var(--radius);
  background: color-mix(in srgb, currentColor 6%, transparent); border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 1.25rem; font: 400 1.1875rem/1.45 var(--font-display); letter-spacing: -.01em; }
.review figcaption { margin-top: auto; font-size: .875rem; color: var(--muted); }
.orig { margin: -.5rem 0 1rem; font-size: .875rem; color: var(--muted); }
.orig summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; cursor: pointer; list-style: none; }
.orig summary::-webkit-details-marker { display: none; }
.orig summary span { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.orig summary:hover span { text-decoration-thickness: 2px; }
.orig[open] summary span { display: none; }
.orig blockquote { margin: 0; font: italic 400 1rem/1.5 var(--font-body); }

/* Team */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.person { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.person p { margin: 0; color: var(--muted); font-size: .9375rem; }
.person__face, .person img {
  flex: none; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent); font-weight: 600;
}

/* Visit */
.visit dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0 0 2rem; }
.visit dt { color: var(--muted); }
.visit dd { margin: 0; }
.visit dd a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -.6rem; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); background: var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 7rem; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
@media (min-width: 46rem) { .site-footer { padding-bottom: 2.5rem; } }

/* Sticky mobile action bar: hidden while the hero's own buttons are on screen (lang.js adds .bar-off) */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem;
  padding: .6rem var(--gap) calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease, visibility .25s;
}
.bar-off .action-bar { transform: translateY(100%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .action-bar { transition: none; } }
@media (min-width: 46rem) { .action-bar { display: none; } }

/* Demo banner: remove when the site goes live */
.demo-banner {
  background: var(--ink); color: var(--bg);
  font-size: .8125rem; text-align: center; padding: .5rem var(--gap);
}

/* --- Bon Profit! --- */
.brand { font-weight: 600; font-size: 1.25rem; }
.hero h1 { max-width: none; }
.dishes { background: var(--surface); border-block: 1px solid var(--line); }
.dishes .section-head p { margin: 0; }
.cards { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { padding: 1rem 1rem 1.5rem; background: var(--bg); box-shadow: none; }
.card img { aspect-ratio: 4 / 3; }
.card h3 { font: 400 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; padding-inline: .5rem; }
.card p { padding-inline: .5rem; }

/* Signature: the chalkboard ("la pizarra invita a pedir"). A slate panel with chalk type, not a second dark band. */
.board {
  background: var(--slate); color: var(--chalk);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3rem);
  border: 10px solid #6b4a32; /* wooden frame */
  box-shadow: inset 0 0 60px rgb(0 0 0 / .35), var(--shadow);
}
.board__eyebrow { margin: 0 0 .75rem; font-size: .875rem; color: #c9c5bb; }
.board h2 { color: var(--chalk); margin-bottom: 1.5rem; }
.board__list { list-style: none; margin: 0; padding: 0; font: 400 1.3125rem/1.35 var(--font-display); }
.board__list li { padding: .6rem 0; border-bottom: 1px dashed rgb(238 235 227 / .28); }
.board__note { margin: 1.5rem 0 0; font-size: .9375rem; color: #c9c5bb; }
.board-photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 52rem) { .board-section .split { grid-template-columns: 1.1fr .9fr; } }

.gallery img:nth-child(3) { object-position: 30% 50%; }
.gallery img:nth-child(4) { object-position: 80% 50%; }
@media (min-width: 52rem) { .reviews { grid-template-columns: 1fr 1fr; } }
.person__face { font-family: var(--font-display); font-size: 1.25rem; }
.visit .muted { font-size: .875rem; }
.hours-note { margin: -1rem 0 2rem; }
/* Fact strip: 2×2 on phones instead of four tall rows */
@media (max-width: 45.99rem) {
  .facts ul { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .facts li { padding: 1rem 0; }
}

.facts li { align-content: start; }
