/* cs-quote-band — full-bleed image band with centered white quote + 2 pill CTAs.
   All rem values follow BB Theme's html { font-size: 10px } base — 1.6rem = 16px. */

/* Strip BB's default row padding / module margins around the band so
   adjacent sections butt up against its edges. */
.fl-row-content-wrap:has(.cs-quote-band) {
  padding-block: 0;
}
.fl-module-content:has(.cs-quote-band) {
  margin-block: 0;
}

.cs-quote-band {
  /* Full-bleed break-out of BB row constraint */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 50rem; /* 500px */
  display: flex;
  align-items: center;
  padding-block: var(--cs-space-xl);
  color: var(--cs-white);
  font-family: var(--cs-font-body);
  background-image: var(--cs-quote-band-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

/* Optional dark overlay for text contrast */
.cs-quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--cs-quote-band-overlay, 0));
  z-index: 0;
  pointer-events: none;
}

.cs-quote-band__inner {
  position: relative;
  z-index: 1;
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-md); /* ~29px quote→buttons in the Figma */
  text-align: center;
}

/* Doubled-up class specificity + explicit resets so the quote survives
   BB / theme blockquote styling (italic, border-left, padding). */
.cs-quote-band .cs-quote-band__quote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  max-width: 95rem; /* ~946px per Figma */
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 2vw + 1.2rem, 3.6rem); /* 22px → 36px */
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--cs-white);
  text-wrap: balance;
}

.cs-quote-band__quote p {
  margin: 0;
}

/* CTA row */
.cs-quote-band__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cs-space-sm);
}

/* Shared pill base */
.cs-quote-band .cs-quote-band__cta,
.cs-quote-band .cs-quote-band__cta:link,
.cs-quote-band .cs-quote-band__cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(23.4rem, 100%); /* 234px */
  padding: 1rem 2.4rem;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.6rem; /* 16px */
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-radius: var(--cs-radius-pill);
  border: 2px solid transparent;
  transition: background 250ms ease-in-out, color 250ms ease-in-out, transform 250ms ease-in-out, border-color 250ms ease-in-out, filter 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

/* Style variants */
.cs-quote-band .cs-quote-band__cta--white,
.cs-quote-band .cs-quote-band__cta--white:link,
.cs-quote-band .cs-quote-band__cta--white:visited {
  background: var(--cs-white);
  color: var(--cs-ink);
  border-color: var(--cs-white);
}
.cs-quote-band .cs-quote-band__cta--white.cs-quote-band__cta:hover,
.cs-quote-band .cs-quote-band__cta--white.cs-quote-band__cta:focus-visible {
  background: var(--cs-off-white);
  color: var(--cs-blue-dark);
  transform: translateY(-1px);
}

.cs-quote-band .cs-quote-band__cta--orange,
.cs-quote-band .cs-quote-band__cta--orange:link,
.cs-quote-band .cs-quote-band__cta--orange:visited {
  background: var(--cs-orange);
  color: var(--cs-white);
  border-color: var(--cs-orange);
}
.cs-quote-band .cs-quote-band__cta--orange.cs-quote-band__cta:hover,
.cs-quote-band .cs-quote-band__cta--orange.cs-quote-band__cta:focus-visible {
  background: var(--cs-orange);
  color: var(--cs-white);
  border-color: var(--cs-orange);
  /* Smooth highlight: slight brightness lift, soft orange glow, gentle scale */
  filter: brightness(1.08);
  box-shadow: 0 0.8rem 2rem -0.8rem rgba(252, 127, 86, 0.6);
  transform: scale(1.02);
}

.cs-quote-band .cs-quote-band__cta--blue,
.cs-quote-band .cs-quote-band__cta--blue:link,
.cs-quote-band .cs-quote-band__cta--blue:visited {
  background: var(--cs-blue);
  color: var(--cs-white);
  border-color: var(--cs-blue);
}
.cs-quote-band .cs-quote-band__cta--blue.cs-quote-band__cta:hover,
.cs-quote-band .cs-quote-band__cta--blue.cs-quote-band__cta:focus-visible {
  background: var(--cs-blue-dark);
  color: var(--cs-white);
  border-color: var(--cs-blue-dark);
  transform: translateY(-1px);
}

/* ---------- Flat solid-color variant ---------- */
/* Solid background (color set inline), no image, no overlay, shorter band. */
.cs-quote-band--flat {
  min-height: 24.8rem; /* ~248px per Figma */
  padding-block: 6rem;
  background-image: none;
}

.cs-quote-band--flat::before {
  display: none;
}

.cs-quote-band--flat .cs-quote-band__quote {
  font-weight: 400;
  font-size: clamp(1.6rem, 0.6vw + 1.3rem, 1.8rem); /* 16px → 18px */
  line-height: 1.6;
  color: var(--cs-white);
}

/* Inline links in the quote stay white + underlined */
.cs-quote-band--flat .cs-quote-band__quote a,
.cs-quote-band--flat .cs-quote-band__quote a:link,
.cs-quote-band--flat .cs-quote-band__quote a:visited {
  color: var(--cs-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-quote-band--flat .cs-quote-band__quote a:hover,
.cs-quote-band--flat .cs-quote-band__quote a:focus-visible {
  color: var(--cs-white);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-quote-band {
    min-height: 40rem;
    padding-block: var(--cs-space-lg);
  }
}

@media (max-width: 640px) {
  .cs-quote-band__ctas {
    width: 100%;
    flex-direction: column;
  }
  .cs-quote-band .cs-quote-band__cta {
    width: 100%;
    min-width: 0;
  }
}
