:root {
  --azul-escuro: #004aad;
  --azul-claro: #dbe9ff;
  --texto: #1d2630;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* CORPO */
body {
  font-family: 'Segoe UI', sans-serif;
  background: url('https://www.transparenttextures.com/patterns/concrete-wall.png') repeat var(--azul-claro);
  color: var(--texto);
  text-align: center;
  opacity: 0;
  animation: fadeInBody 1s ease forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

/* TOPO */
.topo {
  background: var(--azul-escuro);
  color: white;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.logo {
  width: 80px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.titulo h1 {
  font-size: 1.6em;
  margin: 5px 0;
}
.menu-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border: 2px solid #fff;
  background: transparent;
  color: white;
  border-radius: 12px;
  cursor: pointer;
}
nav {
  display: none;
  flex-direction: column;
  margin-top: 10px;
}
nav.open { display: flex; }
nav a {
  color: white;
  text-decoration: none;
  margin: 5px 0;
  font-weight: bold;
}

/* SEÇÕES */
.secao {
  padding: 40px 15px;
}
h2 {
  color: var(--azul-escuro);
  margin-bottom: 15px;
  font-size: 1.4em;
}
p {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* MISSÃO, VISÃO, VALORES */
.mvv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.card {
  background: white;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.card i {
  font-size: 28px;
  color: var(--azul-escuro);
  margin-bottom: 8px;
}
.card h3 {
  color: var(--azul-escuro);
  margin-bottom: 8px;
}

/* GRID DE SERVIÇOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.btn-servico {
  display: inline-block;
  margin-top: 10px;
  background: var(--azul-escuro);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-servico:hover {
  background: #003580;
}

/* MENU LATERAL */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  padding: 20px;
  overflow-y: auto;
  transition: left 0.4s ease;
  z-index: 200;
}
.sidebar.show { left: 0; }
.sidebar h3 {
  color: var(--azul-escuro);
  margin-top: 15px;
}
.sidebar ul {
  list-style: none;
  text-align: left;
  margin-bottom: 10px;
}
.sidebar li {
  font-size: 14px;
  margin-bottom: 6px;
}
.sidebar blockquote {
  font-style: italic;
  font-size: 13px;
  background: #f2f6ff;
  border-left: 3px solid var(--azul-escuro);
  padding: 6px 10px;
  margin-bottom: 10px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--azul-escuro);
  cursor: pointer;
  float: right;
}
.sidebar-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--azul-escuro);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  z-index: 250;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
}
.sidebar-btn:hover { transform: scale(1.1); }

/* RODAPÉ */
footer {
  background: var(--azul-escuro);
  color: white;
  padding: 15px;
  font-size: 0.9em;
  margin-top: 30px;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 99999;
  animation: floatIn 0.6s ease forwards, whatsappBalanço 3s ease-in-out infinite;
}

/* EFEITO DE ENTRADA */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(50px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* EFEITO DE BALANÇO SUAVE */
@keyframes whatsappBalanço {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* HOVER */
.whatsapp:hover {
  transform: scale(1.1);
}

/* RESPONSIVO */
@media (max-width: 480px) {
  .whatsapp {
    width: 55px;
    height: 55px;
    bottom: 18px;
    right: 15px;
  }
}

@media (min-width: 768px) {
  nav {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
  }
  .menu-btn { display: none; }
  .topo {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 50px;
  }
  .titulo h1 { font-size: 2em; }
}