@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --fundo-serviço: url(../imagens/fundoServiços.png);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

/* Estilos da página principal */
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
}

.texto {
  font-size: clamp(16px, 0.5vw, 20px);
  margin-bottom: 20px;
  text-align: center;
  color: black;
}

/*HOME*/
.home-page {
  background: black;
  background-image: url("../imagens/fundo-home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  padding-bottom: 30px;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 50px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  margin: 30px 20px;
  width: 150px; /* Ajuste o tamanho do logo conforme necessário */
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.txt-titulo {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: bold;
  margin-top: 50px;
  text-align: center;
}

div.txt-animado {
  color: white;
  font-size: clamp(20px, 2.5vw, 44px);
  font-weight: bold;
  margin-right: 30px;
  text-align: center;
}

.txt-animado span {
  position: relative;
  color: #c80101;
}

.txt-animado span::before {
  content: "Vanádio";
  color: #c80101;
  animation: words 20s infinite;
}

.txt-animado span::after {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  background-color: #272727;
  border-left: 3px solid #0a233a;
  right: -8px;
  animation: cursor 0.7s infinite, typing 20s steps(12) infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid #123f68;
  }
}

@keyframes words {
  0%,
  20% {
    content: "Cabelo";
  }
  21%,
  40% {
    content: "Barba";
  }
  41%,
  60% {
    content: "Sobrancelha";
  }
  61%,
  80% {
    content: "Cabelo";
  }
  81%,
  100% {
    content: "Barba";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 5px);
  }
}

.txt {
  font-size: clamp(16px, 1.2vw, 20px);
  margin-bottom: 20px;
  text-align: center;
}

.btn-agenda {
  width: 250px;
  height: 60px;
  text-decoration: none;
  background-color: #d62828;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: ease 0.5s all;
}

.btn-agenda:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #c80101;
}

.marcas-home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: auto;
}

/*MENU*/
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e6f4fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 99;
}

.menu-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu-item {
  font-size: 1.5em;
  font-weight: bold;
  color: #1c1c1c;
  text-decoration: none;
  margin: 20px 0;
  display: block;
}

.menu-overlay {
  opacity: 0;
  visibility: hidden;
}

#hamburger:checked ~ .menu-overlay {
  opacity: 1;
  visibility: visible;
}

#hamburger {
  display: none;
}

.hamburger {
  position: absolute; /* fica sempre fixo na tela */
  top: 95px; /* distância do topo */
  right: 30px; /* distância da direita */
  z-index: 9999;
  cursor: pointer;
}

.hamburger input {
  display: none;
}

.hamburger svg {
  /* The size of the SVG defines the overall size */
  height: 3em;
  /* Define the transition for transforming the SVG */
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: #d62828;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/*ANIMAÇÕES*/
.fade-title {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-img {
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-title.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-img.show {
  opacity: 1;
  transform: scale(1);
}

/*SOBRE*/
.sobre {
  width: 90vw;
  display: flex;
  margin: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sobre img {
  width: 100vw;
  object-fit: cover;
}

.sobre .home-dev {
  width: 90vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.sobre .home-dev .barra {
  width: 45vw;
  border-top: 3px solid red;
}

.sobre .home-dev .txt-sobre p {
  color: black;
  margin-top: 30px;
}

.sobre .home-dev .txt-sobre h1 {
  color: black;
}

.sobre .txt {
  color: black;
  text-align: justify;
  margin: 0 20px 20px 20px;
}

.sobre .btn {
  width: 150px;
  height: 60px;
  text-decoration: none;
  background-color: #d62828;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: ease 0.5s all;
  margin-top: 30px;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #c80101;
}

.carrossel {
    /* Ocupa 100% da largura da tela */
    width: 100vw; 
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.slides {
    /* Container que desliza com todas as imagens */
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content; 
}

.slides img {
    /* Cada imagem ocupa 100% da largura da tela */
    width: 100vw; 
    height: auto;
    flex-shrink: 0; 
    object-fit: cover;
    /* Adicione uma altura mínima aqui se suas imagens tiverem alturas diferentes */
    /* min-height: 400px; */ 
}

/*SERVIÇOS*/
.serviços {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  background: linear-gradient(to bottom, white 0%, #ff0000 100%);
}

.serviços h1 {
  font-size: clamp(24px, 3vw, 48px);
  margin: 50px 0  5px 0;
  color: black;
  text-align: center;
}

.serviços p {
  font-size: clamp(16px, 1.5vw, 20px);
  text-align: justify;
  width: 80%;
}

.serviços .container {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 20px;
  margin-bottom: 20px;
}

.serviços .cards {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  justify-content: center;
  align-items: center;
  max-width: 350px;
  height: 300px;
  background: #eaeaea;
  border: 2px solid #c2c2c2;
  border-radius: 20px;
  padding: 10px;
  transition: ease 0.5s all;
}

.serviços .cards:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #ad0000;
}

.serviços .img-card {
  max-width: 150px;
  margin: 5px;
}

.serviços .cards h2 {
  font-size: clamp(20px, 1.5vw, 40px);
  color: black;
  text-align: center;
}

.serviços .cards p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: black;
  text-align: center;
}

.serviços .btn {
  width: 150px;
  height: 60px;
  text-decoration: none;
  background-color: #d62828;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: ease 0.5s all;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #c80101;
}

.serviços .destaque {
  width: 100vw;
}

/*AGENDA*/
.agenda {
  margin-top: 50px;
  margin-bottom: 50px;
  background: url(../imagens/fundo-agenda.png) no-repeat center center / cover;
  padding-bottom: 30px;
}

.agenda h1 {
  font-size: clamp(24px, 2.7vw, 48px);
  color: #ffffff;
  text-shadow: 2px 2px 20px #d62828;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
}

.google-agenda {
  display: flex;
  align-items: center;
  margin: auto;
}

/* Estilo geral do formulário */
#bookingForm {
  width: 90vw;
  margin: auto;
  margin-top: 30px;
  padding: 20px;
  background: #d62828;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Título */
#bookingForm h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: white;
}

/* Labels e inputs */
#bookingForm label {
  display: flex;
  flex-direction: column;
}

#bookingForm input,
#bookingForm select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

/* Efeito ao focar no campo */
#bookingForm input:focus,
#bookingForm select:focus {
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.4);
}

/* Botão */
#bookingForm button {
  background: #0077ff;
  color: #fff;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

/* Hover do botão */
#bookingForm button:hover {
  background: #123f68;
  box-shadow: 0 0 15px #ad0000;
  transform: scale(1.03);
}

