/* Home page services grid. Scoped to .services-section. */
.services-section {
  --teal: #0B3937;
  --text: #0B3937;
  --muted: #3F5F5C;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  padding: 72px 0 80px;
}
.services-section *, .services-section *::before, .services-section *::after { box-sizing: border-box; }
.services-section .container { max-width: 1240px; padding: 0 28px; }

.services-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.services-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em;
  margin: 0 0 12px;
}
.services-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.services-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 22px 18px 18px;
  background: #fff; color: inherit; text-decoration: none;
  border: 1px solid rgba(11, 57, 55, .1); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(11, 57, 55, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 57, 55, .12); border-color: rgba(11, 57, 55, .2); }
.service-card:focus-visible { outline: 3px solid #E6BD7A; outline-offset: 3px; }

.service-icon {
  --ic-bg: #DDF3EA; --ic-fg: #1E8E63;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--ic-bg); color: var(--ic-fg);
  display: grid; place-items: center;
}
.service-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.services-grid li:nth-child(5n+1) .service-icon { --ic-bg: #DDF3EA; --ic-fg: #1E8E63; }
.services-grid li:nth-child(5n+2) .service-icon { --ic-bg: #DCEBFB; --ic-fg: #2268C7; }
.services-grid li:nth-child(5n+3) .service-icon { --ic-bg: #E9E1F8; --ic-fg: #6B45C2; }
.services-grid li:nth-child(5n+4) .service-icon { --ic-bg: #FCEFCF; --ic-fg: #B9800F; }
.services-grid li:nth-child(5n+5) .service-icon { --ic-bg: #FBE0E3; --ic-fg: #C73D52; }

.service-card h3 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
.service-card p { margin: 0 0 28px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.service-arrow { position: absolute; right: 16px; bottom: 14px; width: 18px; height: 18px; color: var(--teal); transition: transform .18s ease; }
.service-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-arrow { transform: translateX(4px); }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .services-section { padding: 48px 0 56px; }
  .services-section .container { padding: 0 16px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card { padding: 18px 14px 14px; }
  .service-card h3 { font-size: .98rem; }
  .service-card p { font-size: .82rem; margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .service-arrow { transition: none; }
  .service-card:hover { transform: none; }
}
