/* Services */

.services-section {
  background-color: var(--white);
}

.solution-categories {
  display: inline-flex;
  margin: 30px 0 45px;
  padding: 6px;
  border-radius: 8px;
  background-color: #eef1f5;
}

.solution-category {
  padding: 10px 20px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.solution-category.active {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(8, 31, 61, 0.18);
}

.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--white);
  box-shadow: 0 12px 32px rgba(8, 31, 61, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(8, 31, 61, 0.14);
}

.service-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #eef1f5;
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-icon {
  position: absolute;
  right: 20px;
  bottom: -23px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background-color: var(--wine);
  color: var(--white);
  font-size: 1.15rem;
}

.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 34px 24px 26px;
}

.service-body h3 {
  min-height: 58px;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.service-body p {
  flex-grow: 1;
  min-height: 0;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.service-link:hover {
  color: var(--navy);
}

/* ============================================================
   CLICKABLE SERVICE CARDS
============================================================ */
.service-card-link-wrapper {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-card-link-wrapper:hover,
.service-card-link-wrapper:focus,
.service-card-link-wrapper:active {
  color: inherit;
  text-decoration: none;
}

.service-card-link-wrapper .service-card {
  height: 100%;
  cursor: pointer;
}

.service-card-link-wrapper:focus-visible {
  outline: 3px solid rgba(82, 120, 159, 0.35);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Clickable solution category */
a.solution-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

a.solution-category:hover {
  color: var(--navy);
  background-color: rgba(82, 120, 159, 0.08);
  text-decoration: none;
}

a.solution-category:focus-visible {
  outline: 3px solid rgba(82, 120, 159, 0.35);
  outline-offset: 2px;
}

/* Clickable analytics-card interaction */
.service-card-link-wrapper:hover .service-link {
  color: var(--navy);
}

.service-card-link-wrapper .service-link i {
  transition: transform 0.2s ease;
}

.service-card-link-wrapper:hover .service-link i {
  transform: translateX(4px);
}

@media (max-width: 767.98px) {
  .solution-categories {
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 4px;
  }

  .solution-category {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
