/* ==========================================================================
   Customer Spotlight — dark section with horizontal-snap testimonial carousel
   ========================================================================== */
.spotlight {
  background: #1f1f24;
  color: #fff;
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.spotlight__inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-head-body);
  max-width: 1280px;
  margin-inline: auto;
}

/* ---- Section header ---- */
.spotlight__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.spotlight__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: var(--eyebrow-fs);
  font-weight: var(--eyebrow-fw);
  letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.spotlight__chip i,
.spotlight__chip [data-lucide] {
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--r-pill);
  padding: 4px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  color: var(--color-primary-light);
}
.spotlight__title {
  font-family: var(--font-display);
  font-size: var(--fs-section-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.spotlight__lede {
  font-size: var(--fs-section-lede);
  line-height: var(--lh-section-lede);
  color: rgba(255, 255, 255, 0.62);
  max-width: 700px;
  margin: 0;
}

/* ---- Carousel ---- */
.spotlight__carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.spotlight__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0;
  /* Hide scrollbar but keep scroll behavior */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.spotlight__track::-webkit-scrollbar { display: none; }

/* Each testimonial card — base layout (color comes from data-tone) */
.sl-card {
  flex: 0 0 min(880px, 92%);
  scroll-snap-align: start;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #2c2745 0%, #211d36 100%);
}

/* Per-card colour tones (matches Figma's varied spotlight cards) */
.sl-card[data-tone="violet"] {
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.35), transparent 55%),
    linear-gradient(180deg, #2c2745 0%, #211d36 100%);
}
/* Plum tone is repurposed as a light, warm dusty-pink so card 2 stands
   out against the dark violet (1) and dark teal (3) cards on either side. */
.sl-card[data-tone="plum"] {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #d8c0b0 0%, #c5a896 100%);
  border-color: rgba(36, 28, 110, 0.06);
  color: var(--color-text);
}
.sl-card[data-tone="plum"] .sl-card__name { color: var(--color-text); }
.sl-card[data-tone="plum"] .sl-card__quote { color: rgba(36, 36, 38, 0.78); }
.sl-card[data-tone="plum"] .sl-card__optim { color: rgba(36, 36, 38, 0.55); }
.sl-card[data-tone="plum"] .sl-card__bullets li { color: rgba(36, 36, 38, 0.78); }
.sl-card[data-tone="plum"] .sl-card__bullets li::before { color: rgba(36, 36, 38, 0.45); }
.sl-card[data-tone="plum"] .sl-card__meta dt { color: rgba(36, 36, 38, 0.55); }
.sl-card[data-tone="plum"] .sl-card__meta dd { color: var(--color-text); }
.sl-card[data-tone="plum"] .sl-card__logo {
  color: rgba(36, 36, 38, 0.6);
  -webkit-text-fill-color: rgba(36, 36, 38, 0.6);
  text-shadow: none;
}
.sl-card[data-tone="teal"] {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(180deg, #1f3a4d 0%, #0f1e2e 100%);
  border-color: rgba(56, 189, 248, 0.08);
}

/* ───────────────── Minimal variant ─────────────────
   Single-column dusty-pink card with brand mark top-left and
   name + quote anchored to the bottom. Used when a card needs
   the focus to be on the brand + words, not on a person photo.
   Higher specificity (.sl-card.sl-card--minimal) so it overrides
   the [data-tone] backgrounds. */
.sl-card.sl-card--minimal {
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, #d8c0b0 0%, #c5a896 100%);
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-height: clamp(420px, 52vh, 560px);
}
.sl-card--minimal .sl-card__copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sl-card--minimal .sl-card__brand {
  margin-bottom: 0;
  flex: 1; /* push the bottom group down */
}
.sl-card--minimal .sl-card__logo {
  color: rgba(36, 36, 38, 0.55);
  -webkit-text-fill-color: rgba(36, 36, 38, 0.55);
  text-shadow: none;
  font-size: 24px;
}
.sl-card--minimal .sl-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
}
.sl-card--minimal .sl-card__name {
  color: var(--color-text);
  font-size: 28px;
}
.sl-card--minimal .sl-card__quote {
  color: rgba(36, 36, 38, 0.78);
}

.sl-card__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sl-card__brand { margin-bottom: clamp(80px, 10vw, 140px); }
.sl-card__logo {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #2a1a4f 0%, #15032e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Subtle stylized monogram */
  text-shadow: 0 0 0 transparent;
  padding: 6px 14px;
  border-radius: 6px;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.04));
  background-color: rgba(0,0,0,0);
}
.sl-card__logo::before {
  content: attr(data-mono);
}
/* Glyph-style mono logo using a simple bold mark */
.sl-card__logo {
  background: transparent;
  color: #1a0f3a;
  font-style: italic;
  -webkit-text-fill-color: #1a0f3a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.sl-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.sl-card__quote {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 56ch;
}
.sl-card__optim {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
}
.sl-card__bullets {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sl-card__bullets li {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.sl-card__bullets li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: rgba(255, 255, 255, 0.45);
}

/* Right column: photo + meta */
.sl-card__person {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.sl-card__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(180deg, #565666 0%, #3a3a48 100%);
  align-self: flex-end;
  position: relative;
  overflow: hidden;
}
.sl-card__photo[data-initials]::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-ui);
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.sl-card__photo.has-image {
  background-size: cover;
  background-position: center top;
}
.sl-card__photo.has-image::before { display: none; }

.sl-card__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.sl-card__meta > div { display: flex; flex-direction: column; gap: 2px; }
.sl-card__meta dt {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
  letter-spacing: 0.005em;
}
.sl-card__meta dd {
  font-size: 14px;
  color: #fff;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* ---- Controls ---- */
.spotlight__nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.spotlight__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.spotlight__btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.spotlight__btn i,
.spotlight__btn [data-lucide] { width: 18px; height: 18px; }

/* Progress indicator */
.spotlight__progress {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-top: 8px;
}
.spotlight__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--color-primary-light);
  width: 33.33%; /* default first card */
  transition: width 320ms var(--ease), transform 320ms var(--ease);
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .sl-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .sl-card__brand { margin-bottom: 12px; }
  .sl-card__person {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
  }
  .sl-card__photo { align-self: start; aspect-ratio: 1 / 1.1; }
  .sl-card__photo[data-initials]::before { font-size: 38px; }
}
@media (max-width: 560px) {
  .sl-card {
    padding: 22px;
    flex: 0 0 calc(100% - 24px);
    grid-template-columns: 1fr;
  }
  .sl-card__person { grid-template-columns: 1fr; gap: 16px; }
  .sl-card__photo { max-width: 180px; align-self: flex-start; }
  .sl-card__name { font-size: 22px; }
  .sl-card__quote { font-size: 14.5px; }
  .spotlight__inner { gap: 40px; }
  .spotlight__track { padding-inline: var(--container-px); margin-inline: calc(var(--container-px) * -1); }
}
