/* ============================================================
   BROKER BUILT — main.css
   Fonts:  Montserrat (headings) · Lato (body)
   Style:  Dark luxury real estate — uppercase, 2px letter-spacing
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bb-black: #0a0a0a;
  --bb-dark: #111111;
  --bb-dark-2: #1c1c1c;
  --bb-white: #ffffff;
  --bb-off-white: #f5f5f5;
  --bb-accent: #c8c4bc;
  --bb-muted: #888888;
  --bb-border: rgba(255, 255, 255, 0.1);
  --bb-border-dark: rgba(0, 0, 0, 0.1);

  --bb-font-heading: "Montserrat", sans-serif;
  --bb-font-body: "Lato", sans-serif;

  --bb-ls: 2px;
  --bb-ls-sm: 1px;

  --bb-container: 1320px;
  --bb-pad: clamp(16px, 4vw, 40px);
  --bb-section-v: clamp(60px, 8vw, 100px);
  --bb-header-h: 80px;
  --bb-radius: 4px;
  --bb-radius-pill: 50px;
  --bb-ease: 0.3s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bb-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bb-dark);
  background: var(--bb-white);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.bb-container {
  max-width: var(--bb-container);
  margin-inline: auto;
  padding-inline: var(--bb-pad);
}

.bb-section {
  padding-block: var(--bb-section-v);
}

/* ============================================================
   4. TYPOGRAPHY — shared section title
   ============================================================ */
.bb-section__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: currentColor;
  margin-bottom: 16px;
  text-align: center;
}

.bb-section__desc {
  font-family: var(--bb-font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.8;
  color: currentColor;
  opacity: 0.75;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.bb-btn {
  display: inline-block;
  font-family: var(--bb-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  padding: 14px 32px;
  border-radius: var(--bb-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--bb-ease);
  white-space: nowrap;
}

.bb-btn--primary {
  background: var(--bb-white);
  color: var(--bb-black);
  border-color: var(--bb-white);
}
.bb-btn--primary:hover {
  background: transparent;
  color: var(--bb-white);
}

.bb-btn--secondary {
  background: transparent;
  color: var(--bb-white);
  border-color: var(--bb-white);
}
.bb-btn--secondary:hover {
  background: var(--bb-white);
  color: var(--bb-black);
}

.bb-btn--dark {
  background: var(--bb-black);
  color: var(--bb-white);
  border-color: var(--bb-black);
}
.bb-btn--dark:hover {
  background: transparent;
  color: var(--bb-black);
}

.bb-btn--ghost {
  background: transparent;
  color: var(--bb-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.bb-btn--ghost:hover {
  border-color: var(--bb-white);
}

/* ============================================================
   6. SITE HEADER
   ============================================================ */
.bb-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--bb-header-h);
  background: var(--bb-black);
  transition:
    background var(--bb-ease),
    box-shadow var(--bb-ease);
}

.bb-site-header.is-transparent {
  background: transparent;
}

.bb-site-header.is-scrolled {
  background: var(--bb-black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.bb-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bb-header-h);
  gap: 24px;
}

.bb-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.bb-logo__img {
  max-height: 75px;
  width: auto;
  height: auto;
}

.bb-logo__text {
  font-family: var(--bb-font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
}

.bb-nav {
  margin-left: auto;
}

.bb-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.bb-nav__list a {
  font-family: var(--bb-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  padding: 10px 12px;
  border-radius: var(--bb-radius-pill);
  transition: color var(--bb-ease);
  white-space: nowrap;
}

.bb-nav__list a:hover {
  color: var(--bb-accent);
}

/* Optional button style — add CSS class "bb-nav-btn" to any menu item in WP Admin */
.bb-nav__list li.bb-nav-btn > a {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--bb-white);
}
.bb-nav__list li.bb-nav-btn > a:hover {
  background: var(--bb-white);
  color: var(--bb-black);
  border-color: var(--bb-white);
}

/* ── Dropdown / sub-menu ── */
.bb-nav__list > li {
  position: relative;
}

/* Chevron indicator for parent items */
.bb-nav__list > li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.6em;
  opacity: 0.6;
}

.bb-nav__list .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  list-style: none;
  /* Invisible padding bridges the gap so the mouse doesn't lose hover */
  padding-top: 12px;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 200;
}

/* Visible dropdown box rendered via pseudo-element so padding stays invisible */
.bb-nav__list .sub-menu::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bb-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bb-radius);
  z-index: -1;
}

.bb-nav__list > li:hover > .sub-menu,
.bb-nav__list > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Small delay before closing — forgives diagonal mouse movement */
.bb-nav__list > li:not(:hover):not(:focus-within) > .sub-menu {
  transition-delay: 0.1s;
}

.bb-nav__list .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.72rem;
  border-radius: 0;
  white-space: nowrap;
  border: none !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.75) !important;
  position: relative; /* stays above ::before background */
}

.bb-nav__list .sub-menu li a:hover {
  color: var(--bb-accent) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Hamburger toggle */
.bb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bb-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--bb-white);
  border-radius: 2px;
  transition: var(--bb-ease);
}

/* ============================================================
   7. SITE FOOTER
   ============================================================ */
.bb-site-footer {
  background: var(--bb-dark);
  color: var(--bb-muted);
  border-top: 2px solid var(--bb-accent);
  padding-top: clamp(48px, 7vw, 80px);
}

/* 3-column grid */
.bb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(40px, 6vw, 64px);
}

/* Brand column */
.bb-footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}
.bb-footer__logo img,
.bb-footer__logo-img {
  max-height: 80px;
  width: auto;
  height: auto;
}

.bb-footer__logo-text {
  font-family: var(--bb-font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
}

.bb-footer__tagline {
  font-family: var(--bb-font-body);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--bb-muted);
  margin-bottom: 24px;
  max-width: 280px;
  text-transform: none;
  letter-spacing: 0;
}

