/* ==========================================================================
   Services Page Styles (Cards, Custom Checklists, Anchor Scrolling)
   ========================================================================== */

.services-container {
  padding-bottom: 40px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr);
  gap: 48px;
  padding: 44px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease;
}

.row:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow:
    0 14px 30px -10px rgba(13, 148, 136, 0.1),
    0 8px 16px -6px rgba(37, 99, 235, 0.05);
}

.row:target {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.2),
    var(--shadow-hover);
  animation: targetPulse 1.2s ease;
}

@keyframes targetPulse {
  0% {
    transform: scale(0.99);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

.row-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.row-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.row-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--brand-gradient-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.5s ease;
}

.row:hover .row-icon {
  background: var(--brand-gradient);
  color: #ffffff;
  transform: scale(1.08) rotate(4deg);
}

.row h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
}

.row-tags {
  margin-top: auto;
}

.row .intro {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 22px;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: rgba(13, 148, 136, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.row:hover .feature-list li:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.row:hover .feature-list li:hover::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .row-tags {
    margin-top: 14px;
  }
}
