/**
 * Service detail UI — theme colors only.
 * 1. Solutions  → horizontal stepper (Flowbite stepper pattern)
 * 2. Features   → bento glass grid cards
 * 3. Benefits   → 2-col icon cards
 */

/* ═══ 1. OUR SOLUTION — horizontal stepper ═══ */
.sd-solution-horizontal {
  margin-top: 28px;
  position: relative;
}
.sd-solution-horizontal-scroll {
  position: relative;
  padding-top: 8px;
}
.sd-solution-horizontal-line {
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(var(--theme-color1-rgb), 0.1) 0%,
    rgba(var(--theme-color1-rgb), 0.45) 15%,
    rgba(var(--theme-color1-rgb), 0.45) 85%,
    rgba(var(--theme-color1-rgb), 0.1) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.sd-solution-horizontal-inner {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.sd-solution-step {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sd-solution-step-dot {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-color1);
  color: var(--theme-color1-text-color);
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--theme-color-white), 0 0 0 8px rgba(var(--theme-color1-rgb), 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sd-solution-step-dot .step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--theme-color2);
  color: var(--theme-color2-text-color);
  box-shadow: 0 4px 10px rgba(var(--theme-color2-rgb), 0.25);
}
.sd-solution-step:hover .sd-solution-step-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--theme-color-white), 0 0 0 10px rgba(var(--theme-color1-rgb), 0.38);
}
.sd-solution-step-card {
  width: 100%;
  flex: 1;
  padding: 20px 14px 18px;
  border-radius: 16px;
  background: var(--theme-color-white);
  border: 1px solid rgba(var(--theme-color1-rgb), 0.12);
  box-shadow: 0 6px 24px rgba(var(--theme-color2-rgb), 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.sd-solution-step:hover .sd-solution-step-card {
  transform: translateY(-8px);
  border-color: rgba(var(--theme-color1-rgb), 0.35);
  box-shadow: 0 16px 40px rgba(var(--theme-color1-rgb), 0.14);
}
.sd-solution-step-card .h5.title {
  margin-bottom: 8px;
  font-size: 17px;
}
.sd-solution-step-card .text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* ═══ 2. FEATURES — bento glass grid ═══ */
.sd-feature-mesh {
  position: relative;
  margin-top: 32px;
  padding: 36px 28px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(var(--theme-color1-rgb), 0.07) 0%,
    var(--theme-color-white) 45%,
    rgba(var(--theme-color2-rgb), 0.04) 100%
  );
  border: 1px solid rgba(var(--theme-color1-rgb), 0.12);
  overflow: hidden;
}
.sd-feature-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 8% 15%, rgba(var(--theme-color1-rgb), 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 92% 85%, rgba(var(--theme-color1-rgb), 0.1), transparent 50%);
}
.sd-feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sd-feature-card {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--theme-color1-rgb), 0.1);
  box-shadow: 0 4px 24px rgba(var(--theme-color2-rgb), 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}
.sd-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--theme-color1-rgb), 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sd-feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color1), rgba(var(--theme-color1-rgb), 0.25));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sd-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--theme-color1-rgb), 0.38);
  box-shadow: 0 22px 50px rgba(var(--theme-color1-rgb), 0.15);
}
.sd-feature-card:hover::before {
  opacity: 1;
}
.sd-feature-card:hover::after {
  transform: scaleX(1);
}
.sd-feature-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--theme-color1-rgb), 0.12);
  color: var(--theme-color1);
}
.sd-feature-card-badge i {
  font-size: 9px;
}
.sd-feature-card-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--theme-color1) 0%, rgba(var(--theme-color1-rgb), 0.62) 100%);
  color: var(--theme-color1-text-color);
  font-size: 24px;
  box-shadow: 0 10px 28px rgba(var(--theme-color1-rgb), 0.3);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sd-feature-card:hover .sd-feature-card-icon {
  transform: scale(1.1) rotate(-4deg);
}
.sd-feature-card-title {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--headings-color);
  line-height: 1.35;
}

/* ═══ 3. BENEFITS — horizontal icon cards (2-col grid) ═══ */
.sd-ui-benefit-grid {
  padding-top: 16px;
}
.sd-ui-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--theme-color-white);
  border: 1px solid rgba(var(--theme-color1-rgb), 0.1);
  box-shadow: 0 1px 3px rgba(var(--theme-color2-rgb), 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.sd-ui-benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--theme-color1-rgb), 0.35);
  box-shadow: 0 16px 40px rgba(var(--theme-color1-rgb), 0.12);
}
.sd-ui-benefit-icon-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--theme-color1) 0%, rgba(var(--theme-color1-rgb), 0.55) 100%);
  box-shadow: 0 10px 25px rgba(var(--theme-color1-rgb), 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sd-ui-benefit-card:hover .sd-ui-benefit-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(var(--theme-color1-rgb), 0.4);
}
.sd-ui-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--theme-color-white);
  color: var(--theme-color1);
  font-size: 24px;
}
.sd-ui-benefit-body {
  flex: 1;
  min-width: 0;
}
.sd-ui-benefit-body .h5.title {
  margin-bottom: 8px;
}
.sd-ui-benefit-body .text {
  margin: 0;
  line-height: 1.7;
}

/* ── Responsive ── */
@media only screen and (max-width: 1199px) {
  .sd-solution-horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sd-solution-horizontal-inner {
    flex-wrap: nowrap;
    gap: 16px;
    min-width: min-content;
    padding-bottom: 4px;
  }
  .sd-solution-step {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  .sd-solution-horizontal-line {
    left: 60px;
    right: 60px;
  }
}

@media only screen and (max-width: 991px) {
  .sd-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sd-feature-mesh {
    padding: 28px 20px;
  }
}

@media only screen and (max-width: 767px) {
  .sd-solution-step {
    flex: 0 0 200px;
  }
  .sd-solution-step-dot {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .sd-solution-step-card {
    padding: 16px 12px 14px;
  }
  .sd-solution-step-card .h5.title {
    font-size: 15px;
  }
  .sd-feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sd-feature-mesh {
    padding: 22px 16px;
    border-radius: 22px;
  }
  .sd-feature-card {
    padding: 22px 18px 20px;
  }
  .sd-ui-benefit-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
}

@media only screen and (max-width: 479px) {
  .sd-solution-step {
    flex: 0 0 180px;
  }
  .sd-solution-step-dot {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
