/* =========================================================
   FFF Engenharia — one page
   Direção: exato, sólido, direto. Mundo: prancheta, concreto e aço.
   Assinatura: a cota de desenho técnico (linha com traços nas pontas).
   ========================================================= */
:root {
  /* Rampa grafite — claro */
  --bg: #fafafa;
  --card: #ffffff;
  --raised: #f4f4f5;
  --text: #171717;
  --text-2: #525252;
  --text-3: #737373;
  --line: rgba(23, 23, 23, .08);
  --line-strong: rgba(23, 23, 23, .16);

  /* Rampa grafite — escuro */
  --d-bg: #141415;
  --d-deep: #0f0f10;
  --d-card: #19191b;
  --d-raised: #232325;
  --d-text: #ededed;
  --d-text-2: #a1a1a6;
  --d-text-3: #85858b;
  --d-line: rgba(237, 237, 237, .08);
  --d-line-strong: rgba(237, 237, 237, .16);

  /* Acento da marca: dourado do logo, sempre com texto escuro */
  --gold: #f5c518;
  --gold-hover: #ffd23a;
  --danger: #dc2626;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --r-control: 8px;
  --r-card: 12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--gold); color: var(--text); padding: 12px 16px; font-weight: 500; text-decoration: none; border-radius: var(--r-control);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Ícones: um conjunto, 18px, traço 1.5, cor do texto ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Assinatura: rótulo de seção com cota ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--text-3);
}
.cota { position: relative; width: 32px; height: 9px; flex: none; }
.cota::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.cota::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid currentColor; }
.label-light { color: var(--d-text-3); }

/* ---------- Títulos ---------- */
h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.12; }
h2.display { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.06; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 36rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-control);
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn .i { transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: 120ms; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--text); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: #2a2a2b; }
.btn-ghost-light { color: var(--d-text); background: rgba(20,20,21,.4); border-color: var(--d-line-strong); }
.btn-ghost-light:hover { background: rgba(35,35,37,.7); border-color: rgba(237,237,237,.3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 250ms var(--ease-out);
}
.link-arrow .i { transition: transform 200ms var(--ease-out); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(20, 20, 21, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--d-line);
  color: var(--d-text);
  transition: background-color 300ms ease;
}
.site-header.is-scrolled { background: rgba(20, 20, 21, .98); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 32px; height: auto; }
.brand-text { font-size: 17px; line-height: 1; font-weight: 500; color: var(--d-text); }
.brand-text strong { font-weight: 600; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; text-decoration: none; color: var(--d-text-2); padding: 10px 0;
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size 250ms var(--ease-out), color 160ms ease;
}
.main-nav a:hover { color: var(--d-text); }
.main-nav a.is-active { color: var(--d-text); background-size: 100% 1px; }
.main-nav .nav-cta-mobile { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 64px;
  color: var(--d-text); background: var(--d-bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,20,21,.92) 0%, rgba(20,20,21,.8) 36%, rgba(20,20,21,.24) 72%, rgba(20,20,21,.12) 100%),
    linear-gradient(0deg, rgba(20,20,21,.72) 0%, rgba(20,20,21,0) 36%);
}
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.03em; line-height: 1.04; max-width: 12em; margin: 24px 0; }
.hero .hl { position: relative; white-space: nowrap; }
.hero .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .08em; background: var(--gold);
  transform-origin: left; transform: scaleX(0); animation: draw 800ms 900ms var(--ease-out) forwards;
}
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #d4d4d6; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Números como cotas de desenho técnico */
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 176px)); gap: 24px; margin: 64px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.hero-stats dd {
  position: relative; margin: 0; padding-top: 20px;
  font-size: clamp(32px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.hero-stats dd::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--d-line-strong); }
.hero-stats dd::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-inline: 1px solid rgba(237,237,237,.4); }
.hero-stats dt { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--d-text-2); }

