.section--services,
.section--clients,
.section--newsletter {
  background: var(--blaze-color-grey);
}

.section--services {
  position: relative;
  z-index: 3;
  margin-top: -100px;
  padding-top: 0;
  background: transparent;
}

.section--services .container {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 26px;
  max-width: 1320px;
  margin-inline: auto;
}

/* ===============================
   Services Grid
================================ */

.grid--cards-services {
  /* display: grid; */
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

@media (min-width: 1281px) {
  .grid--cards-services {
    grid-template-columns: repeat(4, 300px);
    gap: 26px;
  }
}

@media (min-width: 993px) and (max-width: 1280px) {
  .grid--cards-services {
    grid-template-columns: repeat(4, 220px);
    gap: 26px;
  }
}

@media (min-width: 760px) and (max-width: 992px) {
  .grid--cards-services {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 759px) {
  .grid--cards-services {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ===============================
   Service Card
================================ */

.section--services .card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  width: 100%;
  min-height: 340px;
  height: auto;
  padding: 30px 24px 25px;

  background: var(--blaze-color-primary);
  border-radius: 24px;
  border: 1px solid var(--bott1, #febe10);
  box-shadow: 0 2px 3.8px rgba(29, 22, 3, 0.35);

  text-align: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.section--services .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(29, 22, 3, 0.28);
}

.section--services .card__media {
  width: clamp(70px, 6vw, 90px);
  height: clamp(70px, 6vw, 90px);
  aspect-ratio: 1;
  margin: 0;
  background: transparent;
}

.section--services .card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}

.section--services .card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  width: 100%;
  padding: 0;
}

.section--services .card__title {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.55vw, 1.375rem);

  line-height: 1.2;
  font-weight: 900;
  text-transform: none;
  min-height: 2.8em;
}

.section--services .card__excerpt {
  margin: 0;
  color: var(--Grays-Black, var(--Grays-Black, #000));
  font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);

  line-height: 1.6;
  font-style: normal;
  font-weight: 400;
}

/* Must stay position:static so ::before resolves against .card */
.section--services .card__link {
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  color: var(--blaze-color-black);
  text-decoration: none;
  cursor: pointer;
}

/* Stretches the link's hit area over the whole card */
.section--services .card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
}

.section--services .card__link:focus-visible {
  outline: none;
}

.section--services .card__link:focus-visible::before {
  outline: 3px solid var(--blaze-color-black);
  outline-offset: 2px;
}

.section--services .card__link::after {
  content: "";
  position: relative;
  z-index: 2;
  display: block;
  width: 70px;
  height: 20px;
  background-image: url("../../images/arrow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* ===============================
   Typography
================================ */

@media (min-width: 1401px) {
  .section--services .card__title {
    font-size: 22px;
  }

  .section--services .card__excerpt {
    font-size: 16px;
  }
}

@media (min-width: 1281px) and (max-width: 1400px) {
  .section--services .card__title {
    font-size: 21px;
  }

  .section--services .card__excerpt {
    font-size: 15px;
  }
}

@media (min-width: 993px) and (max-width: 1280px) {
  .section--services .container {
    gap: 16px;
  }
  .section--services .card__title {
    font-size: 19px;
  }

  .section--services .card__excerpt {
    font-size: 14px;
  }

  .section--services .card {
    height: 320px;
    padding: 24px 20px;
  }

  .section--services .card__media {
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 760px) and (max-width: 992px) {
  .section--services .card {
    min-height: 320px;
    padding: 24px 20px;
  }

  .section--services .card__media {
    width: 80px;
    height: 80px;
  }

  .section--services .card__title {
    font-size: 18px;
  }

  .section--services .card__excerpt {
    font-size: 14px;
  }
}

@media (min-width: 481px) and (max-width: 759px) {
  .section--services .card {
    max-width: 340px;
    margin: auto;
    height: auto;
    min-height: 300px;
    padding: 24px 20px;
  }

  .section--services .card__media {
    width: 75px;
    height: 75px;
  }

  .section--services .card__title {
    font-size: 17px;
  }

  .section--services .card__excerpt {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .section--services {
    margin-top: 16px;
    padding-top: 32px;
    padding-bottom: 16px;
  }
  .section--services .container {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }
  .section--services .card {
    height: auto;
    min-height: 206px;
    padding: 30px 24px 25px 24px;
  }

  .section--services .card__media {
    width: 70px;
    height: 64px;
  }

  .section--services .card__title {
    font-size: 18px;
    font-weight: 700;
    min-height: 0;
  }

  .section--services .card__excerpt {
    display: none;
  }

  .section--services .card__link {
    height: 10px;
  }
}
