/* ===========================================================
   Proteção Seguros — estilos compartilhados (todas as páginas)
   =========================================================== */

/* ── Tokens ── */
:root {
  --red:       #FF3131;
  --red-dk:    #CC0000;
  --red-grad:  linear-gradient(135deg, #FF3131 0%, #CC0000 100%);
  --ink:       #0f172a;
  --text:      #1f2937;
  --dim:       #4b5563;
  --muted:     #6b7280;
  --bg:        #ffffff;
  --soft:      #f8fafc;
  --soft-2:    #f1f5f9;
  --card:      #ffffff;
  --border:    rgba(15,23,42,0.08);
  --shadow:    0 10px 30px rgba(15,23,42,0.06);
  --shadow-h:  0 20px 45px rgba(204,0,0,0.14);
  --radius:    16px;
  --radius-lg: 22px;
  --nav-h:     66px;
  --gutter:    20px;
  --maxw:      1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red-grad); color: #fff; box-shadow: 0 8px 20px rgba(204,0,0,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.28); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--red-dk); border: 1.5px solid var(--red); }
.btn-ghost:hover { background: rgba(255,49,49,.06); }

/* ── Top bar ── */
.topbar {
  background: var(--red-dk); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 7px var(--gutter); flex-wrap: wrap; text-align: center;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-dk); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ── Hero (home) ── */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; background: var(--soft); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,49,49,.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(204,0,0,.06), transparent 40%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.12; color: var(--ink); letter-spacing: -.5px; }
.hero h1 .accent { color: var(--red-dk); }
.hero p.sub { margin: 20px 0 28px; font-size: clamp(16px, 1.6vw, 18px); color: var(--dim); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--dim);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.pill svg { width: 16px; height: 16px; color: var(--red); }

/* ── Hero honeycomb ── */
.honeycomb { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hc-row { display: flex; gap: 10px; }
.hc-row.offset { margin: -22px 0; }
.hex {
  width: 120px; height: 138px; position: relative; overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--red-grad); box-shadow: 0 10px 24px rgba(204,0,0,.18);
}
.hex img { width: 100%; height: 100%; object-fit: cover; }
.hex.label { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 6px; }
.hex.label .ico { font-size: 26px; line-height: 1; }
.hex.label span { font-size: 13px; font-weight: 700; }
@media (max-width: 1024px) { .hex { width: 100px; height: 116px; } .hc-row.offset { margin: -18px 0; } }

/* ── Page header (páginas internas / blog) ── */
.page-head { position: relative; background: var(--red-grad); color: #fff; padding: 56px 0; text-align: center; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .crumbs { font-size: 13px; opacity: .9; margin-bottom: 12px; }
.page-head .crumbs a { text-decoration: underline; opacity: .9; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.4px; }
.page-head p { margin-top: 14px; font-size: 16px; opacity: .95; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ── Section heads ── */
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head .eyebrow { color: var(--red-dk); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--ink); margin: 10px 0 14px; letter-spacing: -.4px; }
.sec-head p { color: var(--dim); font-size: 16px; }

/* ── Product cards ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; align-items: center;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); border-color: rgba(255,49,49,.25); }
.pcard .thumb {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15,23,42,.12);
}
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3 { font-size: 19px; font-weight: 700; color: var(--red-dk); margin-bottom: 10px; }
.pcard p { font-size: 14.5px; color: var(--muted); flex: 1; }
.pcard .pcta {
  margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--red-dk);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 0; transition: gap .15s; text-decoration: none;
}
.pcard .pcta:hover { gap: 11px; }

/* ── Sobre ── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); margin-bottom: 18px; letter-spacing: -.4px; }
.about p { color: var(--dim); margin-bottom: 16px; }
.about .stats { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.about .stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--red-dk); }
.about .stat span { font-size: 13.5px; color: var(--muted); }
.eyebrow-inline { color: var(--red-dk); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ── Form ── */
.form-section { background: var(--red-grad); color: #fff; }
.form-card {
  max-width: 620px; margin: 0 auto; background: #fff; color: var(--text);
  border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: 0 25px 60px rgba(0,0,0,.22);
}
.form-card .sec-head { margin-bottom: 26px; }
.form-card .sec-head h2 { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--soft); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,49,49,.12); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { width: 100%; margin-top: 8px; font-size: 16px; padding: 16px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-on { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 32px; }
.form-success h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.form-success p { color: var(--dim); margin-bottom: 22px; }

/* ── Footer ── */
.footer { background: #0c0f14; color: #cbd5e1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: #94a3b8; max-width: 240px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a, .footer-contact p { font-size: 14px; color: #94a3b8; transition: color .15s; }
.footer li a:hover { color: #fff; }
.footer-contact p { margin-bottom: 12px; display: flex; gap: 9px; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding: 20px 0; text-align: center; font-size: 13px; color: #64748b; }

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); animation: pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ===========================================================
   BLOG
   =========================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.bcard-media { aspect-ratio: 2/1; overflow: hidden; background: var(--soft-2); }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bcard:hover .bcard-media img { transform: scale(1.04); }
.bcard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.bcard .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.bcard h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.bcard p { font-size: 14px; color: var(--dim); flex: 1; }
.bcard .readmore { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--red-dk); display: inline-flex; gap: 6px; transition: gap .15s; }
.bcard:hover .readmore { gap: 11px; }

/* ── Artigo ── */
.article { max-width: 760px; margin: 0 auto; }
.article .a-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.article .a-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.article h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.article h3 { font-size: 18.5px; font-weight: 700; color: var(--red-dk); margin: 26px 0 8px; }
.article p { color: var(--text); margin-bottom: 16px; font-size: 16.5px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 14px; color: var(--text); font-size: 16.5px; }
.article li strong { color: var(--ink); }

/* ── CTA box ── */
.cta-box {
  margin-top: 44px; background: var(--soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; text-align: center;
  border-left: 5px solid var(--red);
}
.cta-box h3 { font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.cta-box p { color: var(--dim); margin-bottom: 20px; }
.cta-box .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Veja também ── */
.related { margin-top: 56px; }
.related h2 { font-size: 22px; color: var(--ink); margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: border-color .15s, transform .15s; }
.related a:hover { border-color: var(--red); transform: translateY(-3px); }

/* ── Newsletter ── */
.newsletter { background: var(--red-grad); color: #fff; }
.newsletter .nl-card { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.newsletter p { opacity: .95; margin-bottom: 24px; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nl-form input { flex: 1; min-width: 180px; font-family: inherit; font-size: 15px; padding: 13px 16px; border: 0; border-radius: 12px; }
.nl-form input:focus { outline: 2px solid rgba(255,255,255,.6); }
.nl-form .btn { background: #0c0f14; color: #fff; }
.nl-success { display: none; margin-top: 16px; font-weight: 600; }
.nl-success.is-on { display: block; }

/* ── Contato ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ci-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,49,49,.08); color: var(--red-dk); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-info h4 { font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.contact-info a, .contact-info p { font-size: 14.5px; color: var(--dim); }
.contact-info a:hover { color: var(--red-dk); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }
.contact-grid .form-card { box-shadow: var(--shadow); margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 18px var(--gutter); gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .honeycomb { transform: scale(.85); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .grid, .blog-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; gap: 14px; }
  .hero { padding: 36px 0 44px; }
}
