/* 1. Identidade: altere estas cores para mudar o site inteiro. */
:root {
  color-scheme: dark;
  --fundo: #061b2e;
  --superficie: #0c2942;
  --dourado: #f4b41b;
  --texto: #f5f7fa;
  --apoio: #c5cfda;
  --borda: #274157;
}

/* 2. Base: tamanhos previsíveis, leitura e links. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 1rem/1.7 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--dourado); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--dourado); outline-offset: 5px; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
p { color: var(--apoio); }
strong { color: var(--texto); }

/* 3. Cabeçalho: menu visível, sem depender de JavaScript. */
header {
  max-width: 1200px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
header img { width: 170px; border-radius: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--texto);
  font-size: .9rem;
  text-decoration: none;
}
nav a:hover { color: var(--dourado); }
.pular-conteudo { position: absolute; left: 16px; top: -100px; z-index: 2; }
.pular-conteudo:focus { top: 16px; padding: 12px; background: var(--fundo); }

/* 4. Seções: espaço para leitura e largura limitada em monitores grandes. */
section {
  max-width: 1152px;
  margin: auto;
  padding: 64px 24px;
  border-top: 1px solid var(--borda);
  scroll-margin-top: 24px;
}
section > h2 { max-width: 850px; margin: 0 0 28px; }
section > p { max-width: 780px; }
#inicio {
  padding-top: 56px;
  padding-bottom: 72px;
  background: radial-gradient(ellipse at top right, #12486d 0%, transparent 65%);
}
.apresentacao-texto > p:first-child {
  color: var(--dourado);
  font-size: .8rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#inicio h1 { max-width: 1000px; margin: 24px 0; }
.apresentacao-texto > p { font-size: 1.1rem; }

/* 5. Botões: links com área confortável para tocar no celular. */
.apresentacao-texto > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 22px;
  border: 1px solid var(--dourado);
  border-radius: 6px;
  background: var(--dourado);
  color: var(--fundo);
  text-decoration: none;
  font-weight: bold;
}
.apresentacao-texto > a:last-child { background: transparent; color: var(--texto); }
.apresentacao-texto > a:hover { background: #ffcf59; color: var(--fundo); }

/* 6. Serviços: uma coluna no celular; mais colunas quando houver espaço. */
#servicos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#servicos > h2 { grid-column: 1 / -1; margin-bottom: 8px; }
#servicos > .introducao-servicos { grid-column: 1 / -1; margin: 0 0 12px; }
#servicos article {
  padding: 28px;
  border: 1px solid var(--borda);
  border-top: 3px solid var(--dourado);
  border-radius: 8px;
  background: var(--superficie);
}
#servicos h3 { margin: 0 0 16px; }
#servicos article p { margin: 0; }

/* 7. Diferenciais, processo e campos que ainda precisam de informação. */
#diferenciais ul, #como-trabalhamos ol {
  display: grid;
  gap: 16px;
  padding-left: 24px;
}
li { color: var(--apoio); padding-left: 8px; }
li::marker { color: var(--dourado); font-weight: bold; }
li strong { display: block; }
mark {
  display: inline-block;
  padding: 16px;
  border: 1px dashed var(--dourado);
  border-radius: 6px;
  background: #302a19;
  color: #ffda79;
}
#contato { background: var(--superficie); border-radius: 12px 12px 0 0; }
address { font-style: normal; }
address a { display: inline-block; padding-block: 8px; }
footer { max-width: 1152px; margin: auto; padding: 32px 24px; font-size: .875rem; }
footer a { display: inline-block; padding-block: 10px; }

