/* =============================================================
   FG GESTÃO DE RISCOS — Sistema de design
   Paleta: branco · azul-marinho · dourado
   ============================================================= */

:root {
  --navy: #14264a;
  --navy-deep: #0b1830;
  --navy-soft: #1e356090;
  --blue: #2a5db0;
  --blue-bright: #3f7fd6;
  --gold: #c6a24a;
  --gold-deep: #ab8734;
  --gold-soft: #ecdcb4;
  --white: #ffffff;
  --mist: #eef1f8;
  --mist-2: #f7f9fc;
  --ink: #16203a;
  --ink-soft: #59617a;
  --line: #e2e6f0;

  --container: 1200px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 58, .06), 0 6px 18px rgba(16, 32, 58, .06);
  --shadow-md: 0 20px 45px -22px rgba(16, 32, 58, .32);
  --shadow-gold: 0 16px 36px -14px rgba(198, 162, 74, .55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #c9d3e8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 640px; }
.measure.center { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold-soft); }

.display {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 800;
}
.display--caps { text-transform: uppercase; }
.tx-gold { color: var(--gold); }
.tx-blue { color: var(--blue-bright); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); }
.section--navy .lead { color: #c9d3e8; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); box-shadow: var(--shadow-gold); }
.btn--gold:hover { --btn-bg: var(--gold-deep); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: #c7cee0; }
.btn--outline:hover { border-color: var(--navy); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: #fff; }

.btn--xl { min-height: 66px; padding: 0 40px; font-size: 1.12rem; }
.btn--block { display: flex; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 32, 58, .5);
}

.brand { display: flex; align-items: center; gap: 12px; view-transition-name: brand; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__mark .lm-a { stroke: #173a63; }
.brand__mark .lm-b { stroke: #2f6fb2; }
.brand__mark .lm-pulse { stroke: #7cb2e2; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.brand__name span { font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.site-header.at-top:not(.is-solid) .brand__name b { color: #fff; }
.site-header.at-top:not(.is-solid) .brand__name span { color: var(--gold-soft); }
.site-header.at-top:not(.is-solid) .brand__mark .lm-a { stroke: #dbe8f6; }
.site-header.at-top:not(.is-solid) .brand__mark .lm-b { stroke: #9cc4ea; }
.site-header.at-top:not(.is-solid) .brand__mark .lm-pulse { stroke: #c3ddf3; }
.site-footer .brand__mark .lm-a { stroke: #4a6da0; }
.site-footer .brand__mark .lm-b { stroke: #6f9fd6; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600; font-size: .96rem; color: var(--navy);
  position: relative; padding: 6px 2px;
}
.site-header.at-top:not(.is-solid) .nav a { color: #eaf0ff; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; background: transparent; border-radius: 12px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.site-header.at-top:not(.is-solid) .nav-toggle span,
.site-header.at-top:not(.is-solid) .nav-toggle span::before,
.site-header.at-top:not(.is-solid) .nav-toggle span::after { background: #fff; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); background: #fff; }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ---------- mobile drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 110px 30px 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #fff;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
body.nav-open .mobile-nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .07s); }
.mobile-nav .btn { margin-top: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: var(--navy-deep);
  color: #d7deef;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(198,162,74,.28), transparent 55%),
    linear-gradient(180deg, rgba(11,24,48,.72), rgba(11,24,48,.92));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__sub { max-width: 620px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #c9d3e8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #cdd6e8; font-weight: 500; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef2fb, #e2e8f7);
  margin-bottom: 18px;
}
.card__ico svg { width: 26px; height: 26px; color: var(--blue); }
.card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.card p { font-size: .97rem; margin: 0; }
.card--navy { background: #1a2f5a; border-color: #274277; color: #c7d2e8; }
.card--navy h3 { color: #fff; }
.card--navy .card__ico { background: rgba(198,162,74,.16); }
.card--navy .card__ico svg { color: var(--gold-soft); }

/* ---------- feature / zigzag ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 8vw, 110px); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; background: var(--mist);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold-soft); color: var(--navy);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- big list ---------- */
.biglist { list-style: none; margin: 0; padding: 0; }
.biglist li {
  position: relative; padding: 20px 0 20px 42px; border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.biglist li:first-child { border-top: 0; }
.biglist li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--gold-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314264a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.biglist li b { color: var(--navy); font-family: var(--font-display); }

/* ---------- coverage groups ---------- */
.cov-group { margin-top: 40px; }
.cov-group h3 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep);
  border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 6px;
}
.cov-item { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.cov-item h4 { font-size: 1.08rem; color: var(--navy); margin: 0; }
.cov-item p { margin: 0; font-size: .97rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 24px 14px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--navy); line-height: 1; }
.section--navy .stat b { color: #fff; }
.stat span { font-size: .92rem; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 34px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--gold);
  display: block; margin-bottom: 10px; line-height: 1;
}
.step h3 { font-size: 1.12rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband .display { margin-bottom: .3em; }
.ctaband .btn { margin-top: 10px; }
.ctaband__contact { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; font-size: .95rem; }
.ctaband__contact a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.ctaband__contact svg { width: 17px; height: 17px; color: var(--gold-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.faq__q .pm { position: relative; width: 20px; height: 20px; flex: none; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform .25s var(--ease); }
.faq__q .pm::before { inset: 9px 0; height: 2px; }
.faq__q .pm::after { inset: 0 9px; width: 2px; }
.faq__item.open .faq__q .pm::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a > div { padding: 0 24px 22px; font-size: .98rem; }

/* ---------- form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: .95rem; }
.field .req { color: var(--gold-deep); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--mist-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-bright); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: .88rem; background: var(--mist); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; margin-bottom: 24px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #97a4c2; font-size: .92rem; padding: 66px 0 34px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand__name b { color: #fff; }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; line-height: 1.6; color: #7f8cab; }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  padding: 15px 22px; border-radius: 999px; box-shadow: var(--shadow-gold);
  transform: translateY(160%); transition: transform .4s var(--ease), background .2s var(--ease);
}
.wa-float.show { transform: translateY(0); }
.wa-float:hover { background: var(--gold-deep); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- reveal animations (progressive enhancement: hidden only when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .08s); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- view transitions (cross-page) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .cov-item { grid-template-columns: 1fr; gap: 6px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- print / PDF de validação ---------- */
@media print {
  @page { size: 1240px 1754px; margin: 22px; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #fff !important; }
  .js [data-reveal],
  .js [data-reveal].is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nav-toggle, .wa-float, .header-cta { display: none !important; }
  .site-header { position: static !important; background: #fff !important; box-shadow: none !important; border-bottom: 1px solid var(--line) !important; }
  .site-header .nav { display: flex !important; gap: 20px; }
  .site-header.at-top .brand__name b { color: var(--navy) !important; }
  .site-header.at-top .brand__name span { color: var(--gold-deep) !important; }
  .site-header.at-top .brand__mark .lm-a { stroke: #173a63 !important; }
  .site-header.at-top .brand__mark .lm-b { stroke: #2f6fb2 !important; }
  .site-header.at-top .brand__mark .lm-pulse { stroke: #7cb2e2 !important; }
  .hero { min-height: 0 !important; padding: 40px 0 56px !important; }
  .hero__bg img { opacity: .28 !important; }
  .section { padding: 46px 0 !important; }
  .section--navy, .band, .final, .hero { background: var(--navy) !important; }
  .card, .feature, .step, .faq__item, .cov-item, .stat, .form-card, .ctaband { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .feature { page-break-inside: avoid; }
  a[href^="http"]::after { content: ""; }
  .faq__a { max-height: none !important; overflow: visible !important; }
  .faq__item .faq__a > div { padding-top: 4px; }
}
