/* Squadra Brasil — sections */

/* Clientes, serviços, depoimentos e CTA -------------------------------- */

.clients {
  position: relative;
  height: 696px;
  min-height: 696px;
  overflow: hidden;
  background-color: var(--pink);
  background-image: url("../images/halftone.png");
  background-repeat: no-repeat;
  background-position: center -514px;
  background-size: max(100%, 1918px) auto;
}

.clients__inner {
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 78px;
  text-align: center;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.clients__logos {
  width: min(965px, 100%);
  height: auto;
  margin: 88px auto 0;
}

.clients__heading-dots,
.dot-column {
  position: absolute;
  z-index: 3;
  max-width: none;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.clients__heading-dots {
  top: 91px;
  display: flex;
  gap: 9px;
}

.clients__heading-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  animation: loading-dot 1.35s ease-in-out infinite;
}

.clients__heading-dots i:nth-child(2) { animation-delay: 130ms; }
.clients__heading-dots i:nth-child(3) { animation-delay: 260ms; }
.clients__heading-dots i:nth-child(4) { animation-delay: 390ms; }

.clients__heading-dots--left {
  left: calc(50% - 350.5px);
}

.clients__heading-dots--right {
  left: calc(50% + 286.5px);
}

/* O loading percorre cada grupo em direção ao centro: o lado direito usa
   os delays invertidos para viajar da última bolinha para a primeira. */
.clients__heading-dots--right i:nth-child(1) { animation-delay: 390ms; }
.clients__heading-dots--right i:nth-child(2) { animation-delay: 260ms; }
.clients__heading-dots--right i:nth-child(3) { animation-delay: 130ms; }
.clients__heading-dots--right i:nth-child(4) { animation-delay: 0ms; }

.dot-column {
  display: grid;
  gap: 8px;
  width: 7px;
  animation: dot-column-fall 3.2s ease-in-out infinite;
}

.dot-column i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-column-chase 1.45s ease-in-out infinite;
}

.dot-column i:nth-child(2) { animation-delay: 120ms; }
.dot-column i:nth-child(3) { animation-delay: 240ms; }
.dot-column i:nth-child(4) { animation-delay: 360ms; }
.dot-column--white { color: var(--white); }
.dot-column--yellow { color: #f5de0b; }
.dot-column--blue { color: var(--blue); }
.dot-column--pink { color: var(--pink); }
.services {
  position: relative;
  min-height: 1641px;
  overflow: hidden;
  color: var(--white);
  background-color: #202020;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

.services__inner {
  position: relative;
  z-index: 4;
  width: min(1090px, calc(100% - 48px));
  margin-inline: auto;
  padding: 99px 0 142px;
}

.services-grid {
  display: grid;
  grid-template-columns: 508px 509px;
  justify-content: center;
  gap: 99px 40px;
}

.service-card {
  transition-delay: 60ms;
}

.service-card:nth-child(2) { transition-delay: 140ms; }
.service-card:nth-child(3) { transition-delay: 80ms; }
.service-card:nth-child(4) { transition-delay: 160ms; }

.service-card h3 {
  width: 447px;
  height: 52px;
  margin: 0 auto 37px;
  padding: 7px 14px 3px;
  color: var(--pink);
  background: var(--blue);
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.service-card:nth-child(2) h3,
.service-card:nth-child(3) h3 { color: var(--blue); background: var(--pink); }

.service-card__media {
  position: relative;
  aspect-ratio: 508 / 379;
  overflow: hidden;
  border-radius: 12px;
  background: #161616;
}

.service-card:nth-child(even) .service-card__media { aspect-ratio: 509 / 379; }

.service-card__media img,
.service-card:first-child .service-card__media img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  background: transparent;
  border-radius: inherit;
  transition: transform 700ms cubic-bezier(.2,.75,.25,1), filter 700ms ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

/* Recorte responsivo do único card ainda sem arquivo isolado no material recebido. */
.service-card__media--reference img,
.service-card:hover .service-card__media--reference img {
  position: absolute;
  top: -830.343%;
  left: -85.039%;
  width: 377.756%;
  height: auto;
  max-width: none;
  object-fit: initial;
  transform: none;
  filter: none;
}

.services-title {
  margin: 74px 0 42px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 53px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

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

.testimonials article {
  min-width: 0;
  min-height: 150px;
  padding: 25px 22px;
  color: #222;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(255,255,255,.4);
  text-align: center;
}

.testimonials strong { display: block; font-size: clamp(19px, 1.2vw, 23px); }
.testimonials .testimonial__brand {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials .testimonial__brand img {
  display: block;
  width: auto;
  max-width: min(100%, 136px);
  height: auto;
  max-height: 24px;
}

.testimonials small { display: block; margin: 6px 0 20px; color: #666; font-size: 10px; overflow-wrap: anywhere; }
.testimonials p { margin: 0; font-size: 13px; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.testimonials article:nth-child(2) { transition-delay: 90ms; }
.testimonials article:nth-child(3) { transition-delay: 180ms; }

.services__dots--white { top: 8px; left: calc(50% - 506.5px); }
.services__dots--yellow-top { top: 8px; left: calc(50% + 430.5px); }
.services__dots--pink { top: 980px; left: calc(50% - 510.5px); }
.services__dots--yellow { top: 397px; left: calc(50% - 2.5px); }
.services__dots--blue { top: 559px; left: calc(50% + 32.5px); }

.cta {
  position: relative;
  z-index: 1;
  min-height: 236px;
  height: 236px;
  padding: 43px 24px 38px;
  color: var(--white);
  background: var(--pink) url("../images/halftone.png") center / cover;
  text-align: center;
}

.cta h2 {
  margin: 0 0 30px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.cta h2 span { color: var(--white); }
.cta a { display: inline-block; min-width: 320px; padding: 17px 28px; color: var(--blue); background: var(--paper); border-radius: 6px; font-weight: 900; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.cta a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* Keep the two-column desktop composition fluid immediately above mobile. */
@media (min-width: 901px) and (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .service-card h3 {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .clients {
    height: auto;
    min-height: 510px;
    background-position: 30% top;
    background-size: auto 100%;
  }

  .clients__inner {
    width: calc(100% - 34px);
    padding: 64px 0 70px;
  }

  .clients__logos { margin-top: 50px; }
  .clients__heading-dots { top: 78px; gap: 8px; }
  .clients__heading-dots i { width: 7px; height: 7px; }
  .clients__heading-dots--left { left: 5%; }
  .clients__heading-dots--right { right: 5%; left: auto; }
  .services { min-height: 0; }
  .services__inner { padding: 58px 0 92px; }
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-card h3 { width: 100%; height: auto; margin-bottom: 15px; padding: 5px 14px 3px; font-size: 30px; }
  .service-card__media { aspect-ratio: 508 / 379; }
  .services-title { margin-top: 68px; }
  .services__dots--white { top: 30px; left: 18px; }
  .services__dots--yellow-top { top: 34px; right: 18px; left: auto; }
  .services__dots--yellow { top: 382px; right: 18px; left: auto; }
  .services__dots--blue { top: 742px; left: 18px; }
  .services__dots--pink { top: 1370px; right: 18px; left: auto; }

  .cta { height: 280px; min-height: 280px; padding-top: 66px; }
  .cta h2 { font-size: 46px; }
  .cta a { min-width: 240px; }

  .testimonials { grid-template-columns: 1fr; gap: 18px; }
  .testimonials article { width: 100%; min-height: 0; padding: 22px 20px; }
  .testimonials small { margin-bottom: 14px; }
}
