/* King Cuts public site. Re-brand by editing the variables in :root. */
:root {
  --ink: #17171a;
  --ink-soft: #4a4a52;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #dcd6c8;
  --dark: #141416;
  --dark-2: #1f1f23;
  --brass: #c9a24d;
  --brass-deep: #8a6a1f;
  --brass-light: #e8cd86;
  --ok: #1d6b3a;
  --err: #a31f1f;
  --focus: #1f5fd6;
  --radius: 8px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--brass-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--brass-light); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass-light); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

/* header */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--brass); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-family: var(--display); font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); text-decoration: none; font-weight: 700; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: #e9e6df; text-decoration: none; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--brass-light); text-decoration: underline; }
.nav a.btn, .nav a.btn:hover { color: var(--dark); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--brass); background: var(--brass); color: var(--dark); font: 700 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--dark); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.on-dark-btn.secondary { color: #fff; border-color: #fff; }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.danger:hover { background: var(--err); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: .95rem; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #2c2a22 0%, transparent 60%), var(--dark); color: #fff; padding: clamp(48px, 9vw, 110px) 0; }
.hero p.lead { font-size: 1.15rem; max-width: 36rem; color: #d9d5ca; }
.hero .eyebrow { color: var(--brass-light); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; font-weight: 700; margin: 0 0 12px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.today-hours { margin-top: 22px; color: #cfcabd; }
.today-hours strong { color: #fff; }

section.block { padding: clamp(36px, 6vw, 72px) 0; }
section.block.alt { background: #efeadd; }

/* price list */
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list .name { font-weight: 700; font-size: 1.1rem; }
.price-list .desc { color: var(--ink-soft); font-size: .95rem; grid-column: 1; }
.price-list .meta { color: var(--ink-soft); white-space: nowrap; }
.price-list .price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
@media (max-width: 560px) { .price-list li { grid-template-columns: 1fr auto; } .price-list .meta { grid-column: 1; } }

.barbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.barber-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.barber-card .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px; border: 2px solid var(--ink); }

.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
table.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
table.hours th, table.hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
table.hours td { text-align: right; font-weight: 600; }

/* footer */
.site-footer { background: var(--dark); color: #cfcabd; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: var(--brass-light); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* ---------- booking flow ---------- */
.booking-main { padding: 28px 0 64px; min-height: 70vh; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; counter-reset: s; }
.progress li { counter-increment: s; font-size: .85rem; font-weight: 700; color: var(--ink-soft); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.progress li::before { content: counter(s) ". "; }
.progress li[aria-current="step"] { background: var(--dark); color: var(--brass-light); border-color: var(--dark); }
.progress li.done { color: var(--ok); border-color: var(--ok); }
.progress li.done::before { content: "\2713  "; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
.panel h2 { outline: none; }
.choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.choice { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 14px 16px; min-height: 64px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.choice:hover:not([aria-pressed="true"]) { border-color: var(--brass); background: #fffaf0; }
.choice[aria-pressed="true"] { border-color: var(--dark); background: #fbf5e4; }
.choice .t { font-weight: 700; }
.choice .s { color: var(--ink-soft); font-size: .92rem; grid-column: 1; }
.choice .r { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; text-align: right; white-space: nowrap; }
.summary { background: #f3efe3; border-radius: var(--radius); padding: 10px 14px; margin: 0 0 18px; font-size: .95rem; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.summary b { font-weight: 700; }
.nav-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* calendar */
.cal { max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-head button { min-width: 44px; min-height: 44px; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); font-size: 1.2rem; cursor: pointer; }
.cal-head button:disabled { opacity: .35; cursor: not-allowed; }
table.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.cal-grid th { font-size: .8rem; color: var(--ink-soft); padding: 4px 0; font-weight: 700; }
table.cal-grid td { padding: 0; }
.day { width: 100%; aspect-ratio: 1; min-height: 44px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.day:hover:not([aria-disabled="true"]):not([aria-pressed="true"]) { border-color: var(--brass); background: #fffaf0; }
.day[aria-pressed="true"] { background: var(--dark); color: var(--brass-light); border-color: var(--dark); }
.day[aria-disabled="true"] { background: transparent; border-color: transparent; color: #6b6b72; cursor: default; text-decoration: line-through; }
.day.today { box-shadow: inset 0 -3px 0 var(--brass); }
.slot-group { margin-top: 18px; }
.slot-group h3 { font-size: 1rem; font-family: var(--body); color: var(--ink-soft); margin-bottom: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-width: 84px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.slot:hover:not([aria-pressed="true"]) { border-color: var(--brass); background: #fffaf0; }
.slot[aria-pressed="true"] { background: var(--dark); color: var(--brass-light); border-color: var(--dark); }
.cal-wrap { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .cal-wrap { grid-template-columns: 1fr; } }

/* forms */
.field { margin: 0 0 16px; max-width: 520px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; border: 2px solid #8b8678; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.msg { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; border-left: 5px solid; }
.msg.err { background: #fdeeee; border-color: var(--err); color: #5a1010; }
.msg.ok { background: #e9f6ee; border-color: var(--ok); color: #0f3d20; }
.msg.info { background: #f3efe3; border-color: var(--brass-deep); }
.fine { font-size: .9rem; color: var(--ink-soft); }
.confirm-box { text-align: center; padding: 8px 0 4px; }
.confirm-box .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 12px; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px auto; max-width: 440px; text-align: left; }
dl.details dt { color: var(--ink-soft); }
dl.details dd { margin: 0; font-weight: 700; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--brass-deep); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
