/* Holm Frisør. Warm paper, ink and one deep green; a single grotesk in sentence case.
   Every colour and size is a token, so another salon is a new :root block. */
:root {
  --paper: #f2eee6;
  --paper-2: #e9e3d7;
  --card: #fbf9f4;
  --ink: #1d1b18;
  --ink-2: #57524a;
  --ink-3: #8a8378;
  --line: #d9d2c4;
  --accent: #2e4b3c;
  --accent-hi: #3d6250;
  --accent-soft: #dfe7df;
  --danger: #a33a2a;
  --font: 'Familjen Grotesk', system-ui, sans-serif;
  --radius: 0;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-feature-settings: 'tnum' 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.button:hover, .btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--paper); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.brand span { font-weight: 400; color: var(--accent); margin-left: 2px; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top .button { min-height: 40px; }
@media (max-width: 720px) { .top nav { display: none; } .top .button { margin-left: auto; } }

/* ---------- hero: text and live times next to a tall photo ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
}
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.open-now { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.open-now strong { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); max-width: 13ch; letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36ch; }
.next { margin-top: 36px; border-top: 1px solid var(--ink); }
.next h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; padding: 12px 0 4px; color: var(--ink-2); }
.next ul { list-style: none; margin: 0; padding: 0; }
.next li a {
  display: grid; grid-template-columns: 44px 1fr auto 20px; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.next li a:hover .who { text-decoration: underline; }
.next li a:hover .go { transform: translateX(3px); color: var(--accent); }
.next img, .next .initial { width: 44px; height: 44px; object-fit: cover; }
.next .who { font-weight: 600; font-size: 19px; }
.next .when { color: var(--accent); font-weight: 600; }
.next .go { transition: transform 0.15s; font-size: 20px; }
.next-loading { padding: 14px 0; color: var(--ink-3); }
.all-times { display: inline-block; margin-top: 14px; font-weight: 600; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: 100%; min-height: 520px; max-height: 760px; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-photo figcaption { display: none; }
}

/* ---------- sections ---------- */
.prices, .stylists, .visit { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.035em; }
.section-head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 10px; } }

/* Price list: each row is a link straight into booking. */
.prices { background: var(--card); max-width: none; }
.prices > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.price-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.price-group h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--accent); padding: 24px 0 6px; }
.price-group ul { list-style: none; margin: 0; padding: 0; }
.price-group a {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name price' 'dur price';
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.price-group a:hover .name { text-decoration: underline; }
.price-group .name { grid-area: name; font-weight: 600; }
.price-group .dur { grid-area: dur; color: var(--ink-3); font-size: 15px; }
.price-group .price { grid-area: price; align-self: center; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .price-groups { grid-template-columns: 1fr; } }

/* Stylists: portrait, short honest bio, next free time. */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-top: 32px; }
.person img, .person .initial { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(0.9); }
/* A stylist without a photo yet: their initial on the salon's green. */
.initial { display: grid; place-items: center; background: var(--accent); color: var(--paper); font-weight: 600; }
.person .initial { font-size: 72px; }
.next .initial { font-size: 19px; }
.person h3 { font-size: 24px; margin-top: 16px; }
.person p { color: var(--ink-2); margin-top: 6px; max-width: 34ch; }
.person-book { display: inline-block; margin-top: 12px; font-weight: 600; }
.person p.person-next { margin-top: 4px; color: var(--accent); font-size: 15px; font-weight: 500; }
@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .person { display: grid; grid-template-columns: 120px 1fr; gap: 0 18px; }
  .person img, .person .initial { grid-row: span 5; aspect-ratio: 1; }
  .person .initial { font-size: 44px; }
  .person h3 { margin-top: 0; }
}

.work { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 8px; padding: 0 8px; }
.work img { width: 100%; height: clamp(180px, 26vw, 380px); object-fit: cover; }
@media (max-width: 720px) { .work { grid-template-columns: 1fr 1fr; } .work img { height: 200px; } }

.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.visit h2 { font-size: 22px; margin-bottom: 14px; }
.visit p + p { margin-top: 10px; }
.visit .address { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--accent); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 7px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

