/* Tabas Hair & Barber — price-board look: oxblood ink on blush paper. */
:root {
  --paper: #F7EEE8;
  --paper-light: #FFFBF8;
  --ink: #5A1A24;
  --ink-dark: #3F1119;
  --text: #2A1F1F;
  --muted: #6E5A57;
  --rule: #E3D3CB;
  --rule-strong: #CDB6AB;
  --sage: #3F6B5A;
  --sage-wash: #E4EEE8;
  --error: #A3162B;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
@media (min-width: 768px) {
  body { font-size: 17px; padding-bottom: 0; }
}
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.015em; font-variation-settings: "opsz" 120; }
h3 { font-size: 1.375rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper-light); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper-light);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink-dark); border-color: var(--ink-dark); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-light); color: var(--ink-dark); }

.text-link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 700 1rem/1.4 var(--body); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink); cursor: pointer;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 238, 232, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.wordmark span { font-family: var(--body); font-weight: 500; font-size: 0.875rem; color: var(--muted); margin-left: 4px; }
.main-nav { display: none; gap: 28px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-button { display: none; }
}
@media (max-width: 400px) {
  .wordmark span { display: none; }
}

#mobile-menu {
  width: min(92vw, 420px); max-width: none; height: 100dvh; max-height: none;
  margin: 0 0 0 auto; padding: 20px 24px;
  background: var(--paper-light); color: var(--text); border: 0;
}
#mobile-menu::backdrop { background: rgba(42, 31, 31, 0.45); }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: var(--display); font-size: 1.75rem; color: var(--ink); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}

/* Hero */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 32px; }
.eyebrow {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.lede { font-size: 1.125rem; max-width: 34em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;
  margin: 36px 0 0; border-top: 1px solid var(--rule-strong);
}
.hero-facts div { padding: 14px 16px 0 0; }
.hero-facts dt { font-size: 0.875rem; color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero-media img { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); }
}

/* Section heads */
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
.section-head p { max-width: 62ch; color: var(--muted); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr 1.2fr; align-items: end; gap: 48px; margin-bottom: 44px; }
}

