/* Componentes: cada bloco corresponde a um arquivo em componentes/. */

/* ══════════ HERO ══════════ */
.csd.csd-hero {
  position: relative; height: 100vh; min-height: 600px; max-height: 960px;
  overflow: hidden; display: flex; align-items: flex-end;
  background: var(--blue-800); color: #fff;
}
.csd.csd-hero.hero--interna { height: 72vh; min-height: 520px; max-height: 760px; }
.csd-hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--csd-foco, center 20%);
}
.csd-hero.hero--interna .hero-img { object-position: var(--csd-foco, 60% 40%);
}
.csd-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,15,28,.20) 0%, rgba(5,15,28,.45) 45%, rgba(5,15,28,.88) 100%);
}
.csd-hero.hero--interna .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,15,28,.72) 0%, rgba(5,15,28,.38) 45%, rgba(5,15,28,.05) 75%),
    linear-gradient(180deg, rgba(5,15,28,.35) 0%, rgba(5,15,28,.15) 35%, rgba(5,15,28,.8) 100%);
}
.csd-hero.hero--sem-foto { background: radial-gradient(ellipse 80% 70% at 85% 10%, rgba(37,99,184,.45), transparent 70%), var(--blue-800); }
.csd-hero.hero--sem-foto .hero-overlay { display: none; }
.csd-hero .hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 5rem;
}
.csd-hero.hero--interna .hero-content { padding-bottom: 4rem; }

.csd-hero .migalhas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 1.1rem; padding: 0;
  font-size: 12.5px; color: rgba(255,255,255,.7); list-style: none;
}
.csd-hero .migalhas a { color: rgba(255,255,255,.85); text-decoration: none; }
.csd-hero .migalhas a:hover { color: #fff; text-decoration: underline; }
.csd-hero .migalhas a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.csd-hero .migalhas li + li::before { content: '›'; margin-right: 6px; color: rgba(255,255,255,.45); }
.csd-hero .migalhas li > span { color: rgba(255,255,255,.75); }
.csd-hero .migalhas [aria-current] { color: #fff; font-weight: 600; }

.csd-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9);
  font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 1.25rem; line-height: 1.6;
}
.csd-hero .hero-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.csd-hero .hero-content h1 {
  font-family: var(--csd-serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500;
  color: #fff; line-height: 1.15; margin: 0 0 1.1rem; max-width: 640px; letter-spacing: -.01em;
  text-transform: none;
}
.csd-hero .hero-content h1 em { font-style: italic; color: rgba(255,255,255,.92); }
.csd-hero .hero-desc {
  font-size: 1.0625rem; color: rgba(255,255,255,.72); max-width: 480px; margin: 0 0 2rem; line-height: 1.65;
}
.csd-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .csd.csd-hero { height: 72vh; height: 72svh; min-height: 560px; max-height: 700px; }
  .csd.csd-hero.hero--interna { height: auto; min-height: 420px; max-height: none; padding-top: 112px; }
  .csd-hero .hero-content { padding: 0 1rem 3rem; }
  .csd-hero.hero--interna .hero-content { padding-bottom: 2.75rem; }
  .csd-hero .hero-img { object-position: var(--csd-foco-celular, var(--csd-foco, center 20%)); }
  .csd-hero.hero--interna .hero-img { object-position: var(--csd-foco-celular, var(--csd-foco, 34% 40%)); }
  .csd-hero .migalhas a { display: inline-block; padding: .45rem 0; margin: -.45rem 0; }
}

/* ══════════ PERGUNTAS E RESPOSTAS ══════════ */
.csd.csd-faq { padding: 4.5rem 0 5rem; }
.csd.csd-faq--cinza { background: var(--gray-100); }
.csd.csd-faq--branco { background: #fff; }
.csd-faq .csd-faq-grade { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.csd-faq .csd-faq-grade--so-lista { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.csd-faq .csd-faq-lista { display: flex; flex-direction: column; gap: .6rem; }
.csd-faq details { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; }
.csd.csd-faq--branco details { background: var(--gray-100); border-color: transparent; }
.csd-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 1.2rem;
  cursor: pointer; list-style: none; font: 600 15.5px/1.45 var(--csd-sans); color: var(--blue-900); border-radius: 14px; background: none;
}
.csd-faq summary::-webkit-details-marker { display: none; }
.csd-faq summary::after {
  content: '+'; flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 18px; font-weight: 500; transition: transform .2s;
}
.csd-faq details[open] summary::after { transform: rotate(45deg); }
.csd-faq summary:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.csd-faq .csd-faq-resposta { padding: 0 1.2rem 1.1rem; font-size: 15px; line-height: 1.7; color: var(--gray-700); }
.csd-faq .csd-faq-resposta p + p, .csd-faq .csd-faq-resposta :where(ul, ol) { margin-top: .75em; }
.csd-faq .csd-faq-resposta :where(ul, ol) { padding-left: 1.2em; }
.csd-faq .csd-faq-resposta a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .csd-faq .csd-faq-grade { grid-template-columns: 1fr; gap: 2rem; }
  .csd.csd-faq { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { .csd-faq summary::after { transition: none; } }
