/* Brand: change these to restyle the whole theme */
:root {
  --ink: #1d1d1f;
  --ink-soft: #2b2b2e;
  --red: #c8322b;
  --red-dark: #a3251f;
  --navy: #23395b;
  --cream: #f4ecdd;
  --paper: #fbf7ef;
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #6b645a;
  --line: #e2d8c6;
  --green: #2f8a4c;
  --radius: 10px;
  --font-display: "Alfa Slab One", Georgia, serif;
  --font-body: "Rubik", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: var(--white); padding: 10px 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 700 14px var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
section { padding: 92px 0; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border: 0; border-radius: var(--radius); background: var(--red); color: var(--white); font: 700 16px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 26px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.button:hover { background: var(--red-dark); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.button-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.button-ghost:hover { background: var(--cream); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--red); text-decoration: none; }
.text-link::after { content: "→"; margin-left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--cream); border-bottom: 4px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font: 400 24px var(--font-display); text-decoration: none; min-height: 44px; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand small { font: 600 12px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 6px; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16px; }
.primary-nav a { text-decoration: none; }
.primary-nav a:not(.button):hover { color: var(--red); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(244, 236, 221, 0.4); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--cream); }

/* Hero */
.hero { background: var(--ink); color: var(--cream); padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: 0.95; }
.hero h1 span { color: var(--red); }
.lead { font-size: 20px; color: rgba(244, 236, 221, 0.82); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card svg { width: 100%; max-width: 300px; margin: 0 auto; }

/* Walk-in board */
.walk-ins { background: var(--cream); }
.board-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.board-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.board-status.is-open::before { background: var(--green); }
.board-status.is-closed::before { background: var(--red); }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: start; }
.board { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 28px; box-shadow: 10px 10px 0 var(--red); }
.chairs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.chair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--ink-soft); border-radius: 10px; }
.chair .num { font: 400 22px var(--font-display); color: var(--red); }
.chair strong { display: block; }
.chair small { opacity: 0.7; font-size: 14px; }
.pill { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pill-free { background: var(--green); color: var(--white); }
.pill-busy { background: var(--cream); color: var(--ink); }
.pill-off { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 236, 221, 0.4); }
.wait { border-top: 2px dashed rgba(244, 236, 221, 0.3); padding-top: 20px; }
.wait-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; opacity: 0.75; margin-bottom: 4px; }
.wait-time { font: 400 56px/1 var(--font-display); color: var(--cream); margin-bottom: 8px; }
.wait-note { margin: 0; opacity: 0.8; }
.join { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 28px; }
.join label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.join input, .join select { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; font: 16px var(--font-body); background: var(--paper); color: var(--text); }
.join input:focus, .join select:focus { outline: none; border-color: var(--ink); }
.join .button { width: 100%; margin-top: 6px; }
.join-result { margin: 14px 0 0; font-weight: 600; color: var(--green); }

/* Prices */
.price-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 64px; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; break-inside: avoid; font-size: 19px; }
.price-list i { flex: 1; border-bottom: 2px dotted var(--line); }
.price-list strong { font: 400 22px var(--font-display); color: var(--red); }

/* Barbers */
.barbers { background: var(--white); }
.barber-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.barber { border: 2px solid var(--ink); border-radius: 14px; padding: 24px; background: var(--paper); }
.badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 400 18px var(--font-display); margin-bottom: 16px; }
.barber p { margin: 0; color: var(--muted); font-size: 16px; }

/* Find */
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hours { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.hours td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.is-today td { background: var(--ink); color: var(--cream); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(244, 236, 221, 0.8); padding: 60px 0 28px; border-top: 4px solid var(--red); }
.site-footer .brand { color: var(--cream); }
.site-footer h3 { color: var(--cream); font-size: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid a:not(.brand) { display: inline-block; min-height: 32px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(244, 236, 221, 0.15); font-size: 15px; }
.footer-bottom a { color: var(--red); }

@media (max-width: 1000px) {
  .hero-grid, .board-grid, .find-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { display: none; }
  .barber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: var(--ink); border-bottom: 4px solid var(--red); }
  .primary-nav.open { display: flex; }
  .primary-nav a:not(.button) { padding: 12px 0; }
  .price-list { columns: 1; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .board { box-shadow: 6px 6px 0 var(--red); padding: 20px; }
  .barber-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
