/* Palette taken from the logo card and the studio interior:
   taupe (logo), cream + white (walls, counter), light wood (shelves), plant green (accent). */
/* Fonts are served from this site, so no visitor data goes to a font host */
@font-face { font-family: "Italiana"; src: url("../fonts/italiana-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-variable.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }

:root {
  --taupe: #A99685;
  --taupe-deep: #8B7969;
  --wood: #D9C6B2;
  --cream: #F6F1EA;
  --paper: #FFFDF9;
  --ink: #33291F;
  --muted: #776A5F;
  --line: #E3D9CE;
  --green: #566B4B;
  --green-deep: #465A3D;
  --serif: "Italiana", "Bodoni MT", Didot, Georgia, serif;
  --sans: "Jost", "Century Gothic", "Segoe UI", sans-serif;
  --gutter: 20px;
  --dock-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 18px; }
section { padding: 56px var(--gutter); }
section > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
/* Left-aligned with the 1080px content column rather than centred in it */
.lede { color: var(--muted); max-width: 46ch; margin-left: max(0px, (100% - 1080px) / 2); }
.stars { color: #C9A25A; letter-spacing: .08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); text-decoration: none; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--wa { background: var(--green); color: #fff; }
.btn--wa:hover { background: var(--green-deep); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 var(--gutter);
  background: rgba(246,241,234,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__logo { display: block; width: 78px; color: var(--taupe-deep); }
.bar__logo svg, .hero__logo svg, .foot__logo svg { display: block; width: 100%; height: auto; fill: currentColor; }
.bar__nav { display: none; gap: 28px; font-size: .9rem; letter-spacing: .06em; }
.bar__nav a { text-decoration: none; }
.bar__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button {
  min-width: 44px; height: 38px; border: 0; border-radius: 999px; background: none;
  font: 500 .78rem var(--sans); letter-spacing: .08em; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  background: var(--taupe); color: #fff; text-align: center;
  padding-top: 56px; padding-bottom: 40px;
  min-height: calc(100svh - 56px - var(--dock-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero > * { margin-left: auto; margin-right: auto; }
.hero .eyebrow { color: rgba(255,255,255,.9); }
.hero__logo { display: block; width: min(78vw, 460px); color: #fff; margin-top: 8px; margin-bottom: 36px; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); }
.hero__sub { color: var(--ink); max-width: 34ch; margin-top: 16px; font-size: 1.05rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 7px 14px;
  border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 500 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge + .hero__cta { margin-top: 14px; }
.closing .badge { margin: 0 auto 16px; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; margin-top: 28px; }
.hero__meta { margin-top: 24px; font-size: .92rem; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }
.hero__meta .stars, .hero__meta .is-open, .hero__meta .is-closed { color: #fff; }
/* Phones: opening status on its own line instead of a dangling separator */
.hero__meta .dot { display: none; }
.hero__meta .js-open { flex-basis: 100%; }
.hero__foot { margin-top: 36px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.7; }

/* ---------- Story ---------- */
.story { background: var(--paper); display: grid; gap: 36px; }
.story > * { width: 100%; }
.story__text p + p { margin-top: 14px; }
.story__text p:not(.eyebrow) { max-width: 52ch; }
.story__img { margin: 0 auto; aspect-ratio: 4/5; }

/* ---------- Photo slots (photo or placeholder) ---------- */
.photo { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--wood); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px; text-align: center; color: var(--taupe-deep);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,253,249,.35) 14px 15px);
}
.photo__ph b { font: 400 1.35rem/1.2 var(--serif); color: var(--ink); max-width: 18ch; }
.photo__ph small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.photo.is-empty img { visibility: hidden; }
.photo.is-empty .photo__ph { display: flex; }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.gallery__strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 24px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; max-width: none;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip .photo {
  flex: none; width: 74vw; max-width: 340px; aspect-ratio: 3/4; padding: 0; border: 0;
  scroll-snap-align: center; cursor: zoom-in; font: inherit;
}
.gallery__strip .photo.is-empty { cursor: default; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(40,32,26,.88); }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 4px; }
.lightbox__x {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Service menu ---------- */
.tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 24px calc(var(--gutter) * -1) 0; padding: 8px var(--gutter);
  position: sticky; top: 56px; z-index: 10; background: var(--cream);
  max-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--taupe); background: var(--paper); color: var(--ink);
  font: 500 .95rem var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(51,41,31,.08);
}
.tabs a:hover { background: #F0E6DA; }
.tabs a.is-current { background: var(--taupe-deep); border-color: var(--taupe-deep); color: #fff; }
.tabs a small { margin-left: 8px; font-size: .75rem; opacity: .65; }
/* Clears the sticky top bar plus the sticky chip row when jumping to a category */
.cat { scroll-margin-top: 128px; }
.cats { margin-top: 20px; }
.cat + .cat { margin-top: 32px; }
.cat__title { font: 400 1.75rem/1.15 var(--serif); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.items { list-style: none; padding: 0; margin-top: 12px; margin-bottom: 0; display: grid; gap: 8px; }
.item { display: flex; }
.item__btn {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 14px; align-items: start; align-content: start;
  padding: 14px 14px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  font: inherit; color: inherit;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.item__btn:hover { border-color: var(--taupe); }
.item__name { font-weight: 500; line-height: 1.35; padding-top: 2px; }
.item__price { font-weight: 500; white-space: nowrap; padding-top: 2px; }
.item__desc { grid-column: 2 / -1; color: var(--muted); font-size: .92rem; line-height: 1.45; }
/* Plus mark drawn with two bars so it stays optically centred; becomes a tick when selected */
.item__mark {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--taupe-deep); transition: background .2s, border-color .2s;
}
.item__mark::before, .item__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--taupe-deep);
  width: 12px; height: 1.5px; transform: translate(-50%, -50%);
}
.item__mark::after { width: 1.5px; height: 12px; }
.item__btn[aria-pressed="true"] { background: #F0E6DA; border-color: var(--taupe); box-shadow: inset 0 0 0 1px var(--taupe); }
.item__btn[aria-pressed="true"] .item__mark { background: var(--green); border-color: var(--green); }
.item__btn[aria-pressed="true"] .item__mark::after { display: none; }
.item__btn[aria-pressed="true"] .item__mark::before {
  width: 6px; height: 11px; background: none; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* ---------- Reviews ---------- */
.score { display: flex; align-items: center; gap: 16px; margin-top: 8px; margin-bottom: 28px; }
.score__n { font: 300 4.2rem/1 var(--sans); color: var(--taupe-deep); }
.score__s { display: grid; gap: 2px; font-size: .9rem; color: var(--muted); }
.score__s .stars { font-size: 1.15rem; }
.reviews__sub { font: 400 .74rem var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.themes { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; }
.themes li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.themes h4 { font: 400 1.45rem var(--serif); margin-bottom: 2px; }
.themes p { color: var(--muted); }
.quotes { display: grid; gap: 12px; margin-top: 36px; margin-bottom: 28px; }
.quote { margin: 0; padding: 28px 24px; background: var(--taupe); color: #fff; border-radius: 4px; }
.quote p { font: 400 1.9rem/1.2 var(--serif); }
.quote footer { margin-top: 10px; font-size: .85rem; color: var(--ink); letter-spacing: .04em; }

/* ---------- Visit ---------- */
.visit { background: var(--cream); display: grid; gap: 32px; }
.visit > * { width: 100%; }
address { font-style: normal; font-size: 1.15rem; line-height: 1.5; }
.visit__tip { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.visit__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 36px; }
.visit h3 { font: 400 1.6rem var(--serif); margin-bottom: 4px; }
.visit__open { font-size: .95rem; margin-bottom: 10px; }
.is-open { color: var(--green); font-weight: 500; }
.is-closed { color: #9A4B3C; font-weight: 500; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 500; }
.hours tr.today td:first-child::after { content: " •"; color: var(--green); }
/* Static map image: nothing loads from a map provider until the visitor taps through */
.map { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--wood); color: var(--ink); }
.map img { width: 100%; height: auto; filter: saturate(.8) sepia(.08); }
.map__cta {
  position: absolute; left: 12px; bottom: 12px; padding: 9px 14px; border-radius: 999px; background: var(--paper);
  font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(51,41,31,.18);
}
.map:hover .map__cta { background: var(--ink); color: var(--cream); }
.map__credit { position: absolute; right: 0; bottom: 0; padding: 1px 6px; background: rgba(255,253,249,.8); font-size: .62rem; }

/* ---------- Closing + footer ---------- */
.closing { background: var(--taupe); color: #fff; text-align: center; }
.closing p { color: var(--ink); margin: 0 auto 26px; max-width: 34ch; }
.foot { background: var(--ink); color: #D8CCC0; text-align: center; padding: 48px var(--gutter) 40px; font-size: .92rem; }
.foot__logo { display: block; width: 150px; margin: 0 auto 22px; color: var(--cream); }
.foot p + p { margin-top: 6px; }
.foot p a { display: inline-block; padding: 11px 4px; }
.foot__small { font-size: .78rem; letter-spacing: .08em; opacity: .7; margin-top: 18px !important; }
.foot__credit { margin-top: 0 !important; }
.foot__legal { font-size: .85rem; }

/* ---------- Legal pages and 404 ---------- */
body.plain { padding-bottom: 0; }
/* One block per language lives in the page; only the active one shows */
html[lang="es"] [data-l]:not([data-l="es"]),
html[lang="ca"] [data-l]:not([data-l="ca"]),
html[lang="en"] [data-l]:not([data-l="en"]) { display: none; }
.legal { background: var(--paper); }
.legal article { max-width: 68ch; }
.legal h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal__meta { color: var(--muted); font-size: .9rem; }
.legal__back { display: inline-block; margin-top: 40px; padding: 11px 0; }
.lost { text-align: center; min-height: 60svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lost h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 14px; }
.lost p { color: var(--muted); margin: 0 auto 28px; max-width: 34ch; }

/* ---------- Sticky booking dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,253,249,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
/* Slides away while another WhatsApp button is on screen, so the same button never shows twice */
.dock--away { transform: translateY(110%); }
.dock__sum { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.25; color: var(--muted); }
.dock__sum:empty { display: none; }
.dock__sum b { display: block; font: 500 1.05rem var(--sans); color: var(--ink); }
.dock .btn { flex: 1; padding: 0 18px; }
.dock__sum:not(:empty) + .btn { flex: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 860px) {
  :root { --gutter: 48px; --dock-h: 0px; }
  body { font-size: 18px; }
  section { padding-top: 112px; padding-bottom: 112px; }
  .bar { height: 64px; }
  .bar__logo { width: 92px; }
  .bar__nav { display: flex; }
  .hero { min-height: calc(100svh - 64px); }
  .hero__cta { flex-direction: row; max-width: none; width: auto; }
  .hero__meta .dot { display: inline; }
  .hero__meta .js-open { flex-basis: auto; }
  .tabs { top: 64px; padding-left: max(var(--gutter), calc((100vw - 1080px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1080px) / 2)); }
  .cat { scroll-margin-top: 136px; }
  .items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .story { grid-template-columns: 1.1fr .9fr; column-gap: 64px; align-items: center; max-width: none; }
  .story > * { max-width: none; }
  .story { padding-left: max(var(--gutter), calc((100vw - 1080px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1080px) / 2)); }
  .gallery__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin: 32px auto 0; padding: 0; max-width: 1080px; }
  .gallery__strip .photo { width: auto; max-width: none; }
  .themes { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 16px; }
  .quote { padding: 40px; }
  .quote p { font-size: 2.1rem; }
  .visit { grid-template-columns: 1fr 1fr; column-gap: 64px; padding-left: max(var(--gutter), calc((100vw - 1080px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1080px) / 2)); }
  .visit > * { max-width: none; }
  .map { align-self: start; }
  /* On desktop the dock only appears once something is selected */
  .dock { left: auto; right: 24px; bottom: 24px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: 0 10px 30px rgba(51,41,31,.14); }
  .dock:has(.dock__sum:empty) { display: none; }
}

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