/* ============================================================
   Built for Salons — page CSS
   Scope: .hcg-bfs (page-built-for-salons.php). Conditionally
   enqueued in hcg_assets() — loaded only on this page.

   Token-based only — no hardcoded colours. Every surface/text
   colour comes from the theme tokens (--hcg-bg, --hcg-surface,
   --hcg-text, --hcg-muted, ...) so the page is correct in every
   tone (light / dark / auto). This is the fix for the old
   hardcoded-background bug and the pattern for the other
   marketing pages.

   Reused from theme.css (NOT redefined here):
   .hcg-btn*, .hcg-grad, .hcg-eyebrow, .hcg-section-title,
   .hcg-section-sub, .hcg-hairline, .hcg-split*, .hcg-action-row
   ============================================================ */

/* ---------- Layout primitives ---------- */
.hcg-bfs-band { padding: 96px 0; }
.hcg-bfs-band--surface { background: var(--hcg-surface); }
/* Wrap tracks the theme container so the page breathes on large
   desktop screens (and follows the Customizer container setting). */
.hcg-bfs-wrap { max-width: var(--hcg-container-max, 1440px); margin: 0 auto; padding: 0 28px; }
.hcg-bfs .hcg-eyebrow { display: block; margin-bottom: 14px; }

.hcg-bfs-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.hcg-bfs-head .hcg-section-title { font-size: clamp(2rem, 3.4vw, 3rem); }
.hcg-bfs-head .hcg-section-sub { margin: 14px auto 0; text-align: center; }

/* ---------- Hero ---------- */
/* No bottom padding — the visual extends all the way down to the trust
   strip border so the cut-out reads as one continuous composition. */
.hcg-bfs-hero { padding: 120px 0 0; overflow-x: clip; }
/* Two columns: copy on the left, the product visual on the right. The
   visual is a transparent cut-out — its column is bottom-aligned, and the
   <img> is enlarged and pulled left so it overlaps the text edge instead of
   leaving a visible vertical seam in the middle of the hero. */
.hcg-bfs-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  align-items: end;
}
.hcg-bfs-hero__grid > * { border: 0; }
.hcg-bfs-hero__text { padding-right: 0; align-self: center; padding-bottom: 88px; }
.hcg-bfs-hero__visual { padding-left: 0; }
/* Image enlarged, bottom-flush with the hero edge, and pulled left so it
   overlaps the text column. A mask-image fades the left edge into
   transparency so there is no visible vertical seam where the image meets
   the text — this kills the "centre line" that the hard PNG edge would
   otherwise create. */
.hcg-bfs-hero__visual img {
  display: block;
  width: 130%;
  max-width: none;
  height: auto;
  margin-left: -22%;
  margin-bottom: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
          mask-image: linear-gradient(to right, transparent 0%, black 10%);
}
.hcg-bfs-hero__title {
  font-family: var(--hcg-font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 18px 0 0;
}
.hcg-bfs-hero__sub {
  font-family: var(--hcg-font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--hcg-text-2);
  max-width: 46ch;
  margin: 18px 0 0;
}
.hcg-bfs-hero__copy { color: var(--hcg-muted); max-width: 56ch; margin: 16px 0 0; }
.hcg-bfs-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 34px; }
.hcg-bfs-hero__trust { margin-top: 20px; font-size: .85rem; color: var(--hcg-muted); }

/* ---------- Trust strip ---------- */
.hcg-bfs-trust {
  padding: 40px 0;
  border-top: 1px solid var(--hcg-border);
  border-bottom: 1px solid var(--hcg-border);
}
.hcg-bfs-trust__label {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hcg-muted);
  margin: 0 0 22px;
}
/* Infinite logo marquee. The viewport clips + edge-fades; the track
   holds the 13 logos rendered twice and slides by -50% (exactly one
   set width, since each logo carries its own symmetric margin), so
   the second copy takes over seamlessly. ~5 logos visible at a time. */
.hcg-bfs-trust__logos {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hcg-bfs-trust__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: hcg-bfs-marquee 45s linear infinite;
}
.hcg-bfs-trust__logos:hover .hcg-bfs-trust__track { animation-play-state: paused; }
@keyframes hcg-bfs-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Each brand logo sits in a fixed slot so wildly different aspect
   ratios read with uniform visual weight. The SVGs are currentColor,
   so they follow the theme tone — no filter hacks needed. */
