/* Nielson's Barbering & Beyond — site styles
   Tokens derived from the shop logo: barber-pole dusty blue + rose, navy ink. */
:root {
  --ground: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e9edf2;
  --ink: #1e2d42;
  --ink-2: #4a586b;
  --ink-3: #7c889a;
  --line: #d3dae3;
  --pole-blue: #8ea8c0;
  --pole-rose: #d3a2a4;
  --accent: #b9686c;          /* rose deepened for text/CTA contrast */
  --accent-ink: #ffffff;
  --accent-soft: #f3e1e2;
  --blue-soft: #e2eaf1;
  --ok: #3f8a5c;
  --warn: #b07a2a;
  --shadow: 0 8px 28px rgba(30, 45, 66, 0.10);
  --radius: 10px;
  --display: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #131c29; --surface: #1b2635; --surface-2: #233043;
    --ink: #eaf0f6; --ink-2: #b4c0cf; --ink-3: #8592a4; --line: #33425a;
    --pole-blue: #7f9bb6; --pole-rose: #c48f92; --accent: #d9a0a3; --accent-ink: #1e2d42;
    --accent-soft: #3a2b31; --blue-soft: #243447; --ok: #6fc490; --warn: #d9a85a;
    --shadow: 0 8px 28px rgba(0,0,0,0.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #131c29; --surface: #1b2635; --surface-2: #233043;
  --ink: #eaf0f6; --ink-2: #b4c0cf; --ink-3: #8592a4; --line: #33425a;
  --pole-blue: #7f9bb6; --pole-rose: #c48f92; --accent: #d9a0a3; --accent-ink: #1e2d42;
  --accent-soft: #3a2b31; --blue-soft: #243447; --ok: #6fc490; --warn: #d9a85a;
  --shadow: 0 8px 28px rgba(0,0,0,0.35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pole-blue); outline-offset: 2px; }

/* The pole stripe: the one device only a barbershop gets */
.pole {
  height: 10px;
  background: repeating-linear-gradient(-55deg,
    var(--pole-blue) 0 14px, var(--surface) 14px 22px,
    var(--pole-rose) 22px 36px, var(--surface) 36px 44px);
}
.pole--thin { height: 4px; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand__and { font-family: var(--script); color: var(--ink-2); font-size: 1.05rem; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(0.95); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 84px) clamp(28px, 5vw, 60px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--ink-3); font-weight: 600; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.98; margin: 10px 0 6px; letter-spacing: 0.01em; text-wrap: balance; }
.hero h1 small { display: block; font-family: var(--script); font-size: 0.42em; color: var(--ink-2); letter-spacing: 0; margin-top: 8px; }
.hero p.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 34em; margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.status.is-closed::before { background: var(--ink-3); box-shadow: none; }
.hero__art { position: relative; }
.hero__art img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero__badge { position: absolute; left: -12px; bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.hero__badge strong { font-family: var(--display); font-size: 1.6rem; line-height: 1; font-weight: 400; }
.hero__badge span { font-size: 0.8rem; color: var(--ink-2); }
.stars { color: var(--warn); letter-spacing: 1px; font-size: 0.9rem; }

/* Sections */
section { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; margin: 6px 0 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 40em; }

/* Booking */
.book { background: var(--surface); border-block: 1px solid var(--line); }
.booker { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
@media (max-width: 860px) { .booker { grid-template-columns: 1fr; } }
.steps { display: grid; gap: 6px; align-content: start; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 12px; border-radius: var(--radius); color: var(--ink-3); }
.step__n { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.step__t { font-weight: 600; color: var(--ink-2); }
.step__v { font-size: 0.9rem; color: var(--ink-3); }
.step.is-active { background: var(--surface-2); color: var(--ink); }
.step.is-active .step__n { border-color: var(--accent); color: var(--accent); }
.step.is-active .step__t { color: var(--ink); }
.step.is-done .step__n { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-done .step__v { color: var(--ink); }
.step button { background: none; border: 0; padding: 0; color: var(--accent); font-size: 0.85rem; text-decoration: underline; }
.panel { min-height: 380px; }
.panel h3 { margin: 0 0 14px; font-size: 1.15rem; }
.svc-cat { margin-bottom: 18px; }
.svc-cat h4 { margin: 0 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc { text-align: left; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--ink); transition: border-color .12s ease, background .12s ease; }
.svc:hover { border-color: var(--pole-blue); }
.svc.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.svc__name { font-weight: 600; }
.svc__price { font-variant-numeric: tabular-nums; font-weight: 600; }
.svc__meta { grid-column: 1 / -1; font-size: 0.85rem; color: var(--ink-2); }
.addon { margin-top: 16px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.addon input { width: 18px; height: 18px; accent-color: var(--accent); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
@media (max-width: 520px) { .days { grid-template-columns: repeat(4, 1fr); } }
.day { border: 1px solid var(--line); background: var(--ground); border-radius: var(--radius); padding: 8px 4px; display: grid; justify-items: center; gap: 2px; color: var(--ink); }
.day small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.day strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.day em { font-style: normal; font-size: 0.7rem; color: var(--ink-3); }
.day[disabled] { opacity: .4; cursor: not-allowed; }
.day.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.day.is-selected em { color: var(--accent); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { border: 1px solid var(--line); background: var(--ground); border-radius: 8px; padding: 10px 6px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.time:hover { border-color: var(--pole-blue); }
.time.is-selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.times-empty { color: var(--ink-2); padding: 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.tz { font-size: 0.8rem; color: var(--ink-3); margin-top: 12px; }

.form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { font: inherit; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--pole-blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.field .hint { font-size: 0.8rem; color: var(--ink-3); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.summary { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; max-width: 520px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.summary div span:first-child { color: var(--ink-2); }
.summary .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.policy-note { font-size: 0.85rem; color: var(--ink-2); max-width: 520px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.notice { border-left: 4px solid var(--pole-blue); background: var(--blue-soft); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 0.9rem; max-width: 520px; }
.notice--ok { border-left-color: var(--ok); }
.confirmed { display: grid; gap: 14px; max-width: 560px; }
.confirmed h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0; }
.err { color: var(--accent); font-size: 0.9rem; }

/* Services menu (price list) */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }
.menu h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.menu h3 span { font-family: var(--body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 600; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.menu .n { font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.menu .n::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.menu .p { font-variant-numeric: tabular-nums; font-weight: 600; }
.menu .d { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-2); max-width: 46em; }
.menu .m { font-size: 0.75rem; color: var(--ink-3); }
.pill { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; vertical-align: middle; font-weight: 600; letter-spacing: 0.02em; }

/* Reviews */
.reviews { background: var(--surface); border-block: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quote { background: var(--ground); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.quote p { margin: 0; font-size: 1rem; }
.quote p::before { content: "“"; font-family: var(--display); color: var(--pole-rose); font-size: 1.6rem; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.quote footer { font-size: 0.85rem; color: var(--ink-2); display: flex; justify-content: space-between; }

/* Visit */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.hours { display: grid; gap: 6px; font-variant-numeric: tabular-nums; margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours li.is-today { font-weight: 700; color: var(--accent); }
.hours li span:last-child { color: var(--ink-2); }
.hours li.is-today span:last-child { color: inherit; }
.visit h3 { margin: 24px 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.visit h3:first-child { margin-top: 0; }
.visit address { font-style: normal; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.gallery img.wide { grid-column: span 2; aspect-ratio: 2.06; }
.map-note { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }
.amen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.amen li { font-size: 0.85rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* Footer */
footer.site { padding-block: 32px 40px; color: var(--ink-2); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site a { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone-width header: drop the script suffix, keep the CTA on one line */
@media (max-width: 560px) {
  .brand__and { display: none; }
  .topbar .wrap { min-height: 56px; }
  .btn { white-space: nowrap; }
}
