/*
 * Results Page — Case Study Carousels
 * Scoped to .results-* and .cs-* prefixes.
 */

/* ── PAGE HERO ────────────────────────────── */
.results-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: visible;
}
.results-hero::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 40%, rgba(65,190,176,0.08) 0%, rgba(65,190,176,0.03) 40%, transparent 70%);
  pointer-events: none;
}
.results-hero .section-h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.results-hero .section-sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CASE STUDY SECTION ───────────────────── */
.cs-section {
  padding: 96px 0;
  position: relative;
}
.cs-section:nth-child(even of .cs-section) {
  background: var(--navy-3);
}
.cs-section-header {
  margin-bottom: 44px;
}
.cs-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 10px;
}
.cs-title em {
  font-style: italic;
  background: linear-gradient(135deg, #41BEB0 0%, #7dd9d1 60%, #41BEB0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(65,190,176,0.35));
}
.cs-subtitle {
  font-size: 16px;
  color: var(--steel);
  line-height: 1.7;
  max-width: 620px;
}

/* ── SLIDER CONTAINER ─────────────────────── */
.cs-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--teal-border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}
.cs-slides {
  position: relative;
  min-height: 520px;
}
.cs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  display: flex;
  align-items: stretch;
}
.cs-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── SLIDE: HERO QUOTE CARD ───────────────── */
.cs-hero-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.cs-hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background-size: cover;
  background-position: center top;
  background-color: rgba(65,190,176,0.03);
}
.cs-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy-2) 8%, rgba(15,24,37,0.92) 40%, rgba(15,24,37,0.5) 65%, transparent 85%);
}
.cs-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy-2) 0%, rgba(15,24,37,0.4) 30%, transparent 50%);
}
.cs-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px;
  max-width: 55%;
}
.cs-hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.cs-hero-brand img {
  width: 36px;
  height: 36px;
}
.cs-hero-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.cs-hero-brand-text span {
  color: var(--teal);
  display: block;
}
.cs-hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.08;
  color: var(--white);
}
.cs-hero-headline em {
  font-style: normal;
  color: var(--teal);
}

/* ── SLIDE: CONTENT SHARED ────────────────── */
.cs-slide-inner {
  padding: 48px 56px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cs-slide-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cs-slide-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cs-slide-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.35;
  max-width: 560px;
}

/* ── SLIDE: PROBLEM ───────────────────────── */
.cs-problems {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cs-problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cs-problem-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(220,80,60,0.10);
  border: 1px solid rgba(220,80,60,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc503c;
  font-size: 16px;
  margin-top: 2px;
}
.cs-problem-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cs-problem-item p {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.65;
}

/* ── SLIDE: DIAGNOSTIC ────────────────────── */
.cs-diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.cs-diag-stat {
  background: rgba(12,17,29,0.85);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  padding: 20px;
}
.cs-diag-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.cs-diag-lbl {
  font-size: 12px;
  color: var(--steel);
  line-height: 1.5;
}
.cs-diag-summary {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.7;
  padding: 14px 18px;
  background: rgba(65,190,176,0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
}

/* ── SLIDE: FIX ───────────────────────────── */
.cs-fix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cs-fix-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cs-fix-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.cs-fix-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.3;
}
.cs-fix-item p {
  font-size: 12px;
  color: var(--steel);
  line-height: 1.6;
}

/* ── SLIDE: PAYOFF ────────────────────────── */
.cs-payoff-ba {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.cs-payoff-before,
.cs-payoff-after {
  padding: 16px 28px;
  border-radius: 14px;
  text-align: center;
  flex: 1;
  max-width: 220px;
}
.cs-payoff-before {
  background: rgba(58,66,82,0.4);
  border: 1px solid rgba(58,66,82,0.6);
}
.cs-payoff-after {
  background: rgba(65,190,176,0.08);
  border: 1px solid var(--teal-border);
}
.cs-payoff-ba-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.cs-payoff-ba-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
}
.cs-payoff-before .cs-payoff-ba-val { color: var(--steel); }
.cs-payoff-after  .cs-payoff-ba-val { color: var(--teal); }
.cs-payoff-arrow {
  color: var(--teal);
  font-size: 22px;
  flex-shrink: 0;
}
.cs-payoff-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.cs-payoff-metric {
  background: rgba(12,17,29,0.85);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.cs-payoff-metric-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 4px;
}
.cs-payoff-metric-lbl {
  font-size: 11px;
  color: var(--steel);
  line-height: 1.3;
}
.cs-payoff-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--mist);
  line-height: 1.65;
  padding: 14px 20px;
  background: rgba(65,190,176,0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
}

