/* ════════ Barber Shop theme ════════ */

@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

.bb-page {
  --ink: #16202e;
  --ink-2: #2c3a4d;
  --paper: #f6f1e7;
  --paper-2: #ece4d5;
  --red: #b5322c;
  --gold: #c08a2e;
  --rule: #d5c9b3;
  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue Condensed', sans-serif;
  --body: 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  position: relative;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.62;
}
.bb-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
.bb-page > * { position: relative; }
.bb-page a { color: inherit; text-decoration: none; cursor: pointer; }

.bb-page h1, .bb-page h2, .bb-page h3, .bb-brand b, .bb-btn, .bb-eyebrow,
.bb-menu-price, .bb-menu-mins, .bb-steps, .bb-strip, .bb-hours th {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── nav ── */
.bb-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px clamp(18px, 3.6vw, 44px);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
}
.bb-brand { display: flex; align-items: center; gap: 12px; }
.bb-brand b { display: block; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; }
.bb-brand em {
  display: block;
  font-family: var(--body);
  font-style: italic;
  font-size: 11.5px;
  opacity: 0.7;
  letter-spacing: 0;
}
.bb-nav nav { display: flex; gap: 22px; margin-left: auto; }
.bb-nav nav a {
  font-family: var(--display);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.bb-nav nav a:hover { opacity: 1; border-bottom-color: var(--red); }

.bb-btn {
  display: inline-block;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.bb-btn:hover { transform: translateY(-1px); }
.bb-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.bb-btn.primary:hover { background: #9c2925; border-color: #9c2925; }
.bb-sec .bb-btn:not(.primary) { color: var(--ink); }
.bb-sec .bb-btn:not(.primary):hover { background: var(--ink); color: var(--paper); }

/* ── the pole ── */
.pole { display: flex; flex-direction: column; align-items: center; }
.pole-cap {
  background: linear-gradient(180deg, #e8e6e2, #9aa3ad 45%, #6f7883);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.pole-tube {
  position: relative;
  overflow: hidden;
  background: #fbf8f2;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
}
.pole-helix {
  position: absolute;
  inset: -60% -30%;
  background: repeating-linear-gradient(
    115deg,
    var(--red) 0 10px,
    #fbf8f2 10px 20px,
    #2f5fa8 20px 30px,
    #fbf8f2 30px 40px
  );
  animation: pole-turn 2.4s linear infinite;
}
@keyframes pole-turn { to { transform: translateY(44.5px); } }
.pole-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(255, 255, 255, 0.62) 6%, transparent 34%, rgba(0, 0, 0, 0.22) 92%);
}

.pole-lg .pole-cap { width: 62px; height: 16px; }
.pole-lg .pole-tube { width: 52px; height: 208px; border-radius: 4px; }
.pole-lg .pole-cap.top { border-radius: 6px 6px 3px 3px; }
.pole-sm .pole-cap { width: 26px; height: 6px; }
.pole-sm .pole-tube { width: 20px; height: 34px; border-radius: 2px; }

/* ── hero ── */
.bb-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: clamp(30px, 4.6vw, 58px) clamp(18px, 3.6vw, 44px);
}
.bb-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.bb-hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.bb-lede { margin: 16px 0 22px; max-width: 46ch; color: var(--ink-2); }
.bb-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bb-facts {
  display: flex;
  gap: 34px;
  list-style: none;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.bb-facts b { display: block; font-family: var(--display); letter-spacing: 0.06em; }
.bb-facts span { font-size: 13px; color: var(--ink-2); opacity: 0.8; }
.bb-hero-pole { display: flex; justify-content: center; }

.bb-strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bb-strip i { opacity: 0.45; font-style: normal; }

/* ── sections ── */
/* the nav is sticky, so anchored jumps must clear it */
.bb-sec, .bb-hero { scroll-margin-top: 76px; }
.bb-sec { padding: clamp(30px, 4.2vw, 52px) clamp(18px, 3.6vw, 44px); }
.bb-dark { background: var(--paper-2); }
.bb-head { margin-bottom: 26px; }
.bb-head h2 {
  font-size: clamp(22px, 2.7vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 3px double var(--ink);
  display: inline-block;
}
.bb-head p { margin-top: 10px; color: var(--ink-2); }

/* price list */
.bb-menu { list-style: none; max-width: 760px; }
.bb-menu li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.bb-menu-name { font-size: 17px; }
.bb-menu-name em {
  display: block;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-2);
  opacity: 0.75;
}
.bb-dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.bb-menu-mins { font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink-2); opacity: 0.75; }
.bb-menu-price { font-size: 19px; min-width: 62px; text-align: right; color: var(--red); }

/* barbers */
.bb-barbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.bb-barber { background: var(--paper); border: 1px solid var(--rule); padding: 22px 20px; }
.bb-ava {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 12px;
}
.bb-barber h3 { font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.bb-since { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.bb-free { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.bb-free b { color: var(--red); }

/* ── booking ── */
.bb-book { max-width: 780px; }
.bb-steps { display: flex; gap: 26px; list-style: none; margin-bottom: 22px; flex-wrap: wrap; }
.bb-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.5;
}
.bb-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}
.bb-steps li.is-on { opacity: 1; color: var(--red); }
.bb-steps li.is-done { opacity: 1; color: var(--ink); }
.bb-steps li.is-done span { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bb-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-chip {
  font-family: var(--body);
  font-size: 14px;
  text-align: left;
  padding: 11px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.bb-chip:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.bb-chip.is-picked { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bb-chip:disabled { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }
.bb-chip-lg { min-width: 168px; }
.bb-chip-lg b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: 0.06em; }
.bb-chip-lg em { font-style: normal; font-size: 12px; opacity: 0.72; }
.bb-day { text-align: center; min-width: 62px; }
.bb-day b { display: block; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.bb-day em { font-style: normal; font-size: 17px; }
.bb-slots { max-width: 620px; }
.bb-slot { font-family: var(--display); letter-spacing: 0.06em; min-width: 82px; text-align: center; }

.bb-confirm {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 4px solid var(--red);
}
.bb-confirm-line { font-size: 17px; margin-bottom: 14px; }
.bb-dark .bb-confirm { background: var(--paper); }

.bb-done {
  margin-top: 6px;
  padding: 26px 24px;
  background: var(--ink);
  color: var(--paper);
  max-width: 480px;
}
.bb-tick {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-size: 22px;
  margin-bottom: 12px;
}
.bb-done h3 { font-size: 24px; text-transform: uppercase; letter-spacing: 0.06em; }
.bb-done-line { margin: 6px 0 12px; font-size: 16px; }
.bb-note { font-size: 13px; opacity: 0.72; margin-bottom: 16px; }
/* must out-specify `.bb-sec .bb-btn:not(.primary)`, or it goes navy on navy */
.bb-sec .bb-done .bb-btn:not(.primary) { color: var(--paper); }
.bb-sec .bb-done .bb-btn:not(.primary):hover { background: var(--paper); color: var(--ink); }

/* ── visit ── */
.bb-visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; max-width: 820px; }
.bb-hours { border-collapse: collapse; width: 100%; }
.bb-hours th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.bb-hours td { text-align: right; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.bb-hours tr.shut { opacity: 0.45; }
.bb-where p { margin-bottom: 14px; }

.bb-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 3.6vw, 44px);
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--display);
}

@media (max-width: 780px) {
  .bb-hero { grid-template-columns: 1fr; }
  .bb-hero-pole { justify-content: flex-start; }
  .bb-nav nav { display: none; }
}

/* ── the stripe wipe arrival ── */
.wipe-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}
.wipe-overlay .wipe-band {
  position: absolute;
  inset: -30% -60%;
  background: repeating-linear-gradient(
    115deg,
    #b5322c 0 46px,
    #f6f1e7 46px 92px,
    #2f5fa8 92px 138px,
    #f6f1e7 138px 184px
  );
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

/* the pole catching the light before the wipe */
.docked-obj.wiping { animation: obj-spin-up 0.5s ease-out; }
@keyframes obj-spin-up {
  45% { filter: brightness(1.7) drop-shadow(0 0 14px rgba(245, 240, 230, 0.8)); transform: scale(1.05); }
}
