/**
 * Clientes Page Styles
 *
 * @package BIM_Works
 */

/* Container global e alinhamento */
.clientes-page {
  background-color: #0a0a0b;
  color: #e5e5e5;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
}

/* =============================================================
   Primeira Sessão: Hero Banner
   ============================================================= */
.clientes-hero {
  position: relative;
  max-width: 1494px;
  margin: 0 auto;
  min-height: 399px;
  height: 399px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.clientes-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.clientes-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 11, 0.1);
  z-index: 2;
}

.clientes-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 940px;
  padding-left: 20px;
  padding-right: 20px;
}

.clientes-hero__title {
  max-width: 800px;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 44px;
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  text-transform: uppercase;
}

.clientes-hero__description {
  max-width: 900px;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  color: #99a1af;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 29.25px;
}

/* =============================================================
   Segunda Sessão: Estatísticas
   ============================================================= */
.clientes-stats {
  background-color: #281643;
  padding-top: 40px;
  padding-bottom: 40px;
}

.clientes-stats__grid {
  max-width: 1494px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.clientes-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.clientes-stats__number {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 20px;
}

.clientes-stats__description {
  color: #d1d5dc;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  margin: 0;
}

/* =============================================================
   Terceira Sessão: Nossos Clientes (Grade de Cards)
   ============================================================= */
.clientes-grid-section {
  background-color: #0a0a0b;
  padding-top: 40px;
  padding-bottom: 140px;
}

.clientes-grid__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

.clientes-grid__title {
  color: #ffffff;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 80px;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 45px;
}

.clientes-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.clientes-card__logo-wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 45px;
}

.clientes-card__logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.clientes-card__description {
  color: #d1d5dc;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  margin-top: 0;
  margin-bottom: 45px;
  max-width: 480px;
}

.clientes-card__button {
  display: inline-flex;
  width: 310px;
  height: 52px;
  padding: 14px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 0.5px solid #7c3aed;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0) 65%,
    rgba(124, 58, 237, 0.18) 100%
  );

  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition:
    transform 300ms ease-out,
    border-color 300ms ease-out,
    background 300ms ease-out;
}

.clientes-card__button:hover {
  transform: translateY(-2px);
  border-color: #a78bfa;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(124, 58, 237, 0.05) 60%,
    rgba(124, 58, 237, 0.25) 100%
  );
}

/* =============================================================
   Quarta Sessão: Depoimentos (Testimonials)
   ============================================================= */
.clientes-testimonials-section {
  background-color: #0a0a0b;
  padding-top: 40px;
  padding-bottom: 50px;
}

.clientes-testimonials__container {
  max-width: 1494px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

@media (min-width: 1024px) {
  .clientes-testimonials__container {
    padding-left: 95px;
    padding-right: 95px;
  }
}

.clientes-testimonials__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 44px;
}

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

.clientes-testimonial-card {
  border-radius: 8px;
  background: #1a1a1c;
  padding: 8px 24px 56px;
  display: flex;
  flex-direction: column;
}

.clientes-testimonial-card__quote {
  margin-bottom: 34px;
  height: 24px;
  opacity: 0.9;
}

.clientes-testimonial-card__quote img {
  height: 24px;
  width: auto;
  display: block;
}

.clientes-testimonial-card__text {
  flex-grow: 1;
  color: #d1d5dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 34px;
}

.clientes-testimonial-card__text p {
  margin: 0;
}

.clientes-testimonial-card__text p + p {
  margin-top: 12px;
}

.clientes-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clientes-testimonial-card__name {
  color: #d1d5dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin: 0;
}

.clientes-testimonial-card__role {
  color: #6a7282;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  text-transform: uppercase;
  margin: 0;
}

/* =============================================================
   Responsividade
   ============================================================= */
