/* VARIÁVEIS SALVAS PRA UTILIZAÇÃO */
:root {
  --cor-vermelho-principal: #ec3237;
  --branco: #ffffff;
  --preto: #000;
  --amarelo: #ffcc00;
  --azul-escuro: #2d4967;
  --azul-claro: #4292fe;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--branco);
  overflow-x: hidden;
  margin-top: 160px;
}

.header {
  background-color: var(--cor-vermelho-principal);
  padding: 16px 24px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: 120px;
}

.header-content {
  display: flex;

  align-items: center;
  justify-content: space-evenly;
}

.logo {
  width: 180px;
  max-width: 100%;
}

.header-buttons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  margin-right: 5rem;
  justify-content: center;
}
.box-insta {
  display: flex;
  flex-direction: column;
}
/* ANIMAÇÃO INSTAGRAM: chacoalhar */
@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  40% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.btn-insta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--branco);
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
}
.btn-insta-header img {
  width: 40px;
  animation: shake 1.2s infinite;
  animation-delay: 1s;
}
.box-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}
.box-whatsapp p {
  color: var(--branco);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}
/* ANIMAÇÃO WHATSAPP: pulsar */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.btn-zap-header {
  display: flex;
  animation: pulse 1.8s infinite;
  align-items: center;
  gap: 8px;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 30px;
  border-radius: 40px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.btn-zap-header img {
  width: 40px;
}

.header-funcionamento {
  width: 35vw;
}
.header-funcionamento p {
  color: var(--branco);
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
  margin-right: 3rem;
}
.header-funcionamento p span {
  color: var(--amarelo);
  font-weight: bold;
}
/* =================================== BANNER INICIAL DESKTOP ================================ */
.container_banner {
  
  
  width: 100vw;
  height: auto;
  background-image: url('./assets/banner_header_desktop.png');
  background-size: cover;
  background-repeat: no-repeat;
  aspect-ratio: 2048 / 732;
  
  background-position: center;
  position: relative;
}


.botoes_flutuantes {
  position: absolute;
  bottom: 6rem;
  right: 40px;
  display: flex;
  gap: 1rem;
  z-index: 10;
  
  
}
.btn-flutuante-instagram {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 16px;
}
.btn-flutuante-instagram img {
  width: 40px;
}
.btn-flutuante-whatsapp {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 16px;
}
.btn-flutuante-whatsapp:hover {
  cursor: grab;
  background-color: var(--cor-vermelho-principal);
  color: var(--branco);
}
.btn-flutuante-instagram:hover {
  cursor: grab;
  background-color: var(--cor-vermelho-principal);
  color: var(--branco);
}
.btn-flutuante-whatsapp img {
  width: 40px;
}

/* ! --------------------------- CONTAINER QUALIDADES E BOXES AZUIS ----------- */
.container_qualidades {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qualidade_horario {
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--azul-escuro);
  width: 0;
  padding-bottom: 2rem;
  color: var(--preto);
  font-size: 22px;
}
/* Quando entra na tela */
.qualidade_horario.ativo {
  animation: typing 3s steps(50, end) forwards, blink 0.7s step-end infinite;
}

/* Animações */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 70%;
  }
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--branco);
  }
}
.qualidades_boxes {
  display: flex;
  max-width: 100vw;
}
.qualidade_box {
  width: 20vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1rem;
}
.box_azul {
  background-color: var(--azul-escuro);
  padding: 2rem;
  border-radius: 24px;
}
.box_azul img {
  width: 120px;
}
.box_azul_text {
  font-size: 20px;
  font-weight: bold;
}

/* ! ====================== ANIMAÇÃO CARD AZUL  */

