/*
  vertice-v6-patch.css
  CSS complementar para as seções S6-Footer do 6.html
  Tokens dependem do :root já definido inline em 6.html
*/

/* ============================================================
   S5 — PROVA-SOCIAL-FOTOS: fix picture/img fitas
   Ciclo vicioso: picture.width=0 → img(width:100%)=0.
   Fix: width explicito no picture quebra o ciclo. flex:0 0 auto
   com width calculado distribui os 3 slots igualmente.
   ============================================================ */
.prova-social-fotos picture {
  flex: 0 0 calc(33.333% - 11px);
  width: calc(33.333% - 11px);
  min-width: 0;
  display: block;
}
.prova-social-fotos picture img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--r-card-lg);
}
@media (max-width: 768px) {
  .prova-social-fotos picture {
    flex: none;
    width: 100%;
  }
  .prova-social-fotos picture img {
    aspect-ratio: auto;
    height: auto;
  }
}

/* ============================================================
   S8 — PLANOS: cards sobre fundo vermelho
   ============================================================ */
.plan-red {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  border-radius: var(--r-card-lg);
  transition: transform 0.35s var(--ease-enter), box-shadow 0.35s;
  cursor: default;
}

.plan-red .plan-roman {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.plan-red .plan-name {
  color: #fff;
}

.plan-red .plan-desc {
  color: rgba(255, 255, 255, 0.8);
}

.plan-red:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Card central destacado (desktop) */
@media (min-width: 768px) {
  .plan-red--featured {
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
  }
  .plan-red--featured:hover {
    transform: scale(1.03) translateY(-6px);
  }
}

/* ============================================================
   S8 — CTA branco sobre vermelho
   ============================================================ */
.btn-white-on-red {
  background: #fff;
  color: var(--color-primary);
  padding: 18px 42px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--t-fast);
  text-decoration: none;
  display: inline-block;
}

.btn-white-on-red:hover {
  background: #f4f4f4;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.btn-white-on-red:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ============================================================
   S12 — FAQ: estilo v5 com +/− vermelho
   ============================================================ */

/* Anula estilos globais de details/summary para .faq-item-v5 */
details.faq-item-v5 {
  border-bottom: 1px solid var(--color-border);
  border-top: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
  overflow: visible;
}

details.faq-item-v5:first-child {
  border-top: 1px solid var(--color-border);
}

details.faq-item-v5[open] {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

details.faq-item-v5 > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text-primary);
  list-style: none;
  display: block;
  padding: 24px 40px 24px 0;
  position: relative;
  font-weight: 500;
  justify-content: unset;
}

details.faq-item-v5 > summary::-webkit-details-marker {
  display: none;
}

details.faq-item-v5 > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  background-image: none;
  width: auto;
  height: auto;
  transition: none;
}

details.faq-item-v5[open] > summary {
  color: var(--color-primary);
}

details.faq-item-v5[open] > summary::after {
  content: '\2212'; /* − */
  transform: translateY(-50%);
}

details.faq-item-v5 .faq-answer {
  margin-top: 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
  padding-bottom: 24px;
  max-height: none;
  overflow: visible;
}

details.faq-item-v5 .faq-answer > p {
  padding: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  line-height: 1.7;
  margin-top: 16px;
}

/* ============================================================
   S9 — resultados-grid: hover scale sem borda dourada
   ============================================================ */
.resultados-grid picture img,
.resultados-grid img {
  border: none;
  box-shadow: var(--sh-md);
}

.resultados-grid picture img:hover,
.resultados-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--sh-lg);
}

/* ============================================================
   Footer: hover link Instagram → vermelho (sobrescreve accent)
   ============================================================ */
.footer-ig a:hover {
  color: var(--color-primary) !important;
}

/* === ALTERAÇÕES JANA (reposicionamento moda→marketing) === */
/* S2 padding após remoção das fotos+parágrafo duplicados */
.autoridade-section {
  padding-bottom: clamp(48px, 8vh, 80px);
}
/* Quote S3 em 1 linha no desktop, quebra normal no mobile.
   !important: o <style> inline carrega depois do <link> patch e sobrescreveria o max-width */
.problema-italic {
  max-width: min(960px, 94%) !important;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .problema-italic { white-space: normal !important; max-width: 100% !important; font-size: clamp(0.95rem, 4.5vw, 1.1rem); }
}
/* Footer pilares S4 em 1 linha no desktop */
.pilares-footer {
  max-width: min(900px, 94%) !important;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .pilares-footer { white-space: normal !important; max-width: 100% !important; font-size: var(--fs-body); }
}