/* ── SLIDER NAV ───────────────────────────── */
.cs-nav {
  display: flex;
  gap: 4px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(58,66,82,0.25);
}
.cs-nav-btn {
  flex: 1;
  position: relative;
  padding: 10px 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: background 0.2s;
}
.cs-nav-btn:hover { background: rgba(65,190,176,0.04); }
.cs-nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s;
}
.cs-nav-btn.active .cs-nav-label { color: var(--white); }
.cs-nav-track {
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(58,66,82,0.45);
  border-radius: 1px;
  overflow: hidden;
}
.cs-nav-fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  border-radius: 1px;
}

/* ── SCROLL ENTRANCE ──────────────────────── */
.cs-enter {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.cs-enter[data-dir="ltr"] {
  transform: translateX(-60px);
}
.cs-enter.vis {
  opacity: 1;
  transform: translateX(0);
}

/* ── SECTION CTA ──────────────────────────── */
.cs-cta {
  margin-top: 36px;
  text-align: center;
}
.cs-cta-line {
  font-size: 15px;
  color: var(--mist);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ── FINAL CTA ────────────────────────────── */
.results-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.results-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(65,190,176,0.055) 0%, transparent 68%);
}
.results-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 46px;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
}
.results-cta h2 em {
  font-style: italic;
  color: var(--teal);
}
.results-cta p {
  font-size: 17px;
  color: var(--steel);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  position: relative;
}
.results-cta .btn { position: relative; }

/* ── CALENDAR EMBED ──────────────────────── */
.results-cal-embed {
  position: relative;
  max-width: 680px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--teal-border);
  background: var(--card-bg);
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}
.results-cal-embed iframe {
  display: block;
}
.results-cta-alt {
  position: relative;
  margin-bottom: 8px;
}
.results-cta-alt-text {
  font-size: 14px;
  color: var(--steel);
  margin: 0 auto 14px;
  max-width: 420px;
  line-height: 1.6;
}

.results-cta .cta-trust {
  margin-top: 32px;
  position: relative;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .cs-title { font-size: 30px; }
  .cs-hero-headline { font-size: 34px; }
  .cs-hero-content { max-width: 65%; padding: 36px; }
  .cs-hero-photo { width: 50%; }
  .cs-slide-inner { padding: 36px; }
  .cs-fix-grid { grid-template-columns: 1fr; }
  .cs-payoff-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-payoff-ba { flex-wrap: wrap; justify-content: center; }
  .results-cta h2 { font-size: 36px; }
}

@media (max-width: 600px) {
  .results-hero { padding: 120px 0 48px; }
  .results-hero .section-h2 { font-size: 32px !important; }
  .cs-section { padding: 60px 0; }
  .cs-title { font-size: 26px; }
  .cs-slides { min-height: auto; }
  .cs-slide {
    position: relative;
    display: none;
    min-height: auto;
  }
  .cs-slide.active { display: flex; }
  .cs-hero-card { flex-direction: column; min-height: auto; }
  .cs-hero-photo {
    position: relative;
    width: 100%;
    height: 200px;
  }
  .cs-hero-photo::before {
    background: linear-gradient(to bottom, transparent 30%, var(--navy-2) 100%);
  }
  .cs-hero-content { max-width: 100%; padding: 24px; }
  .cs-hero-headline { font-size: 28px; }
  .cs-slide-inner { padding: 24px; }
  .cs-slide-heading { font-size: 18px; }
  .cs-diag-grid { grid-template-columns: 1fr; }
  .cs-diag-val { font-size: 22px; }
  .cs-fix-grid { grid-template-columns: 1fr; }
  .cs-payoff-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-payoff-ba-val { font-size: 22px; }
  .cs-payoff-before,
  .cs-payoff-after { padding: 12px 18px; flex: auto; max-width: none; }
  .cs-nav { flex-wrap: wrap; gap: 2px; padding: 10px 14px 14px; }
  .cs-nav-btn { flex: 0 0 auto; padding: 8px 8px 14px; }
  .cs-nav-label { font-size: 10px; letter-spacing: 0.04em; }
  .results-cta h2 { font-size: 28px; }
  .results-cta { padding: 80px 0; }
  .results-cal-embed { border-radius: 12px; margin-bottom: 32px; }
  .results-cal-embed iframe { min-height: 700px !important; }
  .cs-enter { transform: translateX(40px); }
  .cs-enter[data-dir="ltr"] { transform: translateX(-40px); }
}
