/* =========================================================
   Barbwired Barbers page (barbers.html)
   Navy heading band with a row of barber shortcuts, a sticky
   filter bar, then one clean card per barber: photos, details,
   hours, cuts and prices, reviews and a Book button that opens
   the booking page with that barber picked. Uses the tokens in
   styles.css.
   ========================================================= */

.page-barbers main { background: var(--tint); }
.page-barbers .site-footer { background: var(--bg); }

/* ---------- Heading band ---------- */
.bb-hero {
  margin-top: calc(var(--header-total) * -1);
  padding-top: calc(var(--header-total) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(36px, 5vw, 56px);
  background: linear-gradient(180deg, var(--night) 0%, #0b0f1e 50%, var(--hero-end) 100%);
  color: var(--on-dark);
}
.bb-hero__inner { display: grid; gap: 14px; }
.bb-hero .eyebrow { color: var(--on-dark-2); }
.bb-hero h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  padding-bottom: .12em;
  margin-bottom: -.12em;
  background: linear-gradient(180deg, #ffffff 30%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bb-hero__sub { max-width: 560px; color: var(--on-dark-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.5; }

/* Round shortcuts to each barber */
.bb-index {
  display: flex;
  gap: 18px;
  /* Room above and to the sides for the ring and the lift on hover: the row
     scrolls sideways, which also cuts off anything poking out of it */
  margin: clamp(8px, 2vw, 20px) -6px 0;
  padding: 6px 6px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bb-index::-webkit-scrollbar { display: none; }
.bb-index__item {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 72px;
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: color .15s ease;
}
.bb-index__item img,
.bb-index__ini {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;   /* the main photo is tall: keep the face in the circle */
  background: #1d2440;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14);
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 600;
  transition: box-shadow .15s ease, transform .2s ease;
}
.bb-index__item:hover { color: var(--on-dark); }
.bb-index__item:hover img,
.bb-index__item:hover .bb-index__ini { box-shadow: 0 0 0 2px var(--on-dark); transform: translateY(-2px); }

/* ---------- Filter bar (sticks under the header) ---------- */
.bb-bar {
  position: sticky;
  top: var(--header-total);
  z-index: 20;
  padding-block: 12px;
  /* Solid, not frosted glass: a blur here has to be redrawn on every frame
     of scrolling over the photos, which made the page feel slow */
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.bb-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.bb-chips { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.bb-chips::-webkit-scrollbar { display: none; }
.bb-chip {
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.875rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bb-chip:hover { border-color: var(--line-strong); }
.bb-chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.bb-search { position: relative; flex: 0 1 300px; display: block; min-width: 0; }
.bb-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.bb-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
}
.bb-search input::placeholder { color: var(--placeholder); }
.bb-search input:focus { outline: none; border-color: var(--pole-blue); box-shadow: 0 0 0 4px rgba(27, 122, 225, .15); }

/* ---------- The list ---------- */
.bb-list { display: grid; gap: clamp(20px, 3vw, 32px); padding-block: clamp(24px, 4vw, 44px) clamp(48px, 6vw, 80px); }
.bb-empty { display: grid; gap: 8px; justify-items: center; padding: 64px 20px; text-align: center; color: var(--ink-2); }
.bb-empty h2 { color: var(--ink); font-size: 1.5rem; letter-spacing: -0.025em; }

/* ---------- One barber ---------- */
.bb {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  align-items: start;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-total) + 76px);
}

/* 6.6: the cover card (the barber's main photo, css/styles.css .bcard) leads;
   it stays in view while the details scroll past on a wide screen */
.bb__media {
  position: sticky;
  top: calc(var(--header-total) + 80px);
  min-width: 0;
}
/* Their cuts: every photo after the main one */
.bb-work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bb__ph {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--mist);
  cursor: zoom-in;
}
.bb__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bb__ph:hover img { transform: scale(1.04); }
.bb__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 20, .55);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 600;
}
.bb__body { display: grid; gap: 22px; min-width: 0; padding: clamp(4px, 1vw, 12px) clamp(0px, 1vw, 8px) 6px 0; }
.bb__head { display: grid; gap: 8px; }
.bb__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--ink-2); font-size: 0.9375rem; }
.bb__dot { color: var(--ink-3); }
.bb__rating { color: var(--ink); font-weight: 600; }
.bb__star { color: var(--star); }
.bb__muted { color: var(--ink-3); font-weight: 400; }
.bb__new { color: var(--ink-2); font-weight: 500; }
.bb__spec { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.bb__bio { color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 560px; margin-top: -8px; }

/* Next opening and the starting price, side by side */
.bb__facts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
.bb-fact {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mist);
  text-decoration: none;
}
.bb-fact span { color: var(--ink-3); font-size: 0.8125rem; font-weight: 500; }
.bb-fact b { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
/* The price reads first: bigger than its "Cuts from" label */
.bb-fact--price b { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bb-fact--next { background: var(--info-bg); transition: filter .15s ease; }
.bb-fact--next span { color: var(--info); }
.bb-fact--next b { color: var(--info); }
.bb-fact--next b::after { content: "\00a0\2192"; }
.bb-fact--next:hover { filter: brightness(.97); }

.bb__block { display: grid; gap: 10px; }
.bb__block h3 { color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* The week, one small column per day */
.bb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bb-week li {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.bb-week b { font-size: 0.8125rem; font-weight: 600; }
.bb-week span { color: var(--ink-2); font-size: 0.75rem; line-height: 1.25; }
.bb-week .is-off { background: transparent; border-style: dashed; }
.bb-week .is-off b, .bb-week .is-off span { color: var(--ink-3); }
.bb-week .is-today { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); }

/* Cuts and prices: tapping a row opens booking with that cut picked. Only
   the background changes on hover (nothing moves), so it stays smooth. */
.bb-cuts { border-top: 1px solid var(--line); }
.bb-cuts li { border-bottom: 1px solid var(--line); }
.bb-cuts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 2px -10px;
  padding: 11px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}
.bb-cuts a:hover { background: var(--mist); }
.bb-cuts a:focus-visible { outline: 2px solid var(--pole-blue); outline-offset: -2px; }
.bb-cut__name { font-size: 1rem; font-weight: 500; }
.bb-cut__name small { display: block; color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.bb-cut__price { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Reviews */
.bb__reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.bb-review { display: grid; gap: 6px; align-content: start; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--mist); }
.bb-review__stars { color: var(--star); font-size: 0.875rem; letter-spacing: 0.08em; }
.bb-review blockquote { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.bb-review figcaption { color: var(--ink-3); font-size: 0.8125rem; }

/* Book */
.bb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 2px; }
.btn--book {
  min-height: 50px;
  padding: 0 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}
.btn--book:hover { background: var(--accent-hover); }
.bb__fine { color: var(--ink-3); font-size: 0.875rem; }

/* ---------- Join ---------- */
.bb-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
}
.bb-join h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; }
.bb-join p { max-width: 520px; margin-top: 6px; color: var(--ink-2); }
.bb-join__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 899px) {
  .bb { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .bb__media { position: static; width: 100%; max-width: 460px; margin-inline: auto; }
  .bb__body { padding: 0 4px 4px; }
}
@media (max-width: 640px) {
  .bb-bar__inner { flex-direction: column; align-items: stretch; }
  .bb-search { flex: 1 1 auto; }
  .bb__facts { grid-template-columns: minmax(0, 1fr); }   /* 6.6: stacked, so a long sale name can't squeeze the next opening */
  .bb-work { gap: 6px; }
  .bb-fact { padding: 12px 14px; }
  .bb-fact--price b { font-size: 1.5rem; }
  .bb-week { gap: 4px; }
  .bb-week li { padding: 8px 0; border-radius: 12px; }
  .bb-week span { font-size: 0.6875rem; }
  .bb__actions .btn--book { width: 100%; }
  .bb-join__acts { width: 100%; }
}

/* 5.9: sale prices inside a fact box (the label rule above would grey them out) */
.bb-fact .ptag { color: var(--ink); font-size: inherit; }
.bb-fact span.ptag__off { color: var(--ink-2); font-size: 0.6875rem; font-weight: 600; }
.bb-fact .ptag__now { font-size: 1.0625rem; }
.bb-cut__price .ptag { justify-content: flex-end; }