/* ==========================================================================
   SECTION 8 — DEPOIMENTOS (Editorial)
   ========================================================================== */
.testimonials-section {
  position: relative;
  background-color: var(--off-white);
  padding: 140px 40px;
  z-index: 1;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Coluna Esquerda: Pegajosa ── */
.testimonials-left {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonials-left .section-label { color: var(--terracotta); }
.testimonials-left .label-line    { background: var(--terracotta); }

.testimonials-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--brown-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.testimonials-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brown-mid);
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}

/* ── Coluna Direita: Lista de Textos ── */
.testimonials-right {
  display: flex;
  flex-direction: column;
}

.testimonial-item {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid rgba(139, 107, 83, 0.2);
  display: flex;
  flex-direction: column;
  gap: 32px;
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-item:first-child {
  border-top: none;
  padding-top: 0;
}

.testimonial-item:last-child {
  padding-bottom: 0;
}

.testimonial-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Aspas estilo editorial */
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--terracotta);
  user-select: none;
}

.testimonial-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: var(--brown-dark);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 38ch;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-line {
  width: 40px;
  height: 1px;
  background-color: var(--brown-light);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--taupe);
}

/* ==========================================================================
   SECTION 9 — FAQ
   ========================================================================== */
.faq-section {
  position: relative;
  background-color: var(--brown-dark);
  padding: 120px 40px;
  z-index: 1;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--off-white);
  letter-spacing: -0.03em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(166, 69, 33, 0.3); /* Terracotta subtle */
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  gap: 20px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--terracotta);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { height: 14px; width: 2px; }

/* Abre o acordeão = vira um "menos" */
.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 32px 32px 32px;
  color: var(--brown-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 10 — FINAL CTA (The Arch Window Overlay)
   ========================================================================== */
.cta-section {
  position: relative;
  background-color: var(--brown-dark);
  padding: 140px 40px;
  z-index: 1;
}

/* Detalhe de linha de topo sutil para dividir do FAQ */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; right: 10%; left: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
}

.cta-container {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 80px;
}

/* ── Content Text ── */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--off-white);
  margin: 0;
}

.cta-title em {
  font-style: italic;
  color: var(--terracotta);
}

.cta-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--brown-light);
  margin: 0;
  max-width: 440px;
}

/* -- (O estilo do botão agora está global no style.css) -- */

/* ── Imagem com formato de Arco (Editorial Arch) ── */
.cta-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  aspect-ratio: 10 / 13; /* Moldura de revista */
  border-radius: 400px 400px 32px 32px; /* O arco superior gigante */
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  /* Dupla borda pra efeito de quadro */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 400px 400px 32px 32px;
  border: 4px solid rgba(40, 25, 29, 0.3); /* dark inset frame */
  pointer-events: none;
}

.cta-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
  display: block;
}

/* ==========================================================================
   FOOTER SIMPLES
   ========================================================================== */
.site-footer {
  background-color: var(--brown-dark);
  padding: 40px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-social:hover {
  opacity: 1 !important;
  color: var(--terracotta) !important;
  transform: translateY(-2px);
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--brown-light);
  margin: 0;
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.developer-credit a {
  color: var(--off-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.developer-credit a:hover {
  color: var(--terracotta);
}

/* ==========================================================================
   RESPONSIVE (SECTIONS 8, 9, 10)
   ========================================================================== */
@media (max-width: 900px) {
  .testimonials-section, .faq-section, .cta-section {
    padding: 80px 20px;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonials-left {
    position: static;
  }

  /* No Tablet, quebra o CTA para stack vertical invertido */
  .cta-container {
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
    text-align: center;
  }

  /* Muda a ordem: texto embaixo da foto */
  .cta-image-wrapper {
    margin: 0 auto;
    max-width: 400px;
  }

  .cta-content {
    align-items: center;
  }
}

@media (max-width: 540px) {
  .testimonial-item {
    padding: 48px 0;
    gap: 24px;
  }

  .testimonial-text {
    font-size: 1.4rem;
  }

  .faq-question {
    padding: 20px;
    font-size: 1.05rem;
  }

  .faq-answer-inner {
    padding: 0 20px 24px 20px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
  }

  .cta-image-wrapper {
    aspect-ratio: 10 / 12;
  }

  .footer-container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}
