/* Purple Label Luxury Barbershop. Tokens: design-system/purple-label/MASTER.md, "Brand override". */
:root {
  --plum-900: #24124d;
  --plum-800: #321a68;
  --plum-600: #6131b5;
  --plum-50: #f4f0fb;
  --gold-500: #c9a227;
  --gold-300: #e3c766;
  --gold-700: #7a5f0e;
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1b1424;
  --ink-muted: #5b5366;
  --rule: #e4deea;

  --font-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(36, 18, 77, .06), 0 8px 24px rgba(36, 18, 77, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-600); text-underline-offset: 3px; }
a:hover { color: var(--plum-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--plum-900); padding: var(--space-2) var(--space-4);
  font-weight: 600; border-radius: var(--radius); transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-3); }

.wrap { width: min(100% - 2 * var(--space-5), var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 var(--space-4); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw + .5rem, 4.75rem); }
h2 { font-size: clamp(2rem, 3vw + .75rem, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 var(--space-4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold-300); }
.lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, .82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font: 600 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none;
  border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-500); color: var(--plum-900); }
.btn--gold:hover { background: var(--gold-300); color: var(--plum-900); }
.btn--plum { background: var(--plum-600); color: #fff; }
.btn--plum:hover { background: var(--plum-900); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--outline { border-color: var(--plum-600); color: var(--plum-600); }
.btn--outline:hover { background: var(--plum-600); color: #fff; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--plum-900); color: #fff;
  border-bottom: 1px solid rgba(201, 162, 39, .35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 48px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-300); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: var(--space-2) 0; color: rgba(255, 255, 255, .85); text-decoration: none;
  font-size: .86rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1.5px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; border-color: var(--gold-500); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; border-radius: var(--radius); }
.nav-toggle .icon { width: 26px; height: 26px; margin: auto; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav .btn { display: none; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: var(--space-2) var(--space-5) var(--space-5);
    background: var(--plum-900); border-bottom: 1px solid rgba(201, 162, 39, .35);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: var(--space-4) 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .95rem; }
  .nav-list a[aria-current="page"] { color: var(--gold-300); border-color: rgba(255, 255, 255, .08); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section--tint { background: var(--plum-50); }
.section--dark { background: var(--plum-900); color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.gold-rule { width: 56px; height: 2px; background: var(--gold-500); border: 0; margin: 0 0 var(--space-5); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(36, 18, 77, .96) 0%, rgba(36, 18, 77, .86) 45%, rgba(36, 18, 77, .45) 100%);
}
.hero .wrap { padding: clamp(var(--space-8), 12vh, 140px) 0 clamp(var(--space-8), 10vh, 120px); }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; padding-left: 0; }
.hero-facts li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.hero-facts strong { display: block; color: #fff; font-weight: 600; }
.hero-facts .icon { color: var(--gold-300); margin-top: 3px; }

.page-hero { background: var(--plum-900); color: #fff; padding: var(--space-8) 0 var(--space-7); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 1px solid rgba(201, 162, 39, .25); border-radius: 50%; }
.page-hero h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.75rem); margin-bottom: var(--space-3); }

.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: .85rem; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a8496; }
.status.is-open .status-dot { background: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, .2); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow);
}
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--plum-600); line-height: 1; margin-bottom: var(--space-3); }
.price-card h3 { margin-bottom: var(--space-2); }
.price-card p { color: var(--ink-muted); font-size: .95rem; flex: 1; }
.price-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: var(--space-4); }

/* Menu with dotted leaders */
.menu-group { margin-bottom: var(--space-8); }
.menu-group:last-child { margin-bottom: 0; }
.menu-group > h2 { font-size: 2rem; display: flex; align-items: center; gap: var(--space-4); }
.menu-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.menu-intro { color: var(--ink-muted); max-width: 65ch; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
.menu-item:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: var(--space-3); }
.menu-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.menu-dots { flex: 1; border-bottom: 1.5px dotted #c4bccf; transform: translateY(-5px); min-width: 24px; }
.menu-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--plum-600); white-space: nowrap; }
.menu-price--ask { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-700); }
.menu-desc { color: var(--ink-muted); margin: var(--space-2) 0 0; max-width: 62ch; font-size: .95rem; }
.includes { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.includes li { font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--plum-50); color: var(--plum-900); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); align-items: start; }
.menu-aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
@media (max-width: 960px) { .menu-layout { grid-template-columns: 1fr; } .menu-aside { position: static; } }

