.services-offered-section {
  position: relative;
  background: linear-gradient(160deg, var(--canvas) 0%, var(--surface) 100%);
  padding: 10rem 0;
}
.services-offered-section::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 6%;
  width: 42%;
  max-width: 480px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23b53a3a' stop-opacity='0.85'/%3E%3Cstop offset='70%25' stop-color='%23b53a3a' stop-opacity='0.3'/%3E%3Cstop offset='100%25' stop-color='%23b53a3a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24,16 C170,16 190,96 376,96' fill='none' stroke='url(%23g)' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
@media (max-width: 640px) {
  .services-offered-section::before { display: none; }
}
.services-offered-section__inner {
  width: min(1240px, calc(100% - 4rem));
  margin: 0 auto;
}

.services-offered__copy { max-width: 52rem; margin-bottom: 5.6rem; }
.services-offered__copy h2 {
  margin: 0 0 1.2rem; font-weight: 800; font-size: clamp(3rem, 3.4vw, 4rem);
  line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance;
}
.services-offered__copy p { margin: 0; max-width: 48rem; color: var(--ink-muted); font-size: 1.6rem; line-height: 1.6; }

/* ---- service grid: four tight, uniformly-toned cards ---- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.8rem;
  border-radius: var(--radius-xl);
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  z-index: 1;
  transform: scale(1.015);
  border-color: var(--line-strong);
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.service-card__head h3 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.service-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card__list li {
  position: relative;
  padding: 0 0 1rem 2.6rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.service-card__list li:last-child { padding-bottom: 0; }

.service-card__list li::before {
  content: "check";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1.7rem;
  text-align: center;
  background: var(--ink);
  color: #ffffff;
}

@media (max-width: 900px) and (min-width: 641px) {
  .services-offered-section { padding: 7rem 0; }
  .services-offered__copy { margin-bottom: 4rem; }
  .service-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 640px) {
  .services-offered-section { padding: 7rem 0; }
  .services-offered__copy { margin-bottom: 4rem; }

  .service-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.4rem;
    align-items: stretch;
  }
  .service-grid::-webkit-scrollbar { display: none; }

  .service-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .service-card[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  .services-offered-section { padding: 6rem 0; }
  .services-offered-section__inner { width: calc(100% - 3.2rem); }
  .services-offered__copy { margin-bottom: 4rem; }
  .service-card { flex-basis: 88%; padding: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
  .service-card:hover,
  .service-card:focus-within { transform: none; }
}
