/* Vengeance Barber Studio
   Palette pulled from the logo: brown-black outline, white letterforms,
   barber-pole red / blue and the brass caps. */
:root {
  --ink: #15110f;
  --ink-2: #1f1a17;
  --white: #f7f6f4;
  --muted: #bdb6b0;
  --red: #c8262c;
  --blue: #2b56b8;
  --brass: #c9a45c;
  --glass: rgba(21, 17, 15, 0.72);
  --glass-line: rgba(247, 246, 244, 0.12);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

/* ---------- Scroll-scrubbed storefront backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--ink) url("assets/frames/f001.webp") 56% 15% / cover no-repeat; }
.backdrop canvas { width: 100%; height: 100%; display: block; }
.backdrop__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21,17,15,.82) 0%, rgba(21,17,15,.35) 55%, rgba(21,17,15,.15) 100%),
    linear-gradient(0deg, rgba(21,17,15,.7) 0%, rgba(21,17,15,0) 35%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px var(--gutter) 0;
}
.site-header__bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 10px 8px 18px;
  background: rgba(21, 17, 15, 0.55);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand img { height: 58px; width: auto; }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { text-decoration: none; font-weight: 500; opacity: 0.85; }
.nav a:hover { opacity: 1; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 8px 0 24px;
  border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 1rem; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.pill:not(:has(.pill__icon)) { padding: 0 24px; }
.pill--solid { background: var(--white); color: var(--ink); }
.pill--solid:hover { background: #fff; transform: translateY(-1px); }
.pill--ghost { border: 1.5px solid rgba(247,246,244,.7); color: var(--white); }
.pill--ghost:hover { background: rgba(247,246,244,.1); }
.pill--sm { min-height: 44px; padding: 0 20px; }
.pill__icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
}
.pill--solid .pill__icon { background: var(--ink); color: var(--white); }
.pill--ghost .pill__icon { background: var(--white); color: var(--ink); }
.pill__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(247,246,244,.5);
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(247,246,244,.12); }
.icon-btn svg, .social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 80px);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) var(--gutter) 140px;
  display: flex; align-items: center;
}
.hero__copy { position: relative; padding-left: clamp(26px, 3vw, 40px); max-width: 720px; }

/* The one loud element: a live barber pole running down the headline */
.pole {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 10px; border-radius: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 10px, var(--white) 10px 20px, var(--blue) 20px 30px, var(--white) 30px 40px);
  background-size: 100% 56.57px;
  box-shadow: 0 0 0 2px var(--brass);
  animation: pole 2.4s linear infinite;
}
@keyframes pole { to { background-position: 0 56.57px; } }

