/* ===========================
   Back Nine Franchise (scoped)
   =========================== */
.b9-franchise{
  --b9f-bg:#0b0f14;
  --b9f-surface: rgba(255,255,255,0.06);
  --b9f-card: rgba(255,255,255,0.10);
  --b9f-border: rgba(255,255,255,0.16);
  --b9f-text: rgba(255,255,255,0.92);
  --b9f-muted: rgba(255,255,255,0.72);
  --b9f-green: #8bc53f;
  --b9f-blue: #7aa7ff;

  color: var(--b9f-text);
  background: var(--b9f-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.b9-franchise *{ box-sizing:border-box; }
.b9-franchise img{ max-width:100%; height:auto; display:block; }
.b9-franchise a{ color:inherit; text-decoration:none; }

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

.b9f-h1,.b9f-h2,.b9f-h3{ margin:0 0 .7rem 0; line-height:1.08; }
.b9f-h1{ font-size: clamp(2rem, 3.4vw, 3.25rem); text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.b9f-h2{ font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.b9f-h3{ font-size: 1.15rem; letter-spacing: .02em; color: var(--b9f-muted); }

.b9f-accent{ color: var(--b9f-green); }
.b9f-lede{ color: var(--b9f-muted); margin:0 0 1.1rem; max-width: 70ch; }
.b9f-link{ color: var(--b9f-green); font-weight: 800; }

.b9f-actions{ display:flex; flex-wrap:wrap; gap:.75rem; margin: 1rem 0 1.25rem; }

.b9f-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.78rem 1.05rem;
  border-radius:999px;
  border:1px solid var(--b9f-border);
  background: rgba(255,255,255,0.06);
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
}
.b9f-btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.b9f-btn--primary{
  background: var(--b9f-green);
  color:#0b0f14;
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.b9f-btn--ghost{ background: transparent; }

.b9f-quote{
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--b9f-border);
  background: rgba(0,0,0,0.25);
}
.b9f-quote p{ margin:0 0 .6rem; color: var(--b9f-muted); }
.b9f-quote cite{ font-style: normal; color: rgba(255,255,255,0.82); font-weight: 700; }
.b9f-quote--center{ text-align:center; }

/* HERO */
.b9f-hero{
  position: relative;
  padding: clamp(2.5rem, 5vw, 5.25rem) 0;
  border-bottom: 1px solid var(--b9f-border);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(122,167,255,0.18), transparent 55%),
    radial-gradient(900px 520px at 80% 15%, rgba(139,197,63,0.14), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.35));
  overflow:hidden;
}
.b9f-hero__overlay{
  position:absolute; inset:0;
  background: radial-gradient(1200px 520px at 50% 45%, transparent 35%, rgba(0,0,0,0.62));
  pointer-events:none;
}
.b9f-hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items:center;
}
.b9f-callout{ margin: 1rem 0 0; color: rgba(255,255,255,0.86); font-weight: 700; }
.b9f-hero__media{ border-radius: 18px; overflow:hidden; border:1px solid var(--b9f-border); background: rgba(255,255,255,0.04); }
.b9f-video{ width:100%; height:auto; display:block; }

/* MARQUEE */
.b9f-marquee{
  border-top:1px solid var(--b9f-border);
  border-bottom:1px solid var(--b9f-border);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
  white-space: nowrap;
}
.b9f-marquee__track{
  display:inline-flex;
  gap: .35rem;
  padding: .85rem 0;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  will-change: transform;
}
.b9f-marquee--alt{ background: rgba(0,0,0,0.22); }

/* START */
.b9f-start{ padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.b9f-start__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items:start;
}
.b9f-steps{ display:grid; gap:.8rem; }
.b9f-step{
  border-radius: 18px;
  border:1px solid var(--b9f-border);
  background: rgba(255,255,255,0.04);
  padding: .95rem 1rem;
}
.b9f-step__num{
  display:inline-block;
  font-weight: 900;
  color: rgba(255,255,255,0.78);
  margin-bottom: .35rem;
}
.b9f-step strong{ display:block; margin-bottom:.25rem; }
.b9f-step p{ margin:0; color: var(--b9f-muted); }

/* MID */
.b9f-mid{
  background: radial-gradient(900px 520px at 12% 10%, rgba(122,167,255,0.10), transparent 60%),
              radial-gradient(900px 520px at 88% 12%, rgba(139,197,63,0.10), transparent 60%),
              rgba(255,255,255,0.01);
  border-top:1px solid var(--b9f-border);
  border-bottom:1px solid var(--b9f-border);
}
.b9f-limited{ padding: 2.25rem 0 0; }
.b9f-card{
  border-radius: 18px;
  border:1px solid var(--b9f-border);
  background: rgba(0,0,0,0.25);
  overflow:hidden;
}
.b9f-embed{ position:relative; width:100%; aspect-ratio: 16/9; }
.b9f-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.b9f-tag{
  display:block;
  padding: .85rem 1rem;
  color: rgba(255,255,255,0.82);
  font-style: normal;
  font-weight: 800;
}

.b9f-form{ padding: 2.25rem 0; }
.b9f-form__grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items:start;
}
.b9f-form__embed{
  min-height: 780px;
  border-radius: 18px;
  border:1px solid var(--b9f-border);
  background: rgba(0,0,0,0.22);
  overflow:hidden;
}
.b9f-form__embed iframe{ width:100%; height:100%; border:0; }

.b9f-why{ padding: 0 0 2.25rem; }
.b9f-why__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items:start;
}

/* LEADER */
.b9f-leader{
  padding: 2.25rem 0;
  border-top:1px solid var(--b9f-border);
  background: rgba(255,255,255,0.02);
}
.b9f-leader__grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items:center;
}
.b9f-leader__aside{
  border-radius: 18px;
  border:1px solid var(--b9f-border);
  background: rgba(0,0,0,0.25);
  padding: 1rem;
}

