/* ===== Obscure Barbershop ===== */
:root {
  --bg: #0d0e10;
  --g-alt: #15171a;
  --surface: #1c1f23;
  --card: #1c1f23;
  --line: #2a2e33;
  --line-strong: #41464d;
  --ink: #f2f3f4;
  --muted: #a3a9b0;           /* 7.9:1 on --bg */
  --action: #ffffff;          /* the white of the hexagons */
  --action-ink: #0d0e10;
  --danger: #f08a80;

  --font-display: "Big Shoulders Stencil Display", "Impact", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-2: 8px;
  --r-btn: 8px;
  --r: 8px;
  --nav-h: 72px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  /* white hexagon lattice, very faint, over the dark ground */
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66v34' fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

.h2 {
  font: 900 clamp(30px, 3.6vw, 48px)/1.04 var(--font-display);
  letter-spacing: .005em;
}

/* ===== Buttons (motion.css adds hover, press) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 16px; white-space: nowrap;
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--secondary { background: transparent; color: var(--ink); height: auto; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; }
.btn--arrow::after { content: "→"; display: inline-block; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }

.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat; transition: background-size .2s; }
.link:hover { background-size: 100% 1px, 100% 1px; }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__blade { height: 28px; width: auto; }
.brand__name { font: 900 30px/1 var(--font-display); letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 32px; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__word[aria-current="true"] { color: var(--ink); background-size: 100% 2px; }
.nav__word { font-size: 16px; font-weight: 500; color: var(--muted); padding: 4px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: color .14s, background-size .2s; }
.nav__word:hover { color: var(--ink); background-size: 100% 1px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero (place hero: photograph, words under it) ===== */
.hero { min-height: 100vh; min-height: 100svh; padding-top: var(--nav-h); display: flex; flex-direction: column; }
.hero__photo { margin: 24px 0 0; height: min(480px, 54vh); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 40px 0 24px; align-items: start; }
.hero__title { grid-column: 1 / 7; font: 900 clamp(40px, 4.4vw, 60px)/1.04 var(--font-display); }
.hero__title::before { content: ""; display: block; width: 22px; aspect-ratio: .866; background: var(--action); clip-path: var(--hex); margin-bottom: 20px; }
.hero__side { grid-column: 7 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 40px; }
.hero__lead { font-size: 20px; line-height: 30px; color: var(--muted); }
.hero__lead span { color: var(--ink); font-weight: 600; }

/* ===== Sections ===== */
.section { min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 72px; display: flex; flex-direction: column; justify-content: flex-start; }
.section--alt { background-color: var(--g-alt); }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.head-row .muted { max-width: 480px; text-align: right; }

.photo { margin: 0; overflow: hidden; background: var(--surface); display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--45 { aspect-ratio: 4 / 5; }
.photo--11 { aspect-ratio: 1; }

/* Visit */
.type-moment { margin: 12px 0 32px; font: 900 clamp(56px, 8vw, 112px)/1 var(--font-display); letter-spacing: -.01em; }
.type-moment a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .2s; }
.type-moment a:hover { background-size: 100% 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.split > .photo { aspect-ratio: auto; min-height: 320px; }
.visit { background: var(--g-alt); border: 1px solid var(--line); padding: 40px; }
.visit__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; font-size: 20px; }
.open-now { font-size: 16px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.open-now.is-open::before { content: ""; width: 10px; aspect-ratio: .866; background: var(--action); clip-path: var(--hex); }
.visit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit__cols > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.visit__addr { font-size: 20px; line-height: 30px; font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.is-today td { color: var(--ink); font-weight: 700; }

/* Prices: groups left, tall + small photograph right */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.offer__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.group__label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 0; cursor: pointer; }
.row button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.row__name { font-weight: 500; }
.row__price { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.row__desc { grid-column: 1 / -1; color: var(--muted); }
.row button:hover .row__name { text-decoration: underline; text-underline-offset: 4px; }
.offer__photos { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: end; }

/* The place: honeycomb wall of hexagon photographs */
.honeycomb { --size: calc((100% - 3 * 12px) / 4); display: flex; flex-wrap: wrap; gap: 0 12px; justify-content: center; }
.hex { display: block; width: var(--size); aspect-ratio: .866; clip-path: var(--hex); overflow: hidden; background: var(--surface); margin-bottom: calc(var(--size) * -0.2887 + 12px); }
.hex img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Booking ===== */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.booking__side { display: flex; flex-direction: column; gap: 24px; }
.booking > * { min-width: 0; }
.booking__steps { display: flex; flex-direction: column; gap: 16px; }
.step { margin: 0; padding: 24px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; font-size: 18px; }
.step legend + * { clear: both; }
.hexnum { width: 30px; aspect-ratio: .866; display: grid; place-items: center; clip-path: var(--hex); background: var(--action); color: var(--action-ink); font: 900 15px/1 var(--font-display); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice { display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .14s; }
.choice:hover { border-color: var(--line-strong); }
.choice strong { font-size: 16px; font-weight: 600; }
.choice span { font-size: 15px; color: var(--muted); }
.choice[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.choice[aria-pressed="true"] span { color: #3d4249; }
.choices--barbers .choice { flex-direction: row; align-items: center; gap: 12px; }
.choice__hex { width: 28px; flex: none; aspect-ratio: .866; clip-path: var(--hex); background: var(--line-strong); }
.choice[aria-pressed="true"] .choice__hex { background: var(--action-ink); }

.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.date { padding: 10px 0; text-align: center; cursor: pointer; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .14s; }
.date:hover:not([disabled]) { border-color: var(--line-strong); }
.date small { display: block; font-size: 13px; color: var(--muted); }
.date strong { display: block; font: 900 26px/1.1 var(--font-display); }
.date[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.date[aria-pressed="true"] small { color: #3d4249; }
.date[disabled] { opacity: .3; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots .muted { grid-column: 1 / -1; }
.slot { height: 44px; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); transition: border-color .14s; }
.slot:hover:not([disabled]) { border-color: var(--action); }
.slot[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.slot[disabled] { opacity: .28; text-decoration: line-through; cursor: not-allowed; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 15px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r); resize: vertical; background: var(--surface); border: 1px solid var(--line); outline: none; transition: border-color .14s, box-shadow .14s; }
.field input:focus, .field textarea:focus { border-color: var(--action); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.field__err { display: none; color: var(--danger); font-size: 14px; }
.field.is-invalid input { border-color: var(--danger); }
.field.is-invalid .field__err { display: block; }

.summary { padding: 24px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r); }
.summary__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.summary__list { margin: 0; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; text-align: right; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; }
.summary__total strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

.mine { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.mine h4 { font-size: 16px; margin-bottom: 10px; }
.mine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mine li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: var(--r); }
.mine li span { color: var(--muted); display: block; }
.mine button { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 15px; font-weight: 600; flex: none; }

/* ===== Footer ===== */
.footer { min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 56px) 0 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.footer > .wrap { display: flex; flex-direction: column; flex: 1; }
.close { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: auto; padding-bottom: 56px; }
.close__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.close__photo { aspect-ratio: 3 / 2; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 28px; width: auto; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer__cols p + p { margin-top: 8px; }
.footer__h { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px !important; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__nav .nav__word { color: var(--ink); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ===== Phone action bar ===== */
.actionbar { display: none; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.78); }
.modal[hidden] { display: none; }
.modal__box { width: min(440px, 100%); padding: 32px 28px; text-align: center; background: var(--g-alt); border: 1px solid var(--line-strong); border-radius: 12px; }
.modal__hex { width: 60px; aspect-ratio: .866; margin: 0 auto 16px; display: grid; place-items: center; clip-path: var(--hex); background: var(--action); color: var(--action-ink); font-size: 24px; font-weight: 800; }
.modal h3 { font: 900 34px/1 var(--font-display); margin-bottom: 12px; }
.modal p { color: var(--muted); }
.modal__actions { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; align-items: center; }
.modal__actions .btn--secondary { width: auto; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .wrap { width: min(1200px, 100% - 128px); }
  .section, .footer, .hero { min-height: 0; }
  .booking__side > .photo { display: none; }
  .hero__photo { height: min(56vw, 52vh); }
  .hero__row { grid-template-columns: 1fr; row-gap: 0; }
  .hero__title, .hero__side { grid-column: 1; }
  .hero__side { padding-top: 24px; }
  .offer { grid-template-columns: 1fr; }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .close { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { margin: 0; position: fixed; inset: var(--nav-h) 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px; background: var(--bg); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav__links.is-open { visibility: visible; opacity: 1; }
  .nav__links .nav__word { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--ink); }
  .split { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .head-row .muted { text-align: left; }
}
@media (max-width: 639px) {
  .wrap { width: calc(100% - 48px); }
  .section { padding: calc(var(--nav-h) + 32px) 0 64px; }
  .hero__photo { height: 292px; }
  .hero__row { padding: 24px 0; }
  .hero__title { font-size: 32px; line-height: 37px; }
  .hero__title::before { margin-bottom: 14px; }
  .hero__lead { font-size: 18px; line-height: 28px; }
  .hero__side .btn { width: 100%; }
  .visit { padding: 24px; }
  .visit__cols { grid-template-columns: 1fr; }
  .visit__addr { font-size: 18px; line-height: 28px; }
  .offer__groups { grid-template-columns: 1fr; }
  .honeycomb { --size: calc((100% - 12px) / 2); }
  .hex { margin-bottom: 12px; }
  .fields { grid-template-columns: 1fr; }
  .step, .summary { padding: 20px; }
  .footer { padding-bottom: 96px; }
  .nav__end .btn { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .actionbar { display: block; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.btn[hidden] { display: none; }
.choices--barbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--barbers .choice > div { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 820px) { .choices--barbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .choices:not(.choices--barbers) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__cols { align-items: start; }
