@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  box-sizing: border-box;
  outline: 0;
}

body {
  font-family: "Inter", sans-serif;
  width: 100%;
  height: 100vh;
  margin-left: -0.1%;
  margin-top: 0;
  position: relative;
  background-color: var(--primary-cinza);
}

button {
  cursor: pointer;
  font-family: "inter", sans-serif;
}

svg {
  width: 100%;
}

img {
  width: 100%;
}

.container .dono-propietario {
  border-radius: 50%;
  width: 200px;
  margin-left: 12em;
}

a {
  cursor: pointer;
  text-decoration: none;
}

strong {
  color: var(--primary-marfim);
  font-weight: bolder;
}

/* == Header do site == */
header {
  width: 100%;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

i {
  color: var(--secundary-branco);
}

.header-icons {
  display: flex;
  font-size: 25px;
  gap: 24px;
  margin-left: 3%;
}

.header-icons a:hover i {
  color: var(--secundary-verde);
  animation: translateY 0.8s infinite alternate;
}

@keyframes translateY {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-6px) scale(1.1);
  }
}

.header-button {
  border: 1.5px solid var(--primary-vinho);
  padding: 8px 14px;
  border-radius: 4px;
  width: 100px;
  background-color: transparent;
  color: var(--secundary-branco);
  margin-left: -10%;
  transition: background-color 0.8s;
}

.header-button:hover {
  border: 1px solid var(--secundary-branco);
  background-color: var(--secundary-vermelho-escuro);
}

.header-icons i {
  font-size: 35px;
}

.header-logo {
  display: flex;
  align-items: center;
  margin-top: 10px;
  justify-content: center;
  width: 250px;
}

/* == Layout do site == */
.container {
  max-width: 1440px;
  margin: 0px auto;
  padding: 0 8px;
}

/* == BG Home == imagem de fundo */
.bg-home {
  position: relative;
}

.bg-home::before {
  content: "";
  display: block;
  position: absolute;
  background-image: linear-gradient(rgba(37, 220, 100, 0.2), #262e80),
    url("../assets/manutencao-fundo-tecnica.webp");
  margin-left: 0;
  margin-top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0;
  opacity: 0.8;
}

/* == Hero ==*/
.hero {
  color: var(--primary-marfim);
  min-height: 80vh;
  margin-top: 60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;

  h1 {
    text-align: center;
    color: var(--primary-marfim);
    line-height: 120%;
    max-width: 643px;
    font-size: 30px;
  }

  p {
    text-align: center;
    margin: 12px 0;
    max-width: 543px;
    color: var(--primary-marfim);
    line-height: 125%;
  }

  a {
    font-size: 18px;
  }
}

/* == Botão Whatzapp fixo == */
.button-contact {
  display: flex;
  padding: 11px 35px;
  color: var(--primary-preto);
  background-color: rgb(89, 245, 122);
  border: 0;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  width: 228px;
  height: 45px;
  margin: 14px 0;
}

.flex-itens img {
  width: 50px;
  height: 50px;
  margin: -13px -40px;
}

span {
  display: block;
  font-size: 16px;
  margin-left: 12px;
  width: 200px;
  height: 30px;
}

.button-contact:hover {
  animation: scaleButton 0.8s alternate infinite;
}

@keyframes scaleButton {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

/* == About == */
.about {
  background-color: var(--primary-vinho);
  color: var(--primary-marfim);
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -8px;
  padding: 40px 10px 55px 14px;

  img {
    max-width: 370px;
    margin-left: 5px;
  }
}

.about-content div {
  flex: 1;
}

.about-description {
  h2 {
    font-size: 38px;
    margin-bottom: 24px;
  }

  p {
    width: 90%;
    height: 100%;
    margin-top: 14px;
    margin-left: -0.5em;
    line-height: 140%;
    text-indent: 40px;
    letter-spacing: 0.01em;
    text-align: justify;
  }
}

/* == Serviços == */
.services  {
  background-color: var(--primary-marfim);
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;

  h2 {
    margin-top: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
  }
}

.services-content, .mapa {
  h2 {
    text-transform: uppercase;
    text-align: center;
    font-size: 35px;
    margin-bottom: 14px;
  }
}

.services-content p {
  line-height: 150%;
  margin-bottom: 14px;
  text-align: center;
  max-width: 780px;
}

.mapa {
  h2{
    color: #ffffff;
    font-size: 30px;
    margin-top: 10px;
    padding: 20px 14px;
  }
}

.gate-motors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0 44px 34px 44px;
}

.motor-accessories {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-marfim);
  border-radius: 8px;
  box-shadow: 8px -1px 17px -4px rgba(0, 0, 0, 0.45);

  overflow: hidden;

  img {
    width: 100%;
    max-width: 554px;
    transition: transform 1s;
  }
}

