/* IPJ Engenharia – estilos do site */
:root {
  --azul-escuro: #0b3a82;
  --azul: #1f7fc1;
  --azul-claro: #e8f1fa;
  --laranja: #f2a114;
  --laranja-escuro: #d98a00;
  --verde: #6aa83c;
  --texto: #1d2733;
  --texto-suave: #556270;
  --cinza: #f4f6f9;
  --linha: #dde3ea;
  --branco: #fff;
  --raio: 10px;
  --sombra: 0 6px 24px rgba(11, 58, 130, .08);
  --fonte: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-titulo: "Barlow", var(--fonte);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fonte); font-size: 1.0625rem; line-height: 1.6; color: var(--texto); background: var(--branco); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
a:hover { color: var(--azul-escuro); }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.2; color: var(--azul-escuro); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--azul-escuro); color: #fff; padding: .5em 1em; z-index: 100; border-radius: 6px; }
.pular:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
.largura { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.centro { text-align: center; margin-top: 2rem; }
.oculto { display: none; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linha); backdrop-filter: blur(6px); }
.topo-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.marca img { height: 62px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--texto); font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--azul); }
.nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--laranja); padding-bottom: 4px; }
.idiomas { display: flex; gap: 2px; border: 1px solid var(--linha); border-radius: 999px; padding: 3px; }
.idiomas a { font-size: .85rem; padding: 3px 9px; border-radius: 999px; color: var(--texto-suave); }
.idiomas a[aria-current="true"] { background: var(--azul-escuro); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 26px; height: 3px; background: var(--azul-escuro); border-radius: 2px; position: relative; transition: .2s; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -8px; } .menu-ico::after { top: 8px; }
.menu-aberto .menu-ico { background: transparent; }
.menu-aberto .menu-ico::before { top: 0; transform: rotate(45deg); }
.menu-aberto .menu-ico::after { top: 0; transform: rotate(-45deg); }

