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

body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 68, 102, 0.9);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

header img { height: 80px; }

.slogan {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  max-width: 200px;
  line-height: 1.4;
}

nav ul { list-style: none; display: flex; }
nav ul li { margin: 0 15px; position: relative; }
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px;
}
nav ul li.active a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffcc00;
}

/* Carrossel */
.carousel {
  position: relative;
  overflow: hidden;
  height: 60vh;
  margin-top: 100px;
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.carousel img.active { display: block; }
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}
.dots span {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
}
.dots span.active { opacity: 1; background: #ffcc00; }

/* Logo destaque */
.logo-destaque {
  display: flex;
  justify-content: center;
  padding: 50px 20px 20px;
  background: #f4f4f4;
}
.logo-destaque img {
  max-width: 768px;
  width: 100%;
  height: auto;
}

/* Seções */
section { padding: 60px 20px; max-width: 960px; margin: auto; }
section:nth-child(even) { background: #f4f4f4; }
section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #004466;
  font-size: 1.8em;
}

/* Sobre */
.mensagem-chave {
  font-size: 1.2em;
  font-weight: bold;
  color: #004466;
  text-align: center;
  margin-bottom: 20px;
}

/* Serviços */
.servico {
  margin-bottom: 25px;
  padding: 20px;
  background: #fff;
  border-left: 4px solid #ffcc00;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.servico h3 { color: #004466; margin-bottom: 8px; }
.servico-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.servico-imgs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}
.servico-imgs img:hover {
  transform: scale(1.03);
}

/* Valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.valor {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.valor h3 { color: #004466; margin-bottom: 10px; }

/* Contato */
.contato-info {
  background: #e8f0f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 2;
}
.contato-info a { color: #004466; }

/* Formulário */
form { max-width: 600px; margin: auto; display: flex; flex-direction: column; }
form input, form textarea {
  margin: 10px 0;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button {
  padding: 12px;
  background: #004466;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
form button:hover { background: #003355; }

/* QR Codes */
.qrcodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.qrcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qrcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.qrcard img {
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
}
.qrcard-label {
  font-weight: 700;
  color: #004466;
  font-size: 1em;
}
.qrcard-info {
  font-size: 0.85em;
  color: #555;
  margin-top: 4px;
  text-align: center;
  word-break: break-all;
}
#qrcodes {
  scroll-margin-top: 100px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.modal.active {
  display: flex;
}
.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Rodapé */
footer {
  background: #004466;
  color: #fff;
  text-align: center;
  padding: 25px;
  line-height: 1.8;
}
footer p:first-child { font-style: italic; color: #fff; }
footer a { color: #fff; }

/* Botão Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsividade */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }
  .logo-group { flex: 1; }
  .slogan { display: none; }
  .hamburger {
    display: flex;
    order: 3;
  }
  nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  nav.active {
    max-height: 400px;
  }
  nav ul {
    flex-direction: column;
    background: rgba(0, 68, 102, 0.95);
    padding: 10px 0;
  }
  nav ul li {
    margin: 10px 20px;
  }
  .carousel { margin-top: 90px; }
}
