/* Página Sobre - Hero Section - Mobile First Approach */

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

.hero-sobre {
  background-image: url("../images/hero-mobile-sobre.jpg");
  background-size: cover;
  background-position: center;
  background-color: #fcecef;
  height: 500px;
  display: flex;
  align-items: center;
  padding: 70px 15px 40px 15px;

  border-bottom: 10px solid var(--primary-color);
}

.hero-sobre-content {
  background-color: rgba(255, 255, 255, 0.8);
  max-width: 100%;
  margin: 0 auto;
  padding: 25px 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-sobre h1 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #222;
}

.hero-sobre h1 span {
  color: var(--primary-color);
  font-weight: 600;
}

.hero-sobre p {
  font-size: 13px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.5;
}

.hero-sobre .btn {
  padding: 12px 30px;
  font-size: 14px;
  border-radius: 25px;
  display: inline-block;
  text-decoration: none;
  margin-top: 10px;
}

/* --- Seção wrapper --- */
.timeline-section {
  padding: 100px 0 120px;
  background: #faf6f8;
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 10% 20%,
      rgba(193, 52, 118, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 90% 80%,
      rgba(193, 52, 118, 0.05) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* --- Cabeçalho da seção --- */
.timeline-header {
  text-align: center;
  margin-bottom: 80px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeline-label {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.timeline-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.timeline-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  border-radius: 4px;
}

.timeline-subtitle {
  color: #777;
  font-size: 16px;
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.65;
}

/* --- Trilho com linha vertical --- */
.timeline-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--primary-color) 5%,
    var(--primary-color) 95%,
    transparent 100%
  );
  border-radius: 3px;
  opacity: 0.3;
}

/* --- Cada entrada da timeline --- */
.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Entrada reversa — imagem troca de lado */
.timeline-entry.reverse .te-image-side {
  order: 3;
}
.timeline-entry.reverse .te-connector {
  order: 2;
}
.timeline-entry.reverse .te-text-side {
  order: 1;
}

/* --- Lado da imagem --- */
.te-image-side {
  padding: 8px;
}

.te-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.te-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.img-top img {
  object-position: top;
}

.timeline-entry:hover .te-image-wrapper img {
  transform: scale(1.04);
}

.te-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(193, 52, 118, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* --- Conector central com badge de ano --- */
.te-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.te-year-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(193, 52, 118, 0.12),
    0 8px 24px rgba(193, 52, 118, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.timeline-entry:hover .te-year-badge {
  transform: scale(1.1);
  box-shadow:
    0 0 0 10px rgba(193, 52, 118, 0.1),
    0 12px 30px rgba(193, 52, 118, 0.4);
}

/* --- Lado do texto --- */
.te-text-side {
  padding: 8px;
}

.te-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(193, 52, 118, 0.08);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.te-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(193, 52, 118, 0.08);
  border-color: rgba(193, 52, 118, 0.25);
}

/* Card de destaque (último) */
.te-card-highlight {
  background: linear-gradient(135deg, #fff8fb 0%, #fff 100%);
  border-color: rgba(193, 52, 118, 0.2);
}

.te-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(193, 52, 118, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.te-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  line-height: 1.25;
}

.te-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Estatística de destaque */
.te-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  padding: 12px 24px;
  border-radius: 12px;
}

.te-stat strong {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.te-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Animações keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVIDADE

/* Tablet médio — colapsa a grade 3 col em 2 col */
@media (max-width: 900px) {
  .timeline-header h2 {
    font-size: 30px;
  }
  .timeline-entry {
    grid-template-columns: 1fr 64px 1fr;
    margin-bottom: 60px;
  }
  .te-year-badge {
    width: 54px;
    height: 54px;
    font-size: 12px;
  }
  .te-card {
    padding: 28px 28px;
  }
  .te-card h3 {
    font-size: 19px;
  }
}

/* Mobile — layout em coluna única */
@media (max-width: 640px) {
  .timeline-section {
    padding: 70px 0 90px;
  }
  .timeline-header {
    margin-bottom: 50px;
  }
  .timeline-header h2 {
    font-size: 26px;
  }
  .timeline-subtitle {
    font-size: 14px;
  }
  .timeline-spine {
    display: none;
  }

  .timeline-entry,
  .timeline-entry.reverse {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
  }

  .timeline-entry .te-image-side,
  .timeline-entry.reverse .te-image-side {
    order: 1 !important;
  }

  .timeline-entry .te-connector,
  .timeline-entry.reverse .te-connector {
    order: 2 !important;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 0 8px 0;
  }

  .timeline-entry .te-text-side,
  .timeline-entry.reverse .te-text-side {
    order: 3 !important;
  }

  .te-image-wrapper {
    aspect-ratio: 16 / 9;
  }
  .te-year-badge {
    width: 48px;
    height: 48px;
    font-size: 11px;
    box-shadow:
      0 0 0 5px rgba(193, 52, 118, 0.1),
      0 6px 16px rgba(193, 52, 118, 0.3);
  }
  .te-card {
    padding: 24px 22px;
    border-radius: 16px;
  }
  .te-card h3 {
    font-size: 18px;
  }
  .te-card p {
    font-size: 14px;
  }
  .te-stat strong {
    font-size: 26px;
  }
}

/* Tablets pequenos (480px e acima) */
@media (min-width: 480px) {
  .hero-sobre {
    padding: 80px 20px 50px 20px;

    background-image: url("../images/hero-sobre.jpg");
  }

  .hero-sobre-content {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .hero-sobre h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .hero-sobre p {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-sobre .btn {
    padding: 14px 35px;
    font-size: 15px;
    border-radius: 30px;
  }
}

/* Tablets (768px e acima) */
@media (min-width: 768px) {
  .hero-sobre-content {
    background-color: transparent;
    box-shadow: none;
    text-align: left;
    max-width: 300px;
    padding: 0;
  }

  .hero-sobre h1 {
    font-size: 35px;
  }

  .hero-sobre p {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

/* Desktops (1024px e acima) */
@media (min-width: 1024px) {
  .hero-sobre {
    height: 600px;
    padding: 100px 30px 60px 30px;
  }

  .hero-sobre-content {
    max-width: 600px;
  }

  .hero-sobre h1 {
    font-size: 32px;
  }

  .hero-sobre p {
    width: 450px;
  }
}

/* Large Desktops (1200px e acima) */
@media (min-width: 1200px) {
  .hero-sobre {
    height: 700px;
    padding: 120px 40px 80px 40px;
  }

  .hero-sobre-content {
    max-width: 800px;
  }

  .hero-sobre h1 {
    font-size: 45px;
  }

  .hero-sobre p {
    font-size: 20px;
    width: 600px;
  }
}

/* Ultra Large Screens (1400px e acima) */
@media (min-width: 1400px) {
  .hero-sobre {
    height: 800px;
  }
}

@media (min-width: 2000px) {
  .hero-sobre {
    height: 1100px;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #fff 0%, #fdf5f8 100%);
}

.testimonials-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 600;
  position: relative;
}

.testimonials-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(193, 52, 118, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(193, 52, 118, 0.2);
  border-color: var(--primary-hover);
}

.testimonial-card h3 {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.testimonial-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
  font-style: italic;
}

/* Mobile */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 40px 0;
  }

  .testimonials-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .testimonial-card h3 {
    font-size: 18px;
  }

  .testimonial-card p {
    font-size: 14px;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .testimonials-section h2 {
    font-size: 32px;
  }
}

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

  .testimonials-section {
    padding: 80px 0;
  }

  .testimonials-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
  }
}