/* 8. Telas maiores: ajustes sem mudar o conteúdo do HTML. */
@media (min-width: 640px) {
  section { padding: 80px 32px; }
  .apresentacao-texto > a { display: inline-flex; margin-right: 12px; }
  #servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #diferenciais ul, #como-trabalhamos ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) {
  header { flex-direction: row; align-items: center; justify-content: space-between; }
  nav { justify-content: flex-end; }
  #inicio { padding-top: 88px; padding-bottom: 96px; }
  #servicos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Respeita quem prefere evitar movimentos na tela. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 9. Orçamento: formulário, botões de serviço e contato flutuante. */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--dourado);
  border-radius: 6px;
  background: var(--dourado);
  color: var(--fundo);
  font: bold 1rem/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.botao:hover { background: #ffcf59; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 4px;
}
#servicos article { display: flex; flex-direction: column; align-items: flex-start; }
#servicos article p { flex: 1; margin-bottom: 24px; }
form { display: grid; gap: 12px; max-width: 700px; margin-top: 40px; }
form h3 { margin-bottom: 8px; }
label { font-weight: bold; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--borda);
  border-radius: 6px;
  background: var(--fundo);
  color: var(--texto);
  font: inherit;
  /* Ao focar um campo, deixa espaço para o botão flutuante. */
  scroll-margin-block: 24px 100px;
}
textarea { resize: vertical; }
input::placeholder { color: var(--apoio); opacity: 1; }
form p { margin-block: 4px; font-size: .9rem; }
.whatsapp-flutuante {
  position: fixed;
  z-index: 10;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid #70e5a9;
  border-radius: 30px;
  background: #075e37;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 24px #0006;
}
.whatsapp-flutuante:hover { background: #084b2f; }
/* Reserva espaço no final para que o botão fixo não cubra o rodapé. */
footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* 10. Credibilidade: dados confirmados e espaço para evidências reais. */
.numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.numeros p {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: var(--superficie);
}
.numeros strong { display: block; color: var(--dourado); font-size: 2.3rem; line-height: 1.3; }
.numeros span { display: block; margin-top: 10px; }
.seguranca, .depoimentos { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--borda); }

/* 11. Galeria ilustrativa e ícones locais, sem bibliotecas externas. */
.galeria-servicos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.galeria-servicos figure { margin: 0; overflow: hidden; border: 1px solid var(--borda); border-radius: 8px; background: var(--superficie); }
.galeria-servicos figure > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { padding: 20px; }
figcaption span { display: block; margin-top: 8px; font-size: .85rem; color: var(--apoio); }
.icone-contato { flex-shrink: 0; width: 24px; height: 24px; }
.linha-contato { display: flex; align-items: flex-start; gap: 12px; }
.linha-contato > .icone-contato { margin-top: 10px; }
.linha-contato > span { min-width: 0; }
.linha-contato a { overflow-wrap: anywhere; }
.localizacao { margin-block: 32px; padding-block: 16px; border-block: 1px solid var(--borda); }
@media (min-width: 800px) {
  .galeria-servicos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 12. Retratos recortados: empilhados no celular e ao lado do texto no computador. */
.icone-servico {
  width: 64px;
  height: 64px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--fundo);
}
header img { width: 190px; border-radius: 0; }
.apresentacao-texto, .experiencia-texto { min-width: 0; }
.experiencia-texto h2 { margin-top: 0; }
.foto-apresentacao, .foto-experiencia {
  margin: 40px 0 0;
  align-self: end;
  background: radial-gradient(ellipse at 50% 65%, #16476b 0%, transparent 68%);
}
.foto-apresentacao img, .foto-experiencia img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-inline: auto;
}
.foto-apresentacao figcaption, .foto-experiencia figcaption {
  padding: 16px;
  border-top: 1px solid var(--dourado);
  color: var(--texto);
  font-size: .9rem;
  text-align: center;
}
.foto-apresentacao figcaption span { margin-top: 0; }
.foto-apresentacao figcaption { font-weight: bold; }
@media (min-width: 900px) {
  #inicio, #quem-somos { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  #inicio h1 { font-size: clamp(2.6rem, 3.5vw, 3.6rem); }
  .foto-apresentacao, .foto-experiencia { margin: 0; }
  .foto-apresentacao img, .foto-experiencia img { max-width: 460px; }
}