/* Entrada do hero (uma vez, no carregamento) */
[data-enter] [class*="enter-"] { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) forwards; }
[data-enter] .enter-1 { animation-delay: 100ms; }
[data-enter] .enter-2 { animation-delay: 160ms; }
[data-enter] .enter-3 { animation-delay: 220ms; }
[data-enter] .enter-4 { animation-delay: 280ms; }
[data-enter] .enter-5 { animation-delay: 340ms; }
.hero-bg { animation: settle 1600ms var(--ease-out) both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes draw { to { transform: scaleX(1); } }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-soft { background: var(--raised); }
.section-dark { background: var(--d-bg); color: var(--d-text); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head h2 { margin-top: 16px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.head-note { max-width: 26rem; color: var(--d-text-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }

.photo { overflow: hidden; border-radius: var(--r-card); background: var(--raised); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-media .photo { aspect-ratio: 4 / 3.4; }
.about-text { margin-top: 24px; color: var(--text-2); }
.about-text strong { color: var(--text); font-weight: 500; }
.about-copy h2 { margin: 16px 0 40px; }
.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 16px; padding: 24px; transition: border-color 160ms ease; }
.feature-list .i-lg { color: var(--text-3); margin-top: 2px; }
.feature-list h3 { font-size: 17px; line-height: 24px; margin-bottom: 4px; }
.feature-list p { color: var(--text-2); font-size: 15px; line-height: 24px; }

/* ---------- Para quem ---------- */
.profiles { display: grid; gap: 24px; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-rev .profile-card { order: 2; }
.profile-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); }
.profile-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-top .label { gap: 8px; }
.profile-top .i { color: var(--text-3); }
.profile-card h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; margin: 24px 0 12px; }
.profile-card > p { color: var(--text-2); }
.checks { margin: 24px 0 32px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 24px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 6px;
  border-left: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg);
}
.profile-card .link-arrow { margin-top: auto; align-self: flex-start; }
.profile-photo { min-height: 384px; }

/* ---------- Serviços ---------- */
.section-dark h2 { color: var(--d-text); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--d-line-strong); border-left: 1px solid var(--d-line-strong); }
.service {
  position: relative; padding: 32px 32px 40px;
  border-right: 1px solid var(--d-line-strong); border-bottom: 1px solid var(--d-line-strong);
  transition: background-color 200ms ease;
}
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; color: var(--d-text-3); }
.service-top span { font-family: var(--mono); font-size: 13px; line-height: 20px; }
.service h3 { font-size: 19px; line-height: 28px; margin-bottom: 8px; }
.service p { color: var(--d-text-2); font-size: 15px; line-height: 24px; }