/* Botões */
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: .8em 1.5em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--fonte); transition: .15s; }
.btn-laranja { background: var(--laranja); color: #1b1300; }
.btn-laranja:hover { background: var(--laranja-escuro); color: #1b1300; }
.btn-claro { border-color: #fff; color: #fff; }
.btn-claro:hover { background: #fff; color: var(--azul-escuro); }
.btn-azul { background: var(--azul-escuro); color: #fff; }
.btn-azul:hover { background: var(--azul); color: #fff; }
.btn-whats { background: #1f9d55; color: #fff; }
.btn-whats:hover { background: #17803f; color: #fff; }
.link-seta { font-weight: 600; text-decoration: none; display: inline-block; margin-top: .5rem; }
.link-seta::after { content: " →"; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(8,40,92,.92) 0%, rgba(11,58,130,.78) 45%, rgba(11,58,130,.25) 100%), var(--hero) center/cover no-repeat; }
.hero-in { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 11vw, 140px) 20px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero-texto { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 36em; margin-bottom: 2rem; opacity: .95; }
.hero-selo { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .3em 1em; font-size: .9rem; margin-bottom: 1.2rem; }

/* Números */
.numeros { background: var(--azul-escuro); color: #fff; }
.numeros-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.numero { border-left: 3px solid var(--laranja); padding-left: 16px; }
.numero-valor { display: block; font-family: var(--fonte-titulo); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; }
.numero-rotulo { display: block; font-size: .95rem; opacity: .88; }

/* Seções */
.secao { padding: clamp(56px, 7vw, 92px) 0; }
.secao-cinza { background: var(--cinza); }
.titulo-secao { position: relative; padding-bottom: .5em; }
.titulo-secao::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--laranja), var(--verde), var(--azul)); }
.texto-grande { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--texto); }
.duas-colunas { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.duas-colunas-inv { align-items: start; }
.foto-moldura { margin: 0; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4/3; }
.foto-moldura img { width: 100%; height: 100%; object-fit: cover; }
.cabecalho { background: linear-gradient(120deg, var(--azul-escuro), #13509f); color: #fff; padding: clamp(48px, 7vw, 84px) 0; }
.cabecalho h1 { color: #fff; }
.cabecalho .texto-grande { color: #e6eef8; max-width: 46em; margin: 0; }
.cabecalho-alto { padding: 120px 0; }
.cabecalho-alto .btn { margin-top: 1.5rem; }

/* Serviços */
.grade-servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 1rem; }
.servico { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; }
.servico .ico { color: var(--azul); margin-bottom: 12px; }
.servico h3, .servico h2 { font-size: 1.15rem; margin-bottom: .4em; }
.grade-servicos-detalhe .servico { box-shadow: var(--sombra); border-top: 4px solid var(--azul); }
.grade-servicos-detalhe .servico:nth-child(3n+2) { border-top-color: var(--laranja); }
.grade-servicos-detalhe .servico:nth-child(3n) { border-top-color: var(--verde); }
.grade-servicos-detalhe .servico p { color: var(--texto-suave); margin: 0; }
.lista-check { list-style: none; padding: 0; margin: 0 0 1rem; }
.lista-check li { padding: .45em 0 .45em 2em; position: relative; border-bottom: 1px solid var(--linha); }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .75em; width: 1.1em; height: .6em; border-left: 3px solid var(--verde); border-bottom: 3px solid var(--verde); transform: rotate(-45deg); }

/* Projetos */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtro { font-family: var(--fonte); font-size: .95rem; font-weight: 600; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--linha); background: #fff; color: var(--texto); cursor: pointer; }
.filtro[aria-pressed="true"] { background: var(--azul-escuro); border-color: var(--azul-escuro); color: #fff; }
.grade-projetos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 1rem; }
.card-proj { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.card-proj[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 16/10; background: var(--azul-claro); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-vazia { display: grid; place-items: center; background: linear-gradient(135deg, var(--azul-claro), #f7fbff); }
.card-img-vazia img { width: 88px; height: 88px; object-fit: contain; opacity: .55; }
.card-cat { position: absolute; left: 12px; top: 12px; background: rgba(11,58,130,.92); color: #fff; font-size: .78rem; font-weight: 600; padding: .25em .8em; border-radius: 999px; }
.card-corpo { padding: 20px 22px 22px; }
.card-corpo h3 { font-size: 1.12rem; }
.card-meta { font-size: .93rem; color: var(--texto-suave); }
.card-corpo > p:last-of-type { font-size: .98rem; }
.card-lista { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--texto-suave); }
.card-lista li { margin-bottom: .25em; }
.card-lista li::marker { color: var(--laranja); }

/* Clientes / países */
.clientes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 10px; }
.clientes li { background: #fff; border: 1px solid var(--linha); border-radius: 999px; padding: .45em 1.1em; font-weight: 600; color: var(--azul-escuro); }

/* Empresa */
.missao { margin-top: 1.5rem; background: var(--azul-claro); border-left: 4px solid var(--laranja); border-radius: 0 var(--raio) var(--raio) 0; padding: 18px 22px; }
.missao span { font-family: var(--fonte-titulo); font-weight: 700; color: var(--azul-escuro); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.missao p { margin: .2em 0 0; font-size: 1.1rem; }
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.linha-tempo li { background: #fff; border-radius: var(--raio); padding: 20px; border-top: 4px solid var(--azul); box-shadow: var(--sombra); }
.linha-tempo li:nth-child(even) { border-top-color: var(--laranja); }
.lt-ano { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.6rem; color: var(--azul-escuro); display: block; margin-bottom: .3em; }
.linha-tempo p { margin: 0; font-size: .97rem; color: var(--texto-suave); }
.diretor h3 { font-size: 1.5rem; margin-bottom: .2em; }
.diretor-cargo { color: var(--azul); font-weight: 600; }

/* Publicações */
.lista-pubs { display: grid; gap: 22px; }
.pub { display: grid; grid-template-columns: 110px 1fr; gap: 24px; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; box-shadow: var(--sombra); }
.pub-ano { font-family: var(--fonte-titulo); font-weight: 700; font-size: 2rem; color: var(--laranja-escuro); }
.pub h2 { font-size: 1.3rem; }
.pub-editora { color: var(--azul); font-weight: 600; }

/* Contato */
.contato { align-items: start; }
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .97rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .7em .9em; border: 1px solid #c5ced8; border-radius: 8px; width: 100%; background: #fff; color: var(--texto); }
.form input:focus, .form textarea:focus { border-color: var(--azul); outline: 2px solid var(--azul-claro); }
.form .btn { justify-self: start; }
.form-nota { font-size: .88rem; color: var(--texto-suave); margin: 0; }
.contato-dados { display: grid; gap: 22px; }
.contato-dados h2 { font-size: 1.1rem; margin-bottom: .3em; }
.contato-dados p { margin: 0 0 .4em; }

/* CTA */
.cta { background: linear-gradient(110deg, var(--azul-escuro), var(--azul)); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .92; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* Rodapé */
.rodape { background: #082a5e; color: #d4e0f0; padding-top: 52px; }
.rodape-in { max-width: 1180px; margin: 0 auto; padding: 0 20px 36px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.rodape h2 { color: #fff; font-size: 1.05rem; }
.rodape a { color: #fff; }
.rodape-logo { width: 210px; height: auto; margin-bottom: 14px; }
.rodape-selo { font-size: .92rem; }
.rodape-fim { margin: 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px 20px; font-size: .85rem; color: #a9bbd4; }

/* WhatsApp flutuante */
.whats { position: fixed; right: 18px; bottom: 84px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whats:hover { color: #fff; transform: scale(1.06); }

/* Responsivo */
@media (max-width: 1020px) {
  .nav ul { gap: 16px; }
  .grade-projetos { grid-template-columns: repeat(2, 1fr); }
  .grade-servicos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linha); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu-aberto .nav { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--linha); }
  .nav ul a[aria-current="page"] { box-shadow: none; color: var(--azul); }
  .idiomas { align-self: flex-start; }
  .duas-colunas { grid-template-columns: 1fr; }
  .numeros-grade { grid-template-columns: repeat(2, 1fr); }
  .rodape-in { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .marca img { height: 44px; }
  .grade-projetos, .grade-servicos { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .form { padding: 20px; }
  .hero { background: linear-gradient(180deg, rgba(8,40,92,.88), rgba(11,58,130,.82)), var(--hero) center/cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.nowrap { white-space: nowrap; }
.card-img img { object-position: center top; }
