/* ==========================================================================
   Services - Mobile first
   ========================================================================== */

.services-section {
  background-color: #f7eee9;
  color: #1b1b1d;
  padding: 4.5rem 0;
}

/* Heading */

.services-heading {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.services-kicker {
  margin: 0 0 0.75rem;
  color: #c64a3a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-title {
  margin: 0;
  color: #1b1b1d;
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.services-title,
.service-card__title {
  font-family: inherit;
}

.services-intro {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: #626262;
  font-size: 1rem;
  line-height: 1.7;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.service-card {
  display: flex;
  flex-direction: column;

  min-height: 230px;
  padding: 1.5rem;

  background-color: #ffffff;
  border: 1px solid rgba(27, 27, 29, 0.1);
  border-radius: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  min-height: 230px;
  padding: 1.5rem;

  background-color: #ffffff;
  border: 1px solid rgba(27, 27, 29, 0.1);
  border-radius: 18px;
}

.service-card__title {
  margin: 0;
  color: #1b1b1d;
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card__text {
  margin: 0.85rem 0 0;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Highlight card
   ========================================================================== */

.service-card--highlight {
  background-color: #ead2ca;
  border: 1px solid rgba(166, 58, 45, 0.38);
}

.service-card--highlight .service-card__title {
  color: #1b1b1d;
}

.service-card--highlight .service-card__text {
  color: #5f5d5b;
}

.service-card--highlight .service-card__link {
  color: #a63a2d;
  font-weight: 700;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;

  margin-top: auto;
  padding-top: 1.5rem;

  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.service-card__link::after {
  content: "→";
  margin-left: 0.5rem;
}

/* ==========================================================================
   Large mobile
   ========================================================================== */

@media (min-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .service-card {
    min-height: 260px;
  }

  .service-card--highlight {
    min-height: 260px;
  }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
  .services-section {
    padding: 5.5rem 0;
  }

  .services-heading {
    margin-bottom: 3rem;
  }

  .services-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
  }

  .services-intro {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .service-card {
    min-height: 280px;
    padding: 1.75rem;
  }

  .service-card__title {
    font-size: 1.45rem;
  }

  .service-card--highlight {
    min-height: 280px;
  }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {
  .services-section {
    padding: 6.5rem 0;
  }

  .services-heading {
    max-width: 48rem;
    margin-bottom: 3.5rem;
  }

  .services-title {
    font-size: clamp(3.2rem, 4vw, 4.4rem);
  }

  .services-intro {
    max-width: 42rem;
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .service-card {
    min-height: 300px;
    padding: 2rem;

    transition:
      transform 0.25s ease,
      border-color 0.25s ease;
  }

  .service-card__title {
    font-size: 1.5rem;
  }

  .service-card--highlight {
    min-height: 300px;
  }

  .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 74, 58, 0.35);
  }

  .service-card__link:hover {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Hover
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .service-card--highlight:hover {
    transform: translateY(-4px);
    border-color: #a63a2d;
    box-shadow: 0 12px 28px rgba(166, 58, 45, 0.14);
  }
}