/* SOCIAL */
.b9f-social{
  padding: 1.75rem 0 2.25rem;
}
.b9f-social__list{
  list-style:none;
  display:flex;
  gap: .75rem;
  padding: .8rem 0 0;
  margin:0;
  align-items:center;
}
.b9f-social__list a{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius: 999px;
  border:1px solid var(--b9f-border);
  background: rgba(255,255,255,0.06);
  transition: transform 140ms ease, background 140ms ease;
}
.b9f-social__list a:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.10); }
.b9f-social__list img{ width:20px; height:20px; }

/* Reveal animation (AOS replacement) */
.b9-franchise [data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.b9-franchise [data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .b9f-hero__grid,
  .b9f-start__grid,
  .b9f-form__grid,
  .b9f-why__grid,
  .b9f-leader__grid{ grid-template-columns: 1fr; }

  .b9f-hero__media{ order: -1; }
  .b9f-form__embed{ min-height: 980px; }
}

/* ===========================
   FRANCHISE – POLISH PATCH
   =========================== */

/* 1) Reduce the "fog" in the hero by lightening the overlay */
.b9-franchise .b9f-hero::before { display: none !important; } /* if you have one */
.b9-franchise .b9f-hero__overlay{
  background: radial-gradient(1100px 520px at 42% 38%, transparent 40%, rgba(0,0,0,0.50)) !important;
}

/* 2) Give the hero more contrast + less muddy gradient */
.b9-franchise .b9f-hero{
  background:
    radial-gradient(900px 520px at 16% 12%, rgba(122,167,255,0.20), transparent 60%),
    radial-gradient(900px 520px at 86% 18%, rgba(139,197,63,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.45)) !important;
}

/* 3) Fix the video "bar" issue: enforce a real 16:9 box */
.b9-franchise .b9f-hero__media{
  align-self: start;
  max-width: 560px;
  width: 100%;
}

.b9-franchise .b9f-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #000;
}

/* 4) Make layout feel more like live: left content wider, video right */
.b9-franchise .b9f-hero__grid{
  grid-template-columns: 1.15fr 0.85fr !important;
  align-items: start !important;
  gap: 2rem !important;
}

/* 5) Fix H1 wrapping/scale so "Back Nine Franchise" reads as intended */
.b9-franchise .b9f-h1{
  max-width: 18ch;              /* forces a nicer wrap */
  letter-spacing: 0.005em;
}

.b9-franchise .b9f-h1 .b9f-accent{
  display: inline;              /* ensure it doesn't drop to its own centered line */
  white-space: nowrap;          /* keep “Back Nine Franchise” together when possible */
}

/* 6) Tighten quote box so it doesn't look oversized */
.b9-franchise .b9f-quote{
  padding: 0.9rem 0.95rem !important;
  border-radius: 16px !important;
}

/* 7) CTA button consistent */
.b9-franchise .b9f-btn--primary{
  background: #8bc53f !important;
  color: #0b0f14 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35) !important;
}

/* Mobile safety */
@media (max-width: 980px){
  .b9-franchise .b9f-h1 .b9f-accent{ white-space: normal; }
  .b9-franchise .b9f-hero__media{ max-width: 100%; }
}

/* ===========================
   FRANCHISE – Use LIVE hero backgrounds (mobile + desktop)
   =========================== */

/* Base (mobile/tablet) */
.b9-franchise .b9f-hero{
  background-image: url("https://thebackninegolf.com/wp-content/themes/backnine/assets/images/own-a-franchise-hero-mobile.webp") !important;
  background-size: cover !important;
  background-position: top right !important;
  background-repeat: no-repeat !important;
  background-color: #0b0f14 !important;
  padding: 3em 0 !important;
}

/* Desktop override (matches live) */
@media screen and (min-width: 1024px) {
  .b9-franchise .b9f-hero{
    background-image: url("https://thebackninegolf.com/wp-content/themes/backnine/assets/images/own-a-franchise-hero.webp") !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-color: #3d3d3d !important;
    padding: 5em 0 !important;
  }
}

/* The live hero art already provides contrast—reduce extra "fog" overlays */
.b9-franchise .b9f-hero__overlay{
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.10)) !important;
}

/* If you still see it too dark, you can soften it slightly */
.b9-franchise .b9f-hero__overlay{
  opacity: 0.9 !important;
}

/* Video player: enforce correct height */
.b9-franchise .b9f-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #000;
}

/* ===========================
   FRANCHISE – FORCE TEXT COLORS (wins against global theme)
   Paste LAST
   =========================== */

.b9-franchise,
.b9-franchise *{
  color: inherit;
}

/* Headings */
.b9-franchise .b9f-hero .b9f-hero__content h1.b9f-h1,
.b9-franchise .b9f-hero .b9f-hero__content h2.b9f-h2,
.b9-franchise .b9f-start h2.b9f-h2,
.b9-franchise .b9f-form h2.b9f-h2,
.b9-franchise .b9f-why h2.b9f-h2,
.b9-franchise .b9f-leader h2.b9f-h2,
.b9-franchise .b9f-social strong{
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
}

/* Accent text */
.b9-franchise .b9f-accent{
  color: #8bc53f !important;
  -webkit-text-fill-color: #8bc53f !important;
}

/* Paragraph / lede */
.b9-franchise .b9f-lede,
.b9-franchise .b9f-lede *{
  color: rgba(255,255,255,0.78) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.78) !important;
}

/* Blockquotes */
.b9-franchise blockquote.b9f-quote,
.b9-franchise blockquote.b9f-quote p,
.b9-franchise blockquote.b9f-quote cite{
  col