/* Social links */
.bb-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-footer__social-link {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--bb-radius-pill);
  transition:
    color var(--bb-ease),
    border-color var(--bb-ease);
}

.bb-footer__social-link:hover {
  color: var(--bb-accent);
  border-color: var(--bb-accent);
}

/* Column headings */
.bb-footer__heading {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav links */
.bb-footer__nav {
  list-style: none;
}

.bb-footer__nav li + li {
  margin-top: 10px;
}

.bb-footer__nav a {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--bb-ease);
}

.bb-footer__nav a:hover {
  color: var(--bb-accent);
}

/* Contact list */
.bb-footer__contact {
  list-style: none;
}

.bb-footer__contact li + li {
  margin-top: 10px;
}

.bb-footer__contact a {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--bb-ease);
}

.bb-footer__contact a:hover {
  color: var(--bb-accent);
}

.bb-footer__address {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

/* Bottom bar */
.bb-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 20px;
  text-align: center;
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.4);
}

.bb-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-footer__eho {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.5rem;
}

.bb-footer__eho svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.bb-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb-footer__legal-links a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 0.5rem;
  transition: color 0.2s;
}

.bb-footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.bb-footer__legal-links a + a::before {
  content: "·";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.15);
}

.bb-footer__credit {
  text-align: center;
  padding-block: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bb-footer__credit p {
  margin: 0;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.bb-footer__credit strong {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

/* ============================================================
   8. HERO — HOME (full viewport, gradient bleed to black)
   ============================================================ */
.bb-hero.bb-hero--home {
  position: relative;
  min-height: 100vh;
  background-color: var(--bb-black);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dark overlay */
.bb-hero.bb-hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

/* Gradient bleed into next dark section */
.bb-hero.bb-hero--home::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent 0%, var(--bb-black) 100%);
  z-index: 2;
  pointer-events: none;
}

.bb-hero.bb-hero--home .bb-container {
  position: relative;
  z-index: 3;
  padding-top: var(--bb-header-h);
}

/* Shared hero text */
.bb-hero__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  line-height: 1.08;
  max-width: 820px;
  margin-bottom: 20px;
}

.bb-hero__subtitle {
  font-family: var(--bb-font-heading);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
}

.bb-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   9. HERO — LOCATION (city, region, intent, neighborhood)
   ============================================================ */
.bb-hero {
  position: relative;
  min-height: 62vh;
  background-color: var(--bb-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.bb-hero .bb-container {
  position: relative;
  z-index: 3;
  padding-bottom: 56px;
  padding-top: calc(var(--bb-header-h) + 24px);
}

.bb-hero .bb-hero__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  max-width: none;
}

.bb-hero .bb-btn {
  margin-top: 24px;
}

/* ============================================================
   10. BREADCRUMB
   ============================================================ */
.bb-breadcrumb {
  background: var(--bb-dark);
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.bb-breadcrumb__link,
.bb-breadcrumb__current {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.45);
}

.bb-breadcrumb__link:hover {
  color: var(--bb-accent);
}
.bb-breadcrumb__current {
  color: var(--bb-accent);
  font-weight: 700;
}
.bb-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.25);
  margin-inline: 4px;
  font-size: 0.6rem;
}

/* ============================================================
   11. SECTION: REGIONS (Areas We Serve)
   ============================================================ */
.bb-section--regions {
  background: var(--bb-black);
  color: var(--bb-white);
}

.bb-section--regions .bb-section__title {
  color: var(--bb-white);
}

.bb-cards-grid.bb-cards-grid--regions {
  grid-template-columns: repeat(auto-fit, minmax(300px, 520px));
  justify-content: center;
  gap: 48px;
}

.bb-card.bb-card--region {
  height: 480px;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: 10px;
  transition:
    transform var(--bb-ease),
    box-shadow var(--bb-ease),
    outline-offset 0.4s ease,
    outline-color 0.5s ease;
}

.bb-card.bb-card--region:hover {
  outline-offset: 3px;
  outline-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   12. CARDS (shared — used on regions, children, archives)
   ============================================================ */
.bb-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--bb-radius);
  height: 300px;
  background: var(--bb-dark-2);
  transition:
    transform var(--bb-ease),
    box-shadow var(--bb-ease);
}

.bb-card:hover {
  transform: translateY(-4px);
}

.bb-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.bb-card:hover .bb-card__image {
  transform: scale(1.04);
}

.bb-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  color: var(--bb-white);
}

.bb-card__title {
  font-family: var(--bb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin-bottom: 4px;
}

.bb-card__meta {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
}

.bb-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  line-height: 1.4;
}

.bb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ============================================================
   13. CITY SLIDER (Swiper — homepage featured + location nearby)
   ============================================================ */
.bb-section--featured-cities,
.bb-section--cities {
  background: var(--bb-black);
  color: var(--bb-white);
  overflow: hidden;
}

.bb-section--featured-cities .bb-section__title,
.bb-section--cities .bb-section__title {
  color: var(--bb-white);
}

/* Region filter tabs */
.bb-region-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.bb-region-tab {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  padding: 10px 28px;
  border-radius: var(--bb-radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--bb-ease);
}

.bb-region-tab:hover,
.bb-region-tab.is-active {
  border-color: var(--bb-white);
  color: var(--bb-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Slider show/hide */
.bb-slider-instance {
  display: none;
}
.bb-slider-instance.is-active {
  display: block;
}

/* City card */
.bb-city-card {
  display: block;
  position: relative;
  overflow: hidden;
  height: 460px;
  background: var(--bb-dark-2);
  color: var(--bb-white);
  cursor: pointer;
}

.bb-city-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.bb-city-card:hover .bb-city-card__image {
  transform: scale(1.04);
}

.bb-city-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
}

.bb-city-card__title {
  font-family: var(--bb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin-bottom: 2px;
}

.bb-city-card__state,
.bb-city-card__tagline {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: rgba(255, 255, 255, 0.55);
}

/* Swiper overrides */
.bb-cities-slider .swiper-button-next,
.bb-cities-slider .swiper-button-prev {
  color: var(--bb-white);
  background: rgba(0, 0, 0, 0.75);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 50%;
  transition: background var(--bb-ease);
}

/* Pull buttons inward so they sit inside the card area */
.bb-cities-slider .swiper-button-prev {
  left: 16px;
}
.bb-cities-slider .swiper-button-next {
  right: 16px;
}

.bb-cities-slider .swiper-button-next:hover,
.bb-cities-slider .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.92);
}

