/* ==========================================================================
   Gomes Soluções Industriais — estilos do site
   Cores e fontes da marca ficam nas variáveis abaixo.
   ========================================================================== */

:root {
  --navy-950: #070a33;
  --navy-900: #0b0e4f;
  --navy-700: #120a78;   /* azul do logo */
  --navy-500: #2b30a6;
  --green-700: #23661e;
  --green-600: #2a7b24;  /* verde do logo */
  --green-400: #5fd072;
  --ink: #0e1330;
  --muted: #556079;
  --line: #dde4ee;
  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11, 14, 79, .10);
  --shadow-lg: 0 24px 60px rgba(7, 10, 51, .22);
  --container: 1180px;
  --header-h: 76px;
  --font-title: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(42, 123, 36, .32); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { padding: .75rem 1.2rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- textos de apoio ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-title); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: var(--green-400); }

.section { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11, 14, 79, .08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-700); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
/* "GOMES ENGENHARIA" em cima e a frase embaixo, cada uma numa linha só e com a mesma largura */
.brand-text strong { font-family: var(--font-title); font-weight: 600; font-size: 1.5rem; letter-spacing: .04em; white-space: nowrap; }
.brand-text small { font-family: var(--font-title); font-weight: 500; font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; margin-top: .35rem; color: var(--green-600); }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: var(--green-400); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav ul a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); padding: .4rem 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px;
  background: var(--green-600); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: var(--bg-soft); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy-700);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- setas (elemento gráfico da marca) ---------- */
.chevrons { display: flex; gap: 0; pointer-events: none; }
.chevrons i {
  display: block; width: 74px; height: 120px; margin-left: -22px;
  background: rgba(255, 255, 255, .13);
  clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%);
}
.chevrons i:first-child { margin-left: 0; }
.chevrons-sm i { width: 30px; height: 46px; margin-left: -9px; background: var(--green-400); }

/* ---------- início ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: center;
  color: #fff; background: var(--navy-950);
  padding: clamp(4rem, 3rem + 5vw, 7rem) 0 clamp(6rem, 4rem + 6vw, 9rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7, 10, 51, .95) 0%, rgba(11, 14, 79, .88) 50%, rgba(13, 12, 96, .8) 100%);
}
.hero-inner {
  display: grid; align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "head stage" "body stage";
}
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; align-self: start; }
.hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 4vw, 4rem); font-weight: 700; letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--green-400); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero-points li { display: flex; align-items: center; gap: .55rem; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--green-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23070a33' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* ---------- galpão 3D interativo ---------- */
.stage { grid-area: stage; position: relative; justify-self: center; width: min(540px, 100%); aspect-ratio: 1 / 1; }
.stage-ring { position: absolute; inset: 1%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); }
.stage-ring::before {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  border: 1.500px dashed rgba(95, 208, 114, .38); animation: girar 60s linear infinite;
}
.stage-halo {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(150, 175, 255, .42) 0%, rgba(61, 74, 214, .26) 42%, rgba(7, 10, 51, 0) 72%);
}
.stage-pulse { position: absolute; inset: 9%; border-radius: 50%; border: 2px solid var(--green-400); opacity: 0; pointer-events: none; }
.stage.is-done .stage-pulse { animation: pulso 1.600s ease-out 2; }
.stage-shadow {
  position: absolute; left: 50%; bottom: 17%; width: 66%; height: 9%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent);
}
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .6s ease;
}
.stage.has-3d canvas { opacity: 1; }
.stage canvas.is-dragging { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s ease; }
.stage-fallback svg { width: 78%; height: 78%; }
.stage.has-3d .stage-fallback { opacity: 0; pointer-events: none; }
.stage.has-3d .stage-shadow { opacity: .55; }

