/* =============================================================
   Steven James Hair — shared site styles
   Direction: "Modern editorial heritage salon"
   - Cool near-white surfaces (no beige/cream AI wash)
   - Deep charcoal ink, near-black hero
   - Single warm brass accent, used sparingly
   - Cormorant Garamond display + Inter body
   ============================================================= */

:root {
  /* surfaces */
  --bg:        oklch(97.5% 0.004 250);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(95.5% 0.005 250);
  --ink:       oklch(20% 0.018 264);   /* deep charcoal */
  --ink-deep:  oklch(15% 0.02 266);    /* near-black hero */
  --fg:        oklch(24% 0.015 264);
  --muted:     oklch(50% 0.012 264);
  --faint:     oklch(64% 0.01 264);
  --border:    oklch(90% 0.005 264);
  --border-strong: oklch(82% 0.008 264);

  /* brand accent — warm brass */
  --accent:        oklch(68% 0.11 66);
  --accent-deep:   oklch(56% 0.11 58);
  --accent-soft:   oklch(94% 0.03 78);
  --on-accent:     oklch(20% 0.02 60);

  /* status */
  --success: oklch(60% 0.13 150);

  /* type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* rhythm */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18,20,28,.04), 0 12px 32px -16px rgba(18,20,28,.18);
  --shadow-lg: 0 30px 70px -32px rgba(18,20,28,.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.serif { font-family: var(--font-display); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; min-height: 48px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

/* wordmark logo */
.logo { display: inline-flex; flex-direction: column; line-height: .96; }
.logo .logo-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .01em; color: var(--ink); }
.logo .logo-sub { font-family: var(--font-body); font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--accent-deep); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--fg); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent); transition: width .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px var(--gut) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px 2px; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin: 16px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: oklch(82% 0.01 264); padding-block: clamp(48px, 7vw, 80px) 36px; }
.footer a { color: oklch(82% 0.01 264); }
.footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo .logo-name { color: #fff; }
.footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a { font-size: 15px; opacity: .85; transition: opacity .2s, color .2s; }
.footer li a:hover { opacity: 1; color: var(--accent); }
.footer .foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid oklch(30% 0.02 266); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: oklch(62% 0.01 264); }
@media (max-width: 720px) { .footer .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- social pills ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px; min-height: 44px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--fg);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.social-pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.social-pill svg { width: 18px; height: 18px; flex: none; }
.socials.on-dark .social-pill { background: transparent; border-color: oklch(36% 0.02 266); color: #fff; }
.socials.on-dark .social-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- generic page header ---------- */
.page-head { background: var(--ink-deep); color: #fff; padding-block: clamp(64px, 11vw, 130px) clamp(40px, 7vw, 72px); position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 26%, transparent), transparent 70%); pointer-events: none; }
.page-head h1 { color: #fff; font-size: clamp(40px, 7vw, 76px); }
.page-head .eyebrow { color: var(--accent); }
.page-head .lead { color: oklch(80% 0.01 264); position: relative; }

.breadcrumb { font-size: 13px; color: oklch(72% 0.01 264); margin-bottom: 18px; letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- salon page ---------- */
.salon-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.salon-main h2 { font-size: clamp(26px, 3.6vw, 38px); }
.salon-main > * + * { margin-top: 22px; }
.salon-main p { color: var(--muted); max-width: 62ch; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 92px; }
.info-card h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--surface-2); color: var(--accent-deep); display: grid; place-items: center; }
.info-row .ic svg { width: 17px; height: 17px; }
.info-row .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.info-row .v { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.info-row .v a:hover { color: var(--accent-deep); }
.info-card .btn { width: 100%; justify-content: center; margin-top: 20px; }

.hours-list { display: grid; gap: 8px; }
.hours-list .hr { display: flex; justify-content: space-between; font-size: 14.5px; }
.hours-list .hr .d { color: var(--muted); }
.hours-list .hr .t { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--faint); }

/* booking embed */
.booking-block { margin-top: 14px; }
.embed-frame { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.embed-frame iframe { width: 100%; height: 760px; border: 0; display: block; }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.embed-bar .lbl { font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.embed-bar .lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.embed-bar a { font-size: 13px; font-weight: 600; color: var(--accent-deep); }

/* walk-in panel (barbers) */
.walkin-panel { background: var(--ink-deep); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.walkin-panel::after { content: ''; position: absolute; right: -8%; top: -30%; width: 50%; height: 160%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 28%, transparent), transparent 70%); pointer-events: none; }
.walkin-panel h3 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); position: relative; }
.walkin-panel p { color: oklch(82% 0.01 264); position: relative; max-width: 52ch; }
.walkin-panel .pts { position: relative; display: grid; gap: 12px; margin: 22px 0 26px; }
.walkin-panel .pts li { list-style: none; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.walkin-panel .pts svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.walkin-panel .hero-cta { position: relative; }

.salon-social { margin-top: 8px; }
.salon-social h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; margin-bottom: 14px; }

@media (max-width: 900px) {
  .salon-layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .embed-frame iframe { height: 680px; }
}

/* ---------- services page ---------- */
.svc-section + .svc-section { margin-top: 56px; }
.svc-section .svc-h { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.svc-section .svc-h h2 { font-size: clamp(26px, 3.8vw, 40px); }
.svc-section .svc-h .cnt { font-size: 13px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 4px; border-bottom: 1px solid var(--border); }
.price-row .pr-name { font-size: 17px; color: var(--ink); font-weight: 500; }
.price-row .pr-desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.price-row .pr-dots { flex: 1; border-bottom: 1px dotted var(--border-strong); transform: translateY(-4px); min-width: 20px; }
.price-row .pr-price { font-family: var(--font-display); font-size: 20px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-row .pr-price.tbc { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }

/* ---------- booking hub ---------- */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.book-card { display: flex; flex-direction: column; padding: 28px; }
.book-card .bk-kind { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent-deep); }
.book-card h3 { font-size: 26px; margin-top: 8px; }
.book-card .bk-addr { font-size: 14.5px; color: var(--muted); margin-top: 8px; flex: 1; }
.book-card .bk-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin: 18px 0 16px; }
.book-card .bk-status.online { color: var(--success); }
.book-card .bk-status.walkin { color: var(--accent-deep); }
.book-card .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