/* 13. Acabamento: azul profundo, linhas discretas e detalhes dourados. */
body {
  background-color: var(--fundo);
  background-image:
    radial-gradient(ellipse at 100% 0%, #12466966, transparent 42%),
    linear-gradient(#8cb6d205 1px, transparent 1px),
    linear-gradient(90deg, #8cb6d205 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header { padding-block: 18px; border-bottom: 1px solid #ffffff10; }
header img { width: 145px; }
nav { gap: 6px 20px; }
nav a { font-weight: 500; font-size: .85rem; }
nav a:last-child { padding-inline: 18px; border: 1px solid #f4b41b70; border-radius: 5px; color: var(--dourado); }
section { border-top-color: #ffffff10; padding-block: 80px; }
section > h2::before, .experiencia-texto h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--dourado);
}
h2 { font-weight: 650; letter-spacing: -.035em; }
p { line-height: 1.8; }
#inicio {
  position: relative;
  isolation: isolate;
  border-top: 0;
  background: transparent;
  overflow: hidden;
  padding-top: 64px;
}
/* Linhas e círculos decorativos não interferem nos cliques. */
#inicio::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(74vw, 600px);
  aspect-ratio: 1;
  right: -15%;
  top: 8%;
  border: 1px solid #87b1ce15;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #87b1ce06, 0 0 0 110px #87b1ce04;
}
.apresentacao-texto > p:first-child { font-size: .7rem; letter-spacing: .12em; max-width: 470px; }
#inicio h1 { line-height: 1.1; font-weight: 650; letter-spacing: -.045em; }
.destaque-titulo { color: var(--dourado); }
.apresentacao-texto > p:not(:first-child) { font-size: 1rem; max-width: 560px; }
.apresentacao-texto > a, .botao { border-radius: 5px; font-size: .9rem; transition: background-color .18s ease, border-color .18s ease; }
.apresentacao-texto > a { margin-top: 20px; }
.apresentacao-texto > a:last-child { border-color: #ffffff35; }
.foto-apresentacao, .foto-experiencia {
  position: relative;
  background: radial-gradient(ellipse at 50% 65%, #23577c55, transparent 65%);
}
.foto-apresentacao figcaption, .foto-experiencia figcaption { border-top-color: #f4b41b66; padding-block: 18px; letter-spacing: .02em; }
.foto-apresentacao figcaption span { font-size: .75rem; font-weight: 400; }
.experiencia-texto > p { font-size: .95rem; }
.experiencia-texto > p:last-child { color: #9bb1c3; font-size: .8rem; }
#servicos { gap: 22px; }
#servicos > .introducao-servicos { font-size: .95rem; margin-bottom: 22px; }
#servicos article {
  position: relative;
  padding: 28px;
  border: 1px solid #7fa4bf28;
  border-radius: 10px;
  background: linear-gradient(145deg, #10334ce8, #0a2138f5);
  box-shadow: 0 12px 32px #00000012;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#servicos article:hover { border-color: #f4b41b70; box-shadow: 0 16px 40px #00000028; }
.icone-servico { background: #f4b41b08; border-color: #f4b41b24; border-radius: 10px; width: 60px; height: 60px; }
#servicos h3 { font-size: 1.16rem; line-height: 1.35; font-weight: 600; }
#servicos article p { font-size: .9rem; }
#servicos .botao {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dourado);
  font-size: .88rem;
}
#servicos .botao::after { content: "↗"; font-size: 1.1rem; margin-left: 6px; }
#servicos .botao:hover { color: #ffdc80; }
.numeros { gap: 0; border: 1px solid #7fa4bf28; border-radius: 10px; overflow: hidden; }
.numeros p { border: 0; border-radius: 0; background: #0c2942b8; padding: 30px; }
.numeros p + p { border-top: 1px solid #ffffff10; }
.numeros strong { font-weight: 500; letter-spacing: -.04em; }
.numeros span { font-size: .85rem; max-width: 250px; }
#diferenciais ul { row-gap: 28px; }
#diferenciais li { font-size: .9rem; }
#diferenciais li strong { margin-bottom: 6px; }
.galeria-servicos figure { background: #0b263c; border-color: #ffffff15; border-radius: 10px; }
.galeria-servicos figcaption { font-size: .95rem; }
.galeria-servicos figcaption span { font-size: .75rem; }
#como-trabalhamos ol { list-style: none; counter-reset: etapa; padding: 0; gap: 20px; }
#como-trabalhamos li { counter-increment: etapa; padding: 24px; border: 1px solid #ffffff12; border-radius: 8px; background: #0b263c80; font-size: .9rem; }
#como-trabalhamos li::before { content: "0" counter(etapa); display: block; margin-bottom: 18px; color: var(--dourado); font-size: .8rem; letter-spacing: .12em; }
#como-trabalhamos li strong { margin-bottom: 8px; }
#contato { border: 1px solid #7fa4bf28; border-radius: 14px; background: linear-gradient(140deg, #10334c, #081f34); }
form { padding: 24px; background: #061b2e88; border: 1px solid #ffffff12; border-radius: 10px; }
form label { font-size: .85rem; font-weight: 500; }
form h3 { font-weight: 600; }
input, select, textarea { background: #061b2e; border-color: #ffffff25; border-radius: 5px; }
footer { padding-top: 40px; font-size: .8rem; }
@media (min-width: 640px) {
  section { padding-block: 96px; }
  .numeros p + p { border-top: 0; border-left: 1px solid #ffffff10; }
  form { padding: 32px; }
}
@media (min-width: 900px) {
  #inicio { padding-top: 72px; padding-bottom: 80px; gap: 52px; }
  #inicio h1 { font-size: clamp(2.8rem, 4vw, 3.8rem); }
  .foto-experiencia { max-width: 380px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .apresentacao-texto > a, .botao, #servicos article { transition: none; }
}