.motor-accessories img:hover {
  transform: scale(1.2);
  z-index: 1;
}

.manutençao-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background-color: var(--primary-marfim);
  z-index: 99;
}

.manutençao-info button {
  color: var(--primary-marfim);
  background-color: var(--primary-vinho);
  padding: 4px 8px;
  border-radius: 4px;
  border: 0;
  cursor: default;
}

/* == Mapa== */

.mapa iframe {
  width: 100%;
  height: 250px;
  box-shadow: 0 0 3px #999;
}


/* == Footer == */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 0;
  gap: 38px;
  color: var(--primary-marfim);
}

.footer-icons {
  display: flex;
  gap: 26px;
  color: var(--primary-marfim);
}

.footer img {
  margin-top: -75px;
  width: 300px;
}

.footer p {
  margin-top: -85px;
  color: #ffffff;
}

/* == Icon  Botão Whatzapp flutuante == */
.icon {
  position: fixed;
  bottom: 35px;
  right: 15px;
  font-size: 35px;
  background-color: #01e675;
  color: #fff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  z-index: 100;
  box-shadow: 1px 1px 1px #c0bdbd;
}

.fa-whatsapp{
  cursor: pointer;
  font-size: 30px;
  position: fixed;
  margin-left: -25%;
  margin-top: -15px;
  z-index: 100;
  float: left;
  
}

footer {
  a {
    .tooltip-text {
    visibility: hidden;
    }
  }

  .icon:hover {
    .tooltip-text {
    visibility: visible;
    opacity: 1;
    }
  }

  .tooltip-text {
    position: absolute;
    width: 150px;
    height: 45px;
    font-size: 15px;
    background-color: var(--primary-marfim);
    color: #000;
    margin-left: -165px;
    padding: 6px;
    border-radius: 8px;
    text-align: center;
    margin-top: -60px;
    opacity: 0;
    transition: opacity 0.6s;
  }

}

/* == MEDIAS QUERY == */

/* == Media query do header do site == */
@media screen and (max-width: 768px) {
  .header-content {
    align-items: center;
    width: 100%;
    flex-direction: column;
    justify-content: center;

    i {
      margin-top: 30px;
      font-size: 25px;
    }
  }

  .header-icons {
    margin-left: -60%;
  }

  .header-logo {
    display: flex;
    align-items: center;
    margin-top: -85px;
    margin-left: 18em;
  }

  .container .dono-propietario {
    margin-left: -1em;
  }

  .about-description {
    h2 {
      text-align: center;
      font-size: 28px;
      margin-top: 20px;
      margin-bottom: 24px;
    }

    p {
      width: 550px;
      height: 200px;
      margin-top: 14px;
      text-align: justify;
      letter-spacing: 0.01em;
      line-height: 150%;
    }
  }

  /* == Animação do botão fixo do whatzapp*/
  .button-contact {
    animation-name: scaleButton;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
  }

  @keyframes scaleButton {
    from {
      transform: translate3d(0, 0, 0);
      filter: brightness(100%);
    }
    to {
      transform: translate3d(0, -15px, 0);
      filter: brightness(130%);
    }
  }

  .header-button {
    display: none;
  }

  footer .fa-whatsapp{
    margin-top: -6px;
    margin-left: -12.5px;
  }

  /* == Media query do hero == */
  .hero {
    min-height: 60vh;

    h1 {
      font-size: 28px;
      padding: 0 14px;
      width: 90%;
    }

    p {
      font-size: 16px;
    }
  }

  /* == Media query do abount == */
  .about-content {
    flex-direction: column;
  }

  /* == Media query do gate-motors == */
  .gate-motors {
    flex-direction: column;
  }

  .gate-motors img {
    max-width: 740px;
  }

  .mapa {
    h2{
      font-size: 25px;
      margin-top: 10px;
      margin-left: 18%;
      padding: 20px 14px;
      width: 510px;
    }
  }

  /* == Mapa == */
  .mapa iframe {
    width: 100%;
    height: 300px;
    box-shadow: 0 0 3px #999;
  }

  .footer p {
    font-size: 19px;
    font-weight: 400;
    margin-top: -80px;
  }

  /* == Media query do botão do Whatzapp == */
  .icon {
    width: 45px;
    height: 45px;
    padding: 15px;
  }

  .fa-whatsapp{
    font-size: 30px;
    position: fixed;
    margin-left: 700px;
    margin-top: -267px;
    z-index: 100;
    
  }

 footer {
    i {
      margin-left: -8px;
      margin-top: -9px;
      float: left;
    }
  }
}