.hcg-bfs-trust__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 124px;
  height: 38px;
  margin: 0 clamp(24px, 3.5vw, 52px);
  color: var(--hcg-muted);
  opacity: .8;
  transition: opacity .15s ease, color .15s ease;
}
.hcg-bfs-trust__logo:hover { opacity: 1; color: var(--hcg-text); }
.hcg-bfs-trust__logo svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Reduced motion — no scroll: a static, centred, wrapped single set. */
@media (prefers-reduced-motion: reduce) {
  .hcg-bfs-trust__logos { -webkit-mask-image: none; mask-image: none; }
  .hcg-bfs-trust__track {
    animation: none;
    transform: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hcg-bfs-trust__logo[aria-hidden="true"] { display: none; }
}

/* ---------- Features (real round photos) ---------- */
.hcg-bfs-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.hcg-bfs-feature { text-align: center; }
.hcg-bfs-feature__img {
  width: 184px;
  height: 184px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hcg-border);
}
.hcg-bfs-feature h3 { font-family: var(--hcg-font-heading); font-size: 1.35rem; margin: 0 0 8px; }
.hcg-bfs-feature p { color: var(--hcg-text-2); font-size: .98rem; max-width: 38ch; margin: 0 auto; }

/* ---------- Scenarios ---------- */
.hcg-bfs-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hcg-bfs-scenario {
  background: var(--hcg-bg);
  border: 1px solid var(--hcg-border);
  border-radius: var(--hcg-r-xl);
  padding: 22px;
}
.hcg-bfs-band--surface .hcg-bfs-scenario { background: var(--hcg-surface-2); }
.hcg-bfs-scenario__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--hcg-r-lg);
  margin-bottom: 16px;
}
.hcg-bfs-scenario h3 { font-family: var(--hcg-font-heading); font-size: 1.22rem; margin: 0 0 14px; }
.hcg-bfs-card {
  background: var(--hcg-surface);
  border: 1px solid var(--hcg-border);
  border-radius: var(--hcg-r);
  padding: 14px 16px;
  margin-top: 10px;
}
.hcg-bfs-band--surface .hcg-bfs-card { background: var(--hcg-bg); }
.hcg-bfs-card h4 {
  font-family: var(--hcg-font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hcg-accent);
  margin: 0 0 6px;
}
.hcg-bfs-card p,
.hcg-bfs-card li { font-size: .92rem; color: var(--hcg-text-2); }
.hcg-bfs-card ul { margin: 0; padding-left: 18px; }
.hcg-bfs-scenario-cta { text-align: center; margin-top: 48px; }
.hcg-bfs-scenario-cta p { color: var(--hcg-muted); font-size: .85rem; margin: 12px 0 0; }

/* ---------- Does / Doesn't (dashicons: bicolor + mono) ---------- */
.hcg-bfs-does {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.hcg-bfs-does__card { border: 1px solid var(--hcg-border); border-radius: var(--hcg-r-xl); padding: 28px; }
.hcg-bfs-does__card h3 { font-family: var(--hcg-font-heading); font-size: 1.2rem; margin: 0 0 16px; }
.hcg-bfs-does__card ul { margin: 0; padding: 0; list-style: none; }
.hcg-bfs-does__card li {
  color: var(--hcg-text-2);
  margin: 12px 0;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.hcg-bfs-does__card .dashicons {
  flex: 0 0 auto;
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 1;
}
.hcg-bfs-does__yes { border-top: 3px solid var(--hcg-c1); }
.hcg-bfs-does__no { border-top: 3px solid var(--hcg-muted); }
/* bicolor — brand gradient clipped to the glyph */
.hcg-bfs-does__yes .dashicons {
  background: var(--hcg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* mono */
.hcg-bfs-does__no .dashicons { color: var(--hcg-muted); }
.hcg-bfs-does__copy { text-align: center; color: var(--hcg-text-2); max-width: 60ch; margin: 36px auto 0; }

/* ---------- Hair status tracking (reuses .hcg-split) ---------- */
.hcg-bfs-shot {
  display: block;
  width: 100%;
  /* Portrait product screenshot — cap the width so it stays balanced
     next to the copy column instead of dominating the split. */
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--hcg-r-xl);
  border: 1px solid var(--hcg-border);
}

/* ---------- Plans ---------- */
/* Wrapper only — plans render via [hcgpt-membership-pricing], which
   ships its own styles. No tier styling lives here. */
.hcg-bfs-plans { margin-top: 8px; }

/* ---------- Final CTA ---------- */
.hcg-bfs-final { text-align: center; padding: 110px 0; }
.hcg-bfs-final .hcg-section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 24ch; margin: 0 auto; }
.hcg-bfs-final .hcg-section-sub { margin: 16px auto 0; text-align: center; }
.hcg-bfs-final .hcg-action-row { display: flex; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hcg-bfs-band { padding: 64px 0; }
  .hcg-bfs-hero { padding: 88px 0 56px; }
  .hcg-bfs-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hcg-bfs-hero__text { text-align: center; }
  .hcg-bfs-hero__sub,
  .hcg-bfs-hero__copy { margin-left: auto; margin-right: auto; }
  .hcg-bfs-cta { justify-content: center; }
  .hcg-bfs-hero__visual { max-width: 560px; margin: 0 auto; }
  .hcg-bfs-hero__visual img { width: 100%; }
  .hcg-bfs-features,
  .hcg-bfs-scenarios,
  .hcg-bfs-does { grid-template-columns: 1fr; }
}