.bb-cities-slider .swiper-button-next::after,
.bb-cities-slider .swiper-button-prev::after {
  font-size: 13px;
  font-weight: 700;
}

.bb-cities-slider .swiper-button-next:hover,
.bb-cities-slider .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ============================================================
   14. SECTION: EDITORIAL
   ============================================================ */
.bb-section--editorial {
  background: var(--bb-white);
}

.bb-editorial {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--bb-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bb-dark);
}

.bb-editorial h2,
.bb-editorial h3 {
  font-family: var(--bb-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  margin: 36px 0 14px;
}

.bb-editorial p + p {
  margin-top: 14px;
}
.bb-editorial ul,
.bb-editorial ol {
  padding-left: 24px;
  margin-top: 14px;
}
.bb-editorial li + li {
  margin-top: 6px;
}

/* ============================================================
   14b. SECTION: SPLIT (two-column content + image — region / city)
   ============================================================ */
.bb-section--split {
  background: var(--bb-dark);
  color: var(--bb-white);
}

.bb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bb-split--no-image {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.bb-split__tagline {
  font-family: var(--bb-font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--bb-accent);
  margin-bottom: 16px;
}

.bb-split__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bb-white);
  margin-bottom: 28px;
}

.bb-split__body {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.bb-split__body p {
  margin-bottom: 1.2em;
}
.bb-split__body p:last-child {
  margin-bottom: 0;
}

.bb-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.bb-split__image-wrap {
  position: relative;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: 10px;
  border-radius: var(--bb-radius);
  overflow: hidden;
  line-height: 0;

  transition:
    outline-offset 0.4s ease,
    outline-color 0.5s ease;
}

.bb-split__image-wrap:hover {
  outline-offset: 3px;
  outline-color: rgba(255, 255, 255, 0.6);
}

.bb-split__img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.bb-split__pop-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--bb-accent);
  padding: 10px 18px;
  border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
  gap: 4px;
}

.bb-split__pop-label {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 5px;
}

.bb-split__pop-number {
  font-family: var(--bb-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  line-height: 1;
}

/* Hero fade — always active on location pages, blends seamlessly into breadcrumb + split below */
.bb-hero--location::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, transparent 0%, var(--bb-dark) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   14b. HERO: ABOUT PAGE — dark split (photo | agent info)
   ============================================================ */
.bb-hero--about {
  background: var(--bb-dark);
  min-height: 100vh;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Kill the location-hero gradient overlay — about hero has no bg image */
.bb-hero--about::before {
  display: none;
}

.bb-hero-about__grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2; /* lifts above inherited .bb-hero::before overlay */
}

/* Photo column */
.bb-hero-about__photo-wrap {
  position: relative;
  overflow: hidden;
}

.bb-hero-about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Subtle right-edge fade so the photo bleeds into the content panel */
.bb-hero-about__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bb-dark) 100%);
  pointer-events: none;
}

/* Content column */
.bb-hero-about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--bb-header-h) + 32px) 64px 40px 48px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 680px;
}

.bb-hero-about__name {
  font-family: var(--bb-font-heading);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin: 14px 0 10px;
  line-height: 1.05;
}

.bb-hero-about__role {
  font-family: var(--bb-font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin-bottom: 5px;
}

.bb-hero-about__credentials {
  font-family: var(--bb-font-heading);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-muted);
  margin-bottom: 36px;
}

.bb-hero-about__bio {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
}

.bb-hero-about__bio p {
  margin-bottom: 1em;
}
.bb-hero-about__bio p:last-child {
  margin-bottom: 0;
}

.bb-hero-about__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.bb-hero-about__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-hero-about__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--bb-font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

a.bb-hero-about__meta-item:hover {
  color: var(--bb-accent);
}

.bb-hero-about__meta-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bb-accent);
}

/* Legacy — kept for any template still using it */
.bb-hero-about__phone {
  font-family: var(--bb-font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bb-hero-about__phone:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .bb-hero-about__grid {
    grid-template-columns: 1fr;
  }
  .bb-hero-about__photo-wrap {
    min-height: 420px;
  }
  .bb-hero-about__photo-overlay {
    background: linear-gradient(
      to bottom,
      transparent 60%,
      var(--bb-dark) 100%
    );
  }
  .bb-hero-about__content {
    padding: 48px var(--bb-pad) 64px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* ============================================================
   15. SECTION: MARKET STATS
   ============================================================ */
.bb-section--stats {
  background: var(--bb-black);
  color: var(--bb-white);
}

.bb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  text-align: center;
}

.bb-stat {
  padding: 48px 24px;
  background: var(--bb-dark-2);
  border: 1px solid var(--bb-border);
}

.bb-stat__value {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--bb-accent);
  letter-spacing: var(--bb-ls-sm);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-stat__value small {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.bb-stat__label {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-muted);
}

.bb-stats-grid__updated {
  margin-top: 24px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--bb-muted);
  font-family: var(--bb-font-heading);
  letter-spacing: var(--bb-ls-sm);
  text-transform: uppercase;
}

/* ============================================================
   16. SECTION: IDX EMBED
   ============================================================ */
.bb-section--idx {
  background: var(--bb-off-white);
}

.bb-idx-embed__frame {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ============================================================
   17. SECTION: CHILDREN (intents + neighborhoods)
   ============================================================ */
.bb-section--children {
  background: var(--bb-white);
}

/* ============================================================
   18. SECTION: FAQ
   ============================================================ */
.bb-section--faq {
  background: var(--bb-off-white);
}

.bb-faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.bb-faq-list__item {
  border-bottom: 1px solid var(--bb-border-dark);
  padding-block: 24px;
}

.bb-faq-list__item:first-child {
  border-top: 1px solid var(--bb-border-dark);
}

.bb-faq-list__question {
  font-family: var(--bb-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-dark);
  margin-bottom: 10px;
}

.bb-faq-list__answer {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

/* ============================================================
   19. SECTION: ABOUT AGENT (homepage single-agent fallback)
   ============================================================ */
.bb-section--about {
  background: var(--bb-white);
}

.bb-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
}

.bb-about__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--bb-radius);
}