/* == Media query do hero == */
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }

  .header-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-left: 5em;
  }

  .hero p {
    font-size: 14px;
  }

  .about-description {
    p {
      width: 390px;
      height: 260px;
      margin-top: 14px;
      margin-left: 0.05em;
      line-height: 140%;
      letter-spacing: 0em;
    }
  }

  /* == Media query do botão do Whatzapp == */
  .icon {
    margin-top: 328px;
  }

  .footer p {
    font-size: 12px;
    font-weight: 400;
  }

  .mapa {
    h2{
      font-size: 15px;
      margin-top: 10px;
      padding: 20px 14px;
      width: 310px;
      margin-left: 15%;
    }
  }

  .mapa iframe {
    width: 100%;
    height: 250px;
    box-shadow: 0 0 3px #999;
  }
}

@media screen and (max-width: 425px) {
  .header-logo {
    width: 150px;
    display: flex;
    align-items: center;
    
    margin-top: -60px;
    margin-left: 9em;
  }

  .container .dono-propietario {
    margin-left: 0.05em;
  }

  /* == Animação do botão fixo do whatzapp*/
  .button-contact {
    animation-name: scaleButton;
    animation-duration: 0.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
  }

  @keyframes scaleButton {
    from {
      transform: translate3d(0, 0, 0);
      filter: brightness(100%);
    }
    to {
      transform: translate3d(0, -15px, 0);
      filter: brightness(130%);
    }
  }

  .footer-icons {
    margin-top: -20px;
  }

  .footer img {
    margin-top: -80px;
  }

  .footer p {
    font-size: 13px;
    font-weight: 400;
    margin-top: -80px;
  }
}

@media screen and (max-width: 375px) {
  .header-icons {
    display: flex;
    gap: 15px;
    margin-left: -58%;
  }

  .header-logo {
    font-size: 6px;
    margin-top: -58px;
    margin-left: 35em;
  }

  .icon {
    margin-top: -100px;
  }

  .about-description {
    p {
      width: 350px;
      height: 260px;
      margin-top: 11px;
      margin-left: 0.05em;
      line-height: 140%;
      letter-spacing: -0em;
    }
  }

  .services {
    padding: 5px ;
  } 

  .footer img {
    margin-top: -80px;
  }

  .footer p {
    font-size: 12px;
    font-weight: 400;
    margin-top: -60px;
  }
}

@media screen and (max-width: 320px) {
  header {
    width: 100%;
  }
  
  .icon {
    margin-top: 345px;
  }

  .header-logo {
    font-size: 6px;
    margin-top: -58px;
    margin-left: 28em;
  }

  .footer img {
    margin-top: -80px;
  }

  .footer p {
    font-size: 10px;
    font-weight: 600;
    margin-top: -60px;
  }

  .about-description {
    p {
      font-size: 12px;
      width: 290px;
      height: 260px;
      margin-top: 14px;
      margin-left: 0.05em;
      line-height: 140%;
      letter-spacing: 0em;
    }
  }
}
