/* EC. Assistência Técnica Pericial — estilo compartilhado
   Layout: faixas de largura total; conteúdo em coluna de 1180px; seções alternam branco / Névoa / Azul Laudo */
:root {
  --navy: #16213E;
  --yellow: #F5B800;
  --agua: #5BC0BE;
  --salvia: #8FB3B0;
  --bg: #FFFFFF;
  --bg-alt: #F2F5F6;
  --surface: #FFFFFF;
  --fg: #16213E;
  --fg-soft: #34405A;
  --muted: #5B6670;
  --line: #DCE3E5;
  --band: #16213E;
  --band-fg: #FFFFFF;
  --band-soft: #C7CFDC;
  --bar-a: #5BC0BE;
  --bar-b: #16213E;
  --win: #FFFFFF;
  --base: #16213E;
  --focus: #F5B800;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1528; --bg-alt: #121B33; --surface: #18233F;
    --fg: #EEF2F6; --fg-soft: #C7CFDC; --muted: #9AA6BA; --line: #26324F;
    --band: #18233F; --band-fg: #FFFFFF; --band-soft: #C7CFDC;
    --bar-a: #5BC0BE; --bar-b: #FFFFFF; --win: #0E1528; --base: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1528; --bg-alt: #121B33; --surface: #18233F;
  --fg: #EEF2F6; --fg-soft: #C7CFDC; --muted: #9AA6BA; --line: #26324F;
  --band: #18233F; --band-fg: #FFFFFF; --band-soft: #C7CFDC;
  --bar-a: #5BC0BE; --bar-b: #FFFFFF; --win: #0E1528; --base: #FFFFFF;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.alt { background: var(--bg-alt); }
.dark { background: var(--band); color: var(--band-fg); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--band-soft); }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 800; }
.lead { font-size: 19px; color: var(--fg-soft); max-width: 62ch; }
.dark .lead { color: var(--band-soft); }
.head { display: grid; gap: 14px; margin-bottom: 44px; }
.dot { color: var(--yellow); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 37px; flex: none; }
.brand-text { display: grid; line-height: 1; gap: 5px; }
.brand-text b { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.brand-text small { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--fg-soft); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav .sep { width: 1px; height: 20px; background: var(--line); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--fg); border-radius: 4px; background: transparent; color: var(--fg); font: 600 15px/1 var(--font); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { text-underline-offset: 6px; }
  .nav .sep { display: none; }
  .nav .btn { margin-top: 12px; border-top: 0; }
}

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 4px; font: 700 16px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--yellow); color: #16213E; }
.btn-primary:hover { background: #FFC933; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; color: #16213E; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero da home */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.hero .lead { margin-top: 24px; }
.kicker { display: block; font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.4; color: var(--fg-soft); margin-bottom: 16px; }
.cred { background: var(--band); color: var(--band-fg); padding: 30px; display: grid; gap: 22px; }
.cred-top { display: flex; align-items: center; gap: 14px; }
.cred-top svg { width: 64px; height: 54px; flex: none; --bar-b: #FFFFFF; --win: #16213E; --base: #FFFFFF; }
.cred-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.cred-role { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-soft); margin-top: 4px; }
.cred dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 20px; }
.cred dt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cred dd { margin: 4px 0 0; font-size: 14px; color: var(--band-soft); line-height: 1.4; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero das páginas internas */
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; margin-top: 14px; }
.page-hero .lead { margin-top: 22px; }

/* Cartões "Eu sou…" */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.who a { display: grid; gap: 12px; align-content: start; padding: 30px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.who a:hover { border-color: var(--fg); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .who a, .who a:hover { transition: none; transform: none; } }
.who .who-label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.who h3 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.who p { color: var(--fg-soft); font-size: 16px; }
.who .go { margin-top: 6px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } }

