/* Barber Studio demo: classic, symmetrical, walnut and brass (approved design, step 4.10a). */

/* Self-hosted fonts (licences in fonts/OFL-*.txt). Fraunces: Latin + Czech subset with the full optical size axis,
   because the large headlines need the display cut. Jost: complete Latin and Latin Extended, for typed text. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-subset.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-subset.woff2") format("woff2"); font-style: italic; font-weight: 400 600; font-display: swap; }
@font-face {
  font-family: "Jost"; src: url("fonts/jost-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; src: url("fonts/jost-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap;
  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 {
  --ink: #120e0b; --walnut: #23180f; --walnut-2: #2e2016; --brass: #c9a46a; --brass-soft: #c9a46a55;
  --cream: #efe4d0; --muted: #b9a78c; --error: #f0a08a;
  --serif: "Fraunces", Georgia, serif; --sans: "Jost", system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--cream); font: 400 1.0625rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
main:focus { outline: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.label { font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ornament::before, .ornament::after { content: ""; width: 48px; height: 1px; background: var(--brass-soft); }
h1, h2, h3 { text-wrap: balance; }
h2 em, h1 em { color: var(--brass); font-weight: 400; }

.concept { padding: 7px 20px; background: #000; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-align: center; }
.concept b { color: var(--brass); font-weight: 500; }
.concept a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* Header: symmetrical, emblem in the middle */
.header { position: absolute; z-index: 5; left: 0; right: 0; padding-top: 22px; }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav { display: flex; gap: 34px; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; }
.nav.right { justify-content: flex-end; align-items: center; }
.nav a:not(.btn):hover { color: var(--brass); }
.emblem { display: grid; justify-items: center; gap: 6px; }
.emblem i { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--brass); border-radius: 50%; font: italic 600 1.25rem var(--serif); color: var(--brass); outline: 1px solid var(--brass-soft); outline-offset: 4px; }
.emblem span { font: 600 1rem var(--serif); letter-spacing: 0.24em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border: 1px solid var(--brass); font: 500 0.8125rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn-solid { background: var(--brass); color: var(--ink); }
.btn-solid:hover { background: #d8b87f; }
.btn-line { background: transparent; color: var(--brass); }
.btn-line:hover { background: #c9a46a1f; }
.header .btn { padding: 11px 20px; }
.menu-btn, .mobile-menu { display: none; }

/* Hero: full photo, centred text */
.hero { position: relative; min-height: min(100vh, 880px); display: grid; place-items: center; padding: 160px 20px 120px; text-align: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 55% at 50% 52%, #120e0bd9, #120e0b99 60%, #120e0bee), linear-gradient(#120e0b 0, #120e0b00 18%, #120e0b00 80%, #120e0b); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 760px; }
.hero h1 { overflow-wrap: anywhere; margin-top: 26px; font: 400 clamp(2.9rem, 1.6rem + 5.4vw, 6.25rem)/0.98 var(--serif); letter-spacing: -0.015em; }
.hero p { max-width: 30em; margin: 24px auto 0; color: #e6d8bfcc; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hours span { white-space: nowrap; }
.hours { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; gap: 40px; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Price list like a printed menu */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section[id] { scroll-margin-top: 0; }
.section-title { text-align: center; }
.section-title h2 { margin-top: 18px; font: 400 clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem)/1.05 var(--serif); }
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 64px; }
.menu h3 { padding-bottom: 14px; border-bottom: 1px solid var(--brass-soft); font: italic 400 1.75rem var(--serif); color: var(--brass); }
.menu dl { display: grid; gap: 22px; margin-top: 22px; }
.menu dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font: 600 1.125rem var(--serif); }
.menu dt::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #efe4d055; translate: 0 -4px; }
.menu dt b { order: 2; font: 500 1rem var(--sans); color: var(--brass); white-space: nowrap; }
.menu dd { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.menu-note { margin-top: 48px; text-align: center; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.1em; }

/* Team in arched frames, like the gilded mirrors of the shop */
.team { background: var(--walnut); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; text-align: center; }
.arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid var(--brass); outline: 1px solid var(--brass-soft); outline-offset: 7px; background: radial-gradient(circle at 50% 38%, #4a3626, #1b130d 70%); display: grid; place-items: end center; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .arch-crop { transform: scale(2.2); transform-origin: 72% 32%; }
.arch span { margin-bottom: 18px; padding: 3px 10px; background: #000a; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted); }
.team h3 { margin-top: 28px; font: 400 1.75rem var(--serif); }
.team p { color: var(--muted); font-size: 0.9375rem; }

/* Gallery: placeholder frames until the photos arrive */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.gallery li { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--brass-soft); background: radial-gradient(circle at 50% 40%, #2e2016, #17100b 75%); }
.gallery li:nth-child(3n + 2) { aspect-ratio: auto; grid-row: span 2; }
.gallery span { padding: 3px 10px; background: #000a; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted); }

/* Booking: four numbered steps */
.booking { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.booking h2 { margin-top: 18px; font: 400 clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem)/1.05 var(--serif); }
.booking > div > p { margin-top: 18px; color: var(--muted); }
.panel { min-width: 0; padding: 36px; border: 1px solid var(--brass-soft); background: linear-gradient(160deg, var(--walnut-2), var(--walnut)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; counter-reset: step; }
.steps li { padding-top: 12px; border-top: 2px solid #efe4d022; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); counter-increment: step; overflow-wrap: anywhere; }
.steps li::before { content: counter(step, upper-roman) ". "; font-family: var(--serif); color: var(--brass); }
.steps li.on { border-color: var(--brass); color: var(--cream); }
.step { min-width: 0; margin-top: 28px; padding: 0; border: 0; }
.step > legend { padding: 0; }
.step-title { font: 400 1.5rem/1.2 var(--serif); }
.step-title:focus { outline: none; }
.choices { display: grid; gap: 10px; margin-top: 18px; }
.choice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 16px 20px; border: 1px solid #efe4d026; font-family: var(--serif); font-size: 1.125rem; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.choice small { font: 400 0.875rem var(--sans); color: var(--muted); }
.choice:hover { border-color: #c9a46a99; }
.choice:has(input:checked) { border-color: var(--brass); background: #c9a46a14; }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.choice:has(input:disabled) { cursor: not-allowed; opacity: 0.45; text-decoration: line-through; }
.choice:has(input:disabled):hover { border-color: #efe4d026; }

.subgroup { min-width: 0; margin-top: 22px; padding: 0; border: 0; }
.subgroup legend { padding: 0; }
.days, .times { display: grid; gap: 8px; margin-top: 12px; }
.days { grid-template-columns: repeat(3, 1fr); }
.times { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.days .choice, .times .choice { justify-content: center; padding: 10px 8px; text-align: center; font-size: 1rem; }
.days .choice { flex-direction: column; gap: 0; }
.hint { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.step-error, .field-error { color: var(--error); font-size: 0.9375rem; }
.step-error { margin-top: 14px; }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 18px; padding: 16px 20px; border: 1px solid #efe4d026; }
.summary dt { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.summary dd { font: 400 1.0625rem var(--serif); overflow-wrap: anywhere; }
.fields { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input { width: 100%; padding: 13px 16px; border: 1px solid #efe4d073; border-radius: 0; background: #120e0b99; font-size: 1rem; }
.field input:focus-visible { outline-offset: 1px; border-color: var(--brass); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-hint { color: var(--muted); font-size: 0.8125rem; }
.booking-done { margin-top: 28px; }
.booking-done > p { margin-top: 18px; color: var(--muted); }

.panel-actions { display: flex; gap: 10px; margin-top: 26px; }
.panel-actions .btn { flex: 1; }
.panel-actions .btn:disabled { cursor: not-allowed; opacity: 0.5; }
.panel-note { margin-top: 14px; color: var(--muted); font-size: 0.8125rem; text-align: center; }

.footer { padding-block: 64px 40px; border-top: 1px solid var(--brass-soft); text-align: center; color: var(--muted); font-size: 0.9375rem; }
.footer .emblem { margin-bottom: 28px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; }
.footer small { display: block; margin-top: 36px; font-size: 0.75rem; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .header .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .nav { display: none; }
  .header .emblem { grid-auto-flow: column; align-items: center; gap: 12px; }
  .header .emblem i { width: 42px; height: 42px; font-size: 1rem; outline-offset: 3px; }
  .header .emblem span { font-size: 0.8125rem; overflow-wrap: anywhere; }
  .header .emblem { justify-self: start; min-width: 0; }
  .menu-btn { display: block; grid-column: 2; padding: 10px 0 10px 16px; background: none; -webkit-tap-highlight-color: transparent; border: 0; color: var(--cream); font: 500 0.75rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; }
  /* Mobile menu: a panel under the header; without JavaScript the links simply stay visible */
  .mobile-menu { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 0 20px; border-bottom: 1px solid var(--brass-soft); background: var(--ink); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; }
  .header:has(.mobile-menu.is-open) { background: var(--ink); }
  .mobile-menu { box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
  .mobile-menu a:not(.btn) { display: block; padding: 12px 0; }
  .mobile-menu .btn { width: 100%; margin-top: 8px; }
  .js .mobile-menu:not(.is-open) { display: none; }
  html:not(.js) .menu-btn { display: none; }
  /* Without JavaScript the open link list would cover the hero: the header joins the page flow above it */
  html:not(.js) .header { position: relative; background: var(--ink); }
  html:not(.js) .hero { padding-top: 64px; }
  .menu, .team-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .team-grid { max-width: 340px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery li:nth-child(3n + 2) { aspect-ratio: 4 / 3; grid-row: auto; }
  .booking { grid-template-columns: 1fr; gap: 40px; }
  .hours { gap: 6px 20px; flex-wrap: wrap; font-size: 0.6875rem; padding-inline: 20px; }
}
@media (max-width: 520px) {
  .panel { padding: 24px 18px; }
  .steps li { font-size: 0.625rem; letter-spacing: 0.08em; }
  .hero-actions .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd + dt { margin-top: 8px; }
}