#bookingForm h3 {
  color: white;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(16px, 2.5vw, 24px);
}

#bookingForm p {
  color: white;
  text-align: center;
  font-size: clamp(14px, 1.5vw, 20px);
}

.google-maps {
  display: flex;
  align-items: center;
  margin: auto;
}

.footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 50px;
  background-color: #d62828;
  width: 100%;
  height: auto;
  padding: 20px;
}

.footer img {
  display: flex;
  align-items: center;
  margin: auto;
  width: 120px;
}

.footer .linha {
  display: flex;
  margin: 20px auto;
  border-bottom: 2px solid white;
  width: 100%;
}

.footer h2 {
  font-size: clamp(20px, 2vw, 45px);
  color: white;
}

.footer p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: white;
  
}

.direitos {
  width: 100%;
  text-align: center;
  font-size: clamp(16px, 0.7vw, 20px);
  padding: 15px;
}

.button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25d366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px #1da851;
  cursor: pointer;
  transition: 0.3s ease;
  overflow: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  text-decoration: none;
}

.button i {
  font-size: 35px;
  color: white;
  transition: 0.3s ease;
}

.button:hover {
  width: 150px;
  border-radius: 50px;
  background-color: #1da851;
}

.button:hover i {
  transform: translateY(-200%);
}

.button::before {
  position: absolute;
  bottom: -20px;
  content: "Fale conosco";
  color: white;
  font-size: 0px;
}

.button:hover::before {
  font-size: 14px;
  opacity: 1;
  bottom: unset;
  transition: 0.3s ease;
}

/* mantenha suas regras .button normais; abaixo só cuida da entrada/saída */
#whatsappButton {
  transition: opacity 0.38s ease, transform 0.38s ease;
  will-change: opacity, transform;
  /* já fica oculto por causa do inline style; essas linhas só reforçam se quiser remover o inline */
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

/* classe que o JS adiciona quando deve aparecer */
#whatsappButton.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.692);
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s, visibility 0.5s;
}

/* Centraliza o spinner corretamente */
.dot-spinner {
  --uib-speed: 0.9s;
  --uib-color: #ff0000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 80px;
  margin: 0 auto; /* garante centralização */
  z-index: 10000;
}

.dot-spinner__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.dot-spinner__dot::before {
  content: '';
  height: 20%;
  width: 20%;
  border-radius: 50%;
  background-color: #d62828;
  transform: scale(0);
  opacity: 0.5;
  animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.dot-spinner__dot:nth-child(2) { transform: rotate(45deg); }
.dot-spinner__dot:nth-child(3) { transform: rotate(90deg); }
.dot-spinner__dot:nth-child(4) { transform: rotate(135deg); }
.dot-spinner__dot:nth-child(5) { transform: rotate(180deg); }
.dot-spinner__dot:nth-child(6) { transform: rotate(225deg); }
.dot-spinner__dot:nth-child(7) { transform: rotate(270deg); }
.dot-spinner__dot:nth-child(8) { transform: rotate(315deg); }

.dot-spinner__dot:nth-child(2)::before { animation-delay: calc(var(--uib-speed) * -0.875); }
.dot-spinner__dot:nth-child(3)::before { animation-delay: calc(var(--uib-speed) * -0.75); }
.dot-spinner__dot:nth-child(4)::before { animation-delay: calc(var(--uib-speed) * -0.625); }
.dot-spinner__dot:nth-child(5)::before { animation-delay: calc(var(--uib-speed) * -0.5); }
.dot-spinner__dot:nth-child(6)::before { animation-delay: calc(var(--uib-speed) * -0.375); }
.dot-spinner__dot:nth-child(7)::before { animation-delay: calc(var(--uib-speed) * -0.25); }
.dot-spinner__dot:nth-child(8)::before { animation-delay: calc(var(--uib-speed) * -0.125); }

@keyframes pulse0112 {
  0%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}


