:root {
  --navy: #0b1b4d;
  --blue: #2f4bd8;
  --blue-dark: #2338b0;
  --cyan: #19c3b1;
  --text: #1c2340;
  --muted: #5b6482;
  --bg: #ffffff;
  --bg-alt: #f3f5fb;
  --border: #e2e6f2;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 27, 77, .08);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--blue); color: #fff !important;
  border: 2px solid var(--blue); border-radius: 999px;
  padding: .8rem 1.7rem; font: inherit; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 75, 216, .35); }
.btn--small { padding: .45rem 1.2rem; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Hero */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(180deg, rgba(3, 6, 36, .55), rgba(3, 6, 36, .75)), url("../img/blue_matrix.jpg") center / cover no-repeat;
  color: #fff;
}
.hero__inner { padding: clamp(4rem, 12vw, 9rem) 0; max-width: 820px; margin-left: max(1.25rem, calc((100% - 1120px) / 2)); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d6dcf7; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: .8rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1.8rem; }
.section__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); margin-top: .6rem; }

/* Cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(11, 27, 77, .14); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); }
.card li { margin-bottom: .45rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.logos__title { margin-top: 3.5rem; text-align: center; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.logos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2rem; }
.logos img { height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* About */
.about { display: grid; gap: 2.5rem; grid-template-columns: 220px 1fr; align-items: start; }
.about__person { margin: 0; text-align: center; }
.about__person img { width: 192px; height: 192px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: var(--shadow); border: 4px solid #fff; }
.about__person figcaption { margin-top: 1rem; line-height: 1.4; }
.mvv { display: grid; gap: 1.5rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mvv > div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.mvv h3 { color: var(--blue); font-size: 1.1rem; }
.mvv p { margin: 0; }
.mvv li { margin-bottom: .2rem; }

/* Contact */
.contact { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.6fr; align-items: start; }
.contact__link { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); font-weight: 500; padding: .6rem 0; }
.contact__link:hover { color: var(--blue); }
.contact__link svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; flex: none; }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit;
  padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 75, 216, .15); }
.field.invalid input, .field.invalid textarea { border-color: #d83a3a; }
.field .error { color: #c02a2a; font-size: .85rem; margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__status { margin: 1rem 0 0; font-weight: 600; }
.form__status.ok { color: #14803c; }
.form__status.err { color: #c02a2a; }

/* Footer */
.footer { background: var(--navy); color: #b9c2ec; padding: 1.8rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }

/* WhatsApp flutuante */
.whats {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  display: flex; align-items: center; gap: .5rem;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 600;
  padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whats:hover { transform: scale(1.05); }
.whats svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.2rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; }
  .nav .btn { text-align: center; margin-top: .5rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .whats span { display: none; }
  .whats { padding: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.g-recaptcha { margin-bottom: 1.1rem; max-width: 100%; overflow-x: auto; }

.card { display: flex; flex-direction: column; }
.card ul { flex: 1; }
.card__cta { margin-top: 1.4rem; font-weight: 600; text-decoration: none; }
.card__cta:hover { text-decoration: underline; }
.footer__cnpj { background: none; border: 0; padding: 0; margin-left: .6rem; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }

.certs__title { font-size: 1.1rem; color: var(--blue); margin-top: 1.5rem; }
.certs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.certs li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .35rem 1rem; font-size: .92rem; font-weight: 600; color: var(--navy); }
