/* Mamu Precatórios — CSS escrito a mão, mobile primeiro.
   Breakpoints: 768px (tablet) e 1025px (desktop). */

:root {
  --azul: #000143;
  --ouro: #D09538;
  --texto: #474747;
  --claro: #F8F8F8;
  --cinza: #F5F5F5;
  --rodape: #202020;
  --largura: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }
.titulo { font-family: "Libre Baskerville", serif; font-weight: 400; line-height: 1.3; color: var(--azul); }
.ouro { color: var(--ouro); }
.centro { text-align: center; }
.rotulo { font-family: "Libre Baskerville", serif; font-weight: 400; font-size: 14px; line-height: 1; color: var(--ouro); margin-bottom: 8px; }
section h3.titulo { font-size: 24px; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ouro); color: #fff; text-decoration: none; border-radius: 3px;
  font-size: 15px; font-weight: 600; line-height: 1; text-transform: uppercase;
  padding: 20px; transition: filter .2s;
}
.botao:hover { filter: brightness(1.08); }

/* ---------- Topo ---------- */
.topo { position: relative; z-index: 10; background: var(--azul); }
.topo__barra { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.topo__logo img { width: 80px; height: auto; }
.topo__check { position: absolute; opacity: 0; pointer-events: none; }
.topo__botao { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px 2px; }
.topo__botao span { width: 22px; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.topo__menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: #fff; padding: 0;
}
.topo__menu a { color: var(--azul); text-decoration: none; padding: 13px 20px; font-size: 16px; line-height: 24px; }
.topo__menu a:hover { color: var(--ouro); }
.topo__check:checked ~ .topo__menu { display: flex; }
.topo__check:checked + .topo__botao span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.topo__check:checked + .topo__botao span:nth-child(2) { opacity: 0; }
.topo__check:checked + .topo__botao span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--azul) url("img/bg-headline-mobile.jpg") center bottom / cover no-repeat;
  min-height: 768px; color: var(--claro); text-align: center;
  padding: 28px 0 60px;
}
.hero__caixa { display: flex; flex-direction: column; align-items: center; }
.hero__titulo { font-size: 28px; color: #fff; margin-bottom: 16px; }
.hero__caixa p { font-size: 16px; line-height: 1.5; }
.hero .botao { margin-top: 40px; font-size: 14px; }

/* ---------- Blocos texto + foto (Como funciona / Para quem é) ---------- */
.bloco { display: flex; flex-direction: column; gap: 30px; }
#como { padding-top: 60px; }
.bloco--foto-esq .bloco__foto { order: 2; }
.bloco--foto-dir { padding: 40px 0 60px; }
.bloco__texto { padding: 0 20px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.bloco__texto p { line-height: 1.5; }
.bloco__foto { min-height: 250px; background: center / cover no-repeat; }
.bloco__foto--como { background-image: url("img/imagem-sessao-2.jpg"); }
.bloco__foto--para { background-image: url("img/imagem-sessao-3.jpg"); }
.botao--largo { align-self: stretch; margin-top: 20px; }

.lista-check { list-style: none; padding: 0; display: grid; gap: 20px; }
.lista-check li { position: relative; padding-left: 36px; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
  background: url("img/check.svg") center / contain no-repeat;
}

/* ---------- Passo a passo ---------- */
.passo { background: var(--azul); color: var(--claro); padding: 60px 0; }
.passo .titulo { color: #fff; }
.passo__grade { display: flex; flex-direction: column; gap: 20px; }
.passo__texto { display: flex; flex-direction: column; gap: 20px; }
.etapas { list-style: none; padding: 0; display: grid; gap: 20px; position: relative; }
.etapas li { display: flex; gap: 15px; align-items: flex-start; position: relative; }
.etapas li:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 50px; bottom: -20px; width: 1px; background: #C3922E;
}
.etapas img { width: 50px; height: 50px; flex: none; }
.etapas h4 { font-size: 18px; line-height: 1.2; margin: 8px 0 10px; }
.etapas p { line-height: 1.5; }
.passo__foto { width: 100%; height: auto; }

/* ---------- Sobre nós ---------- */
.sobre { background: var(--cinza); padding: 60px 0; }
.socio { display: flex; flex-direction: column; gap: 20px; }
.socio + .socio { margin-top: 60px; }
.socio__foto { order: 2; width: 100%; height: auto; }
.socio__texto { display: flex; flex-direction: column; gap: 20px; }
.socio__texto p { line-height: 1.5; }

/* ---------- Fale conosco ---------- */
.fale { padding: 60px 0; }
.fale__grade { display: flex; flex-direction: column; gap: 40px; }
.fale__texto { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.fale__texto .botao { margin-top: 20px; }
.fale__mapa { display: block; width: 100%; height: 350px; border: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--cinza); padding: 60px 0; }
.faq .rotulo { margin-bottom: 28px; }
.faq__intro { font-size: 16px; margin: 16px 0 40px; }
.faq__lista { display: grid; gap: 20px; max-width: 1024px; margin: 0 auto; }
.faq__lista summary {
  list-style: none; cursor: pointer; position: relative;
  border: 1px solid var(--ouro); padding: 20px 44px 20px 20px;
  font-family: "Libre Baskerville", serif; font-size: 14px; line-height: 1.5; color: var(--texto);
}
.faq__lista summary::-webkit-details-marker { display: none; }
/* Seta igual a do original: branca (quase invisivel no cinza enquanto fechado) */
.faq__lista summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: translateY(-25%) rotate(-135deg); transition: transform .2s;
}
.faq__lista details[open] summary { background: var(--ouro); color: #fff; }
.faq__lista details[open] summary::after { transform: translateY(-75%) rotate(45deg); }
.faq__lista details p { border: 1px solid #D5D8DC; border-top: 0; padding: 20px 40px; font-size: 16px; line-height: 1.5; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--rodape); color: rgba(255, 255, 255, .77); text-align: center; font-size: 14px; line-height: 1; padding: 20px; }

/* ================= Tablet ================= */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 45px; }
  .topo__barra { min-height: 75px; }
  .topo__logo img { width: 100px; }
  .rotulo { font-size: 18px; }
  section h3.titulo { font-size: 32px; }
  .botao { font-size: 18px; padding: 20px 40px; }

  .hero { background-image: url("img/bg-headline.jpg"); background-position: center; min-height: calc(100vh - 75px);
    text-align: left; display: flex; align-items: center; padding: 40px 0 100px; }
  .hero__caixa { align-items: flex-start; }
  .hero__titulo { font-size: 42px; max-width: 450px; }
  .hero__caixa p { max-width: 450px; }
  .hero .botao { font-size: 16px; }

  .bloco__texto { padding: 0 45px; }
  .bloco__texto > p, .bloco__texto > h3 { max-width: 633px; }
  .bloco__foto { min-height: 400px; }
  .botao--largo { align-self: flex-start; }
  .bloco--foto-dir { padding-bottom: 80px; }

  .lista-check li { padding-left: 31px; }
  .etapas img { width: 50px; height: 50px; }
  .etapas h4 { margin-top: 8px; }
  .passo__foto { max-width: 475px; margin: 20px auto 0; }

  .sobre { padding: 60px 0; }
  .socio__foto { max-width: 530px; margin: 20px auto 0; }
  .sobre .container { padding-left: 60px; }
  .socio__texto > * { max-width: 633px; }
  .etapas p { font-size: 14px; }

  .fale__mapa { height: 600px; max-width: 610px; margin: 0 auto; }

  .faq__lista { max-width: 644px; }
  .faq__lista summary { font-size: 16px; }
}

/* ================= Desktop ================= */
@media (min-width: 1025px) {
  body { font-size: 18px; }
  .container { max-width: 1320px; padding: 0 20px; }
  .topo__barra { min-height: 90px; }
  .topo__logo img { width: 130px; }
  .topo__botao { display: none; }
  .topo__menu {
    display: flex; position: static; flex-direction: row; background: none; gap: 70px;
  }
  .topo__menu a { color: #fff; padding: 0; font-size: 18px; line-height: 20px; }
  .topo__menu a:hover { color: var(--ouro); }
  section h3.titulo { font-size: 42px; }

  .hero { min-height: calc(100vh - 90px); padding: 40px 0 120px; }
  .hero__titulo { font-size: 59px; max-width: 633px; }
  .hero__caixa p { font-size: 18px; max-width: 633px; }
  .hero .botao { font-size: 18px; }

  .bloco { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
  #como { padding: 100px 0 50px; }
  .bloco--foto-dir { padding: 50px 0 100px; }
  .bloco--foto-esq .bloco__foto { order: 0; }
  .bloco__foto { min-height: 600px; align-self: stretch; }
  .bloco--foto-esq .bloco__texto { padding: 0 max(20px, calc(50vw - 640px)) 0 45px; }
  .bloco--foto-dir .bloco__texto { padding: 0 45px 0 max(20px, calc(50vw - 640px)); }
  .botao--largo { margin-top: 20px; }

  .passo { padding: 100px 0; }
  .passo__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .etapas img { width: 60px; height: 60px; }
  .etapas li:not(:last-child)::before { left: 30px; top: 60px; }
  .etapas h4 { font-size: 20px; margin-top: 8px; }
  .etapas p { font-size: 16px; }
  .passo__foto { max-width: none; margin: 0; }

  .sobre { padding: 100px 0; }
  .socio { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
  .socio + .socio { margin-top: 100px; }
  .socio__foto { order: 0; max-width: none; margin: 0; }
  .sobre .container { padding-left: 20px; }
  .socio__texto > * { max-width: none; }

  .fale { padding: 100px 0; }
  .fale__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .fale__mapa { height: 650px; max-width: none; }

  .faq { padding: 100px 0; }
  .faq__intro { font-size: 18px; }
  .faq__lista { max-width: 1024px; }
  .faq__lista details p { font-size: 16px; }
  .rodape { font-size: 16px; }
}
