/* =========================================================================
   LAG Engenharia — folha de estilos
   Tipografia: Source Serif 4 (títulos, ecoa a serifa do logo) + Inter (texto)
   ========================================================================= */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url(../fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(../fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-display: swap; src: url(../fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #15171c;
  --ink-2: #2b2f37;
  --muted: #5d6471;
  --line: #e4dfd6;
  --paper: #f7f4ef;
  --white: #ffffff;
  --accent: #ec6a30;          /* ponto laranja do logo */
  --accent-strong: #c2501b;   /* versão com contraste para texto sobre branco */
  --accent-soft: #fdebe1;
  --navy: #0f1726;            /* Hydrametric */
  --navy-2: #1c2942;
  --signal: #3d8bfd;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 12px 32px rgba(21, 23, 28, .08);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink-2);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-strong);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.dot { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; white-space: nowrap;
  border-radius: 999px; font: 600 .98rem/1 var(--sans); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(236, 106, 48, .28); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(21, 23, 28, .22); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--signal { background: var(--signal); color: #fff; box-shadow: 0 8px 24px rgba(61, 139, 253, .35); }
.btn--signal:hover { background: #2a74e0; transform: translateY(-1px); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(21, 23, 28, .06); }
.header__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 700 1.5rem/1 var(--serif); color: var(--ink); letter-spacing: .02em; }
.brand__sub { font: 600 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; font: 500 .95rem/1 var(--sans); color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.nav .nav__hm { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav__hm img { width: 20px; height: 20px; }
.header .btn { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background .25s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); padding: clamp(48px, 7vw, 96px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(21, 23, 28, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 28, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 .dot { font-style: normal; }
.hero .lead { margin: 22px 0 34px; font-size: 1.2rem; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
.stats {
  position: relative; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 2.4rem/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: .95rem; color: var(--muted); }

/* ---------- desenho técnico animado ---------- */
.drw .ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drw .ln--thin { stroke-width: 1; stroke: #6b7280; }
.drw .ln--dash { stroke-dasharray: 5 5; }
.drw .ac { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drw .acf { fill: var(--accent); }
.drw .hatch { stroke: #9aa0aa; stroke-width: .8; }
.drw text { font-family: var(--sans); fill: var(--ink-2); }
.drw .lbl { font-size: 11px; font-weight: 500; }
.drw .lbl--sm { font-size: 9.5px; fill: var(--muted); letter-spacing: .04em; }
.drw .lbl--ac { fill: var(--accent-strong); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .drw .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js .drw .pop { opacity: 0; animation: pop .7s ease forwards; animation-delay: calc(var(--i, 0) * 90ms + 400ms); }
  .js .drw .hook { animation: sway 5s ease-in-out 2.4s infinite; transform-origin: 196px 96px; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -18px; bottom: 32px; background: var(--ink); color: #fff; border-radius: 14px; padding: 20px 24px;
  box-shadow: 0 18px 40px rgba(21, 23, 28, .25); max-width: 230px;
}
.about__badge b { display: block; font: 600 1.5rem/1.15 var(--serif); margin-bottom: 6px; }
.about__badge b em { font-style: normal; color: var(--accent); }
.about__badge span { font-size: .9rem; color: #c7cbd3; }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.values .ic svg { width: 20px; height: 20px; stroke: var(--accent-strong); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.values b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.values span { font-size: .94rem; color: var(--muted); line-height: 1.5; }

/* ---------- serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__ic { width: 56px; height: 56px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; margin-bottom: 26px; transition: background .25s ease; }
.card__ic svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__ic svg .a { stroke: var(--accent); }
.card:hover .card__ic { background: var(--accent-soft); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0; }
.card__n { position: absolute; top: 30px; right: 30px; font: 600 .8rem/1 var(--sans); color: #b9b2a6; letter-spacing: .1em; }

/* ---------- método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; padding-right: 22px; }
.step__n {
  position: relative; width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center;
  font: 600 1.15rem/1 var(--serif); color: var(--ink); margin-bottom: 22px;
}
.step:last-child .step__n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- setor público ---------- */
.public { background: var(--ink); color: #d6dae1; position: relative; overflow: hidden; }
.public::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.public h2 { color: #fff; }
.public .lead { color: #aab1bd; }
.public .kicker { color: #ff9a6a; }
.public__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.checks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checks b { display: block; color: #fff; font-weight: 600; }
.checks span { font-size: .94rem; color: #aab1bd; }

/* ---------- Hydrametric (destaque na home) ---------- */
.hm { background: radial-gradient(1100px 600px at 80% 20%, #1b2a47 0%, var(--navy) 60%); color: #c9d6ea; overflow: hidden; position: relative; }
.hm__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hm h2 { color: #fff; }
.hm .lead { color: #a8bbd6; }
.hm__tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(61, 139, 253, .14); border: 1px solid rgba(108, 182, 255, .35); color: #cfe3ff; font: 600 .82rem/1 var(--sans); letter-spacing: .04em; margin-bottom: 24px; }
.hm__tag img { width: 26px; height: 26px; }
.hm__logo { width: min(340px, 80%); margin-bottom: 22px; }
.hm__list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px; }
.hm__list li { display: flex; gap: 12px; align-items: center; }
.hm__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(61, 139, 253, .18); flex: none; }
.hm__media { position: relative; }
.hm__media img { width: 100%; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.hm__media::before { content: ""; position: absolute; inset: -30px; background: radial-gradient(closest-side, rgba(61, 139, 253, .35), transparent); filter: blur(10px); z-index: -1; }

/* ---------- clientes ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logos li { list-style: none; height: 112px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 18px 26px; background: #fff; }
.logos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s ease, opacity .25s ease; }
.logos li:hover img { filter: none; opacity: 1; }
.logos { padding: 0; margin: 0; }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.cinfo { display: grid; gap: 14px; margin-top: 30px; }
.cinfo > a, .cinfo > div { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s ease; }
.cinfo > a:hover { border-color: var(--ink); }
.cinfo svg { flex: none; width: 22px; height: 22px; stroke: var(--accent-strong); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.cinfo b { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.cinfo span { color: var(--ink); font-weight: 500; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.5rem; }
.form p.small { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form .btns { margin-top: 22px; }
.form__note { font-size: .84rem; color: var(--muted); margin: 16px 0 0; }
.form__error { display: none; color: #b42318; font-size: .9rem; margin-top: 12px; }
.form__error.is-on { display: block; }

/* ---------- rodapé ---------- */
.footer { background: var(--ink); color: #aab1bd; padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #8b93a1; }
.footer h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__desc { margin-top: 18px; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .2s ease, border-color .2s ease; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 19px; height: 19px; fill: #fff; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: #7f8794; }

/* ---------- WhatsApp: cabeçalho, hero, contato e botão flutuante ---------- */
.hdr-wa {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(37, 211, 102, .45); color: var(--ink); font: 600 .92rem/1 var(--sans); white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.hdr-wa svg { width: 23px; height: 23px; fill: #1faa52; flex: none; }
.hdr-wa:hover { background: rgba(37, 211, 102, .1); border-color: #25d366; }
.hm-page .hdr-wa { color: #fff; border-color: rgba(37, 211, 102, .5); }
.hm-page .hdr-wa svg { fill: #25d366; }
.hero__wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .97rem; color: var(--muted); }
.hero__wa svg { width: 22px; height: 22px; fill: #1faa52; flex: none; }
.hero__wa b { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid rgba(37, 211, 102, .55); transition: border-color .2s ease; }
.hero__wa:hover b { border-color: #1faa52; }
.cinfo > a.cinfo__wa { border-color: rgba(37, 211, 102, .55); background: #f1fbf4; align-items: center; }
.cinfo > a.cinfo__wa svg { stroke: #1faa52; }
.cinfo > a.cinfo__wa:hover { border-color: #1faa52; }
.cinfo__wa > div { flex: 1; }
.cinfo__wa > div span { font-size: 1.1rem; }
.cinfo__go { flex: none; font: 600 .9rem/1 var(--sans); color: #fff; background: #1faa52; padding: 9px 14px; border-radius: 999px; }
.btn--wa { background: #25d366; color: #0b3d1e; }
.btn--wa:hover { background: #1fbe5b; transform: translateY(-1px); }
.btn--wa svg { width: 20px; height: 20px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; }
.wa-float__ic {
  position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: transform .2s ease;
}
.wa-float__ic svg { width: 31px; height: 31px; fill: #fff; }
.wa-float:hover .wa-float__ic { transform: scale(1.06); }
.wa-float__label {
  background: #fff; color: var(--ink); font: 600 .92rem/1 var(--sans); padding: 12px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16); border: 1px solid var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .wa-float__ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; opacity: 0; animation: waRing 2.4s ease-out 1.5s 3; }
  .js .wa-float__label { opacity: 0; transform: translateX(8px); animation: waLabel 7s ease 2.5s forwards; }
  .js .wa-float:hover .wa-float__label { animation: none; opacity: 1; transform: none; }
}
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes waLabel { 0% { opacity: 0; transform: translateX(8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(8px); } }

/* ---------- página Hydrametric ---------- */
.hm-page { background: var(--navy); color: #c9d6ea; }
.hm-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); background: radial-gradient(1200px 700px at 75% 10%, #1e3157 0%, var(--navy) 62%); }
.hm-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: radial-gradient(rgba(108, 182, 255, .18) 1.2px, transparent 1.6px); background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hm-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hm-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hm-hero .lead { color: #a8bbd6; margin: 20px 0 32px; }
.hm-hero__media img { width: 100%; border-radius: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.hm-section { padding: clamp(72px, 9vw, 120px) 0; }
.hm-section--alt { background: #121c2e; }
.hm-section h2 { color: #fff; }
.hm-section .lead { color: #a8bbd6; }
.hm-section .kicker { color: #8fd0ff; }
.hm-section .kicker::before { background: var(--signal); }
.video-wrap { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); background: #000; }
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow li { background: rgba(255, 255, 255, .03); border: 1px solid rgba(108, 182, 255, .18); border-radius: 16px; padding: 26px 22px; }
.flow .fic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(108, 182, 255, .7); box-shadow: 0 0 22px rgba(61, 139, 253, .35); margin-bottom: 20px; }
.flow .fic svg { width: 28px; height: 28px; fill: none; stroke: #9cd2ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow small { display: block; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; color: #6cb6ff; margin-bottom: 8px; }
.flow h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.flow p { font-size: .93rem; margin: 0; color: #a8bbd6; line-height: 1.55; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mod { background: #16233a; border: 1px solid rgba(108, 182, 255, .14); border-radius: 16px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.mod:hover { transform: translateY(-4px); border-color: rgba(108, 182, 255, .45); }
.mod__shot { aspect-ratio: 16 / 9; overflow: hidden; background: #f3f5f8; }
.mod__shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 30%); }
.mod__txt { padding: 22px 24px 26px; }
.mod h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.mod p { margin: 0; font-size: .94rem; color: #a8bbd6; line-height: 1.55; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split img { width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.specs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.specs li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.specs b { color: #fff; font-weight: 600; min-width: 46%; }
.cta-band { text-align: center; padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(900px 400px at 50% 0%, #1e3157, var(--navy) 70%); }
.cta-band h2 { color: #fff; max-width: 820px; margin: 0 auto 16px; }
.cta-band .lead { color: #a8bbd6; margin: 0 auto 34px; }
.cta-band .btns { justify-content: center; }
.hm-page .footer { background: #0a1220; }
.hm-page .header { background: rgba(15, 23, 38, .82); }
.hm-page .header.is-scrolled { border-color: rgba(255, 255, 255, .08); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.hm-page .brand__name { color: #fff; }
.hm-page .brand__sub { color: #8b93a1; }
.hm-page .nav a { color: #c9d6ea; }
.hm-page .nav a:hover, .hm-page .nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: #fff; }
.hm-page .menu-toggle { background: transparent; border-color: rgba(255, 255, 255, .2); }
.hm-page .menu-toggle span, .hm-page .menu-toggle span::before, .hm-page .menu-toggle span::after { background: #fff; }
.hm-page.menu-open .menu-toggle span { background: transparent; }

/* ---------- página texto (privacidade) ---------- */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc p, .doc li { color: var(--ink-2); }

/* ---------- animação de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .rv-on .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .nav, .header .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; padding: 12px var(--gutter) 22px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(21, 23, 28, .08);
  }
  .menu-open .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .hm-page.menu-open .nav { background: var(--navy); border-color: rgba(255, 255, 255, .08); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 28px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 58px 1fr; gap: 0 22px; padding: 0; }
  .step__n { margin: 0; grid-row: span 2; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .hero__grid, .about, .public__grid, .hm__grid, .contact, .hm-hero__grid, .split { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about__badge { right: 16px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .cards, .values, .fgrid, .flow, .mods, .footer__grid { grid-template-columns: 1fr; }
  .stat { padding-right: 12px; } .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat b { font-size: 2rem; }
  .btns .btn { flex: 1 1 100%; }
  .brand__sub { display: none; }
  .logos li { height: 92px; padding: 14px 18px; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float__label { display: none; }
  .hero__wa { align-items: flex-start; }
}