.stage-chip, .stage-hint {
  position: absolute; left: 50%; transform: translateX(-50%); margin: 0; z-index: 3; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.stage.has-3d .stage-chip, .stage.has-3d .stage-hint { opacity: 1; }
.stage-chip {
  top: 4%; padding: .5rem 1rem; font-family: var(--font-title); font-weight: 600; font-size: .86rem; color: #fff;
  background: rgba(7, 10, 51, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
}
.stage-chip i { width: 9px; height: 9px; border-radius: 50%; background: #f2b705; transition: background-color .3s ease, box-shadow .3s ease; }
.stage-chip.is-done i { background: var(--green-400); box-shadow: 0 0 0 4px rgba(95, 208, 114, .28); }
.stage-hint { bottom: 3%; font-size: .8rem; color: rgba(255, 255, 255, .72); }
.stage-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage.was-dragged .stage-hint { opacity: 0; }

@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulso { 0% { opacity: .8; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.12); } }

/* ---------- números ---------- */
.stats { position: relative; z-index: 2; margin-top: -4.25rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 1.75rem 2rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--navy-700); line-height: 1.1; margin-bottom: .35rem; }
.stat > span { color: var(--muted); font-size: .98rem; line-height: 1.45; display: block; }

/* ---------- quem somos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border-radius: var(--radius); background: var(--navy-700);
}
.badge-anos {
  position: absolute; left: -1rem; bottom: 2rem; background: var(--green-600); color: #fff;
  border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); line-height: 1.1;
}
.badge-anos strong { display: block; font-family: var(--font-title); font-size: 2.1rem; font-weight: 700; }
.badge-anos span { font-size: .82rem; letter-spacing: .04em; }
.split-text > p:not(.eyebrow) { color: #2c3454; }

.proposito {
  margin: 1.75rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--green-600);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.proposito p { margin: 0; }
.proposito-titulo { font-family: var(--font-title); font-weight: 600; color: var(--navy-700); margin-bottom: .35rem !important; }

.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pilares li { border-top: 3px solid var(--navy-700); padding-top: .85rem; }
.pilares strong { display: block; font-family: var(--font-title); font-weight: 600; color: var(--navy-700); }
.pilares span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- atuação ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.area {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.area img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area-body { padding: 1.5rem 1.6rem 1.75rem; border-top: 4px solid var(--green-600); }
.area-body p { margin: 0; color: var(--muted); }

/* ---------- serviços: lista grande que abre ---------- */
.servicos-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.servicos-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.servicos-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1.25; margin-bottom: 1.5rem; }
.servicos-lista { border-top: 1px solid var(--line); }
.servico-item { border-bottom: 1px solid var(--line); }
.servico-item h3 { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.servico-btn {
  width: 100%; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  padding: clamp(1.1rem, .8rem + 1vw, 1.75rem) 0; background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit;
}
.servico-num { font-family: var(--font-title); font-weight: 600; font-size: .85rem; color: var(--muted); transition: color .2s ease; }
.servico-nome {
  font-family: var(--font-title); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.9vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.02em; transition: color .2s ease, transform .3s ease;
}
.servico-btn:hover .servico-nome { color: var(--navy-700); transform: translateX(8px); }
.servico-item.is-open .servico-nome { color: var(--navy-700); }
.servico-item.is-open .servico-num { color: var(--green-600); }
.servico-mais {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.500px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease;
}
.servico-mais::before, .servico-mais::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px;
  background: var(--navy-700); transform: translate(-50%, -50%); transition: transform .3s ease, background-color .2s ease;
}
.servico-mais::after { transform: translate(-50%, -50%) rotate(90deg); }
.servico-item.is-open .servico-mais { background: var(--navy-700); border-color: var(--navy-700); }
.servico-item.is-open .servico-mais::before, .servico-item.is-open .servico-mais::after { background: #fff; }
.servico-item.is-open .servico-mais::after { transform: translate(-50%, -50%) rotate(0deg); }
.servico-painel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.servico-item.is-open .servico-painel { grid-template-rows: 1fr; }
.servico-conteudo {
  min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s;
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; padding-left: 3.7rem;
}
.servico-item.is-open .servico-conteudo { visibility: visible; transition-delay: 0s; }
.servico-conteudo > div { padding-bottom: 1.75rem; }
.servico-conteudo p { color: var(--muted); margin-bottom: .9rem; }
.servico-conteudo ul { display: grid; gap: .45rem; font-size: .97rem; }
.servico-conteudo li { position: relative; padding-left: 1.35rem; line-height: 1.45; }
.servico-conteudo li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px;
  background: var(--green-600); clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
.servico-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 1.75rem; }
html:not(.js) .servico-painel { grid-template-rows: 1fr; }
html:not(.js) .servico-conteudo { visibility: visible; }

