/* =========================================================
   TOP Emergências — Design System
   Cores extraídas da marca: vermelho #E41017 / azul #113078
   ========================================================= */
:root {
  --red-600: #e41017;
  --red-700: #c10d13;
  --red-50: #fdecec;
  --navy-900: #0a1f4f;
  --navy-800: #0c3376;
  --navy-700: #113078;
  --navy-600: #1a3f94;
  --navy-50: #eef2fa;
  --sky-400: #3aa8e8; /* faixa azul-clara da ambulância */
  --green-500: #25d366;
  --green-600: #1ebe5a;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f6f8fc;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -10px rgba(12, 51, 118, .25);
  --shadow-lg: 0 30px 60px -20px rgba(12, 51, 118, .35);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
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-head); color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  color: var(--red-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.section-head p { font-size: 18px; color: var(--ink-500); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--navy-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--font-head); white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--red { --bg: var(--red-600); }
.btn--red:hover { --bg: var(--red-700); box-shadow: 0 12px 28px -10px rgba(228, 16, 23, .6); }
.btn--green { --bg: var(--green-500); --fg: #fff; }
.btn--green:hover { --bg: var(--green-600); box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .6); }
.btn--ghost { --bg: transparent; --fg: var(--navy-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-700); }
.btn--white { --bg: #fff; --fg: var(--navy-700); }
.btn--outline-white { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #cbd5e1; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; gap: 22px; align-items: center; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font: 500 15px/1 var(--font-head); color: var(--ink-700); white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy-700); background: var(--navy-50); }
.nav a.is-active { color: var(--red-600); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.btn-erp { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.btn-erp .icon { width: 18px; height: 18px; }
.header .btn--red { min-height: 44px; padding: 10px 18px; font-size: 14px; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; color: var(--navy-700); }
.menu-toggle .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-head); color: var(--navy-600); margin-bottom: 20px; }
.hero h1 { color: var(--navy-800); font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .accent { color: var(--red-600); }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-500); max-width: 500px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; font-size: 14.5px; color: var(--ink-500); }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .icon { width: 16px; height: 16px; color: var(--green-600); stroke-width: 2.5; }

.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__visual::before { /* círculo suave atrás da ambulância */
  content: ""; position: absolute; width: min(92%, 520px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--navy-50) 0%, #e3eaf7 60%, rgba(227,234,247,0) 72%);
  animation: pop-in .9s var(--ease) .3s both;
}
.hero__ring { position: absolute; width: min(70%, 400px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(26,63,148,.18); animation: ring 3.2s ease-out 1.8s infinite; opacity: 0; }
.hero__ring--2 { animation-delay: 3.4s; }
@keyframes ring { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ambulância: entra pela direita, freia e fica "respirando" na suspensão */
.hero__car { position: relative; width: min(100%, 500px); animation: drive-in 1.2s cubic-bezier(.22,1,.36,1) .8s both; }
.hero__car img { width: 100%; height: auto; animation: idle 3s ease-in-out 2.2s infinite; }
@keyframes drive-in {
  0% { opacity: 0; transform: translateX(120px); }
  70% { opacity: 1; transform: translateX(-10px) rotate(-.6deg); }
  85% { transform: translateX(3px) rotate(.3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes idle { 50% { transform: translateY(-3px); } }

/* sirene piscando sobre a barra de luz da imagem */
.hero__siren { position: absolute; left: 37%; top: 1%; width: 32%; height: 20%; pointer-events: none; animation: idle 3s ease-in-out 2.2s infinite; }
.hero__siren::before, .hero__siren::after {
  content: ""; position: absolute; top: 0; width: 60%; height: 100%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,30,30,.95) 0%, rgba(255,60,60,.35) 35%, rgba(255,40,40,0) 70%);
  mix-blend-mode: screen; opacity: 0; filter: blur(2px);
}
.hero__siren::before { left: -10%; animation: siren 1.1s steps(1) 2s infinite; }
.hero__siren::after { right: -10%; animation: siren 1.1s steps(1) 2.55s infinite; }
@keyframes siren { 0%, 50% { opacity: 1; } 25%, 75% { opacity: .15; } 100% { opacity: 0; } }

/* linhas de velocidade durante a entrada */
.hero__speed { position: absolute; left: -6%; top: 40%; width: 40%; height: 40%; pointer-events: none; }
.hero__speed span { position: absolute; left: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(26,63,148,0), rgba(26,63,148,.35)); opacity: 0; animation: speed 1.2s ease-out .9s both; }
.hero__speed span:nth-child(1) { top: 10%; width: 70%; }
.hero__speed span:nth-child(2) { top: 40%; width: 100%; animation-delay: 1s; background: linear-gradient(90deg, rgba(228,16,23,0), rgba(228,16,23,.4)); }
.hero__speed span:nth-child(3) { top: 70%; width: 55%; animation-delay: 1.1s; }
@keyframes speed { 0% { opacity: 0; transform: translateX(80px) scaleX(.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(-40px) scaleX(1); } }

/* entrada do texto em sequência (como o fadeInDown do site oficial) */
.hero [data-in] { animation: fade-down .8s var(--ease) both; animation-delay: var(--d, 0s); }
.hero [data-in="fade"] { animation-name: fade-in; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sos-note {
  display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 10px 16px; border-radius: 999px; width: fit-content;
  background: var(--red-50); color: var(--red-700); font-size: 14px;
}
.sos-note .icon { color: var(--red-600); }

/* ---------- Ações rápidas (por intenção) ---------- */
.quick { position: relative; z-index: 2; padding: clamp(48px, 6vw, 72px) 0 0; }
.quick .sos-note { margin-top: 28px; }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick__card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s;
}
.quick__card:hover { transform: translateY(-6px); border-color: var(--navy-600); }
.quick__card h3 { font-size: 20px; margin: 6px 0 0; }
.quick__card p { margin: 0; color: var(--ink-500); font-size: 15px; }
.quick__card .go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-head); color: var(--navy-700); }
.quick__card:hover .go .icon { transform: translateX(4px); }
.go .icon { transition: transform .2s; }
.quick__card--urgent { background: linear-gradient(160deg, var(--red-600), var(--red-700)); border-color: transparent; color: #fff; }
.quick__card--urgent h3, .quick__card--urgent .go { color: #fff; }
.quick__card--urgent p { color: #ffe1e1; }
.quick__card--urgent .icon-wrap { background: rgba(255,255,255,.18); color: #fff; }
.tag { position: absolute; top: 22px; right: 22px; font: 600 11px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }

.icon-wrap { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-50); color: var(--navy-700); }
.icon-wrap .icon { width: 26px; height: 26px; }

/* ---------- Serviços ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--red-600), var(--navy-600)); transition: width .4s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { width: 100%; }
.service h3 { font-size: 20px; margin: 18px 0 10px; }
.service p { color: var(--ink-500); font-size: 15.5px; flex: 1; }
.service .go { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--font-head); color: var(--red-600); background: none; border: 0; padding: 0; align-self: flex-start; }
.service:hover .go .icon { transform: translateX(4px); }
.service--featured { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border-color: transparent; color: #cfd9ee; }
.service--featured h3 { color: #fff; }
.service--featured p { color: #cfd9ee; }
.service--featured .icon-wrap { background: rgba(255,255,255,.12); color: #fff; }
.service--featured .go { color: #fff; }
.service .pill { position: absolute; top: 24px; right: 24px; font: 600 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--red-600); color: #fff; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  counter-increment: step; position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%; background: #fff; border: 2px solid var(--navy-700); color: var(--navy-700); font: 700 20px var(--font-head);
}
.step__num::before { content: counter(step); }
.step:last-child .step__num { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.step h3 { font-size: 18px; }
.step p { color: var(--ink-500); font-size: 15px; margin: 0; }

/* ---------- Estrutura / Frota ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.media-stack { position: relative; padding: 0 0 60px 60px; }
.media-stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.media-stack .main { aspect-ratio: 16/11; }
.media-stack .sub { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4/3; border: 6px solid #fff; }
.media-stack .badge {
  position: absolute; right: -10px; top: 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--red-600); color: #fff; box-shadow: var(--shadow-lg); text-align: center;
}
.media-stack .badge strong { display: block; font: 800 30px/1 var(--font-head); }
.media-stack .badge span { font-size: 13px; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .icon-wrap { width: 40px; height: 40px; border-radius: 12px; }
.checklist .icon-wrap .icon { width: 20px; height: 20px; }
.checklist strong { display: block; color: var(--ink-900); font-family: var(--font-head); font-weight: 600; }
.checklist span { color: var(--ink-500); font-size: 15px; }

/* ---------- Números ---------- */
.stats { background: var(--navy-900); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 60%, rgba(228,16,23,.25) 60% 68%, transparent 68% 70%, rgba(58,168,232,.2) 70% 72%, transparent 72%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--font-head); margin-bottom: 8px; }
.stat strong span { color: var(--red-600); }
.stat p { margin: 0; color: #b8c6e3; font-size: 15px; }

/* ---------- Galeria ---------- */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14.5px var(--font-head); color: var(--ink-700); transition: all .2s; }
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); padding: 0; border: 0; background: var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font: 500 14px var(--font-head); text-align: left; background: linear-gradient(transparent, rgba(10,31,79,.85)); opacity: 0; transform: translateY(8px); transition: all .3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5,12,30,.92); padding: 24px; }
.lightbox.is-open { display: flex; animation: fade .25s; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 100%); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #cbd5e1; text-align: center; margin-top: 14px; font-family: var(--font-head); }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--navy-600); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font: 600 17px var(--font-head); color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); transition: transform .3s var(--ease), background .3s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--red-600); color: #fff; }
.faq .answer { padding: 0 24px 22px; color: var(--ink-500); }
.faq .answer p { margin: 0; }

/* ---------- Contato / Formulário ---------- */
.contact { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #dbe4f5; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -10%; top: -30%; width: 120px; height: 160%; transform: skewX(-22deg); background: rgba(228,16,23,.35); }
.contact .container { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.contact .eyebrow { color: #ff8a8e; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .2s, transform .2s; }
.contact-list a:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.contact-list .icon-wrap { background: rgba(255,255,255,.1); color: #fff; }
.contact-list small { display: block; color: #9fb1d6; font-size: 13px; }
.contact-list strong { color: #fff; font: 600 18px var(--font-head); }

.form-card { background: #fff; color: var(--ink-700); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card > p { color: var(--ink-500); font-size: 15px; }
.progress { display: flex; gap: 8px; margin: 22px 0 26px; }
.progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.progress span.is-done { background: var(--red-600); }
.form-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step.is-active { display: block; animation: slide .35s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }
.form-step legend { font: 600 16px var(--font-head); color: var(--ink-900); margin-bottom: 16px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option input { position: absolute; opacity: 0; }
.option label {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer;
  font: 500 15px var(--font-head); color: var(--ink-900); transition: all .2s; height: 100%;
}
.option label .icon { color: var(--navy-700); width: 22px; height: 22px; }
.option label:hover { border-color: var(--navy-600); }
.option input:checked + label { border-color: var(--red-600); background: var(--red-50); }
.option input:checked + label .icon { color: var(--red-600); }
.option input:focus-visible + label { outline: 3px solid var(--sky-400); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px var(--font-head); color: var(--ink-900); }
.field label .opt { color: var(--ink-500); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2);
  font: 400 16px var(--font-body); color: var(--ink-900); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; box-shadow: 0 0 0 4px rgba(26,63,148,.12); }
.field.has-error input, .field.has-error select { border-color: var(--red-600); }
.field .error { display: none; font-size: 13px; color: var(--red-600); }
.field.has-error .error { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.form-nav .btn--ghost { padding-inline: 18px; }
.form-hint { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--ink-500); }
.summary { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; margin-bottom: 4px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-500); }
.summary dd { margin: 0; color: var(--ink-900); font-weight: 500; text-align: right; }

/* ---------- CTA ERP ---------- */
.erp-cta { padding: 0 0 clamp(64px, 9vw, 112px); }
.erp-cta__box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px 36px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--line);
}
.erp-cta__box h3 { font-size: 22px; margin-bottom: 4px; }
.erp-cta__box p { margin: 0; color: var(--ink-500); }
.erp-cta__box .icon-wrap { width: 64px; height: 64px; border-radius: 18px; background: var(--navy-700); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9fb1d6; padding: 64px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer img { height: 56px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- Flutuantes ---------- */
.fab-whats {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-500); color: #fff; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform .2s;
}
.fab-whats:hover { transform: scale(1.08); }
.fab-whats svg { width: 30px; height: 30px; }
.fab-whats .tip { position: absolute; right: 72px; white-space: nowrap; background: #fff; color: var(--ink-900); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); font: 500 14px var(--font-head); opacity: 0; transform: translateX(8px); transition: all .25s; pointer-events: none; }
.fab-whats:hover .tip { opacity: 1; transform: none; }

.mobile-bar { display: none; }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .nav a { padding: 10px; font-size: 14px; }
  .btn-erp span { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar__info .hide-sm { display: none; }
  .brand img { height: 40px; }
  .menu-toggle { display: inline-flex; }
  .header .btn--red { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px; background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav__mobile-cta { display: grid; gap: 10px; margin-top: 16px; }
  .nav .nav__mobile-cta a { border: 0; border-radius: 999px; font-size: 16px; padding: 12px 22px; }

  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__car { width: min(80%, 380px); }

  .quick__grid, .services__grid { grid-template-columns: 1fr 1fr; }
  .quick__card--urgent { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .split, .contact .container { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .erp-cta__box { grid-template-columns: 1fr; text-align: center; justify-items: center; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,23,42,.08); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; font: 600 12px var(--font-head); color: var(--ink-700); }
  .mobile-bar a .icon { width: 22px; height: 22px; }
  .mobile-bar a.call { color: var(--red-600); }
  .mobile-bar a.whats { color: var(--green-600); }
  .mobile-bar a.ask { color: var(--navy-700); }
  .fab-whats { display: none; }
  body { padding-bottom: 68px; }
}

@media (min-width: 961px) { .nav__mobile-cta { display: none; } }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar__info { gap: 14px; }
  .header__actions .btn-erp { display: none; }
  .quick__grid, .services__grid, .options, .fields { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .media-stack { padding: 0 0 40px 24px; }
  .media-stack .badge { right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-nav .btn { flex: 1; }
}
