/* ============================================================
   03 Legend's Barber House - Carrer de Joan Alcover 5, Nou Barris.

   READ: contemporary fade-specialist landing for a young local
   clientele, high-contrast streetwear language, off-black ground
   with a single acid-lime accent. There are no photographs yet, so
   the 4.9 rating and the real Google reviews carry the page and the
   missing shots are drawn as labelled slots (media.css .m-ph).

   Palette, type and dials are docs/DESIGN-DIRECTIONS.md section 03,
   used verbatim. Loaded FIRST, before ds.css / booking.css /
   media.css, which refine it.
   ============================================================ */

:root {
  /* Ground and ink. No pure #000 and no pure #fff anywhere. */
  --bg:    #0D0D0F;   /* off-black ground */
  --bg-2:  #141418;   /* lifted surface: cards, placeholders, form */
  --bg-3:  #1A1A1F;   /* input wells (booking.css reads this) */
  --text:  #F5F5F3;   /* 17.79:1 on ground */
  --muted: #A5A5A0;   /*  7.85:1 on ground, 7.43:1 on --bg-2 */
  --line:  #2B2B31;

  /* One accent, used on the booking CTAs and on the rating figure,
     which is the one fact on this page that has to be found. Nowhere
     decorative. */
  --accent:     #C8F031;   /* 14.76:1 on ground */
  --accent-ink: #0D0D0F;   /* label on the accent fill, also 14.76:1 */

  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* One corner-radius system, chosen and then held. Tight, because a
     fade is a straight-edge business. */
  --r-s: 4px;    /* controls, buttons, chips */
  --r-m: 10px;   /* cards, quote panels */
  --r-l: 18px;   /* the big media slots */

  --nav-h: 64px;
  --wrap: 1180px;

  /* Motion dials for ds.css. Snappy: a shop known for fades reads as
     precise and quick. The reveal dials live on <html> as data-ds-*. */
  --ds-lift: 2px;
  --ds-dur: 0.2s;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);

  /* Native form controls, the date picker included, must render dark.
     Without this the <input type="date"> calendar arrives white. */
  color-scheme: dark;
}

/* Error text. booking.css switches --bad on prefers-color-scheme and
   cannot know this page is dark whatever the system setting says. It
   also declares its default on :root and loads AFTER this file, so a
   plain :root here would lose the cascade on equal specificity. The
   doubled :root wins it. Measured: #b3261e on this ground is 2.97:1
   and unreadable; #ff9e8d is 9.73:1. See docs/DESIGN-DIRECTIONS.md. */
:root:root { --bad: #ff9e8d; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

/* A contact link whose target the shop has not confirmed has its href
   removed by site.js. It must then read as ordinary text rather than
   as a link that does nothing. */
a:not([href]) { text-decoration: none; cursor: default; }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4.5vw, 2.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.ico {
  width: 1.05em; height: 1.05em;
  flex: none;
  vertical-align: -0.15em;
}

/* ---------- Reveal ----------
   The floor under motion.js. If Motion never loads this is what still
   reveals the page; motion.js takes ownership by setting .ds-motion on
   <html>, which ds.css uses to switch this transition off. */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
/* aria-disabled, not disabled: the WhatsApp chat link still explains
   itself when tapped instead of silently doing nothing. */
.btn[aria-disabled="true"] { opacity: 0.75; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(4px)) { .site-head { background: var(--bg); } }

.head-in {
  display: flex;
  align-items: center;
  gap: var(--s4, 1rem);
  padding-block: 0.6rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  margin-right: auto;
}
.brand span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.langs { display: flex; gap: 0.15rem; }
.langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.3rem;
  border-radius: var(--r-s);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.langs a[aria-current="true"] { color: var(--text); background: var(--bg-2); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

/* The header is four items on a 390px phone. The language switcher
   keeps its three targets and the sticky CTA keeps its width; the
   strap under the wordmark is what goes. */
@media (max-width: 600px) {
  .brand { font-size: 0.98rem; }
  .brand span { display: none; }
  .nav-cta { padding-inline: 0.8rem; font-size: 0.88rem; }
  .langs a { min-width: 38px; }
}

/* ---------- Hero ----------
   Four text elements, headline two lines at 390px (measured: "Degradados
   en" / "Nou Barris" at the clamp floor of 2.25rem), CTA above the fold,
   min-height in dvh so a phone's shrinking URL bar does not clip it. */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  align-content: center;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}
.hero-in {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.25rem, 8.2vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-block: 0.55rem 1.1rem;
  text-wrap: balance;
}
.hero-lede {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.16rem);
}

/* The strongest fact this business has. It is the page's single
   eyebrow and the only place other than the CTAs that gets the lime. */
.rating-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stars { color: var(--accent); letter-spacing: 0.12em; font-size: 0.95rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.2rem);
}
.hero-cta .btn { flex: 0 1 auto; }

.hero-media .m-ph {
  height: min(58dvh, 600px);
  border-radius: var(--r-l);
}

@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
/* Below 900px the hero is text only. A media slot there would push the
   booking CTA off a 390px screen, which is the one thing the hero is
   for; the storefront slot immediately below carries the visual. */
@media (max-width: 899px) {
  .hero-media { display: none; }
}