.bb-about__name {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-dark);
  margin-bottom: 8px;
}

.bb-about__title {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin-bottom: 4px;
}

.bb-about__credentials {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-muted);
  margin-bottom: 28px;
}

.bb-about__bio {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.bb-about__bio p + p {
  margin-top: 14px;
}

.bb-about__content .bb-btn {
  margin-top: 32px;
}

/* ============================================================
   19a. SECTION: BIO — My Story (About page full bio)
   ============================================================ */
.bb-section--bio {
  background: var(--bb-dark);
  scroll-margin-top: var(--bb-header-h);
}

.bb-section--bio .bb-section__header {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.bb-section--bio .bb-section__title {
  color: var(--bb-white);
}

.bb-bio-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.bb-bio-content p {
  margin-bottom: 1.4em;
}

.bb-bio-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   19b. SECTION: AGENT CARDS (About page multi-agent grid)
   ============================================================ */
.bb-section--agents {
  background: var(--bb-dark);
}

.bb-section--agents .bb-section__header {
  text-align: center;
  margin-bottom: 60px;
}

.bb-section--agents .bb-section__title {
  color: var(--bb-white);
}

/* Grid: auto-fit, min 280px per card */
.bb-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* Single agent: cap width and center */
.bb-agents-grid--single {
  grid-template-columns: min(480px, 100%);
  justify-content: center;
}

/* Two agents: fixed two-column */
.bb-agents-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin-inline: auto;
}

.bb-agent-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bb-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.bb-agent-card:hover {
  border-color: rgba(var(--bb-accent-rgb, 188, 151, 99), 0.35);
  transform: translateY(-4px);
}

.bb-agent-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.bb-agent-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bb-agent-card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bb-agent-card__name {
  font-family: var(--bb-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin-bottom: 6px;
}

.bb-agent-card__role {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin-bottom: 4px;
}

.bb-agent-card__credentials {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-muted);
  margin-bottom: 20px;
}

.bb-agent-card__bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  flex: 1;
}

.bb-agent-card__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-agent-card__contact-link {
  font-family: var(--bb-font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bb-agent-card__contact-link:hover {
  opacity: 0.75;
}

/* ============================================================
   20. SECTION: CTA BAND
   ============================================================ */
.bb-section--cta {
  background: var(--bb-black);
  color: var(--bb-white);
  text-align: center;
}

.bb-cta__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin-bottom: 16px;
}

.bb-cta__subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.bb-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   21. ARCHIVE PAGES
   ============================================================ */
.bb-main--archive {
  padding-top: var(--bb-header-h);
  min-height: 60vh;
}

.bb-archive__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-dark);
  margin-bottom: 48px;
  padding-top: 48px;
}

/* ============================================================
   22. PAGE HERO (standard WordPress pages via page.php)
   ============================================================ */
.bb-page-hero {
  position: relative;
  min-height: 300px;
  background: var(--bb-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bb-page-hero.has-image {
  min-height: 440px;
  background-size: cover;
  background-position: center;
}

.bb-page-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.68) 100%
  );
  z-index: 1;
}

.bb-page-hero .bb-container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--bb-header-h) + 24px);
  padding-bottom: 48px;
}

.bb-page-hero .bb-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* Gradient fade — sits above the ::before overlay but below the title container */
.bb-page-hero.has-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

/* Buy, Sell → dark sections follow */
.page-template-page-buy .bb-page-hero.has-image::after,
.page-template-page-sell .bb-page-hero.has-image::after {
  background: linear-gradient(to bottom, transparent 0%, var(--bb-dark) 100%);
}

/* About → dark agent-cards section follows */
.page-template-page-about .bb-page-hero.has-image::after {
  background: linear-gradient(to bottom, transparent 0%, var(--bb-dark) 100%);
}

/* Contact → uses direct modifier class (body-class not reliable for slug-matched templates) */
.bb-page-hero--contact.has-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bb-dark) 100%);
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */

/* Nav collapses to hamburger at 1024px */
@media (max-width: 1024px) {
  .bb-nav-toggle {
    display: flex;
  }

  .bb-nav {
    position: absolute;
    top: var(--bb-header-h);
    left: 0;
    right: 0;
    background: var(--bb-black);
    padding: 24px var(--bb-pad) 32px;
    transform: translateY(-4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--bb-ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .bb-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .bb-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bb-nav__list li.bb-nav-btn > a {
    border: none;
  }

  /* Mobile: sub-menu stacks inline, no float */
  .bb-nav__list .sub-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    box-shadow: none;
  }

  .bb-nav__list .sub-menu li a {
    font-size: 0.6rem;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.55) !important;
  }
}

