/* 2R's Seguros — estilos do site. Mobile-first; breakpoints em 768px e 1024px. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-800.woff2) format('woff2');
}

:root {
  /* Cores derivadas do logo (azul #2a4272, magenta #f83bcb) */
  --navy-900: #16254a;
  --navy-700: #2a4272;
  --navy-100: #dde4f2;
  --navy-50: #f4f6fb;
  --magenta: #f23bc4;          /* só decorativo: contraste baixo para texto */
  --magenta-text: #b3127f;     /* 6,3:1 sobre branco */
  --ink: #16254a;
  --ink-soft: #4a5878;         /* 7,1:1 sobre branco */
  --line: #dde4f2;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;

  /* Verde reservado aos botões de WhatsApp. Branco sobre ele = 5,4:1 (AA) */
  --wa: #0e7a3c;
  --wa-hover: #0b6b35;
  --wa-tint: #e6f4ec;


  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 37, 74, .06), 0 8px 24px rgba(22, 37, 74, .08);
  --gutter: 16px;
  --max: 1120px;
  --bar-h: 92px;               /* altura da barra fixa de WhatsApp no mobile */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--bar-h);
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--magenta-text); }
:focus-visible { outline: 3px solid var(--magenta-text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Cabeçalho ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { width: 64px; height: 64px; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.main-nav a:hover { color: var(--magenta-text); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-wa-outline { background: #fff; color: var(--wa); border-color: var(--wa); }
.btn-wa-outline:hover { background: var(--wa-tint); color: var(--wa-hover); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; width: 100%; }
.btn-sm { min-height: 48px; padding: 10px 16px; font-size: .9375rem; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-50); color: var(--navy-900); }

.wa-status {
  display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0;
  font-size: .875rem; line-height: 1.4; color: var(--ink-soft);
}
.wa-status .dot { width: 10px; height: 10px; margin-top: .3em; border-radius: 50%; background: #9aa5bd; flex: none; }
.wa-status[data-open="true"] .dot { background: var(--wa); box-shadow: 0 0 0 4px var(--wa-tint); }

/* ---------- Hero ---------- */

.hero { background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%); padding: 32px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--magenta-text); margin-bottom: 12px;
}
.hero h1 { color: var(--navy-900); }
.hero .lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 36em; }
.hero-cta { margin-top: 24px; max-width: 420px; }
.trust {
  list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: .875rem; font-weight: 600; color: var(--navy-700);
}
.trust li { display: flex; align-items: center; gap: 6px; }
.trust li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--navy-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Composição gráfica do hero (decorativa) */
.hero-art { display: none; position: relative; }
.art-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
  border: 1px solid var(--line);
}
.art-chat { max-width: 300px; margin-left: auto; }
.art-chat .bubble {
  background: var(--wa-tint); border-radius: 14px 14px 4px 14px; padding: 10px 14px;
  font-size: .875rem; color: var(--ink); margin-left: 24px;
}
.art-chat .bubble.in { background: var(--navy-50); border-radius: 14px 14px 14px 4px; margin: 10px 24px 0 0; }
.art-compare { margin-top: -12px; margin-right: 48px; position: relative; }
.art-compare h3 { font-size: .875rem; color: var(--ink-soft); margin-bottom: 12px; }
.art-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; margin-top: 10px; font-size: .8125rem; font-weight: 600; }
.art-bars { display: grid; gap: 4px; }
.art-bars span { display: block; height: 8px; border-radius: 99px; background: var(--navy-100); }
.art-bars span::after { content: ""; display: block; height: 100%; border-radius: inherit; background: var(--navy-700); width: var(--w); }
.art-bars span.m::after { background: var(--magenta); }
.art-row.best { background: var(--navy-50); border-radius: 8px; padding: 6px; margin-left: -6px; margin-right: -6px; }
.art-legend { display: flex; gap: 16px; margin-top: 14px; font-size: .75rem; color: var(--ink-soft); }
.art-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-700); margin-right: 6px; vertical-align: -1px; }
.art-legend i.m { background: var(--magenta); }
.art-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.art-blob.a { width: 260px; height: 260px; background: #e9defa; top: -40px; right: -60px; opacity: .6; }
.art-blob.b { width: 180px; height: 180px; background: #fbd9f0; bottom: -40px; left: 0; opacity: .7; }

/* Imagem do hero das landings (família / empresa) */
.hero-illus .illus-img { width: 100%; max-width: 520px; height: auto; margin-left: auto; }
.illus-card { position: absolute; left: -24px; bottom: 0; max-width: 280px; padding: 16px 18px; }
.illus-title { margin: 0 0 10px; font-size: .875rem; font-weight: 800; color: var(--navy-900); }
.illus-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.illus-chips li { font-size: .8125rem; font-weight: 600; color: var(--navy-700); background: var(--navy-50); border-radius: 999px; padding: 4px 10px; }

/* ---------- Seções ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }
.section-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; }

.cards { display: grid; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { color: var(--navy-900); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--navy-50); color: var(--navy-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }

/* Cards que levam às landings (home) */
.path-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 28px 24px;
  transition: transform .15s;
}
.path-card:hover { color: #fff; transform: translateY(-2px); }
.path-card h3 { color: #fff; font-size: 1.375rem; }
.path-card p { color: #c7d2ea; }
.path-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.path-card .go::after { content: "→"; transition: transform .15s; }
.path-card:hover .go::after { transform: translateX(4px); }
.path-card.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.path-card.light h3 { color: var(--navy-900); }
.path-card.light p { color: var(--ink-soft); }
.path-card.light .go { color: var(--navy-700); }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li {
  counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 24px 76px; position: relative;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--ink-soft); margin: 0; }
.steps ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); }
.steps ul li { margin-top: 2px; }

/* Operadoras */
.ops-group + .ops-group { margin-top: 32px; }
.ops-group h3 { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.ops { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.op {
  display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; height: 76px;
}
.op img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
.ops-note { margin-top: 16px; font-size: .875rem; color: var(--ink-soft); }

/* Avaliações do Google */
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.review .stars { display: flex; gap: 2px; color: #e8a400; }
.review .stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--ink); }
.review-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.review-tags li { font-size: .8125rem; font-weight: 600; color: var(--navy-700); background: var(--navy-50); border-radius: 999px; padding: 4px 10px; }
.review figcaption { display: flex; flex-direction: column; font-size: .875rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.review figcaption strong { color: var(--ink); font-size: 1rem; }
.reviews-link { margin-top: 24px; }
.reviews-link a { font-weight: 600; }

/* Quem somos */
.about-grid { display: grid; gap: 8px 48px; }
.about-title h2 { color: var(--navy-900); margin-bottom: 0; }
.about-title h2 .brand { color: var(--magenta-text); }
.about-text { padding-top: 16px; }
.about-text p { color: var(--ink-soft); font-size: 1.0625rem; }
.about-closing { color: var(--navy-900) !important; }
.about-closing strong { color: var(--navy-900); }
.mvv { display: grid; gap: 16px; margin-top: 40px; }
.mvv .card p, .mvv .values { color: var(--ink-soft); }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.values strong { color: var(--navy-900); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--navy-700); border-bottom: 2.5px solid var(--navy-700); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 16px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 20px; }

/* CTA final */
.final-cta { background: var(--navy-900); color: #fff; padding: 56px 0; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #c7d2ea; max-width: 34em; margin-left: auto; margin-right: auto; }
.final-cta .btn { width: 100%; max-width: 420px; }
.final-cta .wa-status { justify-content: center; color: #c7d2ea; max-width: 420px; margin: 12px auto 0; }
.final-cta .wa-status[data-open="true"] .dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); background: #5fd38d; }

/* ---------- Rodapé ---------- */

.site-footer { background: #0f1a36; color: #c7d2ea; padding: 48px 0 24px; font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fbd9f0; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a, .site-footer .linklike { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand { text-align: center; }
.footer-brand img { margin: 0 auto; }
.footer-brand p { margin: 12px 0 0; font-weight: 600; color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(199, 210, 234, .2); margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: .8125rem; color: #9fb0d6;
}
.footer-legal > * { min-height: 44px; display: inline-flex; align-items: center; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}

/* ---------- WhatsApp fixo ---------- */

.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--bar-h);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(22, 37, 74, .08);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center;
}
.wa-bar .btn { width: 100%; min-height: 48px; }
.wa-bar .wa-status { margin: 6px 0 0; justify-content: center; text-align: center; font-size: .75rem; line-height: 1.25; }
.wa-bar .wa-status .dot { width: 8px; height: 8px; }
.wa-float { display: none; }

/* ---------- Banner de cookies ---------- */

.cookie-banner {
  position: fixed; z-index: 50; left: 8px; right: 8px; bottom: calc(var(--bar-h) + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; font-size: .875rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }

/* ---------- Páginas de texto (política) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.375rem; margin-top: 1.75em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .wa-bar { display: none; }
  .wa-float {
    display: inline-flex; position: fixed; right: 24px; bottom: 24px; z-index: 40;
    box-shadow: 0 8px 24px rgba(14, 122, 60, .35);
  }
  .cookie-banner { left: 24px; right: auto; bottom: 24px; max-width: 420px; }
  .hero { padding: 56px 0 64px; }
  .btn-lg { width: auto; }
  .cards.two, .cards.three, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .final-cta .btn { width: auto; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .hero-art { display: block; }
  .cards.three, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .about-text { padding-top: 34px; }
  .ops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 88px 0; }
}
