/* Squadra Brasil — sections */

/* Provas, clientes, serviços, depoimentos e CTA ------------------------ */

.home-proof {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 7vw, 118px) 24px;
  color: var(--white);
  background-color: var(--blue);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .1) 1px, transparent 1.2px);
  background-size: 12px 12px;
}

.home-proof::before {
  content: "";
  position: absolute;
  top: -92px;
  right: -70px;
  width: 270px;
  aspect-ratio: 1;
  border: 34px solid rgba(0, 186, 238, .42);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(226, 98, 160, .22), 0 0 0 68px rgba(245, 222, 11, .14);
  pointer-events: none;
}

.home-proof__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin-inline: auto;
}

.home-proof__header { max-width: 820px; }
.home-proof__header p {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-proof__header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  font-weight: 600;
  line-height: .9;
  text-transform: uppercase;
}

.home-proof__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: clamp(48px, 5vw, 72px) 0 0;
  list-style: none;
  background: rgba(255, 255, 255, .2);
}

.home-proof__metrics li {
  min-width: 0;
  min-height: 144px;
  padding: 28px 24px;
  background: rgba(19, 35, 176, .9);
}

.home-proof__metrics strong,
.home-proof__metrics span { display: block; }
.home-proof__metrics strong {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4vw, 4.6rem);
  font-weight: 600;
  line-height: .88;
  text-transform: uppercase;
}
.home-proof__metrics span {
  margin-top: 11px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-proof__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 46px 0 0;
  list-style: none;
  counter-reset: home-flow;
}

.home-proof__flow li {
  position: relative;
  padding: 30px 26px 26px;
  border-top: 5px solid var(--pink);
  background: rgba(255, 255, 255, .075);
  counter-increment: home-flow;
}
.home-proof__flow li:nth-child(2) { border-color: var(--cyan); }
.home-proof__flow li:nth-child(3) { border-color: #f5de0b; }
.home-proof__flow li::before {
  content: "0" counter(home-flow);
  position: absolute;
  top: 13px;
  right: 16px;
  color: rgba(255, 255, 255, .34);
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.home-proof__flow strong,
.home-proof__flow span { display: block; }
.home-proof__flow strong {
  max-width: calc(100% - 36px);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  font-weight: 600;
  line-height: .95;
  text-transform: uppercase;
}
.home-proof__flow span { margin-top: 16px; font-size: .88rem; line-height: 1.65; }

.clients {
  position: relative;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  background-color: var(--pink);
  background-image: url("../images/halftone.svg");
  background-position: center top;
  background-repeat: repeat;
  background-size: 100% 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-family: var(--font-display);
  font-size: clamp(2.25rem, 3.1vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.clients__logos {
  width: min(800px, calc(100% - 80px));
  height: auto;
  margin: 70px 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: 12px 12px;
}

.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__link {
  position: relative;
  display: block;
  border-radius: 12px;
}

.service-card__link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.service-card h3 {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: auto;
  min-height: 52px;
  margin: 0;
  padding: 9px 58px 5px 18px;
  color: var(--pink);
  background: rgba(19, 35, 176, .94);
  border-radius: 14px;
  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: rgba(226, 98, 160, .94); }

.service-card__link::after {
  content: "↗";
  position: absolute;
  z-index: 4;
  right: 31px;
  bottom: 27px;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 180ms ease, background 180ms ease;
}

.service-card__link:hover::after,
.service-card__link:focus-visible::after { background: rgba(255, 255, 255, .18); transform: translate(2px, -2px); }

.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 var(--media-hover-duration) var(--media-hover-ease);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__media img {
    transform: scale(var(--media-hover-scale));
  }
}

.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-color: var(--pink);
  background-image: url("../images/halftone.svg");
  background-position: center;
  background-repeat: repeat;
  background-size: 100% auto;
  text-align: center;
}

.cta h2 {
  margin: 0 0 30px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  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 {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .home-proof { padding-inline: 18px; background-size: 10px 10px; }
  .home-proof__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-proof__flow { grid-template-columns: 1fr; }

  .clients {
    height: auto;
    min-height: 510px;
    background-size: 100% auto;
  }

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

  .clients__logos {
    width: 100%;
    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 { right: 12px; bottom: 12px; left: 12px; min-height: 46px; padding: 8px 50px 4px 14px; font-size: 30px; }
  .service-card__link::after { right: 22px; bottom: 19px; width: 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; }
}

@media (max-width: 560px) {
  .home-proof__metrics { grid-template-columns: 1fr; }
  .home-proof__metrics li { min-height: 0; padding: 22px 20px; }
  .home-proof__flow { gap: 16px; }
}