/* ---------- booking ---------- */
.booking-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) 120px; }
.booking-page.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: step; font-size: 15px; }
.steps li { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); color: var(--ink-3); counter-increment: step; }
.steps li::before { content: counter(step) '. '; }
.steps li.done { border-color: var(--accent); color: var(--ink-2); }
.steps li.current { border-color: var(--ink); color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .steps { font-size: 13px; gap: 4px; } .steps li::before { content: none; } }
#view:focus { outline: none; }
.back { background: none; border: 0; padding: 0; margin-bottom: 14px; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.back:hover { color: var(--ink); }
.step-title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; }
.step-sub { margin-top: 8px; color: var(--ink-2); }
.cat { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--accent); margin: 28px 0 4px; }
.options { display: grid; }
.option {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name price' 'meta meta';
  gap: 2px 16px; padding: 16px 14px; margin: 0 -14px; text-align: left; background: none;
  border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.option:hover { background: var(--card); }
.option[aria-pressed='true'] { background: var(--accent-soft); }
.option .name { grid-area: name; font-weight: 600; font-size: 18px; }
.option .price { grid-area: price; font-weight: 600; white-space: nowrap; }
.option .meta { grid-area: meta; color: var(--ink-2); font-size: 15px; }
.option.with-photo { grid-template-columns: 52px 1fr auto; grid-template-areas: 'photo name price' 'photo meta meta'; align-items: center; }
.option.with-photo img { grid-area: photo; width: 52px; height: 52px; object-fit: cover; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day {
  flex: 0 0 66px; display: grid; justify-items: center; gap: 1px; padding: 10px 0 9px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.day .wd, .day .mo { font-size: 13px; color: var(--ink-2); }
.day .dn { font-size: 24px; font-weight: 600; line-height: 1.15; }
.day:hover:not(:disabled) { border-color: var(--ink); }
.day[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed='true'] .wd, .day[aria-pressed='true'] .mo { color: var(--paper-2); }
.day:disabled { background: transparent; color: var(--ink-3); cursor: default; }
.day:disabled .dn { text-decoration: line-through; text-decoration-thickness: 1px; }
.times-group h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin: 24px 0 10px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time { min-height: 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.time:hover { border-color: var(--ink); }
.time[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.empty { color: var(--ink-3); padding: 18px 0; }

form { margin-top: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input:not([type='checkbox']), .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: 14px; margin-top: 4px; }
.err:empty { display: none; }
.check { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.alert { padding: 14px 16px; border-radius: var(--radius); background: #f6e3dd; color: #6e2416; margin: 16px 0; }
.alert.ok { background: var(--accent-soft); color: var(--accent); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 600; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.demo-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); word-break: break-all; }

/* The order summary next to the steps (Fresha-style), and a bar at the bottom on phones. */
.order { position: sticky; top: 92px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.order h2 { font-size: 20px; }
.order .place { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.order ul { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); }
.order li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order li span:first-child { color: var(--ink-2); }
.order li span:last-child { font-weight: 600; text-align: right; }
.order li.unset span:last-child { color: var(--ink-3); font-weight: 400; }
.order .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.order .btn { width: 100%; }
.order .terms { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.bar { display: none; }
@media (max-width: 900px) {
  .booking-page { grid-template-columns: minmax(0, 1fr); }
  .order { display: none; }
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--card); border-top: 1px solid var(--line); }
  .bar[hidden] { display: none; }
  .bar .wrap { display: flex; align-items: center; gap: 12px; width: 100%; }
  .bar .sel { flex: 1; font-size: 15px; line-height: 1.3; }
  .bar .btn { min-width: 120px; }
}

/* ---------- privacy page ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 96px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }

/* ---------- demo bar (remove for a real salon) ---------- */
.demo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-size: 14px; }
.demo-bar strong { font-weight: 700; }
.demo-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.demo-bar a { color: var(--paper); font-weight: 600; }
.demo-login { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: rgba(255, 255, 255, 0.12); padding: 2px 7px; }
body.has-demo-bar { padding-bottom: 72px; }
body.has-demo-bar .bar { bottom: 64px; }
@media (max-width: 640px) {
  .demo-bar { font-size: 13px; padding: 8px 12px; flex-wrap: nowrap; }
  .demo-bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-login, .demo-links a + .demo-login + a { display: none; }
  body.has-demo-bar { padding-bottom: 64px; }
  body.has-demo-bar .bar { bottom: 56px; }
}