/* Price board */
.menu-section { padding: 64px 0 72px; background: var(--paper-light); border-block: 1px solid var(--rule); }
.menu-jump { display: flex; gap: 8px; margin-bottom: 20px; }
.menu-jump a {
  padding: 8px 16px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; text-decoration: none;
}
@media (min-width: 960px) { .menu-jump { display: none; } }
.board { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .board { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px double var(--ink); }
  .board-group { padding: 24px 28px 8px; }
  .board-group + .board-group { border-left: 1px solid var(--rule); }
  .board-group:first-child { padding-left: 0; }
  .board-group:last-child { padding-right: 0; }
}
.board-group h3 {
  font-size: 1.75rem; padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.board-group ul { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline;
  width: 100%; padding: 14px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px dotted var(--rule-strong);
  font: inherit; color: inherit; cursor: pointer;
}
.svc-name { font-family: var(--display); font-size: 1.1875rem; font-weight: 600; color: var(--ink); }
.svc-price { font-weight: 700; color: var(--ink); white-space: nowrap; justify-self: end; }
.svc-note { grid-column: 1; grid-row: 2; font-size: 0.9375rem; color: var(--muted); margin-top: 2px; }
.svc-time { grid-column: 2; grid-row: 2; justify-self: end; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.svc-name { grid-column: 1; grid-row: 1; }
.svc-price { grid-column: 2; grid-row: 1; }
.svc:hover .svc-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.svc:hover { background: linear-gradient(90deg, transparent, var(--paper) 30%, var(--paper) 70%, transparent); }
.board-foot { font-size: 0.9375rem; color: var(--muted); margin-top: 16px; }

/* Team */
.team-section { padding: 72px 0; }
.team-row {
  list-style: none; margin: 0 -20px; padding: 0 20px 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
}
.person { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.person-role { font-weight: 700; color: var(--ink); font-size: 0.9375rem; }
.person-days { color: var(--muted); font-size: 0.9375rem; }
.person .text-link { align-self: flex-start; margin-top: auto; }
@media (min-width: 768px) { .team-row { margin: 0 -32px; padding: 0 32px 8px; scroll-padding-inline: 32px; } }
@media (min-width: 640px) { .team-row { grid-auto-columns: 44%; } }
@media (min-width: 960px) {
  .team-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; overflow: visible; }
  .person:nth-child(even) { margin-top: 48px; }
}

/* Booker */
.book-section { padding: 72px 0 80px; background: var(--ink); color: var(--paper); }
.book-section h2 { color: var(--paper-light); }
.book-section .section-head p { color: #E6D3CC; }
.book-section a { color: var(--paper-light); }
.no-js-note { font-size: 1.125rem; }

.booker { background: var(--paper-light); color: var(--text); border-radius: 16px; padding: 20px; }
@media (min-width: 768px) { .booker { padding: 32px 36px 36px; } }

.steps {
  list-style: none; margin: 0 0 24px; padding: 0 0 16px;
  display: flex; gap: 6px; border-bottom: 1px dashed var(--rule-strong); counter-reset: step;
}
.steps li {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.875rem; color: var(--muted);
}
.steps li::before {
  content: ""; height: 4px; border-radius: 2px; background: var(--rule);
}
.steps li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.steps li[aria-current="step"]::before, .steps li.done::before { background: var(--ink); }
@media (max-width: 639px) {
  .steps li:not([aria-current="step"]) .step-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .steps li[aria-current="step"] { flex: 2.5; }
}

.booker-grid { display: grid; gap: 28px; }
.booker-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .booker-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
}

.step-title { font-size: 1.625rem; margin-bottom: 18px; }
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 3px solid var(--sage); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-weight: 700; margin-bottom: 10px; padding: 0; }
.hint { color: var(--muted); font-size: 0.9375rem; margin-top: 12px; }
.hint-inline { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.error { color: var(--error); font-weight: 500; font-size: 0.9375rem; min-height: 0; margin-top: 8px; }
.error:empty { margin: 0; }
#booking-note { margin: 0 0 14px; }
#booking-note:empty { margin: 0; }

.choice-groups { display: grid; gap: 22px; }
.choice-group h4 {
  margin: 0 0 8px; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.choice-list { display: grid; gap: 8px; }
@media (min-width: 640px) {
  .choice-groups .choice-list, #stylist-options { grid-template-columns: 1fr 1fr; }
}
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: #fff; transition: border-color 0.15s, background-color 0.15s;
}
.choice-main { display: flex; flex-direction: column; }
.choice-title { font-weight: 700; }
.choice-sub { font-size: 0.9375rem; color: var(--muted); }
.choice-side { font-weight: 700; color: var(--ink); white-space: nowrap; }
.choice input:checked + .choice-body { border: 2px solid var(--sage); background: var(--sage-wash); padding: 13px 15px; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--sage); outline-offset: 2px; }
.choice input:disabled + .choice-body { opacity: 0.5; text-decoration: line-through; cursor: not-allowed; }
.choice:hover input:not(:disabled):not(:checked) + .choice-body { border-color: var(--ink); }
.choice.choice-mismatch .choice-body { background: var(--paper); border-style: dashed; }
.choice.choice-mismatch .choice-sub { color: var(--error); font-weight: 500; }

.date-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px;
  overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px;
}
.date-strip .choice-body { flex-direction: column; align-items: center; gap: 0; padding: 10px 6px; text-align: center; }
.date-strip input:checked + .choice-body { padding: 9px 5px; }
@media (min-width: 960px) {
  .date-strip { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; }
}
.date-strip .day { font-size: 0.875rem; color: var(--muted); }
.date-strip .num { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.date-strip .mon { font-size: 0.875rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 4px; }
.time-grid .choice-body { justify-content: center; padding: 10px 6px; font-weight: 700; }
.time-grid input:checked + .choice-body { padding: 9px 5px; }
fieldset + .error + fieldset { margin-top: 24px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff;
  font: inherit; color: var(--text);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input[aria-invalid="true"] { border: 2px solid var(--error); }
.field .error { margin-top: 0; }

.review { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.review div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 500; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.step-nav [data-next] { margin-left: auto; min-width: 140px; }

.ticket {
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 18px 20px;
  background: var(--paper); position: relative;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--paper-light); border: 1px solid var(--rule-strong); border-radius: 50%;
}
.ticket::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ticket h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ticket dl { margin: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--rule-strong); }
.ticket dt { color: var(--muted); font-size: 0.9375rem; }
.ticket dd { margin: 0; text-align: right; font-weight: 500; font-size: 0.9375rem; }
.ticket .ticket-total { border-bottom: 0; }
.ticket .ticket-total dd { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
@media (min-width: 960px) { .ticket { position: sticky; top: 96px; } }

.confirmation { text-align: left; padding: 8px 0; max-width: 60ch; }
.confirmation-icon { color: var(--sage); margin-bottom: 12px; }
.confirmation h3 { font-size: 1.875rem; margin-bottom: 12px; }
.confirmation h3:focus { outline: none; }
.confirmation h3:focus-visible { outline: 3px solid var(--sage); }
.confirmation [data-confirmation-summary] { font-size: 1.0625rem; }
.confirmation .btn { margin-top: 20px; }

/* Recent work */
.work-section { padding: 72px 0; }
.work-section h2 { margin-bottom: 32px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic figure { margin: 0; }
.mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.mosaic figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 960px) {
  .mosaic { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
  .mosaic figure:first-child { grid-row: span 2; }
  .mosaic figure:first-child img { aspect-ratio: auto; height: calc(100% - 32px); }
  .mosaic figure:nth-child(4) { grid-column: 2 / span 2; }
  .mosaic figure:nth-child(4) img { aspect-ratio: 16 / 9; }
}

/* Reviews */
.reviews-section { padding: 72px 0; background: var(--paper-light); border-block: 1px solid var(--rule); }
.reviews-grid { display: grid; gap: 36px; }
.reviews-grid figure { margin: 0; }
.stars { color: var(--ink); letter-spacing: 2px; font-size: 1rem; }
.star-off { color: var(--rule-strong); }
.reviews-grid blockquote { margin: 8px 0 12px; }
.review-long blockquote p { font-family: var(--display); font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.35; color: var(--ink); }
.review-short blockquote p { font-size: 1.0625rem; }
.reviews-grid figcaption { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: 1.6fr 1fr; column-gap: 64px; row-gap: 40px; }
  .reviews-grid h2 { grid-column: 1 / -1; }
  .review-long { grid-row: span 2; padding-right: 32px; border-right: 1px solid var(--rule); }
}

/* Visit */
.visit-section { padding: 72px 0 88px; }
.visit-grid { display: grid; gap: 36px; }
.visit-grid h2 { margin-bottom: 16px; }
.visit-grid address { font-style: normal; font-size: 1.125rem; font-weight: 500; margin-bottom: 12px; }
.visit-grid > div > p { max-width: 60ch; margin-bottom: 12px; }
.status {
  display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
  font-weight: 700; font-size: 0.9375rem; background: var(--sage-wash); color: var(--sage);
}
.status.closed { background: #F1E1DD; color: var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.contact-links a { text-underline-offset: 5px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 12px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--ink); }
.street-map { margin: 0; }
.street-map svg { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}

/* Footer */
.site-footer { background: var(--ink-dark); color: #EADBD2; padding: 48px 0 40px; }
.site-footer .wordmark { color: var(--paper-light); margin-bottom: 10px; }
.site-footer .wordmark span { color: #D7C3BB; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-bottom: 6px; }
.footer-grid a { color: var(--paper-light); text-underline-offset: 4px; }
.legal { font-size: 0.875rem; color: #D7C3BB; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* Mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper-light); border-top: 1px solid var(--rule-strong);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* Reveal (added by common.js only when motion is allowed) */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.will-reveal.in-view { opacity: 1; transform: none; }
.visit-media { display: grid; gap: 16px; }
.visit-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

[hidden] { display: none !important; }
