/* ============================================================
   Solutions Page — Premium SaaS Design
   Extends main.css — enqueued on page-solutions.php
   Hero section matches industries-styles.css exactly
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   Section 1: Hero  (identical to ind-hero)
   ═══════════════════════════════════════════════════════════════ */

.sol-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: transparent;
  color: #fff;
}

.sol-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.04);
  transition: transform 10s ease;
}

.sol-hero:hover .sol-hero__bg {
  transform: scale(1);
}

.sol-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 0.18) 0%,
    rgba(10, 15, 30, 0.55) 55%,
    rgba(10, 15, 30, 0.88) 100%
  );
  z-index: 1;
}

.sol-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: none;
}

.sol-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  text-align: left;
  min-height: unset;
  padding-bottom: 80px;
  padding-top: 160px;
}

.sol-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0;
}

.sol-hero__copy .eyebrow {
  margin: 0 0 20px;
}

.sol-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
}

.sol-hero__desc,
.sol-hero__copy p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
  max-width: 560px;
}

.sol-hero__actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.sol-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 320px;
  align-self: end;
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.sol-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: background .2s ease;
}

.sol-hero__stat:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sol-hero__stat strong {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.sol-hero__stat span {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════════════════════
   Section 2: Alternating Solution Sections
   ═══════════════════════════════════════════════════════════════ */

.sol-section {
  padding: 96px 0;
}

.sol-section--light {
  background: #ffffff;
}

.sol-section--soft {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.sol-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sol-section__grid--reverse {
  direction: rtl;
}

.sol-section__grid--reverse > * {
  direction: ltr;
}

.sol-section__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.sol-section__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sol-section:hover .sol-section__media img {
  transform: scale(1.04);
}

.sol-section__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 40%,
    rgba(15, 23, 42, 0.15) 100%
  );
  pointer-events: none;
}

.sol-section__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.sol-section__badge--blue   { color: #2563eb; }
.sol-section__badge--violet { color: #7c3aed; }
.sol-section__badge--amber  { color: #d97706; }
.sol-section__badge--red    { color: #dc2626; }
.sol-section__badge--green  { color: #16a34a; }
.sol-section__badge--cyan   { color: #0891b2; }

.sol-section__copy {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.sol-section__copy .eyebrow {
  margin-bottom: 4px;
}

.sol-section__title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

.sol-section__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0;
}

.sol-section__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sol-section__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.sol-section__feature:hover {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateX(4px);
}

.sol-section__feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sol-section:nth-child(1) .sol-section__feature-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.sol-section:nth-child(2) .sol-section__feature-icon { background: linear-gradient(135deg, #faf5ff, #ede9fe); color: #7c3aed; }
.sol-section:nth-child(3) .sol-section__feature-icon { background: linear-gradient(135deg, #fefce8, #fef08a); color: #ca8a04; }
.sol-section:nth-child(4) .sol-section__feature-icon { background: linear-gradient(135deg, #fef2f2, #fecaca); color: #dc2626; }
.sol-section:nth-child(5) .sol-section__feature-icon { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
.sol-section:nth-child(6) .sol-section__feature-icon { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0891b2; }

.sol-section__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sol-section__feature-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.sol-section__feature-text span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.sol-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.15s ease;
  margin-top: 4px;
  width: fit-content;
}

.sol-section__cta .dg-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.sol-section__cta:hover {
  color: var(--blue-dark);
  gap: 12px;
}

.sol-section__cta:hover .dg-icon {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   Section 3: Stats Bar
   ═══════════════════════════════════════════════════════════════ */

.sol-stats-bar {
  padding: 56px 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.sol-stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sol-stats-bar__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.sol-stats-bar__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sol-stats-bar__item:nth-child(1) .sol-stats-bar__icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.sol-stats-bar__item:nth-child(2) .sol-stats-bar__icon { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
.sol-stats-bar__item:nth-child(3) .sol-stats-bar__icon { background: linear-gradient(135deg, #fef9c3, #fef08a); color: #ca8a04; }
.sol-stats-bar__item:nth-child(4) .sol-stats-bar__icon { background: linear-gradient(135deg, #faf5ff, #ede9fe); color: #7c3aed; }

.sol-stats-bar__value {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sol-stats-bar__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════════════════════════════
   Section 4: CTA Band
   ═══════════════════════════════════════════════════════════════ */

.sol-cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: #fff;
  background: transparent;
}

.sol-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
}

.sol-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 0.55) 0%,
    rgba(10, 15, 30, 0.78) 100%
  );
  z-index: 2;
}

.sol-cta__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.sol-cta__copy {
  max-width: 580px;
}

.sol-cta__copy .eyebrow {
  margin: 0 auto 16px;
}

.sol-cta__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.sol-cta__desc {
  max-width: 540px;
  margin: 0 auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.sol-cta__action {
  margin-top: 28px;
}

.sol-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.sol-cta__btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sol-cta__btn .dg-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.sol-cta__btn:hover .dg-icon {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   Section Head (shared pattern)
   ═══════════════════════════════════════════════════════════════ */

.sol-section-head {
  margin-bottom: 56px;
}

.sol-section-head--center {
  text-align: center;
  display: flex;
  justify-content: center;
}

.sol-section-head--center > div {
  max-width: 640px;
}

.sol-section-head .eyebrow {
  margin-bottom: 14px;
}

.sol-section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.1;
}

.sol-section-head p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .sol-section__grid {
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .sol-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .sol-hero__stats {
    grid-template-columns: repeat(4, 1fr);
    min-width: unset;
    width: 100%;
  }

  .sol-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sol-section__grid--reverse {
    direction: ltr;
  }

  .sol-section__grid--reverse .sol-section__media {
    order: -1;
  }

  .sol-section__copy {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .sol-hero__inner {
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .sol-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-width: unset;
  }

  .sol-hero__stat strong {
    font-size: 1.6rem;
  }

  .sol-hero__title {
    font-size: 2.2rem;
  }

  .sol-section {
    padding: 72px 0;
  }

  .sol-section__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sol-section__feature {
    padding: 13px 14px;
  }

  .sol-cta {
    padding: 72px 0;
  }

  .sol-cta__action {
    margin-top: 24px;
  }

  .sol-cta__btn {
    padding: 12px 26px;
    font-size: 0.9rem;
  }

  .sol-stats-bar {
    padding: 40px 0;
  }

  .sol-stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sol-stats-bar__value {
    font-size: 1.6rem;
  }
}

@media (max-width: 575px) {
  .sol-section__title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-hero__bg,
  .sol-section__media img,
  .sol-section__feature,
  .sol-section__cta .dg-icon {
    transition: none;
  }
}
