* {
  margin: 0 0;
  padding: 0 0;
  box-sizing: border-box;
}

/*Ínicio da página*/

/*Ínicio da Navbar*/

body {
  font-family: "Poppins", sans-serif;
}

/* Navbar */
.navbar {
  background-color: white;
  padding: 10px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.logo {
  height: 90px;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #002855;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #002855;
}

.nav-links a.active {
  color: #002855;
  font-weight: bold;
}

.dropdown {
  position: relative;
}

.dropdown > a > i {
  margin-left: 6px;
  font-size: 0.75rem;
  vertical-align: middle;
  color: #002855;
}

.dropdown-content a i {
  margin-right: 8px;
  color: #002855;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  min-width: 220px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 10px 0;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  color: #000000;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #002855;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ícone da setinha */
.dropdown i {
  margin-left: 6px;
  font-size: 12px;
  color: #002855;
}

/* Espaçamento das setas nos dropdowns */
.dropdown-content a i {
  margin-right: 8px;
  color: #002855;
}

/* Setinha ao lado de "Serviços" mais próxima */
.dropdown > a > i {
  margin-left: 6px;
  font-size: 0.75rem;
  vertical-align: middle;
}

.cta-button {
  background-color: #002855;
  color: white;
  border: 2px solid #002855;
  padding: 10px 18px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.cta-button:hover {
  background-color: #000000;
  color: white;
  border-color: #000000;
}

/* Fim da Navbar */
.header {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #002855;
  color: #f8f9fa;
  text-align: center;
  font-size: 25px;
  padding: 150px 20px;
  margin-left: auto;
  margin-right: auto;
}

#img {
  width: 280px;
  padding: auto;
  margin: auto;
}

/*Palavra "contato" antes do título do formulário*/

.azul {
  color: #002855;
  margin-bottom: 20px;
  text-align: center;
}

/* Formulário de contato */

.principais {
  font-size: 45px;
  padding-bottom: 20px;
  text-align: center;
  color: #000000;
}

#formulario {
  margin: 100px;
  text-align: center;
}

.fileira {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fileira input {
  flex: 1;
  min-width: 200px;
}

form {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 15px;
}

input,
select,
textarea {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

textarea {
  resize: vertical;
  height: 100px;
}

.caixadetextoebotão {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

button {
  padding: 15px 30px;
  background-color: #002855;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 4px;
  font-size: 16px;
}

button:hover {
  background-color: #000000;
  color: white;
}

/* Informações da Mauá Jr. */

.infocontato {
  padding-top: 20px;
  text-align: center;
}

#caixainfocontato {
  margin-bottom: 50px;
}

.caixadetalhes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.caixadetalhes div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.caixadetalhes svg {
  width: 28px;
  height: 28px;
  fill: #002855;
}

/*Footer*/

.footer {
  background: linear-gradient(to top, #002855, #001a3a);
  color: white;
  font-family: "Poppins", sans-serif;
  padding: 40px 20px 20px 20px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 220px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 16px;
}

.footer-description {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #e0e0e0;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  border-left: 2px solid white;
  padding-left: 8px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-column ul li a i {
  margin-right: 7px;
  color: white;
  font-size: 10px;
  transition: transform 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-column ul li a:hover i {
  transform: translateX(3px);
}

.contact-info li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 16px;
}

.social-icons a:hover {
  background: #000000;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #d0d0d0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVIDADE PARA TABLETS (≤ 992px)
   ========================================= */
@media (max-width: 992px) {
  /* Formulário centralizado e ajustado */
  #formulario {
    margin: 60px 40px;
  }

  .principais {
    font-size: 32px;
  }

  .fileira {
    flex-direction: column;
    gap: 15px;
  }

  .fileira input {
    min-width: 100%;
  }

  /* Footer segue padrão */
  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 777px) {
  /* Navbar */
  .hamburger {
    display: block;
    margin-left: 0;
  }

  /* Esconde os links e o botão inicialmente */
  .navbar-container .nav-links,
  .navbar-container .cta-button {
    display: none;
  }

  .navbar-container.active .nav-links,
  .navbar-container.active .cta-button {
    display: flex;
  }

  /* Ajuste do container para quebrar linha e permitir empilhamento */
  .navbar-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
  }

  /* Links em coluna ocupando toda a largura */
  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 12px;
    padding-top: 15px;
    margin-top: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
    display: block;
  }

  /* Dropdown no Mobile: Ajuste para mostrar conteúdo ao clicar */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    min-width: 220px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 10px 0;
  }

  .dropdown-content li {
    list-style: none;
  }

  .dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-family: "Poppins", sans-serif;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #002855;
  }

  .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown:not(.active):hover .dropdown-content {
    display: none;
  }

  .dropdown > a > i {
    margin-left: 6px;
    font-size: 0.75rem;
    vertical-align: middle;
    color: #002855;
  }

  .dropdown-content a i {
    margin-right: 8px;
    color: #002855;
  }

  /* Botão CTA do menu */
  .navbar-container .cta-button {
    width: 90%;
    justify-content: center;
    text-align: center;
    margin: 10px auto;
  }

  .header {
    padding: 100px 20px;
    font-size: 20px;
  }

  #formulario {
    margin: 40px 20px;
  }

  .principais {
    font-size: 26px;
  }

  textarea {
    height: 140px;
  }

  button {
    width: 100%;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-column {
    min-width: 100%;
  }

  .footer-column h4 {
    border-left: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 0;
    padding-bottom: 8px;
    display: inline-block;
    margin-bottom: 15px;
  }

  .footer-column ul li a {
    justify-content: center;
  }

  .contact-info li {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 5px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}

/* =========================================
   EXTRA — TELAS MUITO PEQUENAS (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
  .principais {
    font-size: 22px;
  }

  input,
  select,
  textarea {
    font-size: 14px;
  }

  button {
    font-size: 14px;
  }

  .logo {
    height: 70px;
  }

  .footer {
    padding: 30px 15px 15px 15px;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-description {
    font-size: 13px;
  }

  .whatsapp-button {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}