/* Barbershop MUZ: mobile first. Graphite and bone, like the shop itself:
   dark furniture and capes, light walls. One quiet brass accent for lines, labels and the selected state. */
:root {
  --ink: #141414;
  --graphite: #1c1c1b;
  --bone: #f4f1ec;
  --paper: #faf8f4;
  --text: #1a1a19;
  --muted: #74706a;
  --muted-dark: #9a958d;
  --line: #dcd6cc;
  --line-dark: rgba(244, 241, 236, .14);
  --brass: #b59a6a;
  --err: #9e3b2c;
  --radius: 2px;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400;
  background: var(--bone); color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the sticky CTA */
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0; }
h2 { font-size: 40px; }
h3 { font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--brass); margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 14px; }
.label { margin: 0 0 14px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: var(--brass); }
.wrap { max-width: 1120px; margin: 0 auto; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 14px 28px; min-height: 50px;
  background: var(--ink); color: var(--bone); text-decoration: none;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:hover { background: #2a2a28; border-color: #2a2a28; }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-light { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-line { background: transparent; border-color: rgba(244, 241, 236, .4); color: var(--bone); }
.btn-line:hover { background: transparent; border-color: var(--bone); }
.text-link {
  display: inline-block; padding: 0 0 3px; border: 0; background: none; text-decoration: none;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  border-bottom: 1px solid var(--brass);
}
.text-link:hover { border-bottom-color: currentColor; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); flex: none;
  background: transparent; color: var(--text); font-size: 16px; line-height: 1;
}
.icon-btn[hidden] { visibility: hidden; display: block; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad); padding-top: max(10px, env(safe-area-inset-top));
  background: var(--ink); color: var(--bone); border-bottom: 1px solid var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .12em; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: .32em; font-weight: 400; color: var(--muted-dark); text-transform: uppercase; margin-bottom: 3px; }
.nav { display: none; gap: 32px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; }
.nav a { text-decoration: none; color: var(--muted-dark); transition: color .2s; }
.nav a:hover { color: var(--bone); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 82svh; display: flex; align-items: flex-end; background: var(--ink); color: var(--bone); }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.35) 0%, rgba(20,20,20,.45) 45%, rgba(20,20,20,.88) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 40px var(--pad) 44px; max-width: 560px; }
.hero .label { color: #cdbb97; }
.hero h1 { font-size: 46px; line-height: 1.04; font-weight: 400; max-width: 11ch; }
.lead { font-size: 16px; line-height: 1.6; color: rgba(244, 241, 236, .78); margin: 18px 0 30px; max-width: 32ch; font-weight: 300; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-cta .text-link { color: var(--bone); }

/* ---------- sections ---------- */
.section { padding: 72px var(--pad); scroll-margin-top: 52px; }
.section-dark { background: var(--ink); color: var(--bone); }
.section-head { margin-bottom: 36px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.ph-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.section-dark .ph-note, .section-dark .muted { color: var(--muted-dark); }

/* placeholder markers: quiet, but still visible */
.ph em, .tag-ph {
  font-style: italic; font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none;
  color: var(--muted-dark); margin-left: 6px; white-space: nowrap;
}

/* services: a classic price list */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services > li { border-bottom: 1px solid var(--line); }
.service {
  display: block; width: 100%; text-align: left; border: 0; background: none; padding: 20px 0 18px;
  transition: background .2s;
}
.service-row { display: flex; align-items: baseline; gap: 12px; }
.service-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; font-weight: 500; }
.leader { flex: 1; min-width: 20px; border-bottom: 1px dotted #b8b1a5; transform: translateY(-6px); }
.service-price { font-family: var(--serif); font-size: 24px; font-weight: 500; white-space: nowrap; font-variant-numeric: lining-nums; }
.service-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.service-cta {
  flex: none; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--brass);
  align-self: center;
}
.service:hover .service-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--brass); }
.services > .skeleton { height: 82px; animation: sk 1.4s ease-in-out infinite alternate; background: rgba(0,0,0,.025); }
@keyframes sk { to { opacity: .4; } }

/* barbers */
.barbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
.portrait {
  aspect-ratio: 4 / 5; display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid var(--line-dark); background: var(--graphite);
  font-family: var(--serif); font-size: 44px; color: rgba(244, 241, 236, .35); font-variant-numeric: lining-nums;
}
.barber h4 { font-size: 24px; font-weight: 500; }
.barber .tag-ph { display: block; margin: 2px 0 0; font-size: 14px; }
.barber p { margin: 6px 0 16px; font-size: 13px; color: var(--muted-dark); }
.barber .text-link { color: var(--bone); }

/* gallery: horizontal scroll on phones, an editorial grid on desktop */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; background: #e4e0d8; }

