/* Service */

.service-section {
  padding-top: clamp(6.5rem, 10vw, 10rem);
  background:
    repeating-linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.028) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(251, 248, 242, 0.92)),
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.78), transparent 24%);
}

.service-section::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.96), rgba(255, 252, 248, 0.92)),
    radial-gradient(circle at 80% 16%, rgba(var(--color-accent-soft-rgb), 0.18), transparent 26%);
}

.service-section::after {
  top: 0;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  height: clamp(5.5rem, 11vw, 9rem);
  min-width: 72rem;
  transform: translateX(-50%);
  background: center top / 100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 84C111 92 214 116 340 126C466 136 596 130 708 112C835 92 945 58 1073 72C1170 83 1263 117 1362 66C1390 51 1416 33 1440 14V220H0Z' fill='%23fbf8f2'/%3E%3Cpath d='M0 84C111 92 214 116 340 126C466 136 596 130 708 112C835 92 945 58 1073 72C1170 83 1263 117 1362 66C1390 51 1416 33 1440 14' fill='none' stroke='%23e6e0d8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.service-section__header::before {
  content: "SERVICE";
  left: -0.42em;
  top: -0.3em;
  color: rgba(244, 234, 214, 0.82);
  font-size: clamp(5.4rem, 12.8vw, 8.8rem);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.86), rgba(247, 243, 237, 0.84)),
    var(--color-bg-light);
  color: var(--color-gold-dark);
}

.service-grid {
  display: grid;
  margin: 48px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 26px 22px 24px;
  text-align: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.service-card__icon svg {
  width: 34px;
  height: 34px;
}

.service-card__icon svg path,
.service-card__icon svg rect {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition:
    stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--reveal-delay, 0ms) + 0.12s),
    transform 0.32s ease;
}

.service-card__title {
  margin: 18px 0 10px;
  font-size: 1.45rem;
}

.service-card__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-card.is-revealed .service-card__icon svg path,
.service-card.is-revealed .service-card__icon svg rect {
  stroke-dashoffset: 0;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px rgba(17, 17, 17, 0.08);
  border-color: rgba(var(--color-accent-rgb), 0.22);
}

.service-card:hover .service-card__icon svg path,
.service-card:hover .service-card__icon svg rect,
.service-card:focus-within .service-card__icon svg path,
.service-card:focus-within .service-card__icon svg rect {
  transform: scale(1.03);
}

.service-section__footer {
  display: flex;
  justify-content: center;
}

.service-section__footer .button {
  width: min(100%, 348px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card__icon svg path,
  .service-card__icon svg rect {
    transition: none;
  }
}