/* ---------- projetos ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filtro {
  font-family: var(--font-title); font-weight: 500; font-size: .92rem; cursor: pointer;
  padding: .65rem 1.15rem; border-radius: 999px; border: 1.500px solid var(--line); background: #fff; color: var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filtro:hover { border-color: var(--navy-700); }
.filtro.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.projetos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.projeto { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.projeto[hidden] { display: none; }
.projeto-capa {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy-900);
  cursor: zoom-in; overflow: hidden;
}
.projeto-capa img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, opacity .3s ease; }
.projeto-capa:hover img, .projeto-capa:focus-visible img { transform: scale(1.06); opacity: .82; }
.projeto-fotos {
  position: absolute; right: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(7, 10, 51, .82); color: #fff; font-size: .8rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 999px;
}
.projeto-fotos::before {
  content: ""; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.800'/%3E%3Cpath d='m4 17 5-4.500 4 3.500 3-2.500 4 3.500'/%3E%3C/svg%3E") center / contain no-repeat;
}
.projeto-info { padding: 1.25rem 1.4rem 1.5rem; }
.projeto-cat { font-family: var(--font-title); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: .45rem; }
.projeto-info h3 { font-size: 1.12rem; color: var(--navy-700); margin-bottom: .35rem; }
.projeto-local { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.45; }

.projeto-cta {
  background: var(--navy-700); color: #fff; padding: 2rem 1.75rem; justify-content: center; align-items: flex-start; gap: .25rem;
  background-image: linear-gradient(140deg, var(--navy-900), var(--navy-700));
}
.projeto-cta h3 { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.projeto-cta p { color: rgba(255, 255, 255, .82); margin-bottom: 1.25rem; }

/* ---------- faixa de logos dos clientes ---------- */
.logos { padding: clamp(2.5rem, 2rem + 2vw, 3.750rem) 0 0; }
.logos-titulo {
  text-align: center; font-family: var(--font-title); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem;
}
.logos-faixa {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logos-trilho {
  display: flex; flex: none; align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-right: clamp(2rem, 4vw, 4rem);
  animation: rolar 38s linear infinite;
}
.logos-faixa:hover .logos-trilho { animation-play-state: paused; }
.logos-trilho li { width: 138px; height: 62px; display: grid; place-items: center; flex: none; }
.logos-trilho img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes rolar { to { transform: translateX(-100%); } }

/* ---------- manifesto (texto grande que acende ao rolar) ---------- */
.manifesto { padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) 0 clamp(.5rem, 2vw, 2rem); }
.manifesto-texto {
  margin: 0; max-width: 1040px; font-family: var(--font-title); font-weight: 500;
  font-size: clamp(1.55rem, 1rem + 2.800vw, 3.3rem); line-height: 1.24; letter-spacing: -.02em; color: var(--ink);
}
.manifesto-texto mark {
  background: var(--bg-soft); color: inherit; padding: .02em .34em; border-radius: 999px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .manifesto-texto .pal { color: rgba(14, 19, 48, .17); transition: color .35s ease, background-color .35s ease; }
.js .manifesto-texto .pal.is-on { color: var(--ink); }
.js .manifesto-texto mark.pal.is-on { background: #e2f3e3; color: var(--green-700); }

/* ---------- faixa de chamada ---------- */
.faixa { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(4rem, 3rem + 4vw, 6.500rem) 0; background: var(--navy-950); }
.faixa-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.faixa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 79, .9), rgba(7, 10, 51, .94)); }
.faixa-inner { max-width: 760px; }
.faixa h2 { font-size: clamp(1.9rem, 1.3rem + 2.600vw, 3rem); }
.faixa p { color: rgba(255, 255, 255, .85); font-size: 1.12rem; margin-bottom: 1.75rem; }

