body,
.main-nav,
h1, h2, h3, h4, h5, h6 {
  font-family: "cormorant-infant",serif;
}
main.services{
background: #f8f4ec;
}

.testimonials {
    background: #f8f4ec;
    padding: 3.625rem 0 8.3rem;
    overflow: hidden;
}
.intro__text {
  margin: 0 auto;
  padding: 0;
  max-width: 62.5rem;
}
.intro__text p {
  text-align: center;
}
.intro__text p {
  margin: 8px 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.container {
    max-width: 1600px; 
}

.services .services-cta-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  justify-content: center;
  justify-items: center;
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 2.5rem clamp(24px, 5vw, 72px) 0;
}

.services-cta-grid .services-cta-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #101820;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
}

.services-cta-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.services-cta-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-cta-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  transition: opacity 0.3s ease;
}

.cta__text.licencie {
  font-size: 0.9rem;
}
.cta__title {
  margin: 0 0 1rem;
}
.cta__inner p,
.cta__text {
  margin: 0 0 1.25rem;
   font-size: 0.9rem;
   line-height: 1.5;
}
.cta__inner p{
  color: #fff;
}
.services-cta-card__content {
  position: relative;
  z-index: 3;
  padding: 0 26px 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.services-cta-card__link::after {
  content: "";
  height: 1px;
  width: 100%;
  background: currentColor;
  position: absolute;
  left: 0;
  bottom: -4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.services-cta-card:hover .services-cta-card__overlay {
  opacity: 0.82;
}

.services-cta-card:hover .services-cta-card__link::after,
.services-cta-card:focus-visible .services-cta-card__link::after {
  opacity: 1;
}

.services-cta-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}


@media (max-width: 1023px){
    .services .services-cta-card__content {

    padding: 0 1.5rem 1rem;
}
  .services .cta__text.licencie {
        font-size: 1.1em;
    }
}
@media (max-width: 1024px) {
    .estimer .services-cta-grid, .services-cta-grid {
      gap: 24px;
      padding-left: clamp(20px, 6vw, 48px);
      padding-right: clamp(20px, 6vw, 48px);
      display: flex;
      flex-direction: column;
  }
  .cta__title {
    margin: 0 0 1rem;
  }
  .cta__text.licencie {
    font: var(--article-font);
  }
  .cta__link {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .estimer .services-cta-grid,.services .services-cta-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
    padding-left: clamp(20px, 7vw, 40px);
    padding-right: clamp(20px, 7vw, 40px);
  }
  .cta__link {
    font: var(--cta-secondary-font);
  }
}
