.testimonials-section {
  background: linear-gradient(180deg, #f4f1e9 0, #fffdf8 100%);
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 9px 0 var(--ink);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonials-carousel__controls {
  display: none;
}

.testimonial-card {
  margin: 0;
  background: var(--white);
}

.testimonial-card::after {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 108px;
  height: 108px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: .16;
}

.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-card__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.testimonial-card__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
}

.testimonial-card__product strong {
  font-size: 1rem;
  font-weight: 950;
}

.testimonial-card__person,
.testimonial-card__location {
  color: #68655e;
  font-size: .84rem;
  line-height: 1.35;
}

.testimonial-card__person {
  color: var(--ink);
  font-weight: 800;
}

.testimonial-card__logo {
  display: grid;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  overflow: hidden;
  place-items: center;
  background: #fff;
  border: 1.5px solid rgba(21, 21, 21, .16);
  border-radius: 18px;
}

.testimonial-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial-card__logo--directeat {
  flex-basis: 104px;
  width: 104px;
  padding: 10px;
}

.testimonial-card__logo--souqdzayer {
  padding: 3px;
}

.testimonial-card__stars {
  color: #e89b18;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #2c2a27;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.68;
}

.testimonial-card figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #68655e;
  font-size: .88rem;
}

.testimonial-card figcaption strong {
  color: var(--ink);
  font-weight: 950;
}

.testimonial-card figcaption span {
  font-weight: 760;
}

.case-quote {
  margin: 0 0 18px;
  padding: 24px;
  color: var(--ink);
  background: #fff7df;
  border-left: 8px solid var(--lime);
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.contact-actions .button {
  min-height: 48px;
  font-size: .88rem;
}

.portfolio-case__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.legal-content .portfolio-case__actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.15;
}

.legal-content .portfolio-case__actions a + a {
  color: var(--ink);
  background: var(--lime);
}

.legal-content .portfolio-case__actions a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.nav-menu > a[hreflang="en"],
.nav-menu > a[hreflang="fr"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(21, 21, 21, .18);
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .04em;
}

.legal-content .case-quote + p {
  color: #2c2a27;
  font-weight: 760;
}

.service-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.service-proof-grid .service-shot {
  margin: 0;
}

@media (max-width: 900px) {
  .service-proof-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    display: grid;
  }

  .contact-actions .button {
    width: 100%;
  }

  .portfolio-case__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .testimonials-section {
    order: 8;
    padding: 92px 0 56px;
    scroll-margin-top: calc(var(--header-height) + 16px);
  }

  .contact-section {
    order: 9;
  }

  .testimonials-section .section-heading {
    margin-bottom: 22px;
  }

  .testimonials-section .section-heading h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .testimonials-section .section-heading > p {
    font-size: .94rem;
    line-height: 1.58;
  }

  .testimonials-carousel {
    min-width: 0;
  }

  .testimonials-grid {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 8px 10px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 8px);
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    box-shadow: 5px 6px 0 var(--ink);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .testimonial-card blockquote {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.55;
  }

  .testimonial-card__head {
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
  }

  .testimonial-card__logo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .testimonial-card__logo--directeat {
    flex-basis: 80px;
    width: 80px;
    padding: 8px;
  }

  .testimonial-card__product {
    gap: 5px 8px;
  }

  .testimonial-card__product strong {
    font-size: 1rem;
  }

  .testimonial-card__stars {
    font-size: .8rem;
  }

  .testimonial-card__person,
  .testimonial-card__location {
    font-size: .78rem;
  }

  .testimonials-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
  }

  .testimonials-carousel__arrow {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    place-items: center;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
  }

  .testimonials-carousel__arrow:active {
    transform: scale(.94);
  }

  .testimonials-carousel__arrow:disabled {
    opacity: .32;
    cursor: default;
  }

  .testimonials-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .testimonials-carousel__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(21, 21, 21, .25);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width .24s ease, background-color .24s ease;
  }

  .testimonials-carousel__dots button.is-active {
    width: 24px;
    background: var(--ink);
  }

  .legal-content .portfolio-case__actions a {
    min-height: 44px;
    font-size: .78rem;
  }

  .case-quote {
    padding: 18px;
    font-size: .96rem;
  }

  .nav-menu > a[hreflang="en"],
  .nav-menu > a[hreflang="fr"] {
    justify-self: start;
    margin-top: 8px;
  }
}
