/* cs-quote-photo — testimonial quote over a large rounded photo with a
   glass CTA and an italic caption line below.
   All rem values follow BB Theme's html { font-size: 10px } base — 1.8rem = 18px.
   Selectors are doubled-up where they must survive BB Global Styles. */

/* Strip BB's default row chrome so decorations meet the neighbouring sections. */
.fl-row-content-wrap:has(.cs-quote-photo) {
  padding-block: 0;
}
.fl-module-content:has(.cs-quote-photo) {
  margin-block: 0;
}

.cs-quote-photo {
  position: relative;
  /* xl, not the 2xl the other bands use — client asked for a compact quote
     band, not a full-height feature block (change request 2026-09-13, T2.2) */
  padding-block: var(--cs-space-xl);
  font-family: var(--cs-font-body);
  color: var(--cs-ink);
}

.cs-quote-photo__inner {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.cs-quote-photo__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-md);
  margin-bottom: var(--cs-space-md);
}

.cs-quote-photo__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: 1.8rem; /* 18px */
  line-height: 1.212;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cs-blue);
}

.cs-quote-photo__eyebrow-line {
  width: 5rem;
  height: 0.2rem;
  background: var(--cs-blue);
}

/* Doubled classes + font-style so BB Global h2 rules lose. */
.cs-quote-photo .cs-quote-photo__heading {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: clamp(3rem, 2.5vw + 1rem, 4rem); /* 30px → 40px */
  font-style: normal;
  line-height: 1.212;
  letter-spacing: var(--cs-tracking-tight);
  color: var(--cs-ink);
  text-wrap: balance;
}

.cs-quote-photo .cs-quote-photo__heading .cs-quote-photo__heading-accent {
  color: var(--cs-blue);
}

.cs-quote-photo__subtitle {
  margin: 0;
  max-width: 65.4rem;
  font-family: var(--cs-font-display);
  font-weight: 400;
  font-size: 2.4rem; /* 24px */
  line-height: 1.212;
  color: var(--cs-blue);
  text-transform: none;
  text-wrap: balance;
}

/* ---------- Photo card ---------- */
.cs-quote-photo__card {
  position: relative;
  margin: 0;
  border-radius: 4rem; /* 40px */
  overflow: hidden;
  /* no min-height — the band hugs its content so the section stays compact */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-quote-photo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.cs-quote-photo__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, 0.55);
}

/* No background photo set: solid card-blue fill (same blue as the services
   grid / focus cards) instead of the translucent scrim over the page bg —
   white copy stays AA-readable (4.53:1 on #5077B3). */
.cs-quote-photo__card:not(:has(.cs-quote-photo__image)) {
  background: var(--cs-primary);
}

.cs-quote-photo__card:not(:has(.cs-quote-photo__image)) .cs-quote-photo__overlay {
  display: none;
}

.cs-quote-photo__card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cs-space-md);
  padding: var(--cs-space-lg);
  width: 100%;
}

/* Quote — Medium Italic white, centered */
.cs-quote-photo__quote {
  margin: 0;
  padding: 0;
  border: 0; /* kill the theme's default blockquote bar */
  max-width: 86rem;
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2rem; /* 20px */
  line-height: 1.212;
  color: var(--cs-white);
  text-align: center;
  text-transform: none;
}

.cs-quote-photo__quote p {
  margin: 0 0 var(--cs-space-sm);
}
.cs-quote-photo__quote p:last-child {
  margin-bottom: 0;
}

/* Glass CTA — frosted pill per Figma (418×63, radius 6, blur) */
.cs-quote-photo .cs-quote-photo__cta,
.cs-quote-photo .cs-quote-photo__cta:link,
.cs-quote-photo .cs-quote-photo__cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(41.8rem, 100%);
  min-height: 6.3rem;
  padding: 1.2rem 3.2rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.21);
  backdrop-filter: blur(12.6px);
  -webkit-backdrop-filter: blur(12.6px);
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: 2rem; /* 20px */
  line-height: 1.212;
  color: var(--cs-off-white);
  text-align: center;
  text-decoration: none;
  transition: background 250ms ease-in-out, border-color 250ms ease-in-out, transform 250ms ease-in-out;
}

.cs-quote-photo .cs-quote-photo__cta.cs-quote-photo__cta:hover,
.cs-quote-photo .cs-quote-photo__cta.cs-quote-photo__cta:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--cs-white);
  text-decoration: none;
  transform: scale(1.02);
}

/* ---------- Caption ---------- */
.cs-quote-photo__caption {
  margin-top: var(--cs-space-md);
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2rem; /* 20px */
  line-height: 1.212;
  color: var(--cs-ink);
  text-align: center;
  text-transform: none;
}

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

.cs-quote-photo .cs-quote-photo__caption a,
.cs-quote-photo .cs-quote-photo__caption a:link,
.cs-quote-photo .cs-quote-photo__caption a:visited {
  color: var(--cs-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.cs-quote-photo .cs-quote-photo__caption.cs-quote-photo__caption a:hover,
.cs-quote-photo .cs-quote-photo__caption.cs-quote-photo__caption a:focus-visible {
  color: var(--cs-blue);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-quote-photo {
    padding-block: var(--cs-space-section-sm);
  }
  .cs-quote-photo .cs-quote-photo__cta,
  .cs-quote-photo .cs-quote-photo__cta:link,
  .cs-quote-photo .cs-quote-photo__cta:visited {
    min-width: 0;
    width: 100%;
    max-width: 41.8rem;
  }
}
