/* ============================================================
   Zênit — about.css (AGENTE 5)
   Fundadores · Depoimentos · FAQ
   Mobile-first · apenas variáveis do design system
   ============================================================ */


/* ===== FUNDADORES ===== */

.about-founders {
  gap: 32px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.about-card:hover {
  border-color: rgba(243, 146, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

/* ---------- Foto / Avatar ---------- */
.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    160deg,
    var(--surface-2) 0%,
    #0D0D11 60%,
    var(--bg) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gradiente decorativo laranja muito sutil */
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(243, 146, 0, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Borda inferior suave */
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

/* Iniciais em Clash Display — translúcidas, gigantes */
.about-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  color: rgba(247, 247, 245, 0.07);
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ---------- Informações do fundador ---------- */
.about-info {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.about-role {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -4px;
}

.about-bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Pills de especialidade ---------- */
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.about-pills .pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-color: rgba(243, 146, 0, 0.25);
  color: var(--accent);
  transition: background-color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.about-pills .pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}


/* ===== DEPOIMENTOS ===== */

.testimonials-wrap {
  margin-top: clamp(64px, 10vw, 112px);
}

.section-head--inner {
  margin-bottom: 36px;
}

.testimonials-grid {
  gap: 24px;
}

.testimonial-card {
  position: relative;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Aspas decorativas laranja grandes */
.testimonial-quote {
  position: absolute;
  top: 20px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  leading-trim: both;
  text-edge: cap;
}

.testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-muted);
  padding-top: 32px; /* espaço para as aspas */
}

.testimonial-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-author {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}


/* ===== FAQ ===== */

.faq-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 52px;
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Item FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out);
}

.faq-item[open] {
  border-color: rgba(243, 146, 0, 0.28);
}

.faq-item:hover {
  border-color: rgba(243, 146, 0, 0.18);
}

/* ---------- Summary / Pergunta ---------- */
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out);
  min-height: 64px; /* touch target ≥44px */
  user-select: none;
}

/* Remove o marcador nativo (Webkit) */
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  display: none;
  content: "";
}

.faq-summary:hover {
  background: var(--surface-2);
}

.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}

/* Ícone "+" via pseudo-elemento — rotaciona 45° em [open] */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.faq-icon::before {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  display: block;
  transition: transform var(--duration) var(--ease-out);
}

/* Quando aberto: ícone rotaciona 45° (vira ×) */
.faq-item[open] .faq-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.faq-item[open] .faq-icon::before {
  transform: rotate(45deg);
}

/* ---------- Resposta ---------- */
.faq-answer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer p:first-child {
  padding-top: 20px;
}

/* Lista de bullets (mentoria) */
.faq-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

.faq-bullets li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.faq-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.faq-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

/* CTA inline dentro da resposta */
.faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--duration) var(--ease-out,
              color var(--duration) var(--ease-out));
}

.faq-cta:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.faq-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ===== RESPONSIVO — mobile-first ===== */

/* Empilha grid-2 dos fundadores abaixo de 900px (já coberto por base.css,
   mas reforçamos o gap específico da seção) */
@media (max-width: 900px) {
  .about-founders {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo {
    /* Em mobile, reduz um pouco a proporção para não dominar a tela */
    aspect-ratio: 3 / 2;
  }

  .about-initials {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .faq-head {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .about-info {
    padding: 24px 20px 28px;
  }

  .faq-summary {
    padding: 18px 20px;
  }

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

  .testimonial-card {
    padding: 36px 24px 28px;
  }

  .testimonial-quote {
    font-size: 4rem;
    left: 20px;
  }
}

/* ---------- Foto real do fundador (sobre as iniciais) ---------- */
.about-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─────────────────────────────────────────────────────────
   CARROSSEL CIRCULAR DOS FUNDADORES
   Recriação vanilla do componente CircularTestimonials
   (construído pelo JS a partir dos .about-card; sem JS,
   a grade original de cards permanece visível)
   ───────────────────────────────────────────────────────── */
.fc {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .fc {
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
  }
}

.fc__images {
  position: relative;
  width: 100%;
  height: clamp(340px, 46vw, 460px);
  perspective: 1000px;
}

.fc__img {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  transition: all 0.8s cubic-bezier(0.4, 2, 0.3, 1);
}

.fc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.fc__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 4px;
}

.fc__role {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.fc__bio {
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.75;
  min-height: 7.5em;
}

.fc__bio .fc__word {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.fc__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.fc__arrows {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.fc__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.fc__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
}

@media (prefers-reduced-motion: reduce) {
  .fc__img {
    transition: none;
  }
}
