/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #f5f7fa;
  color: #1f2937;
  line-height: 1.6;
  flex: 1;
}

main {
  flex: 1;
  padding: 20px;
  padding-top: 180px;   /* altura aproximada do header fixo */
  padding-bottom: 70px; /* altura aproximada do footer fixo */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CABEÇALHO ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a2940;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  flex-wrap: wrap;
  border-bottom: 3px solid #d4af37;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

header .logo h1 {
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #f8f9fa;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

nav a:hover {
  color: #d4af37;
}

nav a.ativo {
  color: #d4af37;
  font-weight: 600;
}

nav a.ativo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d4af37;
}

/* ===== HERO / HOME ===== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0a2940 65%, #f5f7fa 35%);
  color: #fff;
  width: 100%;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #f8f9fa;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.hero-image img {
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #25D366;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5e/WhatsApp_icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

.whatsapp-btn.show {
  opacity: 1;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===== CONTEÚDO DAS PÁGINAS ===== */
.conteudo, .contato {
  padding: 60px 80px;
  background-color: #fff;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.conteudo h2, .contato h3 {
  color: #0a2940;
  margin-bottom: 20px;
  border-left: 4px solid #d4af37;
  padding-left: 10px;
}

.conteudo p {
  margin-bottom: 18px;
  color: #333;
}

.conteudo ul {
  list-style: none;
  padding-left: 0;
}

.conteudo ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #222;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  transition: 0.2s;
}

form input:focus,
form textarea:focus {
  border-color: #0a2940;
  outline: none;
}

form button {
  background-color: #0a2940;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #d4af37;
  color: #0a2940;
}

#msgRetorno {
  margin-top: 15px;
  font-weight: 500;
}

/* ===== RODAPÉ FIXO ===== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0a2940;
  color: #fff;
  border-top: 3px solid #d4af37;
  font-size: 0.85rem;
  padding: 8px 20px;
  box-sizing: border-box;
  z-index: 1000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-info {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-info span {
  white-space: nowrap;
}

.footer-icons img {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-icons img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

footer a:hover {
  color: #d4af37;
}

footer p {
  margin-top: 6px;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ===== AJUSTES EXCLUSIVOS PARA MOBILE ===== */
@media (max-width: 768px) {

  /* HEADER E MENU */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0a2940;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 300px;
    padding: 15px 0;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* MAIN AJUSTADO */
  main {
    padding-top: 160px !important;
    padding-bottom: 160px !important; /* mais espaço pro footer */
  }

  /* FOOTER AJUSTADO */
  footer {
    position: relative;
    padding: 25px 10px 30px;
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    gap: 6px;
  }

  .footer-info {
    flex-direction: column;
    gap: 4px;
  }

  .footer-icons img {
    width: 22px;
    height: 22px;
  }

  /* BOTÃO WHATSAPP */
  .whatsapp-btn {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 15px;
  }

  /* HERO AJUSTADO */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 25px;
    background: #0a2940;
    color: #f8f9fa;
  }

  .hero-text {
    max-width: 100%;
    color: #f8f9fa;
    padding: 0 10px;
  }

  .hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #d4af37;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #f8f9fa;
  }

  .hero-image img {
    margin-top: 25px;
    max-width: 80%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }
}