/* Notables */
/* Lines come from cell borders, not a coloured gap, so an incomplete last row shows no filled block. */
.notables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid rgba(201, 162, 39, .3); border-left: 1px solid rgba(201, 162, 39, .3); }
.notables li { padding: var(--space-6) var(--space-5); border-right: 1px solid rgba(201, 162, 39, .3); border-bottom: 1px solid rgba(201, 162, 39, .3); }
@media (min-width: 820px) { .notables--3 { grid-template-columns: repeat(3, 1fr); } }
.notables .year { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-300); line-height: 1; margin-bottom: var(--space-2); }
.notables span:last-child { color: rgba(255, 255, 255, .88); font-size: .95rem; }

/* Barbers */
.barber { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-7); align-items: start; padding: var(--space-8) 0; border-bottom: 1px solid var(--rule); }
.barber:first-of-type { padding-top: 0; }
.barber-photo { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.barber-role { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin-bottom: var(--space-2); }
.barber blockquote { margin: var(--space-5) 0 0; padding-left: var(--space-5); border-left: 2px solid var(--gold-500); font-family: var(--font-display); font-size: 1.45rem; font-style: italic; line-height: 1.35; color: var(--plum-900); }
@media (max-width: 760px) { .barber { grid-template-columns: 1fr; gap: var(--space-5); } .barber-photo { max-width: 340px; } }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.team-card { text-decoration: none; color: inherit; }
.team-card img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-3); transition: transform .4s var(--ease); }
.team-card:hover img { transform: scale(1.02); }
.team-card h3 { font-size: 1.45rem; margin-bottom: 0; }
.team-card p { color: var(--ink-muted); font-size: .9rem; margin: 0; }
.monogram { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: var(--radius); background: var(--plum-50); color: var(--plum-600); font-family: var(--font-display); font-size: 3.5rem; font-weight: 600; margin-bottom: var(--space-3); border: 1px solid var(--rule); }
.more-barbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); padding-top: var(--space-8); }
.more-barbers .monogram { aspect-ratio: 1; font-size: 2.6rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 var(--space-6) var(--space-6); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold-500); }
.timeline .year { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--plum-600); line-height: 1.2; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }
.framed { position: relative; isolation: isolate; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow); }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-500); border-radius: var(--radius); z-index: -1; }
.pull-quote { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw + .8rem, 2.5rem); font-style: italic; line-height: 1.3; max-width: 28ch; margin: 0 auto var(--space-4); }
.pull-cite { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }
.gallery--strip { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .gallery--strip { grid-template-columns: repeat(2, 1fr); } }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 960px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 10, 40, .88); }
.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.lightbox-bar button { min-width: 48px; min-height: 48px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .4); background: rgba(36, 18, 77, .6); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-bar button:hover { background: var(--plum-600); }
.lightbox-count { color: #fff; font-size: .9rem; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-7); align-items: stretch; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.hours { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.hours li.is-today { font-weight: 700; color: var(--plum-600); }
.hours .closed { color: var(--ink-muted); }
.map-frame { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); filter: saturate(.85); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.contact-lines li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.contact-lines .icon { color: var(--plum-600); margin-top: 3px; }

/* Network */
.partner h3 { margin-bottom: var(--space-1); }
.partner .who { color: var(--gold-700); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #170b33; color: rgba(255, 255, 255, .78); padding: var(--space-8) 0 var(--space-6); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--space-4); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: var(--space-4); max-width: 34ch; }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { border-color: var(--gold-300); }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--plum-900); border-top: 1px solid rgba(201, 162, 39, .4); gap: var(--space-3);
  }
  .call-bar .btn { flex: 1; padding: 0 var(--space-3); white-space: nowrap; }
  body { padding-bottom: 76px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
