@import url("https://fonts.googleapis.com/css?family=Montserrat:400,800,900|Roboto:400,700&display=swap");

/* RESET AND INITIAL CONFIGURATION */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
  font-size: 1.6rem;
  overflow-x: hidden;
  width: 100%;
}

/************* Cabeçalho (top-bar) *************/
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px; /* Espaço reduzido */
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: 45px; /* Altura mínima compactada */
}

.top-bar .logo {
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza horizontalmente */
}

.top-bar .logo img {
  max-width: 20px; /* Reduzindo o tamanho da logo */
  height: auto;
}

.top-bar .logo h2 {
  font-size: 1.2rem; /* Texto menor */
  color: #333;
  margin-left: 5px;
}

.top-bar .contact-info {
  display: flex;
  flex-wrap: wrap; /* Quebra para telas menores */
  align-items: center;
  justify-content: center; /* Centraliza todo o conteúdo */
  gap: 10px; /* Espaçamento entre os itens */
}

.top-bar .contact-info .contact-phone,
.top-bar .contact-info .contact-time {
  display: flex;
  align-items: center;
  font-size: 1rem; /* Texto reduzido */
  color: #333;
}

.top-bar .contact-info i {
  margin-right: 5px; /* Espaço entre ícone e texto */
  font-size: 1.2rem;
}

.top-bar .contact-info span {
  font-size: 1rem;
  font-weight: 600; /* Destaque nos textos */
}

/* Responsividade */
@media screen and (max-width: 540px) {
  .top-bar {
    flex-direction: column;
    align-items: center; /* Centraliza tudo no mobile */
    height: auto;
    padding: 5px;
  }

  .top-bar .logo img {
    max-width: 30px; /* Tamanho fixo menor */
  }

  .top-bar .logo h2 {
    font-size: 1rem;
    margin-left: 3px;
  }

  .top-bar .contact-info {
    flex-direction: column; /* Horário e telefone um abaixo do outro */
    align-items: center;
    gap: 5px;
  }

  .top-bar .contact-info .contact-phone,
  .top-bar .contact-info .contact-time {
    font-size: 0.9rem; /* Texto menor no mobile */
  }
}



/************* Navbar *************/
nav {
  display: none; /* Oculta a navbar */
}


/************* HERO *************/
.hero-content {
  width: 100%;
  align-items: center;
}

.hero-title {
  font-size: 4.8rem;
  text-align: center;
  padding: 0 1rem;
}

.price-value {
  font-size: 4.8rem;
}

/************ features and services ************/
.features-item,
.services-item {
  font-size: 1.6rem;
}

.features-item i,
.services-item i {
  font-size: 5rem;
}

/************* TESTIMONIALS *************/

/******************************************* localization *******************************************/
.localization {
  flex-direction: column;
  height: 100%;
  padding: 4rem 1rem;
}

.localization-map {
  width: 100%;
  height: 30rem;
  margin: 2rem 0;
  order: 2;
}

.localization-info {
  width: 100%;
  flex-direction: column;
  align-items: center;
  order: 1;
}

.localization-info .localization-title {
  font-size: 3rem;
  text-align: center;
}

.localization-info .localization-item {
  width: 100%;
  text-align: center;
}

/************* Under 540px *************/
@media screen and (max-width: 540px) {

  body {
    overflow-x: hidden;
    width: 100%;
  }

  /************* utility *************/
  .heading-secondary {
    font-size: 2.4rem;
  }

  .heading-primary {
    font-size: 3rem;
  }

  /************* topbar *************/
  .top-bar .logo img {
    display: block; /* Garantir que a logo apareça na versão mobile */
    max-width: 100%; /* A logo não ultrapassa a tela */
  }

  .top-bar .logo h2 {
    font-size: 3rem;
  }

  .top-bar .contact-phone i {
    font-size: 1.8rem; /* Reduzir tamanho do ícone */
  }

  .top-bar .contact-phone span {
    font-size: 1.4rem; /* Reduzir tamanho do texto */
  }

  /************* HERO *************/
  .hero-title {
    font-size: 3.5rem;
  }

  .price-value {
    font-size: 4rem;
  }

  /************* features and services *************/
  .services,
  .features {
    flex-shrink: 2;
    height: 100%;
  }
  .services-box,
  .features-box {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .services-item,
  .features-item {
    margin: 1rem 0;
  }

}
