/* Hispana barber shop · Hand-painted barbería sign.
   Stucco white walls, counter-black lettering, chair-chrome rules, and the red of the
   channel letters over the door. Type and CSS only: no drawn art, no status dots. */
:root {
  --stucco: #F7F4EE;
  --paper: #FFFDF8;
  --ink: #141414;
  --muted: #4A4846;
  --chrome: #9AA0A6;
  --chrome-soft: #DCDDDC;
  --red: #A30000;        /* dark sign red: red text and links */
  --red-deep: #7E0000;
  --sign: #F50000;       /* sign-letter red: painted numbers, the main button */
  --sign-deep: #D10000;
  --line: rgba(20, 20, 20, .14);
  --display: var(--cm-font-heading, "Chicle"), "Trebuchet MS", system-ui, cursive;
  --body: var(--cm-font-body, "Rubik"), system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stucco); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font: 700 19px/1.25 var(--body); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Shop rules on every screen */
.rules { background: var(--red); color: #fff; text-align: center; font-size: 15px; padding: 8px 16px; letter-spacing: .02em; }
.rules a { color: #fff; font-weight: 700; text-decoration-color: rgba(255, 255, 255, .55); }
.banner { background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; }

/* Header: a typographic wordmark (the real badge logo comes later) */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(247, 244, 238, .95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; align-self: center; }
.brand__logo { width: 46px; height: 46px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); }
.brand__script { font: 400 36px/1 var(--display); color: var(--sign); text-shadow: 2px 2px 0 var(--ink); }
.brand__caps { font: 800 13px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 17px var(--body); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { background: #2B2B2B; color: #fff; }
.btn:active { transform: translateY(1px); }
/* The sign-red button: 19px bold white text counts as large text for contrast (≥ 3:1). */
.btn--go { background: var(--sign); border-color: var(--sign); color: #fff; font-size: 19px; box-shadow: 3px 3px 0 var(--ink); }
.btn--go:hover { background: var(--sign-deep); border-color: var(--sign-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.eyebrow { font: 700 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.small { font-size: 15px; color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); max-width: 1240px; margin: 0 auto; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.h1__en { display: block; color: var(--ink); }
.h1__es { display: block; color: var(--red); margin-top: 6px; font-size: .78em; }
.lede { font-size: 20px; color: var(--muted); max-width: 32em; }
.tags { font: 700 15px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 10px 0; border-top: 2px solid var(--chrome); border-bottom: 2px solid var(--chrome); align-self: flex-start; }
.proof { font-size: 15px; color: var(--muted); }
.proof strong { color: var(--ink); }
/* The hero photo hangs like a sign board: black frame, painted red inner rule. */
.hero__frame { position: relative; margin: 0; padding: 14px 14px 10px; background: var(--ink); border-radius: 14px; box-shadow: 0 30px 50px -28px rgba(20, 20, 20, .55); display: flex; flex-direction: column; gap: 10px; }
.hero__frame::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--sign); border-radius: 9px; pointer-events: none; }
.hero__photo { aspect-ratio: 4 / 5; border-radius: 6px; background-color: var(--paper); }
.hero__photo.cm-photo { height: auto; border-radius: 6px; }
.hero__cap { text-align: center; font: 700 12px var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--stucco); }

/* Quotes */
.said { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.said blockquote { margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.said p { font: 500 19px/1.4 var(--body); }
.said cite { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-style: normal; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.section__head { max-width: 720px; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

/* ── La pared de cortes · The wall of cuts ─────────────────────────────────
   A hand-painted sign board of 7 numbered cards, type and CSS only.
   Layout: an 8-column grid, each card spans 2, and card 5 starts at column 2,
   so it is always 4 + 3 centered at every width above phones (never a lone card).
   1280px: board 1040px, cards ~235px. 900px: board ~828px, cards ~180px.
   700px: cards ~140px (the descriptive line drops below 170px).
   ≤ 680px: a horizontal swipe row (phones and small tablets). */
.wall { list-style: none; margin: 0 auto; padding: clamp(14px, 2.6vw, 30px); max-width: 1040px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); background: var(--paper); border: 6px solid var(--ink); border-radius: 16px; position: relative; }
.wall::before { content: ""; position: absolute; inset: 6px; border: 2px solid var(--sign); border-radius: 9px; pointer-events: none; }
.cut { grid-column: span 2; perspective: 1100px; container-type: inline-size; min-width: 0; }
.cut:nth-child(5) { grid-column: 2 / span 2; }
.cut__inner { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cut.is-flipped .cut__inner { transform: rotateY(180deg); }
.cut__face { position: absolute; inset: 0; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* Front: a brush-lettered number on a painted card. */
.cut__front { align-items: center; justify-content: center; gap: 4px; padding: 12px 10px 44px; text-align: center; background: var(--stucco); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--chrome); }
.cut__num { font: 400 88px/0.95 var(--display); font-size: clamp(56px, 42cqi, 110px); color: var(--sign); text-shadow: 3px 3px 0 var(--ink); }
.cut__name { display: flex; flex-direction: column; gap: 2px; }
.cut__en { font: 800 17px/1.15 var(--body); font-size: clamp(14px, 8.4cqi, 20px); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.cut__es { font: 500 15px/1.15 var(--body); font-size: clamp(13px, 7cqi, 17px); color: var(--red); }
.cut__line { font-size: 14px; font-size: clamp(12px, 6.2cqi, 15px); line-height: 1.3; color: var(--muted); max-width: 16em; }
/* The whole front is the flip button; its label sits at the bottom edge. */
.cut__flip { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: inherit; }
.cut__flip:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.cut__hint { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 12px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; transition: background .2s; }
.cut__flip:hover .cut__hint { background: var(--red); }
/* Back: the real photo of that cut, and the line to show the barber. */
.cut__back { transform: rotateY(180deg); background: var(--ink); color: #fff; padding: 8px; gap: 8px; }
.cut__ph { flex: 1 1 0; min-height: 0; border-radius: 6px; font-size: 13px; }
.cut__ph.cm-photo { height: auto; min-height: 0; border-radius: 6px; }
.cut__show { font: 500 13px/1.3 var(--body); font-size: clamp(12px, 5.6cqi, 14px); text-align: center; padding: 0 2px; }
.cut__show b { font: 400 1.3em/1 var(--display); color: #FF4D4D; letter-spacing: .02em; }
.cut__unflip { min-height: 44px; border: 2px solid #fff; border-radius: 8px; background: transparent; color: #fff; font: 700 14px var(--body); cursor: pointer; }
.cut__unflip:hover { background: #fff; color: var(--ink); }
.cut__unflip:focus-visible { outline-color: var(--sign); }
/* Narrow cards (tablet widths): drop the descriptive line and the second hint language so nothing clips. */
@container (max-width: 170px) {
  .cut__line { display: none; }
}
@container (max-width: 199px) {
  .cut__hint-es { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cut__inner { transition: none; }
}
.swipe-hint { display: none; }

/* The painted strip under the board: the rules and today's hours, in words. */
.strip { max-width: 1040px; margin: 18px auto 0; padding: 14px 20px; background: var(--red); color: #fff; border-radius: 10px; text-align: center; font: 700 15px/1.6 var(--body); letter-spacing: .12em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--ink); }
.strip__sep { margin: 0 .7em; opacity: .7; }
.strip__today { letter-spacing: .06em; text-transform: none; font-weight: 500; white-space: nowrap; }

/* How the line works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.steps__num { font: 400 52px/1 var(--display); color: var(--sign); text-shadow: 2px 2px 0 var(--ink); }
.steps h3 span { color: var(--red); font-weight: 500; }
.steps p { color: var(--muted); font-size: 16px; }
.steps a { font-weight: 700; white-space: nowrap; }
.tip { margin: 22px 0 26px; padding: 16px 20px; border-left: 6px solid var(--sign); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; display: flex; flex-direction: column; gap: 4px; }
.tip__label { font: 700 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.tip p:not(.tip__label) { color: var(--muted); }

/* Services */
.services__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.services__grid > .svc { flex: 0 1 calc((100% - 32px) / 3); min-width: 0; }
.svc { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; border: 2px solid var(--ink); border-top: 6px solid var(--sign); display: flex; flex-direction: column; gap: 8px; }
.svc p { color: var(--muted); font-size: 16px; }
.svc__price { color: var(--red) !important; font-weight: 700; }

/* Photo placeholders: dashed chrome frame on stucco stripes, until the shop's photos arrive. */
.ph { display: grid; place-items: center; padding: 16px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); border: 2px dashed var(--chrome); border-radius: 10px; background: repeating-linear-gradient(45deg, var(--stucco), var(--stucco) 10px, var(--paper) 10px, var(--paper) 20px); }
.cut__back .ph { color: var(--muted); }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.visit__ph { aspect-ratio: 4 / 3; }
.visit__ph.cm-photo { height: auto; border-radius: 14px; }
.visit__info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.addr { font: 700 22px/1.3 var(--body); }
.moved { border: 2px dashed var(--chrome); border-radius: 10px; padding: 12px 16px; background: var(--paper); font-size: 16px; color: var(--muted); }
.moved strong { color: var(--ink); }
.today { font-weight: 700; color: var(--red); }
.today:empty { display: none; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; font-size: 16px; }
.cm-hours-row { display: contents; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); }

/* Message form */
.ask { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.ask__copy { display: flex; flex-direction: column; gap: 16px; }
.ask__copy > p:not(.eyebrow):not(.small) { color: var(--muted); font-size: 18px; }
.ask__form { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
input, textarea { font: 400 16px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--chrome); border-radius: 8px; padding: 11px 12px; width: 100%; min-height: 46px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 0, 0, .2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 700; color: var(--red); min-height: 1.2em; }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-bottom: 2px solid var(--chrome-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font: 700 19px/1.35 var(--body); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--red); font: 400 30px/1 var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Footer + phone dock */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 32px clamp(16px, 4vw, 48px) 40px; border-top: 2px solid var(--ink); font-size: 15px; color: var(--muted); }
.foot > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.foot__name { font: 800 14px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.foot__script { font: 400 26px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--sign); text-shadow: 1px 1px 0 var(--ink); margin-right: 4px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.dock { display: none; }
.cm-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .services__grid > .svc { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top .btn--small { margin-left: auto; }
  .hero, .visit, .ask { grid-template-columns: minmax(0, 1fr); }
  .hero__frame { width: 100%; max-width: 420px; margin: 0 auto; }
  .said { grid-template-columns: minmax(0, 1fr); }
  .rules__more { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 244, 238, .97); border-top: 2px solid var(--ink); }
  body:has(.cm-preview-bar) .dock { bottom: 34px; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none; background: var(--paper); }
  .dock small { font-size: 12px; font-weight: 500; }
  .dock .dock__main { background: var(--sign); border-color: var(--sign); color: #fff; font-size: 19px; }
  .foot { padding-bottom: 150px; }
}
@media (max-width: 680px) {
  /* Phones and small tablets: a swipe row of big cards (no orphan card, room for the photo). */
  .wall { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(210px, 68%, 290px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: 12px; padding: 16px; scrollbar-width: none; }
  .wall::-webkit-scrollbar { display: none; }
  .wall::before { display: none; }
  .cut, .cut:nth-child(5) { grid-column: auto; scroll-snap-align: center; }
  .swipe-hint { display: block; margin-top: 10px; text-align: center; font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 600px) {
  .services__grid > .svc { flex-basis: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .strip { letter-spacing: .08em; font-size: 14px; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .brand__script { font-size: 30px; }
  .brand__caps { font-size: 11px; letter-spacing: .22em; }
  .btn--go, .actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .wide-only { display: none; }
}
@media (max-width: 359px) {
  .brand__caps { display: none; }
}

/* Owner photos swapped into photo spots (cm.js replaces a placeholder with an <img class="ph … cm-photo">). */
.ph.cm-photo { display: block; padding: 0; border: 0; background: none; width: 100%; object-fit: cover; }
