/* ===================================
   HEADER
=================================== */

.sobre-header {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-soft);
  text-align: center;
}

.sobre-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.sobre-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   HISTORIA
=================================== */
.historia-section {
  background: var(--bg-soft);
}

.historia-section img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: auto;
}

.historia-section p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ===================================
   NUMEROS
=================================== */
.numeros-section {
  background: #111;
  color: white;
}

.numero {
  text-align: center;
}

.numero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.numero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   ESTATÍSTICAS
========================= */

.stats-card {
  background: var(--card);
  padding: 35px 25px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stats-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.stats-card p {
  color: var(--text-light);
  margin: 0;
}

/* =========================
   TRUST BADGE
========================= */

.trust-badge {
  display: inline-block;
  background: var(--bg-soft);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.trust-badge i {
  margin-right: 8px;
}

/* =========================
   QUOTE
========================= */

.quote-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.08;
  color: var(--text);
}

/* =========================
   STARS
========================= */

.stars {
  color: #f8b400;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

/* =========================
   CLIENTE
========================= */

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.client-info h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.client-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===================================
   FEEDBACKS
=================================== */

.testimonial-feedbacks {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.testimonial-feedbacks img {
  width: 85px;
  height: 170px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid var(--border);
}

.testimonial-feedbacks img:hover {
  transform: scale(1.05);
}

/* ===================================
   DEPOIMENTOS
=================================== */

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
  color: #f8b400;
  margin-bottom: 15px;
}

.testimonial-stars i {
  margin-right: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.testimonial-author h6 {
  margin: 0;
  font-weight: 700;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.testimonial-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid var(--border);
}

.testimonial-gallery img:hover {
  transform: scale(1.04);
}

.testimonial-project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.testimonial-project-btn:hover {
  background: var(--text);
  color: var(--bg);
}

/*=========================================================
 FORMULÁRIO DE DEPOIMENTO
=========================================================*/

.testimonial-form-section {
  padding: 120px 0;

  background: var(--bg);
}

.testimonial-form-header {
  max-width: 650px;

  margin: 0 auto 60px;

  text-align: center;
}

.section-tag {
  display: inline-block;

  font-size: 0.75rem;

  letter-spacing: 3px;

  font-weight: 600;

  color: var(--primary);

  margin-bottom: 18px;
}

.testimonial-form-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);

  margin-bottom: 18px;
}

.testimonial-form-header p {
  color: var(--text-light);

  line-height: 1.8;

  font-size: 1.05rem;
}

.testimonial-form {
  max-width: 800px;

  margin: auto;

  background: var(--surface);

  padding: 50px;

  border-radius: 28px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);

  border: 1px solid var(--border);
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 25px;
}

.form-group {
  display: flex;

  flex-direction: column;

  margin-bottom: 28px;
}

.form-group label {
  font-weight: 600;

  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  padding: 16px 18px;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: transparent;

  color: var(--text);

  font-size: 1rem;

  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

textarea {
  resize: vertical;
}

/* estrelas */

.rating {
  display: flex;

  flex-direction: row-reverse;

  justify-content: flex-end;
}

.rating input {
  display: none;
}

.rating label {
  font-size: 2rem;

  color: #d4d4d4;

  cursor: pointer;

  transition: 0.25s;

  margin-right: 6px;
}

.rating label:hover,
.rating label:hover ~ label {
  color: #f7b500;
}

.rating input:checked ~ label {
  color: #f7b500;
}

.testimonial-btn {
  width: 100%;

  padding: 18px;

  border: none;

  border-radius: 14px;

  background: #111;

  color: #fff;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.35s;
}

.testimonial-btn:hover {
  transform: translateY(-2px);

  background: #222;
}

/* DARK MODE */

body.dark-mode .testimonial-form {
  background: #181818;
}

body.dark-mode .testimonial-btn {
  background: #fff;

  color: #111;
}

body.dark-mode .testimonial-btn:hover {
  background: #ececec;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .testimonial-form {
    padding: 35px 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }
}

/* =========================
   LIGHTBOX SOBRE
========================= */

.sobre-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  z-index: 99999;
}

.sobre-lightbox.active {
  display: flex;
}

.sobre-lightbox img {
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.sobre-lightbox.active img {
  transform: scale(1);
}

.sobre-lightbox img.loaded {
  opacity: 1;
}

.sobre-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.sobre-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.sobre-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sobre-nav.prev {
  left: 30px;
}

.sobre-nav.next {
  right: 30px;
}

.sobre-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
}

.sobre-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sobre-actions .btn {
  border-radius: 50px;
}

.sobre-lightbox-img {
  cursor: pointer;
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 992px) {
  .sobre-header h1 {
    font-size: 2.6rem;
  }

  .numero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .sobre-header {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .sobre-header h1 {
    font-size: 2.2rem;
  }

  .sobre-header p {
    font-size: 0.95rem;
  }

  .historia-section {
    text-align: center;
  }

  .historia-section img {
    margin-bottom: 30px;
  }

  .numero {
    margin-bottom: 40px;
  }

  .numero h2 {
    font-size: 2.3rem;
  }

  .sobre-nav {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .sobre-nav.prev {
    left: 8px;
  }

  .sobre-nav.next {
    right: 8px;
  }

  .sobre-lightbox img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .testimonial-gallery {
    gap: 8px;
  }

  .testimonial-feedbacks img {
    width: 65px;
    height: 115px;
  }

  .testimonial-author img {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 576px) {
  .sobre-header h1 {
    font-size: 1.9rem;
  }

  .sobre-header p {
    font-size: 0.9rem;
  }

  .historia-section p {
    font-size: 0.95rem;
  }

  .numero h2 {
    font-size: 2rem;
  }

  .numero p {
    font-size: 0.95rem;
  }
  .sobre-actions {
    width: 100%;
    padding: 0 15px;
    gap: 10px;
  }

  .sobre-actions .btn {
    min-width: 140px;
    flex: unset;
  }

  .sobre-lightbox {
    padding-top: 70px;
    padding-bottom: 120px;
  }

  .sobre-lightbox img {
    max-width: 92vw;
    max-height: 58vh;
  }

  .sobre-nav {
    top: auto;
    bottom: 90px;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .sobre-nav.prev {
    left: calc(50% - 60px);
  }

  .sobre-nav.next {
    right: calc(50% - 60px);
  }
}

@media (max-width: 400px) {
  .sobre-header h1 {
    font-size: 1.7rem;
  }

  .numero h2 {
    font-size: 1.8rem;
  }
}
