/* ==========================================================================
   Black Eyed Barber — vintage American barbershop styling
   ========================================================================== */

:root {
  --bb-navy: #171a22;
  --bb-navy-alt: #1e2230;
  --bb-cream: #f4ead2;
  --bb-cream-muted: #cfc4a8;
  --bb-red: #c0392b;
  --bb-red-deep: #8f2a20;
  --bb-border: rgba(244, 234, 210, 0.14);

  --bb-font-display: "Rye", "Georgia", serif;
  --bb-font-heading: "Oswald", "Arial Narrow", sans-serif;
  --bb-font-body: "Inter", system-ui, sans-serif;

  --bb-container: 1100px;
  --bb-radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bb-navy);
  color: var(--bb-cream);
  font-family: var(--bb-font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.bb-container {
  width: 100%;
  max-width: var(--bb-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

h1, h2 {
  font-family: var(--bb-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--bb-cream);
}

.bb-eyebrow {
  font-family: var(--bb-font-heading);
  color: var(--bb-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}
.center { text-align: center; }

section { padding: 5rem 0; }

/* ---- Buttons ---- */
.bb-btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--bb-radius);
  font-family: var(--bb-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.bb-btn-primary {
  background: var(--bb-red);
  color: var(--bb-cream);
}
.bb-btn-primary:hover {
  background: var(--bb-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.35);
}
.bb-btn-outline {
  border-color: var(--bb-cream);
  color: var(--bb-cream);
}
.bb-btn-outline:hover {
  border-color: var(--bb-red);
  color: var(--bb-red);
}
.bb-btn-lg { padding: 1.05rem 2.25rem; font-size: 1.05rem; }

/* ---- Header ---- */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(23, 26, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bb-border);
}
.bb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.bb-back {
  font-family: var(--bb-font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--bb-cream-muted);
  transition: color 150ms ease;
}
.bb-back:hover { color: var(--bb-cream); }

/* ---- Hero ----
   Boxer watermark follows the same principle as the main Tiger Sharks
   site's shark watermark (see .hero::before in css/styles.css): a large
   background-image on the section's own ::before, positioned behind the
   content via z-index, at low opacity, sized relative to the section so
   it stays proportionate at any viewport without extra markup or added
   height. Desktop and mobile get independent position/size below. */
.bb-hero {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  background:
    radial-gradient(ellipse 700px 400px at 50% -10%, rgba(192, 57, 43, 0.18), transparent 65%),
    var(--bb-navy);
  text-align: center;
}
.bb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/barber/flash-real/boxer-feature.png');
  background-repeat: no-repeat;
  background-position: center 12%;
  background-size: auto 92%;
  opacity: 0.24;
  z-index: 0;
}
.bb-hero-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.bb-hero-sign {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2rem;
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
}
.bb-hero h1 {
  font-size: clamp(3.25rem, 11vw, 5.5rem);
}
.bb-hero-sub {
  color: var(--bb-cream-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ---- About ---- */
.bb-about { background: var(--bb-navy-alt); }
.bb-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.bb-about-photo {
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
}
.bb-about-copy p { color: var(--bb-cream-muted); }
.bb-about-copy p:last-child { color: var(--bb-cream); font-weight: 500; }

/* ---- Gallery ---- */
.bb-gallery h2 { margin-bottom: 3rem; }
.bb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.bb-gallery-grid img {
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ---- Coming soon coffee ---- */
.bb-coffee { background: var(--bb-navy); }
.bb-coffee h2 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.bb-coffee-photo {
  width: 100%;
  margin: 2rem auto 0;
  max-width: 560px;
  border-radius: var(--bb-radius);
  border: 1px solid var(--bb-border);
}

/* ---- Book ---- */
.bb-book {
  background:
    radial-gradient(ellipse 800px 420px at 50% 100%, rgba(192, 57, 43, 0.16), transparent 65%),
    var(--bb-navy-alt);
  border-block: 1px solid var(--bb-border);
}
.bb-book-inner { max-width: 620px; }
.bb-book-sub { color: var(--bb-cream-muted); margin-bottom: 2.5rem; }
.bb-book-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.bb-book-address {
  text-align: center;
  color: var(--bb-cream-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ---- Footer ---- */
.bb-footer { position: relative; overflow: hidden; padding: 3rem 0; border-top: 1px solid var(--bb-border); }
.bb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}
.bb-footer-logo { width: 48px; height: 48px; border-radius: 50%; }
.bb-footer-inner p { color: var(--bb-cream-muted); font-size: 0.85rem; margin: 0; }
.bb-footer-inner a { color: var(--bb-red); }
.bb-footer-inner a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .bb-about-grid { grid-template-columns: 1fr; }
  .bb-gallery-grid { grid-template-columns: 1fr 1fr; }
  /* Independently-positioned mobile watermark: narrower column means
     "auto 92%" would overflow sideways under the wrapped 2-line
     headline, so mobile sizes off width instead and sits lower, behind
     the heading/subtitle rather than spanning the whole section. */
  .bb-hero::before {
    background-position: center 30%;
    background-size: 115% auto;
    opacity: 0.2;
  }
}
@media (max-width: 520px) {
  section { padding: 3.5rem 0; }
  .bb-book-actions { flex-direction: column; align-items: center; }
}
