/* =====================================================================
   MPR SERVIÇOS DIGITAIS — Estilos
   Cores principais editáveis em :root
   ===================================================================== */

:root {
  --navy-900: #071528;
  --navy-800: #0B1F3A;   /* azul-marinho profundo */
  --navy-700: #13294B;
  --navy-600: #1F3D66;
  --teal-600: #0E7C7B;   /* verde-petróleo */
  --teal-500: #12918F;
  --teal-300: #2BB3A8;
  --teal-50:  #E6F4F3;
  --gray-50:  #F5F7FA;   /* cinza-claro */
  --gray-100: #EEF2F6;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #526178;
  --gray-800: #1E293B;
  --white: #FFFFFF;
  --danger: #B42318;
  --warning-bg: #FFF7E6;
  --warning-fg: #7A4B00;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, .08);
  --header-h: 72px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: .9rem;
}
.eyebrow-light { color: var(--teal-300); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .975rem/1 var(--font-body);
  padding: 15px 24px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 6px 16px rgba(14, 124, 123, .25); }
.btn-primary:hover { background: var(--teal-500); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-mpr { font: 800 1.35rem/1 var(--font-head); color: var(--navy-800); letter-spacing: .01em; }
.logo-text { font: 600 .66rem/1 var(--font-body); color: #2060FF; letter-spacing: .2em; margin-top: 4px; }
.footer-icon { width: 40px; height: 40px; margin-bottom: 14px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav ul a {
  color: var(--gray-600); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 6px 0; position: relative; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal-600); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--navy-800); }
.main-nav ul a.active::after, .main-nav ul a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-right: -10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  /* backdrop-filter criaria um contêiner para o menu fixo; no celular usamos fundo sólido */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 24px 32px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-800); color: #CBD5E1;
  padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(43,179,168,.18), transparent 60%),
    radial-gradient(500px 380px at 0% 100%, rgba(92,139,201,.14), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--teal-300); }
.hero .lead { font-size: clamp(1.03rem, 1.4vw, 1.15rem); max-width: 560px; color: #B8C4D6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s ease-out forwards; }
.float-a { animation: floatY 6s ease-in-out infinite; }
.float-b { animation: floatY 7s ease-in-out .8s infinite; }
.dash { animation: dashMove 1.6s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dashMove { to { stroke-dashoffset: -16; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--gray-600); font-size: 1.05rem; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.about-text p { font-size: 1.075rem; color: var(--gray-600); }
.about-text strong { color: var(--navy-800); }
.about-facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--gray-200); }
.about-facts li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.about-facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); font-weight: 600; }
.about-facts strong { font-size: .95rem; font-weight: 600; }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts li { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
}

/* Cards de serviços */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px;
  background: var(--teal-600); border-radius: 0 0 3px 3px; transform: scaleX(0); transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--gray-600); font-size: .96rem; margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg, .trust-icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--teal-600);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cards { grid-template-columns: 1fr; } }

/* Etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-200) 0 8px, transparent 8px 14px);
}
.step { position: relative; padding-right: 8px; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font: 800 1rem/1 var(--font-head);
  margin-bottom: 20px; box-shadow: 0 0 0 6px #fff;
}
.step:nth-child(even) .step-num { background: var(--teal-600); }
.step p { color: var(--gray-600); font-size: .96rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step-num { grid-row: span 2; margin: 0; }
}

/* Compromisso */
.trust { background: var(--navy-800); color: #B8C4D6; }
.trust h2 { color: #fff; }
.trust-inner { display: grid; grid-template-columns: auto 1fr; gap: 36px; max-width: 900px; }
.trust-icon { width: 72px; height: 72px; border-radius: 18px; background: rgba(43,179,168,.12); border: 1px solid rgba(43,179,168,.3); display: grid; place-items: center; }
.trust-icon svg { width: 34px; height: 34px; stroke: var(--teal-300); }
.trust p { font-size: 1.06rem; }
.link-light { color: var(--teal-300); font-weight: 600; text-decoration: none; }
.link-light:hover { text-decoration: underline; }
@media (max-width: 640px) { .trust-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--gray-600); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; word-break: break-word;
}
.ci-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); font-weight: 600; }

.contact-form {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 18px;
  padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 6px; }
.field label span { color: var(--teal-600); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--gray-800);
  background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23526178' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-600); background: #fff; box-shadow: 0 0 0 4px rgba(14,124,123,.12);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF8F7; }
.error { color: var(--danger); font-size: .84rem; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }

.field-check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal-600); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--gray-600); margin: 0; }
.field-check .error { grid-column: 2; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; border-radius: 10px; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.success { background: var(--teal-50); color: #0A5655; padding: 14px 16px; border: 1px solid #BFE3E0; }
.form-status.error   { background: #FEF3F2; color: var(--danger); padding: 14px 16px; border: 1px solid #FECDCA; }
.form-status.warning { background: var(--warning-bg); color: var(--warning-fg); padding: 14px 16px; border: 1px solid #F7D9A3; }
.form-status a { color: inherit; font-weight: 600; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Placeholder ainda não preenchido */
.placeholder-flag {
  background: #FFF4D6; color: #7A4B00; padding: 1px 6px; border-radius: 4px;
  font-size: .85em; font-weight: 600; border: 1px dashed #E6B54A;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #95A3B8; padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-name { font: 800 1rem/1.3 var(--font-head); color: #fff; letter-spacing: .04em; margin-bottom: 8px; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; word-break: break-word; }
.site-footer a { color: #C7D2E0; text-decoration: none; }
.site-footer a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Páginas legais ---------- */
.legal-hero { background: var(--navy-800); padding: 56px 0 48px; color: #B8C4D6; }
.legal-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.legal-hero p { margin: 0; }
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: #39465A; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal-note {
  background: var(--warning-bg); border: 1px solid #F7D9A3; color: var(--warning-fg);
  border-radius: 12px; padding: 16px 18px; font-size: .94rem; margin-bottom: 32px;
}
.legal-note p { color: inherit; margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .94rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--gray-200); }
.legal-table th { background: var(--gray-50); color: var(--navy-800); font-weight: 600; }
.legal-table-wrap { overflow-x: auto; }
.back-link { display: inline-block; margin-top: 18px; color: var(--teal-300); text-decoration: none; font-weight: 600; }

/* ---------- Animações de entrada ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart-line { stroke-dashoffset: 0; }
}
