/* /assets/css/faq.css
   FAQ azul tom sobre tom + imagem responsiva (não quebra no celular)
*/

:root{
  --b0: #061a3a;
  --b1: #0b3b8f;
  --b2: #0d6efd;
  --b3: #1e4ea7;

  --bg: #f3f8ff;
  --card: #eef6ff;
  --border: #cfe3ff;
  --soft: #dbeafe;

  --text: #1b3f86;
  --shadow: 0 14px 34px rgba(11, 59, 143, 0.10);
}

.faq-wrap{
  background: radial-gradient(circle at 10% 10%, #eaf3ff, var(--bg) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}

.faq-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.faq-title{
  color: var(--b0);
  font-weight: 950;
  font-size: 52px;
  line-height: 1.04;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.faq-subtitle{
  color: var(--b3);
  font-weight: 650;
  margin: 0 0 22px;
  font-size: 15px;
}

.faq-accordion{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item details{
  border-radius: 18px;
}

.faq-item summary{
  list-style: none;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  user-select:none;
}

.faq-item summary::-webkit-details-marker{ display:none; }

.faq-q{
  color: var(--b1);
  font-weight: 900;
  font-size: 18px;
}

.faq-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  display:grid;
  place-items:center;
  flex: 0 0 38px;
}

.faq-icon svg{
  width: 18px;
  height: 18px;
  fill: var(--b1);
  transition: transform .18s ease;
}

.faq-a{
  border-top: 1px solid rgba(11, 59, 143, 0.14);
  padding: 14px 18px 18px;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  line-height: 1.6;
}

.faq-item details[open] .faq-icon svg{
  transform: rotate(180deg);
}

.faq-item summary:hover{
  background: rgba(219,234,254,0.35);
}

/* ---------- Lado direito (mantendo o estilo) ---------- */
.faq-side{
  background: linear-gradient(180deg, #eaf3ff, var(--bg));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.faq-badge{
  display:inline-block;
  background: var(--b2);
  color:#fff;
  font-weight: 950;
  letter-spacing: .6px;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.faq-side h3{
  margin: 0 0 8px;
  color: var(--b0);
  font-weight: 950;
  font-size: 22px;
}

.faq-side p{
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 650;
  line-height: 1.5;
}

/* ✅ IMAGEM RESPONSIVA (não quebra no celular) */
.faq-figure{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
}

.faq-figure img{
  width: 100%;
  max-width: 420px;   /* controla no desktop */
  height: auto;
  display: block;
}

/* CTA (se você tiver no lado direito) */
.faq-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.faq-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-decoration:none;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}

.faq-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13,110,253,0.20);
}

.faq-btn-primary{
  background: var(--b2);
  color:#fff;
}

.faq-btn-secondary{
  background: #e9f2ff;
  color: var(--b1);
  border-color: var(--border);
}

/* ✅ MOBILE: coluna única + imagem menor */
@media (max-width: 992px){
  .faq-container{
    grid-template-columns: 1fr;
  }
  .faq-title{ font-size: 40px; }

  .faq-figure img{
    max-width: 320px; /* menor no celular */
  }
}

/* ✅ MOBILE pequeno: ainda menor */
@media (max-width: 420px){
  .faq-figure img{
    max-width: 260px;
  }
}
