/* AUDITA · Engenharia Diagnóstica */
:root {
  --navy: #0F2E3D;
  --navy-2: #143a4d;
  --navy-3: #1d4a60;
  --amber: #C8893A;
  --amber-2: #b47629;
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --graphite: #1C1F22;
  --muted: #5a636b;
  --line: #d9d2c3;
  --white: #fff;
  --ok: #3f7d5a;
  --warn: #C8893A;
  --crit: #b4483c;

  --f-head: "Archivo", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;

  --radius: 14px;
  --container: 1180px;
  --shadow: 0 20px 50px -24px rgba(15, 46, 61, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
h2 + p { margin-top: 20px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.eyebrow {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow::after {
  content: ""; display: block; width: 36px; height: 2px; background: var(--amber); margin-top: 14px;
}
.lead { font-size: 1.15rem; color: #3d464d; max-width: 36em; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: 15px 24px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: #d6984a; }
.btn--ghost { border-color: rgba(15, 46, 61, .25); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--wa { background: transparent; color: var(--paper); border-color: rgba(244, 241, 234, .3); }
.btn--wa:hover { border-color: #25D366; color: #fff; background: rgba(37, 211, 102, .12); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .1em; }
.brand__tag { font-size: .56rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-top: 6px; color: #4a535b; }
.brand--light { color: var(--paper); }
.brand--light .brand__tag { color: rgba(244, 241, 234, .7); }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 46, 61, .5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--navy); position: relative; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.nav__cta):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { background: var(--navy); color: var(--paper) !important; padding: 10px 20px; border-radius: 9px; transition: background .2s; }
.nav__cta:hover { background: var(--navy-3); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__frame { position: absolute; inset: 28px; pointer-events: none; }
.hero__frame i { position: absolute; width: 56px; height: 56px; border: 0 solid rgba(15, 46, 61, .14); }
.hero__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; max-width: 12em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 34px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .93rem; color: #3d464d; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof .ico { color: var(--amber); }

/* Cartão de laudo */
.report {
  background: var(--navy); color: var(--paper); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow); position: relative;
}
.report::before {
  content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(244, 241, 234, .12); border-radius: 12px; pointer-events: none;
}
.report__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(244, 241, 234, .12); }
.report__mark { width: 40px; height: 40px; color: var(--paper); }
.report__kicker { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.report__head strong { font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; }
.report__badge { margin-left: auto; font-size: .7rem; font-weight: 600; letter-spacing: .08em; border: 1px solid rgba(244, 241, 234, .3); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.report__list { list-style: none; padding: 0; margin: 8px 0; }
.report__list li { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(244, 241, 234, .08); font-size: .95rem; }
.report__list em { font-style: normal; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.report__list em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.report__list .ok { color: #8fd0aa; background: rgba(63, 125, 90, .22); }
.report__list .warn { color: #e8b26c; background: rgba(200, 137, 58, .2); }
.report__list .crit { color: #f09a8f; background: rgba(180, 72, 60, .25); }
.report__foot { font-size: .8rem; color: rgba(244, 241, 234, .65); padding-top: 14px; }

/* Faixa */
.strip { background: var(--navy); color: var(--paper); padding: 38px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.strip__grid div { border-left: 2px solid var(--amber); padding-left: 18px; }
.strip strong { display: block; font-family: var(--f-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.strip span { font-size: .9rem; color: rgba(244, 241, 234, .72); line-height: 1.5; display: block; }

/* Seções */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy h2, .section--navy h3 { color: var(--paper); }
.section--navy .lead { color: rgba(244, 241, 234, .78); }
.section--paper2 { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: 56px; }

/* Sobre */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.about__body > p { font-size: 1.08rem; color: #3d464d; }
.about__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.about__pillars div { border-top: 1px solid var(--line); padding-top: 20px; }
.about__pillars .num { font-family: var(--f-head); font-weight: 700; color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.about__pillars h3 { margin: 8px 0 6px; }
.about__pillars p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--navy-2); border: 1px solid rgba(244, 241, 234, .08);
  border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--amber); opacity: 0; transition: opacity .3s;
}
.card::before { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.card::after { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover { transform: translateY(-4px); border-color: rgba(200, 137, 58, .45); background: var(--navy-3); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__tag { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: rgba(244, 241, 234, .74); font-size: .96rem; flex: 1; }
.card__norm { font-size: .78rem; font-weight: 500; color: rgba(244, 241, 234, .85); border-top: 1px solid rgba(244, 241, 234, .1); padding-top: 14px; margin-top: 8px; }
.card--cta { background: var(--amber); border-color: var(--amber); }
.card--cta h3 { color: var(--navy); }
.card--cta p { color: rgba(15, 46, 61, .85); }
.card--cta .btn { background: var(--navy); color: var(--paper); align-self: flex-start; }
.card--cta .btn:hover { background: var(--navy-3); }
.card--cta::before, .card--cta::after { border-color: var(--navy); }
.card--cta:hover { background: #d29447; }

/* Processo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); z-index: 0; }
.steps li { position: relative; z-index: 1; }
.steps__n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--paper); border: 1.5px solid var(--navy); color: var(--navy);
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 22px;
}
.steps li:last-child .steps__n { background: var(--navy); color: var(--paper); }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .95rem; color: var(--muted); }

/* Para quem */
.audience { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.audience__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audience__list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.audience__list strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; font-weight: 600; }
.audience__list span { font-size: .93rem; color: var(--muted); line-height: 1.5; display: block; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq__head a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--amber); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; color: var(--navy);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform .25s, margin .25s;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__list details p { color: #3d464d; padding-right: 40px; margin: -4px 0 22px; }

/* Contato */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.channels { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.channels a, .channels div {
  display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 16px 18px;
  border: 1px solid rgba(244, 241, 234, .12); border-radius: 12px; transition: border-color .2s, background .2s;
}
.channels a:hover { border-color: var(--amber); background: rgba(200, 137, 58, .08); }
.channels__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(200, 137, 58, .14); color: var(--amber); flex: none; }
.channels__ico .ico { width: 22px; height: 22px; }
.channels small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 234, .55); }
.channels strong { font-weight: 500; font-size: 1.02rem; word-break: break-word; }

.form { background: var(--paper); color: var(--graphite); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--graphite); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 46, 61, .1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--crit); }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.form .btn--wa { color: var(--navy); border-color: rgba(15, 46, 61, .25); }
.form .btn--wa:hover { color: #0f6b38; border-color: #25D366; background: rgba(37, 211, 102, .1); }
.form__status { min-height: 1.4em; margin: 14px 0 0; font-weight: 500; font-size: .95rem; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--crit); }
.form__note { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Rodapé */
.footer { background: #0b2430; color: rgba(244, 241, 234, .75); padding: 64px 0 28px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__claim { margin-top: 20px; max-width: 26em; }
.footer h4 { color: var(--paper); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--f-body); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; word-break: break-word; }
.footer a:hover { color: var(--amber); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(244, 241, 234, .18); }
.social a:hover { border-color: var(--amber); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244, 241, 234, .1); font-size: .85rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 1024px) {
  .hero__grid, .about, .audience, .faq, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .report { max-width: 520px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero__frame { inset: 12px; }
  .hero__frame i { width: 32px; height: 32px; }
  .services, .strip__grid, .about__pillars, .audience__list, .steps, .form__row, .form__actions, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .report { padding: 22px; }
  .report__badge { display: none; }
  .brand__name { font-size: 1.25rem; }
  .brand__mark { width: 34px; height: 34px; }
  .faq__list details p { padding-right: 0; }
}