@media (max-width: 768px) {
  /* Agent cards: stack to single column on mobile */
  .bb-agents-grid,
  .bb-agents-grid--two {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .bb-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bb-split__image-wrap {
    order: -1;
  }
  .bb-split__img {
    height: 280px;
  }

  .bb-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .bb-footer__col--brand {
    grid-column: 1 / -1;
  }

  .bb-hero.bb-hero--home {
    min-height: 90vh;
  }

  .bb-city-card {
    height: 260px;
  }

  .bb-about {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 540px;
  }

  .bb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bb-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .bb-footer__grid {
    grid-template-columns: 1fr;
  }
  .bb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb-cta__actions {
    flex-direction: column;
  }
  .bb-region-tabs {
    gap: 8px;
  }
  .bb-form__row--2col {
    grid-template-columns: 1fr;
  }
  .bb-form__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   24. CONTACT FORM
   ============================================================ */

/* Section wrapper — full-bleed with background image */
.bb-section--contact {
  position: relative;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: var(--bb-header-h);
}

.bb-section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--contact-bg, none) center / cover no-repeat;
  z-index: 0;
}

.bb-section--contact:not([style])::before {
  background: var(--bb-black);
}

.bb-section--contact .bb-container {
  position: relative;
  z-index: 1;
  padding-block: 100px;
}

/* Two-column layout */
.bb-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ---- Left: info ---- */
.bb-contact__eyebrow {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin: 0 0 16px;
}

.bb-contact__headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--bb-white);
  line-height: 1.1;
  margin: 0 0 24px;
}

.bb-contact__subtext {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 380px;
  margin: 0 0 40px;
}

.bb-contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bb-contact__detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.bb-contact__detail-label {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
}

.bb-contact__detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bb-white);
  transition: color var(--bb-ease);
}

.bb-contact__detail:hover .bb-contact__detail-value {
  color: var(--bb-accent);
}

/* ---- Right: card ---- */
.bb-contact__card {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 48px 40px;
  backdrop-filter: blur(8px);
}

.bb-contact__card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bb-white);
  margin: 0 0 8px;
}

.bb-contact__card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 32px;
}

/* ---- Form inputs — dark card overrides ---- */
.bb-contact__card .bb-form__input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bb-white);
}