/* ---------- Dúvidas ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro h2 { margin: 16px 0 16px; }
.faq-intro p { color: var(--text-2); }
.faq-intro .link-arrow { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; line-height: 28px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { color: var(--text-3); transition: transform 200ms var(--ease-out); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list details > p { padding: 0 48px 24px 0; color: var(--text-2); max-width: 40rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-copy h2 { margin: 16px 0 24px; }
.contact-list { margin-top: 32px; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 250ms var(--ease-out);
}

.quote-form { padding: 32px; display: grid; gap: 16px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.quote-form h3 { font-size: 22px; line-height: 28px; margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-control);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field ::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); background: var(--card); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff7f7; }
.field-error { font-size: 14px; line-height: 20px; color: var(--danger); }
.form-note { font-size: 14px; color: var(--text-2); }
.form-note:empty { display: none; }
.form-note.is-error { color: var(--danger); }
.form-note a { color: inherit; font-weight: 500; }
.form-privacy { font-size: 13px; line-height: 20px; color: var(--text-3); }
.form-privacy a { color: var(--text-2); }
.opt { font-weight: 400; color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form { position: relative; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Aviso de cookies (só aparece com GA4/Pixel configurados) ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: 400px;
  display: grid; gap: 16px; padding: 20px;
  background: var(--d-raised); color: var(--d-text); border: 1px solid var(--d-line-strong); border-radius: var(--r-card);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  font-size: 15px; line-height: 22px;
  opacity: 0; transform: translateY(8px);
  animation: rise 300ms var(--ease-out) forwards;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; }
@media (max-width: 600px) { .consent { right: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .consent { transform: none; animation-name: fade; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--d-bg); color: var(--d-text-2); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-grid, .footer-map { background: linear-gradient(var(--d-line), var(--d-line)) var(--gutter) 100% / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.footer-brand img { width: 112px; margin-bottom: 24px; }
.footer-brand p { max-width: 28rem; font-size: 15px; line-height: 24px; }
.foot-h { font-family: var(--mono); font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--d-text-3); margin-bottom: 12px; }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; transition: color 160ms ease; }
.footer-grid a:hover { color: var(--d-text); }
.footer-grid p { margin-top: 8px; font-size: 15px; line-height: 24px; }
.footer-map { padding-top: 48px; padding-bottom: 48px; }
.footer-map iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: var(--r-card); background: var(--d-card); filter: grayscale(1) contrast(1.05); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--d-text-3); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: inherit; }
.footer-bottom a:hover { color: var(--d-text); }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  background: var(--d-raised); color: var(--d-text); border: 1px solid var(--d-line-strong); border-radius: 24px;
  font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.whats-float:active { transform: scale(.97); transition-duration: 120ms; }

/* Some enquanto o hero (que já tem o botão de orçamento) está na tela */
.js .whats-float { transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out), background-color 160ms ease, visibility 0s; }
.js.hero-on-screen .whats-float { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out), visibility 0s 200ms; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 24px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; margin-right: -12px; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--d-text); transition: transform 200ms var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .main-nav {
    /* altura explícita: o backdrop-filter do cabeçalho prende o menu fixo dentro dele */
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 24px var(--gutter) 40px; background: var(--d-bg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .main-nav a { font-size: 24px; line-height: 32px; color: var(--d-text); padding: 16px 0; border-bottom: 1px solid var(--d-line); background: none; }
  .main-nav a.is-active { background: none; }
  .main-nav .nav-cta-mobile { display: inline-flex; margin-top: 32px; font-size: 15px; line-height: 1; color: var(--text); border: 0; padding: 0 20px; background: var(--gold); }

  .about-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .profile { grid-template-columns: 1fr; }
  .profile-rev .profile-card { order: 0; }
  .profile-photo { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero::before { background: linear-gradient(0deg, rgba(20,20,21,.95) 0%, rgba(20,20,21,.8) 56%, rgba(20,20,21,.44) 100%); }
  .hero h1 { font-size: 40px; }
  .hero .hl {
    white-space: normal; padding-bottom: .06em;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% .08em no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .hero .hl::after { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .hero-stats dd { font-size: 28px; }
  .hero-stats dt { font-size: 12px; line-height: 16px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 24px 24px 32px; }
  .service-top { margin-bottom: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; }
  .faq-list summary { font-size: 17px; }
  .faq-list details > p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .whats-float span { display: none; }
  .whats-float { padding: 0; width: 56px; height: 56px; border-radius: 28px; justify-content: center; }
}

/* ---------- Sobre: responsável técnico e programas ---------- */
.about-media .about-photo { aspect-ratio: 1; border-radius: 50%; max-width: 360px; }
.rt { display: grid; gap: 2px; margin-top: 24px; padding: 20px 24px; }
.rt-label { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--text-3); }
.rt-name { font-size: 19px; line-height: 28px; font-weight: 500; }
.rt-crea { font-family: var(--mono); font-size: 14px; line-height: 22px; color: var(--text-2); }
.rt .link-arrow { justify-self: start; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.tool { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.tool-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Obras ---------- */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 14vw, 200px); gap: 12px; }
.works .photo { height: 100%; background: var(--d-card); }
.works .w-lead { grid-column: span 2; grid-row: span 2; }

/* ---------- Serviços: diagrama BIM ---------- */
.head-note-under { margin-top: 20px; }
.bim { flex: none; width: min(440px, 100%); height: auto; }
.bim .ln path { fill: none; stroke: var(--d-line-strong); stroke-width: 1.5; }
.bim .nd rect { fill: var(--d-card); stroke: var(--d-line-strong); }
.bim .nd text { fill: var(--d-text-2); font: 400 14px var(--mono); text-anchor: middle; }
.bim .hub rect { fill: var(--d-raised); stroke: var(--gold); stroke-width: 1.5; }
.bim .hub text { fill: var(--d-text); font: 500 14px var(--font); text-anchor: middle; }
.bim .hub .sub { fill: var(--gold); font: 400 12px var(--mono); }

@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 220px); }
  .about-media .about-photo { max-width: 280px; }
}

/* ---------- Página de privacidade ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 16px 0 12px; }
.legal h2 { font-size: 22px; line-height: 30px; letter-spacing: 0; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--text); }
.legal .updated { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--text-3); }
.site-footer-slim { padding-top: 0; }

/* ---------- Obras: filtro e nome das obras ---------- */
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--d-line-strong); border-radius: 22px; background: transparent; color: var(--d-text-2);
  font: 500 14px/1 var(--font); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.chip span { font-family: var(--mono); font-size: 12px; color: var(--d-text-3); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] span { color: rgba(23, 23, 23, .6); }
