:root {
  --azul: #0b3d91;
  --azul-escuro: #072a66;
  --verde: #1fa35c;
  --texto: #1d2433;
  --cinza: #5b6475;
  --fundo: #ffffff;
  --fundo-alt: #f3f6fb;
  --borda: #dde3ee;
  --raio: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
}

a { color: var(--azul); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--borda);
  backdrop-filter: blur(6px);
}
.topo .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 1.2rem; color: var(--azul); text-decoration: none; }
.logo-svg { display: block; height: 44px; width: auto; }
.logo span { color: var(--verde); }
.menu { display: flex; gap: 20px; list-style: none; margin-left: auto; }
.menu a { text-decoration: none; color: var(--texto); font-weight: 500; }
.menu a:hover { color: var(--azul); }

/* Seletor de idioma */
.lang { display: flex; flex: none; border: 1.5px solid var(--borda); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--cinza); padding: 7px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--azul); color: #fff; }

/* Botões */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--verde); color: #fff; }
.btn-primario:hover { background: #188a4d; }
.btn-secundario { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: #fff; padding: 40px 0 88px; text-align: center;
}
.hero-logo { display: block; width: 100%; max-width: 560px; height: auto; margin: 24px auto 28px; }
a.selo { color: #fff; text-decoration: none; }
a.selo:hover { background: rgba(255,255,255,.22); }
.hero .selo {
  display: inline-block; background: rgba(255,255,255,.12); padding: 6px 14px;
  border-radius: 999px; font-size: .9rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 32px; opacity: .92; }
.hero .acoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Seções */
section { padding: 80px 0; }
.alt { background: var(--fundo-alt); }
.titulo { text-align: center; margin-bottom: 48px; }
.titulo h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 10px; }
.titulo p { color: var(--cinza); max-width: 620px; margin: 0 auto; }

.grade { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 28px; box-shadow: 0 2px 8px rgba(16,24,40,.04);
}
.card .icone { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--cinza); }

/* Passos */
.passos { counter-reset: passo; }
.passos .card { position: relative; padding-top: 44px; }
.passos .card::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; top: -18px; left: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Sobre */
.sobre { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.sobre h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
.sobre p { color: var(--cinza); margin-bottom: 12px; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.numeros .card { text-align: center; }
.numeros strong { display: block; font-size: 2rem; color: var(--azul); }

/* Portfólio */
.portfolio a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.portfolio a.card:hover { border-color: var(--azul); transform: translateY(-3px); }
.portfolio .ver { display: inline-block; margin-top: 12px; color: var(--azul); font-weight: 700; }

/* CTA */
.cta { background: var(--azul); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; }

/* Rodapé */
.rodape { background: #0d1424; color: #aab3c5; padding: 32px 0; font-size: .9rem; text-align: center; }
.rodape a { color: #fff; }

/* Botão flutuante WhatsApp */
.whats {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* 404 */
.erro { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.erro h1 { font-size: 5rem; color: var(--azul); }
.erro p { color: var(--cinza); margin: 8px 0 24px; }

@media (max-width: 760px) {
  .menu { display: none; }
  .sobre { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 24px 0 64px; }
}

/* Brilho no ".dev" ao passar o mouse no logo */
svg:hover .dev-label {
  filter: drop-shadow(0 0 6px rgba(25, 184, 107, 0.6));
  transition: filter 0.3s ease;
}
