/* ============================================================
   VNZ Climatização — style.css
   Paleta: azul #007bff | cinza #6c757d | claro #f0f4f8 | escuro #212529
   ============================================================ */

:root {
  --azul: #007bff;
  --cinza: #6c757d;
  --claro: #f0f4f8;
  --escuro: #212529;
  --branco: #ffffff;
  --fonte-titulo: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --fonte-texto: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fonte-texto);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--escuro);
  background-color: var(--claro);
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Âncoras não ficam escondidas sob o menu fixo */
section[id] { scroll-margin-top: 90px; }

/* ---------- Acessibilidade ---------- */
.pular-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--azul);
  color: var(--branco);
  padding: .5rem 1rem;
  z-index: 999;
}
.pular-conteudo:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background-color: var(--cinza);
  color: var(--claro);
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 0;
  padding: .75rem 2rem;
  cursor: pointer;
  transition: background-color .25s ease, transform .15s ease;
}
.btn:hover, .btn:focus { background-color: #5a6268; transform: translateY(-2px); }
.btn-block { display: block; width: 100%; }

/* ---------- Cabeçalho / Navegação ---------- */
/* Transparente sobre o hero; vira cinza sólido ao rolar além dele (classe .rolado via JS) */
.cabecalho {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.cabecalho.rolado {
  background-color: var(--cinza);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.cabecalho .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.logo { display: flex; align-items: center; }
.logo img { width: 170px; height: auto; }

.menu { display: flex; align-items: center; }
.menu ul { display: flex; list-style: none; gap: .25rem; }
.menu a {
  display: block;
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-decoration: none;
  padding: .5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, opacity .25s ease;
}
.menu a:hover, .menu a:focus { border-bottom-color: var(--claro); opacity: .9; }

.menu-botao {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.menu-botao span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--branco);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Herói ---------- */
/* Mesmo enquadramento do site original: foto como fundo fixo (parallax),
   ancorada no topo, com camada preta a 65% para leitura do título. */
.heroi {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('../img/hero-vrf.jpg');
  background-size: cover;
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.heroi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 1;
}
.heroi .container { position: relative; z-index: 2; text-align: center; padding: 4rem 1.25rem; }
.heroi h1 {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.3rem, 2.2vw, 1.875rem);
  font-weight: 600;
  color: var(--azul);
  white-space: nowrap;
  margin-bottom: .75rem;
}
@media (max-width: 900px) {
  .heroi h1 { white-space: normal; }
}
.heroi p {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--claro);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ---------- Seções ---------- */
.secao { padding: 4.5rem 0; }
.secao h2 {
  font-family: var(--fonte-titulo);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 1.5rem;
}
.secao-centro h2, .secao-centro > .container > p { text-align: center; }

/* ---------- Sobre ---------- */
.sobre p { max-width: 62rem; margin-bottom: 1.75rem; }

/* ---------- Diferenciais ---------- */
.diferenciais-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.diferencial { text-align: center; }
.diferencial svg { width: 52px; height: 52px; stroke: var(--azul); margin: 0 auto 1rem; }
.diferencial h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cinza);
  line-height: 1.3;
  margin-bottom: .75rem;
}

/* ---------- Cartões (Serviços e Clientes) ---------- */
.cartoes-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.cartao {
  background: var(--branco);
  border: 1px solid #b8d4f0;
  display: flex;
  flex-direction: column;
}
.cartao img { width: 100%; height: 250px; object-fit: cover; }
.cartao-corpo { padding: 1.5rem 1.25rem 2rem; text-align: center; }
.cartao h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cinza);
  line-height: 1.3;
  margin-bottom: .75rem;
}

/* ---------- Chamada (Orçamento) ---------- */
.chamada { background-color: var(--azul); text-align: center; }
.chamada h2 { color: var(--branco); }
.chamada p { color: var(--claro); font-size: 1.15rem; margin-bottom: 2rem; }

/* ---------- Contato ---------- */
.contato-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contato-info h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cinza);
  margin-top: 1.5rem;
  margin-bottom: .25rem;
}
.contato-info a { color: var(--azul); text-decoration: none; }
.contato-info a:hover { text-decoration: underline; }

.formulario h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 1.25rem;
}
.campo { margin-bottom: 1rem; }
.campo label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.campo input[type="text"],
.campo input[type="email"],
.campo textarea {
  width: 100%;
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  color: var(--escuro);
  background: var(--branco);
  border: 1px solid var(--escuro);
  border-radius: 0;
  padding: .9rem 1rem;
}
.campo input:focus, .campo textarea:focus {
  outline: 2px solid var(--azul);
  outline-offset: -1px;
}
.campo textarea { min-height: 150px; resize: vertical; }

.campo-lgpd {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.campo-lgpd input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--azul); }

/* Honeypot: invisível para humanos */
.campo-site { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-retorno { margin-top: 1rem; padding: .9rem 1rem; display: none; }
.form-retorno.ok { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-retorno.erro { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---------- Rodapé ---------- */
.rodape {
  background-color: var(--azul);
  color: var(--claro);
  padding: 4rem 0 2.5rem;
}
.rodape-grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.rodape h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--branco);
  margin-bottom: 1rem;
}
.rodape a { color: var(--claro); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape ul { list-style: none; }
.rodape li { margin-bottom: .35rem; }
.rodape-social a { display: inline-flex; align-items: center; gap: .5rem; }
.rodape-social svg { width: 22px; height: 22px; fill: var(--claro); }
.rodape-creditos {
  text-align: center;
  font-size: .85rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .diferenciais-grade, .cartoes-grade { grid-template-columns: repeat(2, 1fr); }
  .contato-grade { grid-template-columns: 1fr; gap: 2.5rem; }
  .rodape-grade { grid-template-columns: repeat(2, 1fr); }
  /* Parallax (background fixo) não funciona bem em celulares/iOS */
  .heroi { background-attachment: scroll; min-height: 360px; }
}

@media (max-width: 640px) {
  .menu-botao { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cinza);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  }
  .menu.aberto { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .menu a { padding: .8rem 1.5rem; border-bottom: 0; }
  .diferenciais-grade, .cartoes-grade, .rodape-grade { grid-template-columns: 1fr; }
  .secao { padding: 3rem 0; }
  .container { width: 90%; }
}
