/* Estilos específicos para a seção aprovacao */
/* .testimonials-grid, .testimonial-item, .phone-mockup, etc. */

#aprovacao {
  padding: 3.5rem 0 2.5rem 0;
  background: #fff;
}

#aprovacao h2 {
  margin: 0;
  text-align: center;
  color: var(--primary-color, #9B6B9E);
  font-size: clamp(1.7rem, 3.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.2px;
}

#aprovacao .descricao {
  margin: 0.85rem auto 0;
  max-width: 820px;
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.65;
}
#aprovacao .phone-mockup {
  background: #222;
  border-radius: 38px;
  box-shadow: 0 4px 32px #0002, 0 1.5px 8px #9B6B9E22;
  padding: 0;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 3; /* bring mockup above nearby elements to avoid top clipping */
  overflow: visible; /* ensure decorative parts (notch) are visible */
  width: 240px;
  /* slightly taller for better visual balance (approx +20px) */
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: auto;
}
#aprovacao .phone-screen {
  width: 210px;
  /* slightly taller to match mockup */
  height: 430px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 24px;
  /* small inner padding so images don't touch the edges and look better inside the mockup */
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px #0001;
}
#aprovacao .phone-screen img {
  width: 100%;
  height: 100%;
  object-position: center;
  border-radius: 18px; /* leave some radius inside the screen padding */
  display: block;
  background: #fff;
}
/* JPEGs should fill the screen area to match the mockup look */
#aprovacao .phone-screen img[src$=".jpg"],
#aprovacao .phone-screen img[src$=".jpeg"] {
  object-fit: cover;
}
/* PNGs (often with transparency) should be contained to show background */
#aprovacao .phone-screen img[src$=".png"] {
  object-fit: contain;
}
#aprovacao .phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #222;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
#aprovacao .phone-button {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 8px;
  background: #222;
  border-radius: 8px;
  z-index: 2;
}
#aprovacao .depoimento-nome {
  font-size: 1.08rem;
  color: var(--primary-color, #9B6B9E);
  font-weight: 600;
  margin-top: 0.9rem;
  text-align: center;
  max-width: 95%;
  word-break: break-word;
}

/* Novo carrossel de depoimentos */
#aprovacao .depoimentos-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 100vw;
}
#aprovacao .depoimento-btn {
  /* remove from normal flow so buttons don't affect carousel centering */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color, #9B6B9E);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #9B6B9E22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 2;
}
#aprovacao .depoimento-btn.prev { left: 12px; }
#aprovacao .depoimento-btn.next { right: 12px; }
#aprovacao .depoimento-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#aprovacao .depoimento-btn:hover {
  background: var(--accent-color, #1dbf73);
  color: #fff;
}
#aprovacao .depoimentos-viewport {
  overflow: hidden;
  width: 265px;
  max-width: 98vw;
  border-radius: 28px;
  background: transparent;
  margin: 0 auto;
  /* accommodate slightly taller mockup */
  min-height: 520px;
  display: block;
  box-sizing: border-box;
}
#aprovacao .depoimentos-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  will-change: transform;
  box-sizing: border-box;
  justify-content: flex-start;
}
#aprovacao .depoimento-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  padding: 0.5rem 0.2rem 1.2rem 0.2rem;
}
#aprovacao .depoimento-slide.active {
  opacity: 1;
  transform: scale(1.07);
  z-index: 1;
  box-shadow: 0 6px 24px #9B6B9E22;
}
#aprovacao .depoimentos-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.2rem;
}
#aprovacao .depoimentos-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6d6f3;
  border: 2px solid #d1b6e6;
  cursor: pointer;
  transition: background 0.22s, border 0.22s, transform 0.22s;
}
#aprovacao .depoimentos-dot.active {
  background: #9B6B9E;
  border: 2px solid #9B6B9E;
  transform: scale(1.18);
}

/* MOBILE */
@media (max-width: 600px) {
  #aprovacao .depoimentos-carousel {
    max-width: 100vw;
  }
  #aprovacao .depoimentos-viewport {
    width: 92vw;
    max-width: 98vw;
    border-radius: 18px;
    /* increase to match desktop mockup height so mobile mimics desktop */
    min-height: 520px;
    padding: 0;
  }
  #aprovacao .depoimento-slide,
  #aprovacao .depoimento-slide.active {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.2rem 0.1rem 0.8rem 0.1rem;
    box-sizing: border-box;
  }
  #aprovacao .phone-mockup {
    /* imitate desktop mockup on mobile: fixed phone-like proportions */
    width: 220px;
    max-width: 90vw;
    min-width: 180px;
    height: 500px;
    border-radius: 22px;
    margin-top: 0.7rem;
  }
  #aprovacao .phone-screen {
    width: 190px;
    max-width: 86vw;
    height: 430px;
    border-radius: 16px;
    margin-top: 16px;
  }
  #aprovacao .phone-screen img {
    border-radius: 14px;
    height: 100%;
    width: 100%;
    /* object-fit handled by extension-specific rules above */
    max-width: 100%;
    max-height: 100%;
  }
  #aprovacao .phone-notch {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    margin: 0.18rem auto 0 auto;
    top: 5px;
  }
  #aprovacao .phone-button {
    width: 18px;
    height: 6px;
    border-radius: 4px;
    margin: 0.4rem auto 0 auto;
    bottom: 7px;
  }
  #aprovacao .depoimento-nome {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  #aprovacao .depoimento-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    /* keep size; positioning set per button to avoid conflicts */
  }
  #aprovacao .depoimento-btn.prev { left: 8px; }
  #aprovacao .depoimento-btn.next { right: 8px; }

  /* Espaçamento seguro do mockup no mobile: evita sobreposição com elemento pai */
  #aprovacao .depoimento-slide .phone-mockup {
    margin-top: 16px; /* ajuste pequeno — mude para 12px/20px se preferir */
  }
}