/* ---------- Section rhythm ---------- */
.sec { padding-block: clamp(3.5rem, 9vw, 7rem); }
.sec-head { max-width: 46ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head h2 { font-size: clamp(1.85rem, 1.4rem + 2.2vw, 3.1rem); }
.sec-head p { margin-top: 0.9rem; color: var(--muted); }

.note { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---------- Storefront band ----------
   Full width, edge to edge, no wrap. The one slot whose photograph has
   to show the shop's own signage before anything on this page may be
   described as this shop. */
.band { padding-block: 0; }
/* A 16:9 slot full-bleed at 1280px is 720px of empty box, which is more than
   a viewport of nothing. Measured in Chrome and capped: the band reads as a
   wide letterbox at every width instead. */
.band .m-ph {
  border-radius: 0;
  aspect-ratio: auto;
  height: clamp(210px, 30vw, 400px);
}
.band-cap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem clamp(1.15rem, 4.5vw, 2.5rem) 0;
}

/* ---------- Proof ----------
   Not three equal stat cards. One oversized figure against a block of
   running text, which is how a 4.9 actually reads. */
.proof-in {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.proof-score {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-variant-numeric: tabular-nums;
}
.proof-score .of { font-size: 0.28em; color: var(--muted); letter-spacing: 0; }
.proof-body h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.8rem); }
.proof-body p { margin-top: 1rem; color: var(--muted); max-width: 52ch; }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.amenities li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 0.83rem;
  color: var(--muted);
}
@media (min-width: 820px) {
  .proof-in { grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
}

/* ---------- Gallery of waiting shots ----------
   Mirrored two-row asymmetry, tall and wide swapping sides, so it does
   not read as a grid of equal tiles. Every cell is a labelled slot. */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  align-items: start;
}
.gallery > li { min-width: 0; }
.gallery > li:nth-child(1) { grid-column: span 2; }
.gallery > li:nth-child(2) { grid-column: span 4; }
.gallery > li:nth-child(3) { grid-column: span 4; }
.gallery > li:nth-child(4) { grid-column: span 2; }
.gallery .m-ph { border-radius: var(--r-l); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery > li:nth-child(n) { grid-column: span 1; }
}

/* ---------- Reviews ----------
   Seven real Google quotes, kept in Spanish on all three pages because
   a translated review is no longer the thing the person wrote. The
   first is the lead and is set larger; the rest sit in a ragged grid
   rather than a cramped strip. */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  align-items: start;
}
.reviews > li {
  min-width: 0;
  padding: 1.4rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.reviews blockquote { margin: 0; }
.reviews p {
  /* about three lines at the widest column, which is the cap agreed
     for a quoted review. */
  font-size: 1.02rem;
  line-height: 1.6;
}
/* The author is printed as the reviewer wrote it. No uppercase transform:
   "maletin vacio" is a person's chosen display name, not a label. */
.reviews figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.reviews figcaption .stars { font-size: 0.82rem; letter-spacing: 0.1em; }
.reviews > li:first-child {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.reviews > li:first-child p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.review-src { margin-top: clamp(1.25rem, 3vw, 1.9rem); }

@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews > li:first-child { grid-column: span 2; } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews > li:first-child { grid-column: span 3; } }

/* ---------- Price list ----------
   Grouped into the four families the shop itself uses, not nine rows
   with a hairline under each. */
.price-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.price-group {
  padding: 1.4rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  min-width: 0;
}
.price-group h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.price-group li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}
.price-group li + li { border-top: 1px solid var(--line); }
.p-name { font-weight: 500; min-width: 0; }
.p-min { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.p-eur {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 760px) { .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hours and address ---------- */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.info-card {
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  min-width: 0;
}
.info-card h3 {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hours-grid { display: grid; gap: 0.1rem; }
.hours-grid > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.6rem;
}
.hours-grid > div + div { border-top: 1px solid var(--line); }
.hours-grid dt { color: var(--muted); font-size: 0.95rem; }
.hours-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-grid .shut { color: var(--muted); font-weight: 500; }

.contact-list { display: grid; gap: 0.25rem; }
.contact-list li { padding-block: 0.35rem; }
.contact-list a, .contact-list .val {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-list a[href] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-list .k {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 820px) { .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Booking ---------- */
.book { background: var(--bg-2); border-block: 1px solid var(--line); }
.book-in { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 980px) { .book-in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  border-radius: var(--r-s);
}
@media (min-width: 560px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form select {
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  width: 100%;
  min-width: 0;
}
.form textarea { border-radius: var(--r-s); }

.form-error, .form-ok {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-error.show, .form-ok.show { display: block; }
/* Never colour alone: the error carries a marker glyph and a rule. */
.form-error {
  color: var(--bad);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--bad);
  border-radius: var(--r-s);
  font-weight: 600;
}
.form-error::before { content: "! "; font-weight: 800; }
.form-error a { color: var(--bad); font-weight: 700; }
.form-ok { color: var(--text); padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-s); }

.book-result { border-radius: var(--r-m); }
.book-note { margin-top: 1.1rem; }

/* ---------- Footer ---------- */
.site-foot {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.foot-in { display: grid; gap: 1.75rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.foot-links a, .foot-links .val {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 600;
}
.foot-links a[href] { text-decoration: underline; text-underline-offset: 4px; }
.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.foot-addr { margin-block: 0.35rem 0.9rem; }
.foot-legal { display: grid; gap: 0.5rem; }
@media (min-width: 820px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