/* ---------- contato ---------- */
.contato { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: start; }
.contato-info > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.contato-lista { margin-top: 2rem; display: grid; gap: 1.35rem; }
.contato-lista li { display: flex; gap: 1rem; align-items: flex-start; }
.contato-lista svg {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--bg-soft);
  stroke: var(--navy-700); fill: none; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round;
}
.contato-lista div { display: flex; flex-direction: column; line-height: 1.5; }
.contato-lista strong { font-family: var(--font-title); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contato-lista a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contato-lista a:hover { color: var(--green-600); text-decoration: underline; }

.contato-form { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.500rem); border-top: 5px solid var(--navy-700); }
.contato-form h3 { font-size: 1.4rem; color: var(--navy-700); margin-bottom: 1.25rem; }
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.opcional { font-weight: 400; color: var(--muted); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .8rem .95rem; border: 1.500px solid var(--line); border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(18, 10, 120, .12); }
.campo .is-invalid { border-color: #c0392b; }
.form-erro { color: #a52a1c; font-weight: 600; font-size: .92rem; margin-bottom: .9rem; }
.form-nota { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding-top: clamp(3rem, 2rem + 3vw, 4.500rem); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.400fr 1fr 1.200fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 1rem; color: rgba(255, 255, 255, .7); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 1.4rem 0 1.75rem; font-size: .85rem; color: rgba(255, 255, 255, .6);
}
.footer-legal p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .18s ease;
}
.whats-flutuante:hover { transform: scale(1.08); }
.whats-flutuante svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- galeria (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 6, 30, .94);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-figura { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; min-width: 0; }
.lb-figura img { max-width: 100%; max-height: calc(100vh - 8.500rem); width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #0b0e4f; }
.lb-figura figcaption { color: #fff; text-align: center; font-size: .95rem; display: flex; flex-direction: column; gap: .15rem; max-width: 70ch; }
#lb-contador { color: rgba(255, 255, 255, .65); font-size: .85rem; }
.lb-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .18s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.lb-fechar { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
body.sem-rolagem { overflow: hidden; }

/* ---------- animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Com "reduzir animações" ligado no aparelho, só a rolagem suave é desligada;
   as demais animações são leves e continuam ativas. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- notebooks: menu completo um pouco mais junto para caber ao lado do nome ---------- */
@media (min-width: 1121px) and (max-width: 1180px) {
  .site-nav { gap: 1.25rem; }
  .site-nav ul { gap: 1.2rem; }
}

/* ---------- até 1120px o menu vira botão (o nome "GOMES ENGENHARIA" não cabe ao lado do menu completo) ---------- */
@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 14, 79, .12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a.is-active { color: var(--green-600); }
}

/* ---------- telas médias ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "body"; }
  .hero-head { align-self: auto; }
  .stage { width: min(440px, 88vw); margin: .25rem auto 1.5rem; }

  .areas, .projetos { grid-template-columns: repeat(2, 1fr); }
  .split, .contato { grid-template-columns: 1fr; }
  .split-media { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- celular ---------- */
@media (max-width: 680px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .header-inner { gap: .75rem; }
  .brand { gap: .55rem; }
  .brand img { width: 40px; height: 40px; }
  /* o nome acompanha a largura do celular para as duas linhas nunca quebrarem */
  .brand-text strong { font-size: clamp(.9rem, 4.8vw, 1.3rem); }
  .brand-text small { font-size: clamp(.48rem, 2.42vw, .66rem); letter-spacing: .06em; margin-top: .3rem; }
  .hero { min-height: 0; padding-top: 2.25rem; padding-bottom: 7rem; }
  .hero h1 { margin-bottom: .5rem; }
  .stage { width: min(330px, 86vw); margin: 0 auto 1rem; }
  .stage-chip { font-size: .8rem; padding: .42rem .85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; gap: .55rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 1.5rem; }
  .stat:first-child { border-top: 0; }
  .areas, .projetos { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr; }
  .badge-anos { left: .75rem; bottom: .75rem; }
  .split-media::before { inset: .75rem -.6rem -.75rem .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox { grid-template-columns: 1fr; padding: .75rem; }
  .lb-ant, .lb-prox { position: absolute; bottom: 1rem; z-index: 2; }
  .lb-ant { left: 1rem; }
  .lb-prox { right: 1rem; }
  .lb-figura img { max-height: calc(100vh - 12rem); }
  .lb-figura figcaption { padding: 0 3.500rem; }
}

/* ==========================================================================
   Detalhes inspirados em stripe.com e wokine.com
   ========================================================================== */

/* títulos em dois tons */
.tom { color: #8891a8; }
.section-head h2:last-child { margin-bottom: 0; }

/* botões e links com seta */
.btn-seta::after, .link-seta::after { content: "\2192"; display: inline-block; transition: transform .2s ease; }
.btn-seta:hover::after, .link-seta:hover::after { transform: translateX(5px); }
.link-seta {
  display: inline-flex; align-items: center; gap: .5rem; padding-bottom: .2rem;
  font-family: var(--font-title); font-weight: 600; color: var(--navy-700);
  text-decoration: none; border-bottom: 2px solid currentColor;
}

/* projetos em fundo escuro, com colunas desencontradas */
.section-dark { background: var(--navy-950); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .tom { color: rgba(255, 255, 255, .5); }
.section-dark .eyebrow { color: var(--green-400); }
.section-dark .filtro { background: transparent; color: rgba(255, 255, 255, .86); border-color: rgba(255, 255, 255, .24); }
.section-dark .filtro:hover { border-color: #fff; }
.section-dark .filtro.is-active { background: #fff; border-color: #fff; color: var(--navy-950); }
.section-dark .projeto { background: transparent; box-shadow: none; overflow: visible; }
.section-dark .projeto-capa { border-radius: 16px; }
.section-dark .projeto-info { padding: 1rem .15rem 0; }
.section-dark .projeto-info h3 { color: #fff; font-weight: 500; font-size: 1.2rem; }
.section-dark .projeto-cat { color: var(--green-400); }
.section-dark .projeto-local { color: rgba(255, 255, 255, .62); }
.section-dark .projeto-cta {
  padding: 2rem 1.75rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(140deg, #1a2190, #0b0e4f); overflow: hidden;
}
@media (min-width: 1021px) {
  .section-dark .projetos { row-gap: 3rem; padding-bottom: 3.500rem; }
  .section-dark .projeto:nth-child(3n + 2) { translate: 0 3.500rem; }
}

/* barra de atalhos fixa (só no celular) */
.dock { display: none; }

@media (max-width: 1020px) {
  .servicos-wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .servicos-head { position: static; }
}

@media (max-width: 680px) {
  .logos-trilho li { width: 104px; height: 48px; }
  .logos-trilho { animation-duration: 28s; }
  .servico-btn { grid-template-columns: 2.1rem minmax(0, 1fr) auto; padding: 1.05rem 0; }
  .servico-mais { width: 38px; height: 38px; }
  .servico-conteudo { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .servico-foto { order: -1; aspect-ratio: 16 / 9; margin-bottom: 1.1rem; }

  .dock {
    position: fixed; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95;
    display: flex; align-items: center; gap: .1rem; padding: .35rem; border-radius: 18px; white-space: nowrap;
    background: rgba(14, 19, 48, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  }
  .dock a {
    color: rgba(255, 255, 255, .86); text-decoration: none; font-family: var(--font-title);
    font-weight: 500; font-size: .9rem; padding: .7rem .8rem; border-radius: 13px;
  }
  .dock .dock-cta { display: inline-flex; align-items: center; gap: .45rem; background: var(--green-600); color: #fff; font-weight: 600; }
  .dock-cta svg { width: 18px; height: 18px; fill: currentColor; }
  .whats-flutuante { display: none; }
  .site-footer { padding-bottom: 4.750rem; }
}

