/* Dora Corretora de Seguros — sistema de design
   Tokens definidos na diretriz de cores aprovada. */

:root {
  --neutro-0: #FFFFFF;
  --neutro-50: #FAFAF8;
  --neutro-100: #F2F1ED;
  --neutro-300: #D9D7D0;
  --neutro-600: #5A5A54;
  --texto: #171717;
  --marinho: #0A2A5E;
  --marinho-hover: #0E3672;
  --azul-medio: #0072BC;
  --laranja: #F7941E;
  --max-width: 1120px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--neutro-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  column-gap: 24px;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texto);
}

.logo-mark img { height: 60px; width: auto; }

.logo-mark span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--marinho);
}

nav.main-nav {
  display: flex;
  gap: 32px;
}

nav.main-nav a {
  color: var(--texto);
  text-decoration: none;
  font-size: 15px;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--marinho);
}

.nav-toggle { display: none; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--marinho);
  color: var(--neutro-0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--marinho-hover);
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--marinho);
  border-color: var(--neutro-300);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--marinho);
}

/* Motivo de assinatura: camadas concêntricas */
.layers-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.layers-motif svg { display: block; }

/* Seções */
section { position: relative; padding: 96px 0; }
section.tight { padding: 64px 0; }
section.alt { background: var(--neutro-50); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-medio);
  font-weight: 600;
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--texto);
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 16px; color: var(--neutro-600); max-width: 60ch; }

.lede { font-size: 19px; color: var(--neutro-600); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-photo {
  border-radius: 4px;
  overflow: hidden;
  background: var(--neutro-100);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Grids de cartão */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.card {
  padding: 32px;
  background: var(--neutro-0);
  border: 1px solid var(--neutro-100);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(10, 42, 94, 0.06);
}

.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 15px; }

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--marinho);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.card-link:hover { text-decoration: underline; }

/* Divisor com motivo */
.divider {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* Citação temática destacada */
.pull-quote {
  border-left: 3px solid var(--laranja);
  padding-left: 24px;
  margin: 40px 0;
}

.pull-quote .eyebrow { margin-bottom: 8px; }
.pull-quote h3 { margin-bottom: 12px; }

/* Lista de riscos */
.risk-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.risk-list li {
  padding-left: 28px;
  position: relative;
  color: var(--neutro-600);
  max-width: 62ch;
}

.risk-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--laranja);
}

/* Checklist de 7 pontos (metodologia) */
/* Seção escura (painel numerado) */
.section-dark {
  background: var(--marinho);
  color: #fff;
}

.section-dark .eyebrow { color: var(--laranja); }
.section-dark h2 { color: #fff; }
.section-dark p.lede { color: rgba(255,255,255,0.72); }

.panel-numbered {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  counter-reset: panel-counter;
}

.panel-numbered li {
  counter-increment: panel-counter;
}

.panel-numbered li::before {
  content: counter(panel-counter, decimal-leading-zero);
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--laranja);
  margin-bottom: 8px;
}

.panel-numbered li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.panel-numbered li span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 40ch;
}

@media (max-width: 700px) {
  .panel-numbered { grid-template-columns: 1fr; }
}

/* Selo de estatísticas (hero) */
.stat-badges {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-badges .stat span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutro-600);
  margin-bottom: 4px;
}

.stat-badges .stat strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--marinho);
}

/* CTA final */
.cta-final {
  text-align: center;
}

.cta-final h2 { max-width: 640px; margin-left: auto; margin-right: auto; }

/* WhatsApp fixo (mobile) */
.whatsapp-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}

.whatsapp-sticky:hover,
.whatsapp-sticky:focus-visible {
  background: #20BD5A;
  transform: scale(1.06);
}

.whatsapp-sticky svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Rodapé */
footer {
  border-top: 1px solid var(--neutro-300);
  padding: 48px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

footer p { font-size: 13px; color: var(--neutro-600); margin: 0; }

footer a { color: var(--neutro-600); }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--marinho); }

.placeholder {
  background: #FFF6E8;
  border: 1px dashed var(--laranja);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #8A5A00;
}

/* Tags de especialidade */
.tag-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-list li {
  padding: 8px 18px;
  border: 1px solid var(--neutro-300);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--marinho);
}

/* Depoimentos */
.testimonial p:first-child {
  font-style: italic;
  color: var(--texto);
  font-size: 15px;
}

.testimonial h3 { margin: 12px 0 2px; font-size: 15px; }

.testimonial-location {
  font-size: 13px;
  color: var(--neutro-600);
  margin: 0;
}

/* FAQ */
.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--neutro-300);
}

.faq-list details {
  border-bottom: 1px solid var(--neutro-300);
  padding: 18px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--texto);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  color: var(--marinho);
}

.faq-list details[open] summary::after { content: '−'; }

.faq-list p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* Responsivo */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--azul-medio);
  outline-offset: 2px;
}
