/* Meta Projetos · site v3 · design system do escritório */
:root {
  --bg: #F4F8FB;
  --band: #DCE8F0;
  --navy: #14181F;
  --steel: #A9C4D6;
  --steel-light: #C9DCE8;
  --accent: #7FA3BD;
  --text: #1B2A3A;
  --muted: #4F6276;
  --line: #D3DFE8;
  --white: #FFFFFF;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 20px;
  --header-h: 64px;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: 112px; /* espaço do dock */
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 4.3rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.25; font-style: italic; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.label {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: var(--header-h); }
.section-band { background: var(--band); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font: 700 .98rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--steel-light);
  transform: translateX(-101%);
  transition: transform .4s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--navy); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .88rem; }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light::before { background: var(--steel-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 248, 251, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font: 700 .86rem/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand small { display: block; margin-top: 5px; font-weight: 400; letter-spacing: .12em; font-size: .62rem; color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-link { font-size: .9rem; color: var(--muted); text-decoration: none; }
.header-link:hover { color: var(--navy); }
@media (max-width: 640px) { .header-link { display: none; } .brand small { display: none; } }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 4px;
  padding: 8px 10px;
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(20, 24, 31, .28), 0 0 0 1px rgba(169, 196, 214, .18);
}
.dock-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 64px; height: 56px; padding: 0 10px;
  border-radius: 16px;
  color: var(--steel-light);
  text-decoration: none;
  transform-origin: 50% 100%;
  transition: transform .18s var(--ease), color .2s;
  will-change: transform;
}
.dock-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-item span { font: 700 .58rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dock-item::after {
  content: ""; position: absolute; bottom: 4px; left: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform .25s var(--ease);
}
.dock-item.is-active { color: #fff; }
.dock-item.is-active::after { transform: translateX(-50%) scale(1); }
.dock-item:hover { color: #fff; }
@media (max-width: 420px) { .dock-item { min-width: 0; padding: 0 7px; } .dock-item span { font-size: .52rem; letter-spacing: .06em; } .dock { padding: 6px 8px; gap: 2px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, transparent);
}
.hero-grid svg {
  position: absolute; left: 0; top: 0;
  width: 200%; height: 200%;
  animation: drift 48s linear infinite;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-160px, -160px, 0); } /* múltiplo do passo da grade (80 px): laço sem salto */
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 30px; }
.filter-line { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.filter-line::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* revelação por linha com máscara */
.mask .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise .8s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 120ms);
}
@keyframes rise { to { transform: translateY(0); } }
.fade-in { opacity: 0; animation: fade .7s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes fade { to { opacity: 1; } }

/* hero em duas colunas (página do anúncio) */
.hero-split { min-height: auto; padding-bottom: 56px; }
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: 48px; align-items: start; }
.hero-split h1 { font-size: clamp(1.9rem, 3.9vw, 3.2rem); }
@media (max-width: 900px) { .hero-split .wrap { grid-template-columns: 1fr; } }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.trust li { padding-left: 26px; position: relative; color: var(--text); }
.trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--accent); }

/* ---------- Revelação ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 36px rgba(20, 24, 31, .08); }
.card-num { font: 700 .72rem/1 var(--sans); letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-icon { width: 36px; height: 36px; margin-bottom: 18px; stroke: var(--navy); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.card-band { background: var(--bg); }
.card-band:hover { background: var(--white); }

/* ---------- Linha do tempo ---------- */
.timeline { position: relative; --p: 0; }
.tl-track, .tl-bar { position: absolute; background: var(--line); border-radius: 2px; }
.tl-bar { background: var(--navy); transform-origin: 0 0; transform: scaleX(var(--p)); will-change: transform; }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.tl-step { position: relative; padding-top: 44px; }
.tl-dot {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy);
  display: grid; place-items: center;
  font: 700 .8rem/1 var(--sans); color: var(--navy);
}
.tl-step h3 { margin-bottom: .35em; }
.tl-step p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 801px) {
  .tl-track, .tl-bar { left: 16px; right: 16px; top: 15px; height: 3px; }
}
@media (max-width: 800px) {
  .tl-steps { grid-template-columns: 1fr; gap: 28px; }
  .tl-step { padding-top: 0; padding-left: 54px; }
  .tl-track, .tl-bar { left: 15px; top: 16px; bottom: 16px; width: 3px; }
  .tl-bar { transform: scaleY(var(--p)); }
}

/* ---------- Tabela de normas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .98rem; }
th { font: 700 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: transform .3s var(--ease);
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Lista de tipos de obra ---------- */
.types { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.types li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-weight: 700; color: var(--navy); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.types li:hover { transform: translateY(-4px); border-color: var(--accent); }
@media (max-width: 760px) { .types { grid-template-columns: 1fr; } }

/* ---------- Contato e formulário ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.form-card h2, .form-card h3 { margin-bottom: .3em; }
.form-card .lead { font-size: .98rem; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 1rem/1.4 var(--sans); color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(127, 163, 189, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin: 4px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent a, .prose a, p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .card p { margin: 0; }
.contact-aside .card strong { display: block; font: 700 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-aside a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); word-break: break-word; }
.contact-aside a:hover { text-decoration-color: var(--navy); }

/* ---------- CTA escuro ---------- */
.cta-dark { background: var(--navy); color: var(--steel-light); }
.cta-dark h2 { color: #fff; }
.cta-dark .lead { color: var(--steel-light); }
.cta-dark .btn-ghost { color: #fff; border-color: var(--steel-light); }
.cta-dark .btn-ghost::before { background: var(--steel-light); }
.cta-dark .btn-ghost:hover { color: var(--navy); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy); color: var(--steel-light); padding: 48px 0 40px; font-size: .9rem; }
.footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--steel); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--steel-light); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-meta { color: var(--steel); border-top: 1px solid rgba(169, 196, 214, .25); padding-top: 18px; }
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cta-dark + .footer { border-top: 1px solid rgba(169, 196, 214, .18); }

/* ---------- Páginas de apoio ---------- */
.page { padding: calc(var(--header-h) + 64px) 0 80px; }
.page .prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-grid svg { animation: none; }
  .mask .line > span { transform: none; animation: fade .5s ease forwards; opacity: 0; }
  .js .reveal { transform: none; transition: opacity .5s ease; }
  .tl-bar { transition: none; }
  .dock-item { transition: color .2s; }
  .card:hover, .types li:hover { transform: none; }
  .btn::before { transition: none; }
}