/* contacts */
.info { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.info-col { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.info-col p { margin: 0 0 8px; }
.info-col .text-link { margin-top: 10px; }
.phone { font-family: var(--serif); font-size: 28px; text-decoration: none; font-variant-numeric: lining-nums; }
.socials { display: flex; gap: 24px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--ink); color: var(--muted-dark); padding: 36px var(--pad) 40px; font-size: 13px; border-top: 1px solid var(--line-dark); }
.footer p { margin: 0; }
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--bone); margin-bottom: 14px !important; }
.footer-brand span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); margin-left: 10px; }
.demo-note { font-size: 12px; line-height: 1.6; color: #77736c; max-width: 620px; }
.demo-note a { color: inherit; }

/* sticky CTA on phones */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px var(--pad);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--bone); border-top: 1px solid var(--line);
  transition: transform .25s;
}
.sticky-cta.hide { transform: translateY(110%); }

/* ---------- booking sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .6); }
.sheet-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--paper); color: var(--text); animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); padding-top: max(14px, env(safe-area-inset-top)); }
.sheet-title-wrap { flex: 1; min-width: 0; }
.sheet-head h2 { font-size: 28px; font-weight: 500; }
.step-label { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--brass); letter-spacing: .08em; }
.progress { height: 1px; background: var(--line); }
.progress span { display: block; height: 1px; width: 25%; background: var(--ink); transition: width .3s; }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px var(--pad) 28px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 14px var(--pad); padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.summary { font-size: 13px; color: var(--muted); margin-bottom: 12px; min-height: 1.6em; }
.summary b { color: var(--text); font-weight: 500; }

.options { display: grid; border-top: 1px solid var(--line); }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 12px 16px 14px;
  border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; background: transparent;
  transition: background .15s, border-color .15s;
}
.option:hover { background: rgba(0,0,0,.02); }
.option[aria-pressed="true"] { border-left-color: var(--brass); background: #f1ece3; }
.option .grow { flex: 1; min-width: 0; }
.option b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.25; }
.option small { color: var(--muted); font-size: 13px; }
.option .price { font-family: var(--serif); font-size: 21px; font-weight: 500; white-space: nowrap; font-variant-numeric: lining-nums; }
.option .avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line);
  font-family: var(--serif); font-size: 17px; color: var(--muted); font-variant-numeric: lining-nums;
}

.dates { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 6px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 24px; padding: 0 var(--pad) 4px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 9px 0 8px; text-align: center; line-height: 1.25; }
.date small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.date b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; font-variant-numeric: lining-nums; }
.date[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.date[aria-pressed="true"] small { color: #cdbb97; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 11px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: var(--brass); }
.slot:disabled { color: #c3bcb0; text-decoration: line-through; border-color: transparent; cursor: not-allowed; }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.slots-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.slots-note-after { margin-top: 16px; }

.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .2em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; outline: none;
}
.field textarea { min-height: 76px; resize: vertical; font-size: 15px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.invalid input { border-color: var(--err); }
.field .err { color: var(--err); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }

.recap { border-top: 1px solid var(--line); margin-bottom: 26px; font-size: 15px; }
.recap div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.recap div span:first-child { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; padding-top: 3px; }
.recap div span:last-child { text-align: right; }

.alert { border-left: 2px solid var(--err); color: var(--err); padding: 4px 0 4px 12px; font-size: 14px; margin-bottom: 18px; list-style: none; }
.loading { display: grid; place-items: center; padding: 40px 0; color: var(--muted); font-size: 13px; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { padding-top: 8px; }
.done h3 { font-family: var(--serif); color: var(--text); font-size: 34px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.15; margin: 0 0 24px; }
.done .demo-note { margin: 0 0 22px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --pad: 40px; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .nav { display: flex; }
  .topbar { padding-left: max(var(--pad), calc((100vw - 1120px) / 2)); padding-right: max(var(--pad), calc((100vw - 1120px) / 2)); gap: 40px; }
  h2 { font-size: 52px; }

  .hero { min-height: 0; height: min(86vh, 760px); align-items: center; }
  .hero-photo { left: auto; width: 50%; }
  .hero-photo::after { background: rgba(20, 20, 20, .18); }
  .hero-bg { object-position: 50% 28%; }
  .hero-inner { width: 50%; max-width: none; padding: 48px 64px 48px max(var(--pad), calc((100vw - 1120px) / 2)); }
  .hero h1 { font-size: 72px; }
  .lead { font-size: 17px; }

  .section { padding: 112px var(--pad); }
  .split { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .split .section-head { margin-bottom: 0; position: sticky; top: 100px; }
  .section-head { margin-bottom: 48px; }
  .service { padding: 24px 0 22px; }
  .service-name, .service-price { font-size: 28px; }
  .barbers { gap: 32px; }

  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0; gap: 16px;
  }
  .gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; contain: size; }

  .info { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .info-col { border-bottom: 0; padding: 32px 0 0; }

  .footer { padding: 40px var(--pad) 48px; }

  .sheet-panel { inset: 5vh auto 5vh 50%; width: 500px; transform: translateX(-50%); border-radius: var(--radius); overflow: hidden; animation: none; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 84px; }
}