.chip:active { transform: scale(.97); }
.work { position: relative; }
.work[hidden] { display: none; }
.work-tag {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(15, 15, 16, .88) 0%, rgba(15, 15, 16, 0) 100%); pointer-events: none;
}
.work-name { font-size: 15px; line-height: 20px; font-weight: 500; color: #fff; }
.work-city { font-family: var(--mono); font-size: 12px; line-height: 16px; color: rgba(237, 237, 237, .78); }
.w-lead .work-tag { padding: 64px 24px 20px; }
.w-lead .work-name { font-size: 22px; line-height: 28px; }
.works.is-filtered .w-lead { grid-column: auto; grid-row: auto; }
.works.is-filtered .w-lead .work-tag { padding: 40px 16px 14px; }
.works.is-filtered .w-lead .work-name { font-size: 15px; line-height: 20px; }

/* ---------- Diferencial ---------- */
.diff-inner { display: flex; flex-direction: column; gap: 64px; }
.diff-head { max-width: 860px; }
.diff-head h2 { margin: 16px 0 24px; }
.diff-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.diff-list li { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.diff-list li::before { content: ""; position: absolute; left: 0; top: -5px; height: 9px; border-left: 1px solid var(--text-3); }
.diff-n { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--text-3); }
.diff-list h3 { font-size: 20px; line-height: 28px; margin: 12px 0 8px; }
.diff-list p { color: var(--text-2); }
@media (min-width: 901px) {
  .diff { min-height: min(100svh, 900px); display: flex; }
  .diff-inner { justify-content: space-between; }
}

@media (max-width: 900px) {
  .work-tag { padding: 28px 10px 10px; }
  .work-name { font-size: 13px; line-height: 17px; }
  .work-city { font-size: 11px; line-height: 14px; }
  .w-lead .work-tag { padding: 40px 14px 14px; }
  .w-lead .work-name { font-size: 17px; line-height: 22px; }
  .works-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .works-filter::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .diff-list { grid-template-columns: 1fr; gap: 24px; }
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--d-text); border-color: rgba(237, 237, 237, .32); }
  .chip[aria-pressed="true"]:hover { color: var(--text); background: var(--gold-hover); border-color: var(--gold-hover); }
}

/* =========================================================
   Movimento
   ========================================================= */

@media (max-width: 900px) {
  .main-nav > * { opacity: 0; transform: translateY(8px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .main-nav.is-open > * { opacity: 1; transform: none; }
  .main-nav.is-open > *:nth-child(2) { transition-delay: 40ms; }
  .main-nav.is-open > *:nth-child(3) { transition-delay: 80ms; }
  .main-nav.is-open > *:nth-child(4) { transition-delay: 120ms; }
  .main-nav.is-open > *:nth-child(5) { transition-delay: 160ms; }
  .main-nav.is-open > *:nth-child(6) { transition-delay: 200ms; }
  .main-nav.is-open > *:nth-child(7) { transition-delay: 240ms; }
}

/* Hover com deslocamento só em mouse/trackpad */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .i:last-child { transform: translateX(2px); }
  .link-arrow:hover { background-size: calc(100% - 26px) 1px; }
  .link-arrow:hover .i { transform: translateX(4px); }
  .photo:hover img { transform: scale(1.02); transition-duration: 600ms; }
  .feature-list li:hover { border-color: var(--line-strong); }
  .service:hover { background: var(--d-card); }
  .service:hover::before { transform: scaleX(1); }
  .contact-list a:hover { background-size: 100% 1px; }
  .faq-list summary:hover .i { color: var(--text); }
  .whats-float:hover { background: #2c2c2e; }
}

/* Movimento reduzido: sem deslocamento, só opacidade */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] [class*="enter-"] { transform: none; animation-name: fade; }
  .hero-bg { animation: none; }
  .hero .hl::after { transform: none; animation: fade 500ms 500ms var(--ease-out) both; }
  .main-nav, .main-nav.is-open, .main-nav > * { transform: none; }
  .js.hero-on-screen .whats-float { transform: none; }
  .btn:active, .whats-float:active, .photo:hover img,
  .btn:hover .i, .link-arrow:hover .i, .faq-list details[open] summary .i { transform: none; }
}