.bb-contact__card .bb-form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bb-contact__card .bb-form__input:focus {
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.bb-form__select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.bb-contact__card .bb-form__select option {
  background: var(--bb-black);
  color: var(--bb-white);
}

/* Submit full-width inside card */
.bb-contact__card .bb-form__footer {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.bb-contact__card .bb-contact-form__submit {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---- Shared form utilities ---- */
.bb-contact-form {
  position: relative;
}

.bb-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bb-form__row--3col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.bb-form__row--4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bb-form__group {
  margin-bottom: 16px;
}

.bb-form__label {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-dark);
  margin-bottom: 8px;
}

.bb-form__required {
  color: var(--bb-accent);
}
.bb-form__optional {
  color: var(--bb-muted);
  font-weight: 400;
}

.bb-form__input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--bb-font-body);
  font-size: 0.9rem;
  color: var(--bb-dark);
  background: var(--bb-off-white);
  border: 1px solid transparent;
  border-radius: var(--bb-radius);
  transition:
    border-color var(--bb-ease),
    box-shadow var(--bb-ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.bb-form__input:focus {
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.bb-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot — positioned off-screen, hidden from real users */
.bb-form__honeypot {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.bb-form__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.bb-form__status {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  margin: 0;
}

.bb-form__status.is-success {
  color: #4caf7d;
}
.bb-form__status.is-error {
  color: #ef5350;
}

.bb-contact-form__submit.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .bb-contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bb-contact__subtext {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .bb-section--contact .bb-container {
    padding-block: 64px;
  }
  .bb-contact__card {
    padding: 32px 24px;
  }
}

/* ============================================================
   24b. SECTION: SELL CTA — dark split (text left | photo right)
   ============================================================ */
.bb-sell-cta {
  background: var(--bb-black);
  padding: 0;
  overflow: hidden;
}

.bb-sell-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* Left: text content */
.bb-sell-cta__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 72px 80px 80px;
}

.bb-sell-cta__headline {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--bb-white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.bb-sell-cta__subtext {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  max-width: 420px;
}

/* Right: photo */
.bb-sell-cta__photo {
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .bb-sell-cta__inner {
    grid-template-columns: 1fr;
  }
  .bb-sell-cta__photo {
    min-height: 300px;
    order: -1;
  }
  .bb-sell-cta__content {
    padding: 56px var(--bb-pad);
  }
}

/* ============================================================
   25. TESTIMONIALS SLIDER
   ============================================================ */
.bb-section--testimonials {
  background: var(--bb-off-white);
  overflow: hidden;
}

.bb-section--testimonials .bb-section__title {
  color: var(--bb-dark);
}

.bb-testimonials-slider {
  padding-inline: var(--bb-pad);
  padding-bottom: 56px;
  max-width: var(--bb-container);
  margin-inline: auto;
}

.bb-testimonial-card {
  background: var(--bb-white);
  border-radius: var(--bb-radius);
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.bb-testimonial__stars {
  color: var(--bb-accent);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.bb-testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  font-style: italic;
  flex: 1;
  margin: 0 0 24px;
}

.bb-testimonial__quote p {
  margin: 0;
}

.bb-testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bb-testimonial__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bb-testimonial__name {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-dark);
}

.bb-testimonial__title {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-muted);
  margin-top: 2px;
}

.bb-testimonial__source {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  color: var(--bb-accent);
  margin-top: 3px;
}

/* Swiper pagination dots */
.bb-testimonials-slider .swiper-pagination-bullet {
  background: var(--bb-muted);
  opacity: 0.4;
}

.bb-testimonials-slider .swiper-pagination-bullet-active {
  background: var(--bb-dark);
  opacity: 1;
}

/* ============================================================
   26. 404 PAGE
   ============================================================ */
.bb-main--404 {
  padding-top: var(--bb-header-h);
}

.bb-section--404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.bb-404 {
  max-width: 600px;
  margin-inline: auto;
}

.bb-404__number {
  font-family: var(--bb-font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: var(--bb-off-white);
  letter-spacing: -4px;
  margin-bottom: 8px;
}

.bb-404__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-dark);
  margin-bottom: 16px;
}

.bb-404__message {
  color: var(--bb-muted);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.7;
}

.bb-404__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bb-btn--dark-border {
  background: transparent;
  color: var(--bb-dark);
  border-color: var(--bb-dark);
}

.bb-btn--dark-border:hover {
  background: var(--bb-dark);
  color: var(--bb-white);
}

/* ============================================================
   26. PROCESS STEPS (Buy / Sell pages)
   ============================================================ */
.bb-section--process {
  background: var(--bb-dark);
  color: var(--bb-white);
}

.bb-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.bb-process-step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bb-process-step__number {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--bb-accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.bb-process-step__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--bb-white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
}

.bb-process-step__desc {
  font-family: var(--bb-font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   27. VALUATION CTA (Sell page)
   ============================================================ */
.bb-section--valuation {
  background: var(--bb-black);
  color: var(--bb-white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-valuation {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.bb-valuation__headline {
  font-family: var(--bb-font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--bb-white);
  margin-bottom: 16px;
}

.bb-valuation__subtext {
  font-family: var(--bb-font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
}

.bb-valuation__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bb-valuation__or-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bb-valuation__or {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: rgba(255, 255, 255, 0.4);
}

.bb-valuation__phone {
  font-family: var(--bb-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bb-accent);
  letter-spacing: var(--bb-ls-sm);
  transition: color var(--bb-ease);
}

.bb-valuation__phone:hover {
  color: var(--bb-white);
}

/* Large button variant */
.bb-btn--lg {
  font-size: 0.8rem;
  padding: 18px 40px;
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  .bb-process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   BLOG — ARCHIVE & SINGLE POST
   ============================================================ */

/* ── Blog Archive Hero ──────────────────────────────────── */
.bb-blog-hero {
  background: var(--bb-dark);
  padding-top: calc(var(--bb-header-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-blog-hero .bb-eyebrow {
  color: var(--bb-accent);
  margin-bottom: 12px;
}

.bb-blog-hero__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--bb-white);
  letter-spacing: var(--bb-ls);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.bb-blog-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Posts Section ──────────────────────────────────────── */
.bb-section--posts {
  background: var(--bb-dark);
  padding-block: var(--bb-section-v);
}

/* ── Post Card Grid ─────────────────────────────────────── */
.bb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bb-posts-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Post Card ──────────────────────────────────────────── */
.bb-post-card {
  background: var(--bb-dark-2);
  border-radius: var(--bb-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color var(--bb-ease),
    transform var(--bb-ease);
}

.bb-post-card:hover {
  border-color: var(--bb-accent);
  transform: translateY(-3px);
}

.bb-post-card__image-wrap {
  display: block;
  overflow: hidden;
}

.bb-post-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.bb-post-card:hover .bb-post-card__image {
  transform: scale(1.04);
}

.bb-post-card__body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bb-post-card__cat {
  display: inline-block;
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-accent);
  margin-bottom: 10px;
}

.bb-post-card__title {
  font-family: var(--bb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  letter-spacing: var(--bb-ls-sm);
}

.bb-post-card__title a {
  color: var(--bb-white);
  text-decoration: none;
  transition: color var(--bb-ease);
}

.bb-post-card__title a:hover {
  color: var(--bb-accent);
}

.bb-post-card__excerpt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}

.bb-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
  margin-top: auto;
}

.bb-post-card__date {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.bb-post-card__read-more {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-accent);
  text-decoration: none;
  transition: opacity var(--bb-ease);
}

.bb-post-card__read-more:hover {
  opacity: 0.7;
}

/* ── Pagination ─────────────────────────────────────────── */
.bb-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.bb-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bb-radius);
  text-decoration: none;
  transition: all var(--bb-ease);
}

.bb-pagination .page-numbers:hover,
.bb-pagination .page-numbers.current {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: var(--bb-dark);
}

/* ── Single Post Hero ───────────────────────────────────── */
.bb-single-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background: var(--bb-dark);
  background-size: cover;
  background-position: center;
  padding-bottom: 56px;
}

.bb-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.bb-single-hero .bb-container {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--bb-header-h) + 40px);
}

.bb-single-hero__content {
  max-width: 800px;
}

.bb-single-hero__cat {
  display: inline-block;
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-accent);
  margin-bottom: 16px;
}

.bb-single-hero__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--bb-white);
  letter-spacing: var(--bb-ls);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 20px;
}

.bb-single-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.bb-single-hero__meta-sep {
  color: var(--bb-accent);
}

/* ── Single Post Body ───────────────────────────────────── */
.bb-section--single-body {
  background: var(--bb-off-white);
}

.bb-single-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

.bb-single-content h2,
.bb-single-content h3,
.bb-single-content h4 {
  font-family: var(--bb-font-heading);
  font-weight: 700;
  letter-spacing: var(--bb-ls-sm);
  text-transform: uppercase;
  color: var(--bb-dark);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.bb-single-content h2 {
  font-size: 1.4rem;
}
.bb-single-content h3 {
  font-size: 1.15rem;
}

.bb-single-content p {
  margin-bottom: 1.4em;
}

.bb-single-content a {
  color: var(--bb-accent);
  text-decoration: underline;
}

.bb-single-content blockquote {
  border-left: 3px solid var(--bb-accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: rgba(201, 169, 110, 0.06);
  font-style: italic;
  color: #555;
}

.bb-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bb-radius);
  margin-block: 1.5em;
}

/* Tags */
.bb-single-tags {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-single-tag {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-dark);
  border: 1px solid var(--bb-border-dark);
  padding: 6px 14px;
  border-radius: var(--bb-radius-pill);
  text-decoration: none;
  transition: all var(--bb-ease);
}

.bb-single-tag:hover {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: var(--bb-white);
}

/* Back link */
.bb-single-back {
  max-width: 760px;
  margin: 40px auto 0;
}

/* ── Related Posts Section ──────────────────────────────── */
.bb-section--related {
  background: var(--bb-dark);
}

.bb-section--related .bb-section__title,
.bb-section--related .bb-eyebrow {
  color: var(--bb-white);
}

/* ── No Posts ───────────────────────────────────────────── */
.bb-no-posts {
  text-align: center;
  padding: 80px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bb-posts-grid,
  .bb-posts-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bb-posts-grid,
  .bb-posts-grid--related {
    grid-template-columns: 1fr;
  }

  .bb-single-hero {
    min-height: 50vh;
  }
}

/* ==========================================================================
   VIDEO SECTION — Three Layouts
   ========================================================================== */

/* ── Shared base ─────────────────────────────────────────────────────────── */

.bb-section--video {
  background: var(--bb-dark);
  padding: 48px 0;
}

/* Remove section padding when side panels are present — panels fill edge to edge */
.bb-video--has-panels {
  padding: 0;
}

/* Eyebrow visible on dark background */
.bb-section--video .bb-eyebrow {
  color: var(--bb-accent);
}

/* 16:9 aspect-ratio iframe wrapper */
.bb-video__embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.bb-video__embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bb-video__headline {
  color: var(--bb-white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.bb-video__subtext {
  color: var(--bb-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Layout 1: Centered Statement ───────────────────────────────────────── */

.bb-video--centered .bb-video__header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Fixed height — overrides padding-bottom trick (% is relative to parent width, not own width) */
.bb-video--centered .bb-video__embed-wrap {
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  padding-bottom: 0;
  height: 394px;
}

/* ── Facade — YouTube thumbnail + play button ────────────────────────────── */

.bb-video__facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}

.bb-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bb-video__facade:hover .bb-video__thumb {
  transform: scale(1.03);
}

/* Subtle scrim on hover */
.bb-video__facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
  pointer-events: none;
}

.bb-video__facade:hover::after {
  background: rgba(0, 0, 0, 0.22);
}

/* Play button */
.bb-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.bb-video__facade:hover .bb-video__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--bb-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.bb-video__play svg {
  width: 26px;
  height: 26px;
  color: #1a1a1a;
  margin-left: 4px; /* optical center for triangle */
}

/* Hint text below play button */
.bb-video__play-hint {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

/* ── Side Panels ─────────────────────────────────────────────────────────── */

/* 3-column grid: left panel | main content | right panel */
.bb-video__scene {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  width: 100%;
}

/* Center column — restores the padding removed from the section */
.bb-video__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  min-width: 0; /* prevent grid blowout */
}

.bb-video__main .bb-video__embed-wrap {
  width: 100%;
}

/* Panel base */
.bb-video__panel {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 16px;
  text-decoration: none;
  min-height: 480px;
}

/* Gradient overlay */
.bb-video__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.62) 100%);
  transition: opacity 0.3s ease;
}

.bb-video__panel:hover::before {
  opacity: 0.7;
}

/* Icon */
.bb-video__panel-icon {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-shrink: 0;
}

/* Rotated label text */
.bb-video__panel-label {
  position: relative;
  z-index: 1;
  color: var(--bb-white);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  line-height: 1;
  flex-shrink: 0;
}

/* Left panel: icon top-left, label bottom-left reading bottom → top */
.bb-video__panel--left {
  align-items: flex-start;
}

.bb-video__panel--left .bb-video__panel-label {
  transform: rotate(180deg);
}

/* Right panel: label top-right reading top → bottom, icon bottom-right */
.bb-video__panel--right {
  align-items: flex-end;
}

/* ── Layout 2: Side by Side ─────────────────────────────────────────────── */

.bb-video__split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.bb-video--split .bb-video__embed-wrap {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.bb-video__split-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bb-video__split-content .bb-video__headline {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

/* ── Layout 3: Full Width Cinematic ─────────────────────────────────────── */

.bb-video--cinematic {
  padding-bottom: 0;
}

.bb-video__cinematic-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-bottom: 28px;
}

.bb-video__accent-line {
  width: 120px;
  height: 1px;
  background: var(--bb-gold);
  opacity: 0.7;
}

.bb-video__cinematic-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bb-video__headline--cinematic {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Full-width stage — breaks out of container */
.bb-video__cinematic-stage {
  width: 100%;
}

.bb-video__cinematic-stage .bb-video__embed-wrap {
  border-radius: 0;
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.4);
  padding-bottom: 0;
  height: 480px;
}

.bb-video__cinematic-stage .bb-video__facade {
  border-radius: 0;
}

.bb-video__cinematic-stage .bb-video__embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .bb-video__scene {
    grid-template-columns: 1fr;
  }

  .bb-video__panel {
    display: none; /* panels hide on mobile — center content fills full width */
  }

  .bb-video__main {
    padding: 40px 16px;
  }
}

@media (max-width: 768px) {
  .bb-video__split-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bb-video--cinematic .bb-video__cinematic-header {
    padding-bottom: 32px;
  }
}

/* =============================================================================
   YELP — Around the Area
   ============================================================================= */

.bb-section--yelp {
  background: var(--bb-dark);
  padding-top: 80px;
  padding-bottom: 64px;
}

.bb-section--yelp .bb-section__title {
  color: var(--bb-white);
}

/* Category tabs */
.bb-yelp-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.bb-yelp-tab {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  padding: 10px 28px;
  border-radius: var(--bb-radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--bb-ease);
}

.bb-yelp-tab:hover,
.bb-yelp-tab.is-active {
  border-color: var(--bb-white);
  color: var(--bb-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Slider show/hide + contained width */
.bb-yelp-instance {
  display: none;
  max-width: var(--bb-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--bb-pad);
  box-sizing: border-box;
}
.bb-yelp-instance.is-active {
  display: block;
}

.bb-yelp-slider {
  position: relative;
  padding: 0 56px; /* room for nav buttons */
}

/* Nav buttons — white arrow on solid black circle */
.bb-yelp-slider .swiper-button-prev,
.bb-yelp-slider .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: var(--bb-white);
  top: 50%;
  transition: background var(--bb-ease), transform var(--bb-ease);
}

.bb-yelp-slider .swiper-button-prev {
  left: 0;
}

.bb-yelp-slider .swiper-button-next {
  right: 0;
}

.bb-yelp-slider .swiper-button-prev:hover,
.bb-yelp-slider .swiper-button-next:hover {
  background: #222;
  transform: translateY(-50%) scale(1.08);
}

.bb-yelp-slider .swiper-button-prev::after,
.bb-yelp-slider .swiper-button-next::after {
  font-size: 13px;
  font-weight: 800;
}

/* Business card */
.bb-biz-card {
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow: hidden;
  background: var(--bb-dark-2);
  color: var(--bb-white);
  border-radius: var(--bb-radius);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-biz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.bb-biz-card__image {
  width: 100%;
  height: 270px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.bb-biz-card__body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.bb-biz-card__name {
  font-family: var(--bb-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Star rating — two-layer text overlay technique */
.bb-biz-stars {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 16px;
  font-size: 15px;
  line-height: 1;
  margin-top: 2px;
}

.bb-biz-stars::before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.bb-biz-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: #f1c40f;
}

.bb-biz-stars__fill::before {
  content: "★★★★★";
}

.bb-biz-card__reviews {
  font-family: var(--bb-font-heading);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: var(--bb-ls-sm);
  margin: 0;
}

.bb-biz-card__yelp {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  color: var(--bb-accent);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
  .bb-yelp-tabs {
    gap: 8px;
  }
  .bb-yelp-tab {
    padding: 8px 18px;
  }
}

/* =============================================================================
   HOME VALUATION PAGE
   ============================================================================= */

/* Hero */
.bb-val-hero {
  background: var(--bb-dark);
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
}

.bb-val-hero__inner {
  max-width: 780px;
}

.bb-val-hero__eyebrow {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin: 0 0 20px;
}

.bb-val-hero__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--bb-white);
  line-height: 1.1;
  margin: 0 0 24px;
}

.bb-val-hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.bb-val-hero__cta {
  display: inline-block;
}

/* How It Works */
.bb-val-steps {
  background: var(--bb-dark-2);
  padding: clamp(60px, 8vw, 100px) 0;
}

.bb-val-steps__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--bb-white);
  text-align: center;
  margin: 0 0 56px;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
}

.bb-val-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.bb-val-step {
  text-align: center;
  padding: 40px 32px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
}

.bb-val-step__num {
  display: block;
  font-family: var(--bb-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bb-accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.7;
}

.bb-val-step__heading {
  font-family: var(--bb-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-white);
  margin: 0 0 12px;
}

.bb-val-step__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
}

/* Form Section */
.bb-val-form-section {
  background: var(--bb-dark);
  padding: clamp(60px, 8vw, 100px) 0;
}

.bb-val-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bb-dark-2);
  border-radius: var(--bb-radius);
  padding: clamp(32px, 5vw, 60px);
  border: 1px solid var(--bb-border);
}

