/* United Barbers London - site styles */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #b3302e;        /* fascia lettering */
  --red-deep: #8f2321;
  --blue: #2747b8;       /* the shop's chairs */
  --paper: #f6f7f8;      /* cool white board */
  --white: #ffffff;
  --ink: #191c23;
  --muted: #5b6170;
  --tile: #dde0e5;
  --line: #c9cdd4;

  --wide: 125%;
  --semi: 112%;
  --narrow: 88%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 9.2vw, 7.4rem);

  --gap: clamp(1.25rem, 3vw, 2rem);
  --measure: 68ch;
  --page: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 640; }
h2 { font-size: var(--step-3); font-stretch: var(--semi); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-stretch: var(--semi); }
p { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: min(100% - 2 * var(--gap), var(--page)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 620; font-stretch: var(--semi); font-size: 1rem;
  border: 2px solid var(--red); border-radius: var(--radius);
  background: var(--red); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 248, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tile); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.wordmark { color: var(--red); text-decoration: none; font-stretch: var(--wide); font-weight: 560; letter-spacing: 0.06em; font-size: 1.05rem; line-height: 1; }
.wordmark small { display: block; font-size: 0.6rem; letter-spacing: 0.32em; margin-top: 3px; text-align: center; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-call { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) { .site-nav, .header-call { display: none; } }

/* Hero: the fascia */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 0; }
.fascia {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 10px var(--white), inset 0 0 0 11px var(--tile);
  padding: clamp(1.6rem, 4.5vw, 3.6rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.fascia h1 { margin: 0; color: var(--red); font-weight: 480; font-stretch: var(--wide); font-size: var(--step-4); letter-spacing: 0.035em; line-height: 0.95; }
.fascia h1 .city { display: block; font-size: 0.3em; letter-spacing: 0.42em; margin-top: 0.35em; padding-left: 0.42em; }
.fascia .lineage { margin: 1.1rem auto 0; max-width: none; font-stretch: var(--wide); font-weight: 450; font-size: clamp(0.82rem, 2.1vw, 1.35rem); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); align-items: end; padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.hero-intro p { font-size: var(--step-1); line-height: 1.45; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.rating-line { margin-top: 0.9rem !important; font-size: var(--step-0) !important; color: var(--muted); }
.rating-line strong { color: var(--ink); }
.stars { color: var(--red); letter-spacing: 0.08em; }
@media (max-width: 760px) { .hero-intro { grid-template-columns: 1fr; } .hero-cta { justify-content: flex-start; } }

/* Window: photo strip */
.window { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 23vw, 290px); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gap) 0.5rem; scrollbar-width: thin; }
.window figure { margin: 0; scroll-snap-align: start; position: relative; }
.window img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tile); }
.window-note { color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--white { background: var(--white); border-block: 1px solid var(--tile); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Price board */
.price-board { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 760px) { .price-board { columns: 1; } }
.price-board li { break-inside: avoid; padding: 1.1rem 0; border-bottom: 1px solid var(--tile); }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; }
.price-row h3 { margin: 0; font-size: var(--step-1); }
.price-row .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-0.3em); min-width: 1rem; }
.price-row .price { font-weight: 650; font-stretch: var(--semi); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.price-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.35rem; }
.price-meta p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price-meta button { flex: none; background: none; border: 0; padding: 0.25rem 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.price-meta button:hover { color: var(--red); }
.price-note { margin-top: 1.5rem; color: var(--muted); font-size: var(--step--1); }

/* Barbers */
.barbers { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.barbers img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.barber-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
.barber-list h3 { margin-bottom: 0.15rem; }
.barber-list .title { color: var(--red); font-weight: 560; margin-bottom: 0.35rem; }
.barber-list p { margin: 0; }
.barber-list li { padding-left: 1rem; border-left: 3px solid var(--blue); }
@media (max-width: 760px) { .barbers { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; padding: 1.4rem 0 0; border-top: 3px solid var(--ink); }
.review blockquote { margin: 0 0 0.9rem; font-size: 1.08rem; line-height: 1.5; }
.review figcaption { color: var(--muted); font-size: 0.95rem; }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.review--lead { grid-column: span 2; }
.review--lead blockquote { font-size: var(--step-2); font-stretch: var(--semi); line-height: 1.25; font-weight: 500; }
@media (max-width: 620px) { .review--lead { grid-column: auto; } .review--lead blockquote { font-size: var(--step-1); } }
.reviews-source { margin-top: 2rem; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--tile); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 680; color: var(--red); }
address { font-style: normal; font-size: var(--step-1); line-height: 1.4; margin-bottom: 1rem; }
.map-slot { margin-top: 1.5rem; aspect-ratio: 4 / 3; background: var(--tile) url("../img/shopfront-sm.webp") center / cover; position: relative; display: grid; place-items: end start; }
.map-slot .map-consent { background: var(--white); margin: 1rem; padding: 1rem 1.1rem; max-width: 30rem; border-radius: var(--radius); }
.map-slot .map-consent p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #d6d9df; padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer .wordmark { color: #fff; display: inline-block; margin-bottom: 1rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #343944; color: #9aa0ab; font-size: 0.85rem; }

/* Mobile sticky book bar */
.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book { display: flex; gap: 0.5rem; position: fixed; inset: auto 0 0 0; z-index: 25; padding: 0.6rem var(--gap) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--tile); }
  .mobile-book .btn { flex: 1; }
  body { padding-bottom: 76px; }
}

