footer {
  background-color: var(--primary-black);
  color: var(--primary-white);
  position: relative;
}

form {
    font-family: "Gotham";
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-white);
    border-radius: 0;
    padding: 10px;
    color: var(--primary-white);
    margin-bottom: 15px;
    font-size: 1.2rem;
    box-sizing: border-box;
    font-family: "Gotham";
    min-height: 56px;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
  }

  textarea {
    min-height: 9rem;
  }

  .contatos {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    max-width: 80%;
  }

  button.icon-btn-right {
    width: 11rem;
  }

  /* --- SOCIAL ICONS -----*/

  .social-icons {
    margin-top: 3rem;
    display: flex;
    gap: 10px;
    cursor: pointer;
  }
  
  .social-icons .icon {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    font-size: 18px;
    transition: color 0.3s ease;
  }

    .fab.fa-whatsapp {
    font-size: 18px;
        width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    margin-top: -8px;
    float: right;
    border-radius: 30px;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
  }

  a.icon {
    width: max-content;
}
  
  .social-icons .icon::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-white);
    transition: top 0.3s ease;
    z-index: 0;
  }
  
  .social-icons .icon i {
    z-index: 1;
    transition: color 0.3s ease;
  }
  
  .social-icons .icon:hover::before {
    top: 0;
  }
  
  .social-icons .icon:hover i {
    color: var(--primary-yellow);
  }

  .footer-bottom, .legal {
    padding: 4rem 0 0 0;
    display: flex;
    justify-content: space-between;
  }

  .legal {
    padding: 0;
  }

  @media (max-width:1024px) {
    button.icon-btn-right {
      width: 100%;
    }
    .legal {
      flex-direction: column;
      gap: 2rem;
      align-items: center;
      padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
}
  }

/* ----- HAMBURGER MENU ------*/

.hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

.hamburger span {
  display: block;
  height: 4px;
  background: var(--primary-white);
  transition: all 0.3s ease;
}

.hamburger.active {
  z-index: 9999999;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -8px);
}

@media (min-width:1024px) {
  div#mobileMenu, .hamburger span {
    display: none;
}
}

@media (max-width: 1024px) {
  #mainNav ul {
    display: none;
  }

  .hamburger {
    display: flex;
    font-size: 2rem;
    cursor: pointer;
    position: fixed;
    right: 1.6rem;
    top: 1.6rem;
    z-index: 999999989;
    color: var(--primary-white);
  }

  .mobile-menu {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu.hidden {
    display: none;
  }

  .mobile-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: var(--primary-black);
    color: var(--primary-white);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-main {
    transform: translateX(0%);
  }

  .mobile-main.slide-out {
    transform: translateX(-100%);
  }

  .mobile-sub {
    transform: translateX(100%);
  }

  .mobile-sub.active {
    transform: translateX(0%);
    background-color: var(--primary-yellow);
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    margin: 1.2rem 0;
    text-transform: uppercase;
  }

  .mobile-menu a,
  .mobile-menu .nav-link,
  .mobile-menu .back-button {
    font-size: 1rem;
    text-decoration: none;
    color: var(--primary-white);
    cursor: pointer;
  }

  .back-button {
    font-weight: bold;
    margin-bottom: 3rem;
    display: inline-block;
  }

  #closeSubMenu {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}