/* ANIMAÇÃO DE FLIP */
@keyframes flipIn {
  0% {
    transform: rotateY(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

.box_azul {
  opacity: 0;
  transform: rotateY(90deg);
  transition: transform 1.5s ease, opacity 0.6s ease;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* classe ativada via JavaScript quando entra na tela */
.box_azul.visible {
  animation: flipIn 1.3s forwards;
}

/* !========================================== CONTAINER PRODUTOS COM FOTOS DESCRITIVAS  */
.container_produtos_desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-top: 3rem;
  background-color: var(--cor-vermelho-principal);
}
.produtos_chamada {
  width: 60vw;
  text-transform: uppercase;
  padding: 3rem 0 1rem 0;
  text-align: center;
  font-size: 26px;
  color: var(--branco);
}
.produtos_chamada span {
  color: var(--amarelo);
}
.produtos_chamada_2 {
  color: var(--branco);
  font-size: 18px;
  width: 60vw;
  text-align: center;
  font-weight: normal;
  
}
.produtos_fotos_descritivas {
  display: flex;
  width: 100vw;
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
}
.fotos_descritivas_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  padding: 3rem 0;
  
}
.fotos_descritivas_box img{
  width: 20vw;
}
.foto_descritiva_txt {
  color: var(--amarelo);
  font-size: 20px;
  font-weight: bold;
}
.produtos_icones_descritivos {
  display: flex;
  width: 100vw;
  justify-content: center;
  column-gap: 2rem;
  padding: 3rem 0;
  background-color: var(--cor-vermelho-principal);
}
.icones_descritivos_box {
  display: flex;
  flex-direction: column;
  
  align-items: center;
  

}
.icones_descritivos_box img {
  width: 15vw;
}
.icone_descritivo_tittle {
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 1rem;
  color: var(--amarelo);
}
.icone_descritivo_txt {
  font-size: 18px;
  width: 20vw;
  padding-top: 1rem;
  color: var(--branco);
  text-align:center;
}

/* !!!! ==================================== CONTAINER INSTAGRAM COM FOTO DO CELULAR */


/* !!!!===================================  CONTAINER FOTOS FACHADA DA FARMÁCIA =========== */
.container_fachada {
  display: flex;
  flex-direction: column;
  width: 100vw;
  justify-content: center;
  align-items: center;
}
.fotos_farmacia {
  display: flex;
  column-gap: 3rem;
  margin-top: 2rem;
}
.fotos_farmacia img{
  width: 25vw;
}
.botoes_fachada {
  display: flex;
  width: 100vw;
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
  margin-top: 2rem;
}
.btn-fachada-instagram {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 16px;
  background: linear-gradient(to right, #ffffff 0%, #d9d9d9 100%);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
}
.btn-fachada-instagram img {
  width: 40px;
}
.btn-fachada-whatsapp {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 24px;
  background: linear-gradient(to right, #ffffff 0%, #d9d9d9 100%);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
}
.btn-fachada-whatsapp img {
  width: 40px;
}
.botao_avaliacao {
  margin-top: 3rem;
}

/* ! FOOTERRRRRRRRRRRRRRRRRRR */
.container_footer {
  
  margin-top: 4rem;
  padding: 5rem;
  background-color: var(--cor-vermelho-principal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.endereco_footer {
  font-size: 18px;
  color: var(--branco);
  padding-bottom: 2rem;
}
.logo_footer {
  margin-top: 2rem;
  width: 30vw;
}

/* ===========================  VERSÃO MOBILE =================================== */
@media (max-width: 767px) {
  .header {
  background-color: var(--cor-vermelho-principal);
  padding: 16px 24px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: 100px;
}
  .header-content {
    display: flex;
    
    align-items: center;
  }

  .logo {
    width: 80px;
  }

  .header-buttons {
    flex-direction: column;
    align-items: center;
    margin: 0;
    gap: 12px;
  }

  .box-whatsapp p {
    display: none;
  }

  .btn-zap-header {
    display: flex;
    flex-direction: row;
    font-size: 10px;
    width: max-content;
    padding: 0.5rem 0.5rem;
    background-color: var(--branco);
    color: var(--cor-vermelho-principal);
    border-radius: 16px;
    align-items: center;
    justify-content: center;

    animation: none; /* remove a animação no mobile */
  }

  .btn-zap-header img {
    width: 20px;
    animation: none; /* remove a animação no mobile */
  }

  .btn-insta-header {
    display: flex;
    flex-direction: row;
    width: max-content;
    padding: 0.5rem 0.5rem;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background-color: var(--branco);
    color: var(--cor-vermelho-principal);
    border-radius: 16px;
  }

  .btn-insta-header img {
    width: 20px;
    animation: none; /* remove a animação no mobile */
  }

  .header-funcionamento {
    width: 50%;
    
  }

  .header-funcionamento p {
    font-size: 8px;
    text-align: center;
    padding-right: 1rem;
  }

  .header-funcionamento p span {
    color: var(--amarelo);
  }

  /* ======================== CONTAINER HEADER MOBILE ================================= */
  .container_banner {
    background-image: url('./assets/banner_header_mobile.png');
    aspect-ratio: 768 / 851;
  }
  .botoes_flutuantes {
    display: none;
    
  }
  .btn-flutuante-instagram {
    font-size: 12px;
  }
  .btn-flutuante-instagram img {
    width: 30px;
  }
  .btn-flutuante-whatsapp {
    font-size: 12px;
  }
  .btn-flutuante-whatsapp img {
    width: 30px;
  }
  /* !!!! ============================= CONTAINER QUALIDADES AZUIS ============================= */
  .container_qualidades {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  }
  .qualidade_horario {
    animation: none !important;
    white-space: normal;
    width: 90vw;
    border-right: none;
    text-align: center;
    font-size: 18px;
  }
  .qualidades_boxes {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .qualidade_box {
    width: 45vw; /* 2 por linha com espaçamento */
  }

  .box_azul {
    opacity: 1 !important;
    transform: rotateY(0deg) !important;
    animation: none !important;
  }
  .box_azul_text {
    font-size: 18px;
  }
  /* !!================================== CONTAINER APENAS COM FOTOS  E  DESCRIÇÃO */
  /* !==========================================  */
.container_produtos_desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-top: 3rem;
  background-color: var(--cor-vermelho-principal);
}
.produtos_chamada {
  width: 80vw;
  text-transform: uppercase;
  padding: 3rem 0 2rem 0;
  text-align: center;
  font-size: 22px;
  color: var(--branco);
}
.produtos_chamada span {
  color: var(--amarelo);
}
.produtos_chamada_2 {
  color: var(--branco);
  font-size: 16px;
  width: 80vw;
  text-align: center;
  font-weight: normal;
  padding-bottom: 2rem;
}
.produtos_fotos_descritivas {
  display: none;
}
.fotos_descritivas_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
  padding: 3rem 0;
  
}
.fotos_descritivas_box img{
  width: 20vw;
}
.foto_descritiva_txt {
  color: var(--amarelo);
  font-size: 20px;
  font-weight: bold;
}
.produtos_icones_descritivos {
  display: flex;
  flex-wrap: wrap;
  width: 100vw;
  justify-content: center;
  column-gap: 2rem;
  padding: 1rem 0;
  background-color: var(--cor-vermelho-principal);
}
.icones_descritivos_box {
  display: flex;
  flex-direction: column;
  width: 40vw;
  align-items: center;
  margin-bottom: 2rem;
  justify-content: start;

}
.icone_descritivo_tittle {
  font-size: 14px;
  text-align: center;
  color: var(--amarelo);
  padding-bottom: 1rem;
  font-weight: bold;
}
.icones_descritivos_box img {
  width: 30vw;
}
.icone_descritivo_txt {
  font-size: 16px;
  width: 40vw;
  padding-top: 1rem;
  color: var(--branco);
  text-align:center;
}



/* !!!!===================================  CONTAINER FOTOS FACHADA DA FARMÁCIA =========== */
.container_fachada {
  display: flex;
  flex-direction: column;
  width: 100vw;
  justify-content: center;
  align-items: center;
}
.fotos_farmacia {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  margin-top: 2rem;
}
.fotos_farmacia img{
  width: 50vw;
}
.botoes_fachada {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: center;
  justify-content: center;
  row-gap: 2rem;
  margin-top: 2rem;
}
.btn-fachada-instagram {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 16px;
  background: linear-gradient(to right, #ffffff 0%, #d9d9d9 100%);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
}
.btn-fachada-instagram img {
  width: 40px;
}
.btn-fachada-whatsapp {
  display: flex;
  background-color: var(--branco);
  color: var(--preto);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  column-gap: 1rem;
  font-weight: bold;
  padding: 0.3rem 1rem;
  border-radius: 24px;
  background: linear-gradient(to right, #ffffff 0%, #d9d9d9 100%);
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.15);
}
.btn-fachada-whatsapp img {
  width: 40px;
}

.botao_avaliacao {
  margin-top: 2rem;
}
/* ! FOOTERRRRRRRRRRRRRRRRRRR */
.container_footer {
  
  margin-top: 4rem;
  padding: 5rem;
  background-color: var(--cor-vermelho-principal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.endereco_footer {
  font-size: 18px;
  color: var(--branco);
  padding-bottom: 2rem;
  text-align: center;
}
.logo_footer {
  margin-top: 2rem;
  width: 30vw;
}

}