/* ---------------- Booking dialog ---------------- */
.booking { border: 0; padding: 0; width: min(100%, 760px); max-height: min(100dvh, 920px); height: 100%; border-radius: 0; background: var(--white); color: var(--ink); }
@media (min-width: 761px) { .booking { height: auto; max-height: calc(100dvh - 4rem); border-radius: 10px; } }
.booking::backdrop { background: rgba(25, 28, 35, 0.6); }
.booking[open] { display: flex; flex-direction: column; animation: rise 0.22s ease-out; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--tile); }
.bk-top h2 { font-size: var(--step-1); margin: 0; }
.bk-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; }
.bk-close:hover { background: var(--paper); }
.bk-steps { display: flex; list-style: none; margin: 0; padding: 0.8rem 1.25rem; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--tile); overflow-x: auto; counter-reset: step; }
.bk-steps li { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; padding-right: 0.75rem; counter-increment: step; }
.bk-steps li::before { content: counter(step); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--line); font-size: 0.78rem; font-weight: 600; }
.bk-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.bk-steps li[aria-current="step"]::before { background: var(--red); border-color: var(--red); color: #fff; }
.bk-steps li.done::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.bk-body h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--tile); background: var(--paper); }
.bk-summary { font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.bk-summary strong { color: var(--ink); display: block; }

.choice-list { display: grid; gap: 0.5rem; }
.choice {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: baseline;
  width: 100%; text-align: left; font: inherit; color: inherit;
  padding: 0.9rem 1rem; background: var(--white); border: 1.5px solid var(--tile); border-radius: var(--radius); cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fdf6f6; }
.choice .c-name { font-weight: 620; }
.choice .c-price { font-weight: 650; font-variant-numeric: tabular-nums; }
.choice .c-meta { color: var(--muted); font-size: 0.9rem; grid-column: 1 / -1; }

.days { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scrollbar-width: thin; }
.day { flex: none; width: 64px; padding: 0.55rem 0; border: 1.5px solid var(--tile); background: var(--white); border-radius: var(--radius); font: inherit; cursor: pointer; text-align: center; line-height: 1.2; color: inherit; }
.day .dw { font-size: 0.78rem; color: var(--muted); display: block; }
.day .dn { font-size: 1.25rem; font-weight: 650; display: block; }
.day .dm { font-size: 0.75rem; display: block; }
.day:hover { border-color: var(--ink); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] .dw { color: #cfd3da; }
.day:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.slot-group h4 { margin: 1rem 0 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.4rem; }
.slot { padding: 0.6rem 0; border: 1.5px solid var(--tile); border-radius: var(--radius); background: var(--white); font: inherit; font-variant-numeric: tabular-nums; font-weight: 560; cursor: pointer; color: inherit; }
.slot:hover { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.empty { padding: 1.5rem; background: var(--paper); border-radius: var(--radius); color: var(--muted); }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea { font: inherit; padding: 0.7rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39, 71, 184, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { color: var(--red); font-size: 0.88rem; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; margin-bottom: 0.9rem; font-size: 0.95rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--red); }
.form-alert { background: #fdf0ef; color: var(--red-deep); border-left: 4px solid var(--red); padding: 0.8rem 1rem; margin-bottom: 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.demo-flag { background: #eef1fb; color: #1d3486; border-left: 4px solid var(--blue); padding: 0.6rem 0.9rem; font-size: 0.88rem; margin-bottom: 1rem; border-radius: 0 var(--radius) var(--radius) 0; }

.confirmed { text-align: center; padding: 1rem 0; }
.confirmed .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.confirmed dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.25rem; text-align: left; max-width: 26rem; margin: 1.5rem auto; padding: 1.25rem; background: var(--paper); border-radius: var(--radius); }
.confirmed dt { color: var(--muted); }
.confirmed dd { margin: 0; font-weight: 600; }
.confirmed .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.confirmed p { margin-inline: auto; }

/* ---------------- Legal pages ---------------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: var(--step-3); font-stretch: var(--semi); }
.legal h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.legal h3 { margin-top: 1.5rem; }
.legal .updated { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--tile); }
.legal th { font-weight: 650; }
.legal ul, .legal ol { max-width: var(--measure); padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .toc { background: var(--white); border: 1px solid var(--tile); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0 2rem; }
.legal .toc ol { margin: 0.5rem 0 0; }
.todo { background: #fff4c2; padding: 0 0.2em; }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 0.2rem 0; } .legal tr { border-bottom: 1px solid var(--tile); padding: 0.6rem 0; } }
