:root {
  --wall: #E9DFC8;
  --cream: #F4F1E8;
  --navy: #1F3A5F;
  --night: #0B1626;
  --red: #B22234;
  --brass: #C9A227;
  --brass-dark: #8A6A12;
  --charcoal: #2B2B2B;
  --stripes: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 28px, var(--navy) 28px 42px, var(--cream) 42px 56px);
  --plaque-ring: inset 0 0 0 2px #8A6A12, inset 0 0 0 4px #F0D77A, inset 0 0 0 5px #8A6A12;
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-script: 'Aref Ruqaa', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

.bb-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.bb-stripe-rule {
  height: 14px;
  background: var(--stripes);
  border-block: 2px solid var(--navy);
}

/* Fixed 76px Enamel Plaque Navbar */
.bb-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 80;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 4px solid var(--brass);
}

.bb-nav {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.bb-nav-side {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.bb-nav-end { justify-content: flex-end; }

.bb-plate-logo {
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: var(--plaque-ring);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
}

/* Enamel Bezel Buttons */
.bb-enamel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  border: 2px solid #8A6A12;
  box-shadow: inset 0 0 0 2px #F0D77A, 0 4px 0 #6B520E;
  transition: transform 0.15s;
  white-space: nowrap;
}

.bb-enamel:hover { transform: translateY(-2px); }
.bb-enamel-red { background: var(--red); color: var(--cream); }
.bb-enamel-cream { background: var(--cream); color: var(--navy); }
.bb-enamel-navy { background: var(--navy); color: var(--cream); }
.bb-enamel-sm { padding: 7px 14px; font-size: 12.5px; }

/* 1. Plaster Wall + Barber Pole + Perforated Wait Ticket Hero */
.bb-hero {
  position: relative;
  min-height: 100svh;
  padding: 104px 0 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.bb-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.bb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 14px;
}

.bb-eyebrow::before {
  content: '';
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--stripes);
  border: 1px solid var(--navy);
}

.bb-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 900;
  line-height: 1.34;
  color: var(--navy);
  text-shadow: 3px 3px 0 rgba(201, 162, 39, 0.55);
  margin-bottom: 16px;
}

.bb-script {
  font-family: var(--font-script);
  color: var(--red);
  font-weight: 400;
}

/* Framed Barber Pole + Tilted Perforated Ticket */
.bb-pole-stage {
  position: relative;
}

.bb-pole-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--plaque-ring), 0 24px 50px rgba(31, 58, 95, 0.22);
  aspect-ratio: 4 / 3.4;
}

.bb-pole-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-ticket {
  position: absolute;
  bottom: -18px;
  inset-inline-start: -14px;
  width: 215px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--cream);
  border: 2px solid var(--navy);
  box-shadow: 5px 5px 0 var(--brass-dark);
  transform: rotate(2deg);
  z-index: 4;
}

/* 2. Navy Band + Enamel Price Board */
.bb-navy-sec {
  background: var(--navy);
  color: var(--cream);
  padding: 92px 0;
}

.bb-board {
  max-width: 940px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: var(--plaque-ring), 0 34px 70px rgba(0, 0, 0, 0.45);
}

.bb-cat-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.bb-cat-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  font-size: 13.5px;
}

.bb-cat-btn.active {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}

.bb-menu-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(31, 58, 95, 0.25);
}

.bb-dots-leader {
  border-bottom: 2px dotted rgba(31, 58, 95, 0.35);
  height: 1px;
}

.bb-board-basket {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--wall);
  border: 2px solid var(--brass-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 3. Barbers + Apothecary Shop */
.bb-sec {
  padding: 88px 0;
}

.bb-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.34;
  color: var(--navy);
  text-shadow: 2px 2px 0 rgba(201, 162, 39, 0.45);
  margin-bottom: 14px;
}

.bb-crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.bb-crew-card {
  padding: 22px;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: var(--plaque-ring);
  transition: transform 0.2s;
}

.bb-crew-card:hover { transform: rotate(-1.4deg) translateY(-3px); }

.bb-shop-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bb-prod-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--plaque-ring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* 4. Crimson Reviews Marquee */
.bb-crimson-marquee {
  background: var(--red);
  color: var(--cream);
  border-block: 4px solid var(--brass);
  padding: 14px 0;
  overflow: hidden;
  font-weight: 800;
}

.bb-marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: bbScroll 28s linear infinite;
}

@keyframes bbScroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* 5. Nocturnal Late Chair + Visit */
.bb-late-band {
  background: var(--night);
  color: var(--cream);
  padding: 80px 0;
  border-bottom: 4px solid var(--brass);
}

.bb-visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

/* Footer */
.bb-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 52px 0 38px;
}

.bb-hollow-word {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 11vw, 8.8rem);
  font-weight: 900;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201, 162, 39, 0.45);
  line-height: 1.05;
  margin: 20px 0;
}

.bb-showcase-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
}

@media (max-width: 720px) {
  .bb-nav-side a:not(.bb-enamel) { display: none; }
  .bb-hero-grid,
  .bb-crew-grid,
  .bb-shop-3,
  .bb-visit-grid { grid-template-columns: 1fr; }
  .bb-ticket { position: static; margin-top: 14px; transform: none; width: 100%; }
}
