/*
 * services styles.
 * Keep rule order intact: later rules refine earlier layouts and responsive states.
 */

.services-heading {
  padding: 60px 0 55px;
  max-width: 1000px;
}
.services-heading h1 {
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.15;
  margin-bottom: 26px;
}
.services-heading > p:last-child {
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
  max-width: 760px;
}
.services-statement {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 55px 0 65px;
  max-width: 850px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 45px;
}
.service-item {
  min-width: 0;
  scroll-margin-top: 30px;
}
.service-item .service-icon {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--body);
  margin: 0 0 28px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-item h2 {
  font-family: var(--font-heading);
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.service-item p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  margin: 0;
}
.services-consultation {
  margin-top: 55px;
  padding: 30px 0 15px;
  border-top: 1px solid var(--line);
}
.services-consultation > p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
}
.services-consultation .text-link {
  font-size: 15px;
}
@media (hover: hover) {
  .service-item:hover .service-icon {
    transform: translateY(-3px);
  }
}
@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 35px;
  }
}
@media (max-width: 650px) {
  .services-heading {
    padding: 35px 0;
  }
  .services-heading > p:last-child {
    font-size: 16px;
  }
  .services-statement {
    font-size: 32px;
    margin: 35px 0 40px;
  }
  .services-statement br {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .service-item .service-icon {
    margin-bottom: 20px;
  }
  .service-item h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .services-consultation {
    margin-top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-item .service-icon {
    transition: none;
  }
  .service-item:hover .service-icon {
    transform: none;
  }
}

/* Two-column service cards matching the site's grey panel style. */
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.service-item {
  padding: 38px;
  background: #f0f0f0;
  color: #222;
  min-height: 330px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-item:nth-child(even) {
  background: #e4e4e4;
}
.service-item .service-icon {
  width: 72px;
  height: 72px;
  color: #444;
  margin-bottom: 28px;
}
.service-item h2 {
  color: #222;
}
.service-item p {
  color: #444;
}
@media (hover: hover) {
  .service-item:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 650px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-item {
    padding: 28px;
    min-height: 0;
  }
  .service-item .service-icon {
    width: 60px;
    height: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-item {
    transition: none;
  }
  .service-item:hover {
    transform: none;
  }
}

.services-overview > .section-label {
  margin-bottom: 40px;
}
