/* ==========================================================================
   solutions-page.css — Solutions listing page
   An interactive "which team are you" tab switcher, not a scrolling list
   of rows — deliberately distinct from the Case Studies listing page.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.solp-hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: linear-gradient(160deg, #0a0f1c 0%, #0f1a2e 50%, #0a0f1c 100%);
  min-height: 56.67vh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 11vw, 8rem) var(--section-pad-x) 1.5rem;
  text-align: center;
}

.solp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(0, 153, 64, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(37, 99, 235, 0.14) 0%, transparent 55%);
}

.solp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.solp-hero__eyebrow {
  color: #5ee6a8;
}

.solp-hero__title {
  color: #f8fafc;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.solp-hero__highlight {
  color: #5b9dff;
}

.solp-hero__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Switcher ─────────────────────────────────────────────────────────── */
.solp-switcher {
  text-align: left;
}

.solp-switcher__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.solp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--btn-pad-sm);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.solp-tab:hover {
  transform: translateY(-2px);
  color: #f8fafc;
}

.solp-tab.is-active {
  background: #2563eb;
  border-color: transparent;
  color: #fff;
}

/* ── Panel ────────────────────────────────────────────────────────────── */
/* Shifted down + compensated with an equal negative bottom margin (net
   zero effect on document flow) so the card pokes past the hero's own
   box and the dark header background cuts across it. */
.solp-switcher__panel {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #12181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 27rem;
  margin-top: 4.375rem;
  margin-bottom: -9.8125rem;
}

.solp-panel__media {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.solp-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solp-panel__body {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solp-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: var(--tag-pad);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-blue);
  background: color-mix(in srgb, #2563eb 12%, white);
  margin-bottom: 1.1rem;
}

.solp-panel__title {
  font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solp-panel__excerpt {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solp-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #fff;
  background: #2563eb;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solp-panel__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 760px) {
  .solp-switcher__panel {
    grid-template-columns: 1fr;
  }

  .solp-panel__media {
    aspect-ratio: 16 / 10;
  }
}

/* ── CTA band ─────────────────────────────────────────────────────────── */
.solp-cta {
  padding: clamp(11.5rem, 17vw, 13.5rem) var(--section-pad-x) clamp(4rem, 7vw, 5.5rem);
  background: var(--bg);
}

.solp-cta__inner {
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: #0a0e14;
  padding: var(--cta-box-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.solp-cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 15% 50%, rgba(0, 201, 87, 0.18) 0%, transparent 60%);
}

.solp-cta__text {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.solp-cta__title {
  color: #fff;
  font-weight: 900;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.solp-cta__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.solp-cta__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--btn-pad-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-btn-primary);
}

.solp-cta__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-primary-hover);
}

@media (max-width: 600px) {
  .solp-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
