/* HM Barbershop — shared styles (mobile first, black/white/cream) */
:root {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #595959;
  --line: #E6E6E6;
  --field: #D9D9D9;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --gold: #A8894F;
  --danger: #A12C2C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 520px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #EDEBE6; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: var(--max); margin: 0 auto; background: var(--cream); min-height: 100vh; min-height: 100dvh; position: relative; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: inherit; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 5px; padding-left: 5px; line-height: 1; }
.logo small { font-size: 8.5px; font-weight: 500; letter-spacing: 4.5px; padding-left: 4.5px; color: var(--ink-2); line-height: 1; }

/* Eyebrow line */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: none; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; }
.btn.light { background: var(--white); color: var(--ink); }
.btn.outline { background: transparent; border: 1.5px solid currentColor; }
.btn.block { width: 100%; }
.btn.round { border-radius: 26px; letter-spacing: 0; text-transform: none; font-size: 16px; font-weight: 500; }
.btn[disabled], .btn.is-disabled { background: #E6E6E6; color: #8C8C8C; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #444; }
.field input, .field textarea, .field select { min-height: 50px; border: 1.5px solid var(--field); border-radius: 0; padding: 0 14px; background: var(--white); width: 100%; }
.field textarea { padding: 12px 14px; resize: none; min-height: 0; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field .hint { font-size: 12px; color: var(--muted); }
.field.invalid input { border-color: var(--danger); }
.phone-wrap { display: flex; align-items: stretch; border: 1.5px solid var(--field); min-height: 50px; background: var(--white); }
.phone-wrap span { display: flex; align-items: center; padding: 0 12px; border-right: 1.5px solid var(--field); font-size: 16px; color: var(--ink); }
.phone-wrap input { border: none !important; flex: 1; min-width: 0; }
.phone-wrap:focus-within { border-color: var(--ink); }
.error-msg { color: var(--danger); font-size: 14px; line-height: 1.5; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head span { font-size: 16px; font-weight: 500; text-transform: capitalize; }
.icon-btn { width: 44px; height: 44px; border: none; border-radius: 22px; background: #F2F2F2; display: flex; align-items: center; justify-content: center; }
.icon-btn:disabled { color: #BDBDBD; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 0; text-align: center; margin-top: 14px; }
.cal-grid .wd { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.cal-grid .cell { display: flex; justify-content: center; }
.day { width: 42px; height: 42px; border-radius: 21px; border: 1.5px solid transparent; background: transparent; font-size: 15px; padding: 0; color: #ABABAB; text-decoration: line-through; }
.day.open { border-color: var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; background: var(--white); }
.day.sel { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700; text-decoration: none; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 22px; border: 1.5px solid var(--ink); background: var(--white); font-size: 15px; font-weight: 600; }
.slot.sel { background: var(--ink); color: var(--white); }
.loading { color: var(--muted); font-size: 14px; }

/* Utility */
.stack { display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); }

@keyframes hmUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hmPop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