.hero__place { color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); text-wrap: balance; }
.hero__lede { margin-top: 22px; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.proof {
  position: absolute; right: var(--gutter); bottom: 150px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  width: 300px; padding: 20px 22px;
  background: rgba(30, 25, 22, 0.5);
  border: 1px solid var(--glass-line); border-radius: var(--radius-md);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
}
.proof__num { font: 800 2.6rem/1 var(--display); }
.proof__stars { color: var(--brass); letter-spacing: 3px; font-size: 1.1rem; }
.proof__text { grid-column: 1 / -1; margin-top: 8px; color: #e6e1dc; font-size: .95rem; }

.scroll-badge {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 112px; height: 112px; display: grid; place-items: center;
  text-decoration: none; font-size: 1.4rem;
}
.scroll-badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.scroll-badge text { fill: var(--white); font: 500 11.5px var(--body); letter-spacing: 1.6px; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Panels (sections floating over the video) ---------- */
.panel {
  max-width: var(--maxw);
  margin: 0 auto 28vh;
  margin-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  padding: clamp(28px, 5vw, 64px);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.panel__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.panel h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.panel__head p { color: var(--muted); font-size: 1.08rem; }
.panel h3 { font-size: 1.9rem; }
.note { color: var(--muted); font-size: .95rem; margin: 18px 0 28px; }

/* Services: a shop menu, not a card grid */
.menu { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.menu li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--glass-line);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}
.menu__name { font-weight: 500; }
.menu__dots { flex: 1; border-bottom: 2px dotted rgba(247,246,244,.28); transform: translateY(-5px); }
.menu__price { font: 700 clamp(1.6rem, 3vw, 2.1rem)/1 var(--display); color: var(--white); }

/* Barbers */
.barbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.barber {
  background: var(--ink-2); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.barber img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 25%; }
.barber__body { padding: 22px; display: grid; gap: 8px; flex: 1; grid-template-rows: auto 1fr auto; } /* book button lines up at the bottom */
.barber h3 { font-size: 2.3rem; display: flex; align-items: baseline; gap: 10px; }
.barber__role { font: 500 .85rem var(--body); color: var(--brass); }
.barber p { color: #ddd6cf; }
.barber__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.barber__links { display: flex; gap: 8px; flex: none; }
.barber__links .icon-btn { width: 44px; height: 44px; }
.barber__links .icon-btn svg { width: 20px; height: 20px; }
.barber__body > .barber__book { margin-top: 10px; justify-content: center; width: 100%; }

/* Gallery: even grid, every photo the same size. Six tracks = three photos per
   row; a leftover photo or pair on the last row is centered instead of stretched,
   so no photo gets cropped harder than the rest. */
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery__grid img {
  grid-column: span 2; width: 100%; height: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 35%; border-radius: 14px;
}
.gallery__grid img:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
.gallery__grid img:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }

/* Reviews */
.reviews__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.review {
  margin: 0; padding: 26px; border-radius: var(--radius-md);
  background: var(--ink-2); display: grid; gap: 14px; align-content: start;
}
.review--lead { grid-row: span 3; padding: clamp(28px, 4vw, 44px); align-content: center; gap: 22px; }
.review--lead blockquote { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; font-weight: 300; }
.review blockquote { margin: 0; font-size: 1.12rem; }
.review__stars { color: var(--brass); letter-spacing: 3px; }
.review figcaption { font-weight: 600; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

.google-bar {
  margin-top: 18px; padding: 20px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--glass-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.google-bar[hidden] { display: none; }
.google-bar__score { display: grid; gap: 4px; }
.google-bar__score strong { font: 700 1.6rem/1.1 var(--display); }
.google-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Visit */
.visit__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.visit h3 { margin-bottom: 14px; }
.visit h3:not(:first-child) { margin-top: 8px; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--glass-line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: #ddd6cf; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--white); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  background: var(--red); font-size: .78rem; font-weight: 600; vertical-align: 2px;
}
address { font-style: normal; font-size: 1.2rem; margin-bottom: 20px; }
.map { border-radius: var(--radius-md); overflow: hidden; min-height: 420px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* Call */
.call { text-align: center; display: grid; justify-items: center; gap: 18px; }
.call__number {
  font: 800 clamp(3rem, 11vw, 8rem)/1 var(--display);
  text-decoration: none; color: var(--white);
  background: linear-gradient(transparent 82%, var(--red) 82% 92%, transparent 92%);
}
.call__number:hover { color: #fff; background: linear-gradient(transparent 82%, var(--blue) 82% 92%, transparent 92%); }
.call p { color: var(--muted); }

/* Follow */
.follow { text-align: center; }
.follow h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; margin: 0 auto 32px; text-wrap: balance; }
.follow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px 26px 18px 20px; min-width: 280px;
  border-radius: var(--radius-md); background: var(--ink-2);
  border: 1px solid var(--glass-line); text-decoration: none;
  transition: border-color .2s;
}
.social:hover { border-color: rgba(247,246,244,.5); }
.social svg { width: 30px; height: 30px; }
.social span { display: grid; color: var(--muted); }
.social strong { color: var(--white); font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-footer {
  text-align: center; padding: 56px var(--gutter) 64px;
  background: var(--ink); color: var(--muted); display: grid; justify-items: center; gap: 12px;
}
.site-footer img { width: 260px; height: auto; margin-bottom: 10px; }
.site-footer a { color: var(--white); }
.site-footer__social { display: flex; gap: 22px; }
.site-footer__fine { font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .barbers__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review--lead { grid-row: auto; }
  .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  /* Frosted glass re-blurs the moving video on every frame, which phones
     struggle with; solid tints look nearly the same and scroll smoothly. */
  .panel, .proof, .site-header__bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel { background: rgba(21, 17, 15, 0.9); }
  .proof { background: rgba(30, 25, 22, 0.85); }
  .site-header__bar { background: rgba(21, 17, 15, 0.96); }
  .nav { display: none; }
  .site-header__bar { justify-content: space-between; }
  .brand img { height: 48px; }
  .proof { position: static; margin-top: 36px; width: auto; max-width: 340px; }
  .hero { flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 150px; }
  .backdrop__shade { background: linear-gradient(0deg, rgba(21,17,15,.85) 0%, rgba(21,17,15,.45) 60%, rgba(21,17,15,.55) 100%); }
  .panel { margin-bottom: 18vh; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .barbers__grid { grid-template-columns: 1fr; }
  /* Four tracks = two photos per row, so a leftover photo can sit centered. */
  .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .gallery__grid img,
  .gallery__grid img:nth-child(3n+1):last-child,
  .gallery__grid img:nth-child(3n+1):nth-last-child(2) { grid-column: span 2; border-radius: 10px; }
  .gallery__grid img:nth-child(odd):last-child { grid-column: 2 / span 2; }
  .menu li { gap: 10px; }
  .social { min-width: 0; width: 100%; }
  .hero__actions .pill { flex: 1 1 auto; justify-content: space-between; }
  /* Phones: keep the storefront sign clear by sitting the hero copy low. */
  .hero { justify-content: flex-end; padding-top: 150px; padding-bottom: 36px; }
  .scroll-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pole, .scroll-badge svg { animation: none; }
  .pill, .icon-btn, .social { transition: none; }
}

/* Content arrives from content/site.json; fade in once it's there. */
main, .site-footer { transition: opacity .25s; }
body.is-loading main, body.is-loading .site-footer { opacity: 0; }