@media (max-width: 991px) {
  .clientes-stats__grid {
    padding-left: 30px;
    padding-right: 30px;
    gap: 24px;
  }

  .clientes-grid__container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .clientes-testimonials__container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .clientes-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .clientes-hero {
    height: auto;
    min-height: 320px;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .clientes-hero__title {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 24px;
  }

  .clientes-hero__description {
    font-size: 16px;
    line-height: 24px;
  }

  .clientes-stats__grid {
    flex-direction: column;
    gap: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .clientes-stats__number {
    margin-bottom: 8px;
  }

  .clientes-grid-section {
    padding-bottom: 80px;
  }

  .clientes-grid__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .clientes-grid__title {
    margin-bottom: 40px;
  }

  .clientes-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .clientes-card__logo-wrap {
    margin-bottom: 24px;
  }

  .clientes-card__description {
    margin-bottom: 24px;
  }

  .clientes-testimonials-section {
    padding-bottom: 80px;
  }

  .clientes-testimonials__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .clientes-testimonials__title {
    margin-bottom: 40px;
  }

  .clientes-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =============================================================
   Quinta Sessão: Cases de Sucesso (CPT materiais_concurso)
   ============================================================= */
.clientes-cases-section {
  background-color: #0a0a0b;
  padding-top: 40px;
  padding-bottom: 36px;
}

.clientes-cases__container {
  max-width: 1494px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

@media (min-width: 1024px) {
  .clientes-cases__container {
    padding-left: 95px;
    padding-right: 95px;
  }
}

.clientes-cases__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 44px;
  text-transform: uppercase;
}

/* Custom Cases Carousel (Sem Swiper) */
.cases-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.cases-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 24px;
}

.cases-carousel__slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .cases-carousel__slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (min-width: 1024px) {
  .cases-carousel__slide {
    flex: 0 0 calc((100% - (2 * 24px)) / 3);
  }
}

/* Static Grid (Até 3 cases) */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cases-grid__item {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Card Case */
.clientes-case-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e2939;
  background: #1a1a1c;
}

.clientes-case-card__image-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.clientes-case-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.clientes-case-card:hover .clientes-case-card__image {
  transform: scale(1.04);
}

.clientes-case-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1c;
}

.clientes-case-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 5px 10px;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: #7c3aed;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
}

.clientes-case-card__content {
  width: 100%;
  min-height: 160px;
  background: #1a1a1c;
  padding: 16px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 8px 8px;
  text-align: left;
}

.clientes-case-card__title {
  color: #d1d5dc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clientes-case-card__short-text {
  display: block;
  color: #6a7282;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  margin-top: 8px;
  /* margin-bottom: 12px; */
}

.clientes-case-card__link {
  display: inline-flex;
  align-items: center;
  color: #6a7282;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
  text-decoration: none;
  margin-top: 12px;
  transition: color 0.3s ease;
}

.clientes-case-card__link:hover {
  color: #7c3aed;
}

/* Controls (Seta prev/next e Pagination Dots) */
.cases-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 33px;
  width: 100%;
}

.cases-carousel__btn {
  display: flex;
  width: 50px;
  height: 50px;
  padding: 13px 13px 1px 13px;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cases-carousel__btn img {
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.cases-carousel__btn:hover {
  background: #7c3aed;
}

.cases-carousel__btn:hover img {
  filter: brightness(0) invert(1);
}

.cases-carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.cases-carousel__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cases-carousel__dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #4a5565;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.cases-carousel__dot--active {
  height: 12px;
  flex: 1 0 0;
  width: 32px;
  max-width: 32px;
  border-radius: 999px;
  background: #7c3aed;
}

/* Responsividade */
@media (max-width: 991px) {
  .clientes-cases__container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .clientes-cases-section {
    padding-bottom: 80px;
  }

  .clientes-cases__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .clientes-cases__title {
    margin-bottom: 40px;
    font-size: 28px;
    line-height: 34px;
  }
}

/* =============================================================
   Sexta Sessão: CTA Final (PRONTO PARA COMEÇAR?)
   ============================================================= */
.clientes-final-cta-section {
  background-color: #0a0a0b;
  padding-top: 36px;
  padding-bottom: 44px;
  text-align: center;
}

.clientes-final-cta__container {
  max-width: 1494px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

@media (min-width: 1024px) {
  .clientes-final-cta__container {
    padding-left: 95px;
    padding-right: 95px;
  }
}

.clientes-final-cta__title {
  color: #e5e5e5;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-top: 0;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.clientes-final-cta__action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.clientes-final-cta__button {
  display: inline-flex;
  width: 260px;
  height: 56px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 0.5px solid #7c3aed;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0) 65%,
    rgba(124, 58, 237, 0.18) 100%
  );
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.clientes-final-cta__button:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: #9b6bf7;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

@media (max-width: 768px) {
  .clientes-final-cta-section {
    padding-top: 40px;
    padding-bottom: 100px;
  }

  .clientes-final-cta__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .clientes-final-cta__title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 30px;
  }
}