.bb-val-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.bb-val-form-header__title {
  font-family: var(--bb-font-heading);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--bb-white);
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  margin: 0 0 10px;
}

.bb-val-form-header__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* Section labels within form */
.bb-val-form__section-label {
  font-family: var(--bb-font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--bb-ls);
  color: var(--bb-accent);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bb-border);
}

.bb-val-form__section-label:first-child {
  margin-top: 0;
}

/* Submit button — full width, centered */
.bb-val-form__submit {
  width: 100%;
  justify-content: center;
}

/* Disclaimer — always on its own line below the button */
.bb-val-form__disclaimer {
  flex-basis: 100%;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 4px 0 0;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .bb-form__row--4col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .bb-val-steps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bb-val-step {
    padding: 28px 24px;
  }

  .bb-form__row--3col {
    grid-template-columns: 1fr;
  }

  .bb-form__row--4col {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================================================
   STICKY VIDEO WIDGET
   ============================================================================= */

.bb-vid-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  background: #000;
  transform: translateY(20px);
  opacity: 0;
  animation: bb-vid-enter 0.5s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bb-vid-enter {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bb-vid-widget[hidden] {
  display: none;
}

.bb-vid-widget__inner {
  position: relative;
}

/* 16:9 iframe wrapper */
.bb-vid-widget__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}


.bb-vid-widget__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* prevent YT UI from intercepting clicks */
}

/* Controls bar — must be above the expand overlay (z-index: 2) */
.bb-vid-widget__controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.bb-vid-widget__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.bb-vid-widget__btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.bb-vid-widget__btn svg {
  width: 14px;
  height: 14px;
}

/* Clickable expand overlay */
.bb-vid-widget__expand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0;
}

.bb-vid-widget__inner:hover .bb-vid-widget__expand {
  opacity: 1;
}

.bb-vid-widget__expand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.bb-vid-widget__expand span {
  font-family: var(--bb-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Modal */
.bb-vid-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bb-vid-modal[hidden] {
  display: none;
}

.bb-vid-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.bb-vid-modal__box {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  background: #000;
  animation: bb-modal-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bb-modal-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.bb-vid-modal__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.bb-vid-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bb-vid-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.bb-vid-modal__close:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.bb-vid-modal__close svg {
  width: 16px;
  height: 16px;
}


/* Collapsed bubble — shown after widget is dismissed */
.bb-vid-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bb-accent);
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: bb-vid-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bb-vid-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.bb-vid-bubble[hidden] {
  display: none;
}

.bb-vid-bubble svg {
  width: 22px;
  height: 22px;
  margin-left: 3px; /* optical center for play icon */
}

@media (max-width: 480px) {
  .bb-vid-widget {
    width: 220px;
    bottom: 16px;
    right: 16px;
  }
  .bb-vid-bubble {
    bottom: 16px;
    right: 16px;
  }
}