/* Fatores / dores */
.decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.factor { background: var(--surface); padding: 26px; display: grid; gap: 8px; align-content: start; }
.factor h3 { font-size: 20px; font-weight: 700; }
.factor p { color: var(--fg-soft); font-size: 16px; }
@media (max-width: 860px) { .decide { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .factors { grid-template-columns: 1fr; } }

/* Diferenciais */
.diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.diffs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.diff { display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--fg); padding-top: 20px; }
.diff h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.diff p { color: var(--fg-soft); font-size: 16px; }
@media (max-width: 1000px) { .diffs, .diffs.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .diffs, .diffs.three { grid-template-columns: 1fr; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.services.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 12px; align-content: start; }
.tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border: 1.5px solid var(--fg); border-radius: 2px; }
.tag.solid { background: var(--fg); color: var(--bg); }
.service h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.service p { color: var(--fg-soft); font-size: 16px; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services, .services.two { grid-template-columns: 1fr; } }

/* Etapas (sequência real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { counter-increment: s; padding: 24px 22px 0 0; border-top: 3px solid currentColor; display: grid; gap: 8px; align-content: start; }
.step::before { content: counter(s); font-size: 44px; font-weight: 800; line-height: 1; color: var(--yellow); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { color: var(--fg-soft); font-size: 15px; }
.dark .step p { color: var(--band-soft); }
@media (max-width: 960px) { .steps, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 520px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { border: 1px solid rgba(255,255,255,0.22); padding: 26px; display: grid; gap: 10px; align-content: start; }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan .price { font-size: 15px; font-weight: 600; color: var(--yellow); letter-spacing: 0.06em; text-transform: uppercase; }
.plan p { color: var(--band-soft); font-size: 15px; }
.note { margin-top: 22px; font-size: 14px; color: var(--band-soft); }
@media (max-width: 860px) { .plans, .plans.two { grid-template-columns: 1fr; } }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about .lead + .lead { margin-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.timeline li { display: grid; gap: 3px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 7px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--fg); border-radius: 50%; }
.timeline .when { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .what { font-size: 19px; font-weight: 700; line-height: 1.3; }
.timeline .detail { font-size: 15px; color: var(--fg-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { font-size: 14px; font-weight: 600; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Atendimento */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area { padding: 28px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); background: var(--surface); }
.area.main { border: 2px solid var(--fg); }
.area h3 { font-size: 22px; font-weight: 700; }
.area .cities { font-weight: 600; }
.area p { color: var(--fg-soft); font-size: 16px; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* Guia rápido */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.answer { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; align-content: start; }
.answer h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.answer p { color: var(--fg-soft); font-size: 16px; }
.answer .key { color: var(--fg); font-weight: 600; }
@media (max-width: 800px) { .guide { grid-template-columns: 1fr; } }

/* Checklist */
.checks { margin: 0; padding: 0; list-style: none; counter-reset: c; border-top: 1px solid var(--line); }
.checks li { counter-increment: c; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); color: var(--fg-soft); }
.checks li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }
.checks b { color: var(--fg); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--fg-soft); max-width: 70ch; }

/* Faixa de chamada final */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 800; max-width: 22ch; }
.cta-band p { color: var(--band-soft); margin-top: 10px; max-width: 52ch; }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offer { border-left: 4px solid var(--yellow); padding-left: 22px; display: grid; gap: 10px; margin-top: 28px; }
.offer strong { font-size: 20px; }
.direct { margin-top: 32px; display: grid; gap: 14px; }
.direct div { display: grid; gap: 2px; }
.direct span { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.direct b { font-size: 20px; user-select: all; font-variant-numeric: tabular-nums; }
.form { background: var(--surface); color: var(--fg); border: 1px solid var(--line); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--font); color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 3px; padding: 12px; width: 100%; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 55%, transparent); }
.hint, .privacy { font-size: 13px; color: var(--muted); }
.form .btn { justify-self: start; }
.status { font-size: 15px; font-weight: 600; padding: 14px 16px; background: var(--bg-alt); border-left: 4px solid var(--yellow); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Rodapé */
.footer { padding-block: 48px 96px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--fg-soft); text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }
.footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp fixo */
.whats { position: fixed; z-index: 8; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px; border-radius: 999px; background: var(--yellow); color: #16213E; font: 700 15px/1 var(--font); text-decoration: none; box-shadow: 0 8px 24px rgba(14, 21, 40, 0.28); }
.whats svg { width: 22px; height: 22px; }
