/* Northline Barber Co. (demo). Black and white like the shop floor, one barber-pole red for the action.
   Big Shoulders (condensed, sign-painter energy) for headings, Inter for reading. Phone first. */

@font-face { font-family: "Big Shoulders"; src: url("/fonts/BigShoulders-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #f5f5f3;
  --ink: #121212;
  --muted: #5f5f5c;
  --surface: #e9e9e6;
  --red: #b3202a;
  --red-deep: #8f1820;
  --night: #121212;
  --head: "Big Shoulders", "Arial Narrow", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --m: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, address, figure { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 0.95; text-transform: uppercase; letter-spacing: 0.005em; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 4px;
  background: var(--red); color: #fff;
  font: 700 19px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); }

/* ---------- Demo notice, header, nav ---------- */
.demo-bar { padding: 8px var(--m); background: #2a2a2a; color: #eee; font-size: 13px; line-height: 1.4; text-align: center; }
.top { position: sticky; top: 0; z-index: 5; background: var(--night); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--m); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--head); text-transform: uppercase; letter-spacing: 0.02em; }
.pole { width: 10px; height: 28px; border-radius: 5px; background: repeating-linear-gradient(135deg, var(--red) 0 6px, #fff 6px 12px, #1f3a8a 12px 18px, #fff 18px 24px); } /* taste-skill-ignore: it is the barber pole */
.top .btn { min-height: 40px; padding: 0 16px; font-size: 16px; }
.nav { display: flex; gap: 4px; padding: 0 calc(var(--m) - 10px) 10px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 6px 10px; border-radius: 4px; color: #cfcfcc; text-decoration: none; font: 700 17px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.12); }

/* ---------- Shared blocks ---------- */
.page-head { padding: 48px var(--m) 32px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(56px, 16vw, 128px); }
.page-head p { max-width: 40ch; font-size: 18px; }
.section { padding: 56px var(--m); }
.section h2 { font-size: clamp(40px, 10vw, 72px); margin-bottom: 20px; }
.split h2 { font-size: clamp(40px, 9vw, 64px); }
.section-tight { padding-top: 8px; }
.after { margin-top: 40px; }

/* Price list: name, time, price on one line, a note under it */
.prices { display: grid; gap: 4px; }
.prices { gap: 22px; }
.prices li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.prices .name { font: 700 24px/1.1 var(--head); text-transform: uppercase; }
.prices .price { font: 800 24px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.prices .note { grid-column: 1 / -1; color: var(--muted); font-size: 15px; margin-top: 4px; }
.group + .group { margin-top: 48px; }
.group h2 { margin-bottom: 8px; }

/* ---------- Home ---------- */
.hero { position: relative; display: grid; min-height: 78svh; background: var(--night); color: #fff; overflow: hidden; }
.hero img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-text { grid-area: 1 / 1; align-self: end; display: grid; gap: 18px; padding: 40px var(--m) 44px; }
.hero h1 { font-size: clamp(60px, 17vw, 160px); max-width: 11ch; }
.hero p { max-width: 34ch; font-size: 18px; color: #e6e6e3; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; gap: 1px; background: var(--surface); }
.facts div { padding: 22px var(--m); background: var(--paper); }
.facts strong { display: block; font: 800 30px/1 var(--head); text-transform: uppercase; margin-bottom: 6px; }
.split { display: grid; gap: 28px; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.more { display: inline-block; margin-top: 20px; font: 700 19px/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--red); }
.visit { background: var(--night); color: #fff; }
.visit .hours { display: grid; gap: 4px; }
.visit .hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: #1c1c1c; border-radius: 4px; }
.visit address { font: 700 30px/1.1 var(--head); text-transform: uppercase; margin-bottom: 12px; }
.visit .grid { display: grid; gap: 40px; }
.visit .muted { color: #a6a6a2; }

/* ---------- Barbers ---------- */
.crew { display: grid; gap: 20px; }
.crew li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 22px; background: #fff; border-radius: 6px; }
.mono { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--night); color: #fff; font: 800 34px/1 var(--head); }
.crew h3 { font-size: 34px; }
.crew .role { color: var(--red); font: 700 17px/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 0 8px; }
.crew .days { color: var(--muted); font-size: 15px; margin-top: 8px; }
.crew .book-with { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--red); }

/* ---------- Booking ---------- */
.book { display: grid; gap: 28px; padding: 8px var(--m) 64px; }
.step { display: grid; gap: 12px; min-width: 0; border: 0; padding: 0; margin: 0; }
.step h2 { font-size: 30px; display: flex; align-items: baseline; gap: 10px; }
.step h2 small { font: 500 15px/1 var(--sans); text-transform: none; color: var(--muted); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 14px 16px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--surface);
  cursor: pointer; transition: box-shadow 140ms ease, background-color 140ms ease;
}
.choice span em { font-style: normal; color: var(--muted); font-size: 15px; white-space: nowrap; }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--red); background: #fff5f5; }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.days-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.days-row .choice span { flex-direction: column; align-items: center; min-width: 72px; gap: 2px; }
.days-row .choice b { font: 800 26px/1 var(--head); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slots .choice span { justify-content: center; }
.slots .choice input:disabled + span { color: #b0b0ac; text-decoration: line-through; cursor: not-allowed; background: var(--paper); }
.fields { display: grid; gap: 12px; }
.fields label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.fields input { min-height: 50px; padding: 0 14px; border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--surface); font: 400 16px/1 var(--sans); color: var(--ink); }
.fields input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.summary { display: grid; gap: 14px; padding: 22px; border-radius: 6px; background: var(--night); color: #fff; }
.summary h2 { font-size: 30px; }
.summary dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.summary dt { color: #9f9f9b; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font: 800 34px/1 var(--head); }
.status { font-size: 15px; color: #d6d6d2; }
.status.is-error { color: #ff9a9a; }

/* ---------- Footer ---------- */
.foot { display: grid; gap: 14px; padding: 40px var(--m) 48px; background: #0a0a0a; color: #cfcfcc; font-size: 15px; }
.foot .brand { color: #fff; }
.foot p { max-width: 70ch; }
.credits { color: #8e8e8a; font-size: 13px; }

/* ---------- Entrances ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero-text > *, .page-head > * { animation: rise 800ms var(--ease) both; }
.hero-text > *:nth-child(2), .page-head > *:nth-child(2) { animation-delay: 90ms; }
.hero-text > *:nth-child(3), .page-head > *:nth-child(3) { animation-delay: 180ms; }

/* ---------- Wider ---------- */
@media (min-width: 760px) {
  :root { --m: 40px; }
  .top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .top-row { display: contents; }
  .brand { padding: 14px 0 14px var(--m); }
  .top .btn { margin-right: var(--m); }
  .nav { grid-row: 1; grid-column: 2; justify-content: center; padding: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .visit .grid { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: repeat(3, 1fr); }
  .crew li { grid-template-columns: 1fr; }
  .book { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 48px; }
  .summary { position: sticky; top: 90px; grid-column: 2; grid-row: 1 / span 5; }
  .fields { grid-template-columns: 1fr 1fr; }
  .section, .page-head { padding-left: var(--m); padding-right: var(--m); }
  .section { padding-top: 96px; padding-bottom: 96px; }
}
@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
}
@media (min-width: 1100px) {
  .section, .page-head, .book { max-width: 1180px; margin: 0 auto; }
  /* the dark visit band runs edge to edge; only its content keeps the measure */
  .section.visit { max-width: none; padding-left: max(var(--m), calc((100% - 1100px) / 2)); padding-right: max(var(--m), calc((100% - 1100px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
