/* ==========================================================================
   BILLIONAIRE BARBER — Mississauga
   Design system: black / white / single gold accent, oversized condensed type.
   Palette sampled from the shop's own photography (uniform embroidery = gold,
   slat wall = walnut, signage = ink/bone).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Core brand — true neutral black, no blue cast */
  --ink:        #0A0A0A;
  --ink-800:    #111111;
  --ink-700:    #1A1A1A;
  --ink-600:    #2A2A2A;
  --gold:       #C9A227;   /* web-tuned from measured #A78F4B embroidery */
  --gold-bright:#E3BE45;
  --walnut:     #87735F;   /* sampled: slat wall — decorative use only */
  --walnut-ink: #6B5A48;   /* darkened for text: 5.5:1 on --bone (walnut itself is 4.0:1) */
  --bone:       #F5F1EA;   /* sampled: sign face */
  --white:      #FFFFFF;

  /* Semantic */
  --bg:            var(--bone);
  --bg-dark:       var(--ink);
  --fg:            var(--ink);
  --fg-muted:      #55524E;   /* warm neutral grey, 6.9:1 on --bone (was blue-tinted) */
  --fg-on-dark:    #FFFFFF;
  --fg-on-dark-mut:#B0B0B0;   /* neutral grey, 9.1:1 on --ink */
  --border:        #DCD6CB;
  --border-dark:   #242424;

  /* Type */
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (density 4/10 — standard-to-spacious) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --maxw: 1240px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* Visible focus for keyboard users (never removed) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: var(--s-2) var(--s-3); font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-3); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-4); } }

.section { padding-block: var(--s-6); }
@media (min-width: 768px) { .section { padding-block: var(--s-7); } }

.section--dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section--ink  { background: var(--ink-800); color: var(--fg-on-dark); }

/* Editorial section label: 01 / SERVICES */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--display);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--walnut-ink);
  margin: 0 0 var(--s-3);
}
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--gold); }
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35;
}
.eyebrow__num { font-variant-numeric: tabular-nums; }

/* ---------- Type ----------
   Light weights + open tracking. Heavy condensed type reads "sports poster";
   thin condensed caps with air between the letters reads luxury. */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 6vw, 4.25rem); }
h3 { font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: 0.06em; }
h4 { font-weight: 400; letter-spacing: 0.2em; }
p  { text-wrap: pretty; }

body { font-weight: 300; }
strong, b { font-weight: 500; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.72;
  color: var(--fg-muted);
  max-width: 58ch;
}
.section--dark .lede, .section--ink .lede { color: var(--fg-on-dark-mut); }

/* ---------- Buttons (min 44px touch target) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-family: var(--display);
  font-size: 0.9375rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
/* gold bg + ink text = 8.0:1 contrast */
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--fg-on-dark); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-700); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- Barber-pole stripe (motif lifted from the logo) ---------- */
.pole-rule {
  height: 6px; border: 0; margin: 0;
  background: repeating-linear-gradient(
    115deg,
    var(--gold) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- Header ---------- */
/* Solid black — the old 92% translucency let the hero bleed through and read grey.
   Opaque means the blur is redundant, so it's gone (cheaper to paint too). */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  min-height: 76px;
}
.header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { height: 30px; width: auto; }
@media (min-width: 768px) { .header__logo img { height: 36px; } }

/* Show nav from tablet up so 768–959px isn't left without in-page navigation */
.nav { display: none; gap: var(--s-3); }
@media (min-width: 720px) { .nav { display: flex; } }
@media (min-width: 960px) { .nav { gap: var(--s-4); } }
.nav a {
  font-family: var(--display);
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-on-dark); text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }

.header__cta { display: none; }
@media (min-width: 600px) { .header__cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex; align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
/* video sits on top of the poster once it can play */
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video { transition: none; } }

/* Two-axis scrim: the vertical pass anchors the headline block, the horizontal
   pass keeps copy legible over the busy gold logo in the middle of the frame. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,.92) 0%, rgba(10,10,10,.70) 34%, rgba(10,10,10,.18) 68%, rgba(10,10,10,.30) 100%),
    linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.55) 40%, rgba(10,10,10,.28) 72%, rgba(10,10,10,.60) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--s-6) var(--s-5); }

.hero__title {
  font-size: clamp(3.25rem, 12vw, 9.5rem);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0 0 var(--s-4);
}
.hero__title em {
  font-style: normal;
  font-weight: 400;   /* the gold line carries a touch more weight */
  color: var(--gold);
  display: block;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,.9);
  max-width: 50ch;
  margin: 0 0 var(--s-4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* Full-width stacked buttons read cleaner than ragged ones on a phone */
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
  font-family: var(--display);
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.hero__meta strong { color: var(--white); font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold); color: var(--ink);
  padding-block: 0.85rem;
  overflow: hidden;
  border-block: 2px solid var(--ink);
}
.marquee__track {
  display: flex; gap: var(--s-4);
  width: max-content;
  animation: slide 32s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  white-space: nowrap;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Stats / trust ---------- */
.stats {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; letter-spacing: 0.02em;
  color: var(--gold);
}
.stat__label {
  font-family: var(--display);
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--fg-on-dark-mut);
  margin-top: 0.6rem;
}

/* ---------- Split (story) ---------- */
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-6); } }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Services ---------- */
.svc-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-5);
}
.svc-list { display: grid; gap: 0; }
@media (min-width: 900px) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }

/* Each row is a link straight to Booksy. Lifts and highlights on hover/focus. */
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 var(--s-2);
  padding: var(--s-3) var(--s-2);
  margin-inline: calc(var(--s-2) * -1);   /* highlight bleeds past the text edge */
  border-bottom: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.svc:hover, .svc:focus-visible {
  background: rgba(201, 162, 39, .09);
  transform: scale(1.025);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  z-index: 2;                              /* sit above the neighbouring rows */
}
.svc:hover .svc__name, .svc:focus-visible .svc__name { color: var(--gold); }
.svc:hover .svc__meta, .svc:focus-visible .svc__meta { color: var(--fg-on-dark); }

/* "Book" cue that slides in on hover — hidden from screen readers, which
   already get the row's aria-label. */
.svc__name::after {
  content: " \2192";
  display: inline-block;
  margin-left: 0.5em;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--gold);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.svc:hover .svc__name::after, .svc:focus-visible .svc__name::after {
  opacity: 1; transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .svc, .svc__name::after { transition: none; }
  .svc:hover, .svc:focus-visible { transform: none; }
  .svc:hover .svc__name::after, .svc:focus-visible .svc__name::after { transform: none; }
}

/* Touch devices get no hover state — keep the arrow visible so the rows still
   read as tappable. */
@media (hover: none) {
  .svc__name::after { opacity: .55; transform: none; }
}
.svc__name {
  font-family: var(--display);
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-on-dark);
}
.svc__price {
  font-family: var(--display);
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  font-weight: 400; letter-spacing: 0.04em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.svc__meta {
  grid-column: 1 / -1;
  font-size: 0.875rem; color: var(--fg-on-dark-mut);
  margin-top: 0.15rem;
}
.svc--feature { border-bottom-color: var(--gold); }
.svc--feature .svc__name { color: var(--gold); }

.svc-note {
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  color: var(--fg-on-dark-mut);
}

/* ---------- Team ---------- */
.team {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }

.barber { position: relative; }
.barber__img {
  position: relative; overflow: hidden;
  background: var(--ink-700);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
.barber__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.barber:hover .barber__img img,
.barber:focus-within .barber__img img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .barber__img img { transition: none; }
  .barber:hover .barber__img img { transform: none; }
}
.barber__name {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: var(--s-2) 0 0.15rem;
}
.barber__role {
  font-family: var(--display);
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.barber__note { font-size: 0.9375rem; color: var(--fg-on-dark-mut); margin: 0.4rem 0 0; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

.review {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.review__stars { display: flex; gap: 2px; color: var(--gold); }
.review__stars svg { width: 18px; height: 18px; }
.review__text { margin: 0; font-size: 1.0625rem; }
.review__who {
  margin-top: auto;
  font-family: var(--display);
  font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}
.review__src { display: block; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--fg-muted); font-weight: 500; }

/* ---------- Visit / location ---------- */
.visit { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .visit { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-6); } }

.info-row {
  display: grid; grid-template-columns: 28px 1fr; gap: var(--s-2);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--border-dark);
}
.info-row svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.info-row__label {
  font-family: var(--display); font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-on-dark-mut);
}
.info-row__value { font-size: 1.0625rem; color: var(--fg-on-dark); }
/* tel:/mailto: links are real tap targets — keep them at the 44px minimum */
.info-row__value a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; border-bottom: 1px solid rgba(201,162,39,.5);
}
.info-row__value a:hover { color: var(--gold); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: var(--s-2);
  padding-block: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.map {
  width: 100%; aspect-ratio: 4 / 3; border: 0;
  border-radius: var(--radius);
  filter: grayscale(100%) invert(92%) contrast(0.9);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--fg-on-dark); padding-block: var(--s-6) var(--s-4); }
.footer__grid { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-5); } }
.footer img { height: 40px; width: auto; margin-bottom: var(--s-2); }
.footer h4 {
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.28em; color: var(--gold);
  margin-bottom: var(--s-2);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

/* Social icons — bare glyphs, no chrome. The 44px box is kept as an invisible
   tap target so the icons stay easy to hit on a phone. */
.footer .social {
  display: flex; gap: var(--s-1);
  grid-auto-flow: column; grid-auto-columns: max-content;
  margin-top: var(--s-3);
  margin-left: -10px;            /* pull the padded box back to the text edge */
}
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--fg-on-dark-mut);
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.social svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .social a { transition: none; }
  .social a:hover { transform: none; }
}
.footer a { color: var(--fg-on-dark-mut); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: var(--s-5); padding-top: var(--s-3);
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-size: 0.875rem; color: var(--fg-on-dark-mut);
}

/* ---------- Sticky mobile book bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--ink-600);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--ink-600);
}
@media (min-width: 600px) { .book-bar { display: none; } }
.book-bar a {
  min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--ink); color: var(--white);
  font-family: var(--display); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
}
.book-bar a.is-primary { background: var(--gold); color: var(--ink); }
.book-bar svg { width: 18px; height: 18px; }
/* keep the bar from covering the end of the page on phones */
@media (max-width: 599px) { body { padding-bottom: 56px; } }

/* ---------- Scroll reveal ----------
   Hidden ONLY when scripting is confirmed working (html.js is set by the inline
   script). If JS is blocked or throws, every section stays visible. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
}
