/* ESTILO GERAL */
body {
  background: linear-gradient(135deg, #060504, #141414);
  font-family: 'Times New Roman', Times, serif;
  color: white;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
}


/*-------------------menu----------------------------*/
/* HEADER COM IMAGEM DE FUNDO OPACA */
header {
  position: relative;
  height: 400px;
  overflow: hidden;
  z-index: 1;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fundo1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* MENU MOBILE (FAIXA PRETA NO TOPO) */
.menu-mobile {
  background-color: rgba(0, 0, 0, 0.7);
  height: 80px; /* Altura fixa da faixa preta */
  padding: 10px 20px;
  box-sizing: border-box;
  z-index: 2;
  position: relative;
}

/* BOTAO MENU HAMBURGUER */
#menu {
  z-index: 3;
}

#menu-bar {
  width: 45px;
  height: 10px;
  margin: 5px 0 10px 10px;
  cursor: pointer;
}

.bar {
  height: 5px;
  width: 100%;
  background-color: white;
  display: block;
  border-radius: 5px;
  transition: 0.3s ease;
}

#bar1 {
  transform: translateY(-4px);
}

#bar3 {
  transform: translateY(4px);
}

/* MENU LATERAL ABSOLUTO */
.nav {
  transition: 0.3s ease;
  display: none;
  position: absolute;
  top: 80px; /* abaixo da faixa preta */
  left: 0;
  background-color: transparent;
  z-index: 3;
}

.nav.change {
  display: block;
}

.nav ul {
  padding: 0 22px;
}

.nav li {
  list-style: none;
  padding: 12px 0;
}

.nav li a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.nav li a:hover {
  font-weight: bold;
}

/* ANIMACAO DO FUNDO RADIAL */
.menu-bg {
  width: 0;
  height: 0;
  margin: 30px 0 20px 20px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  border-radius: 50%;
  transition: 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}


/* ANIMACOES ATIVAS */
.change .bar {
  background-color: white;
}

.change #bar1 {
  transform: translateY(4px) rotateZ(-45deg);
}

.change #bar2 {
  opacity: 0;
}

.change #bar3 {
  transform: translateY(-6px) rotateZ(45deg);
}

.change-bg {
  width: 520px;
  height: 460px;
  transform: translate(-60%, -30%);
}
/*------------------------------------------------*/

/*-----------------Header-------------------------*/
.typewriter-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
  width: 100%;
  pointer-events: none;
}

.typewriter-text {
  color: white;
  font-family: 'Courier New', monospace;
  font-size: 40px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
}

/*------------------------------------------------*/

/*--------------------cards1----------------------*/

.card {
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1); /* borda fina */
  border-radius: 12px;
  overflow: hidden;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  text-align: left;
  box-sizing: border-box;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-sizing: border-box;
}

  .btn-add-cart {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    padding: 10px;
    margin-top: 10px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
  }

  .btn-add-cart:hover {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .btn-add-cart i {
    margin-right: 8px;
  }

.card-body {
  padding: 16px; /* Agora o espacamento so aqui */
}

@media (min-width: 237px) and (max-width: 768px) {
  .card img {
    max-height: 300px; /* aumenta a altura da imagem */
  }

  .card {
    width: 95%;
    margin: 0 auto;
  }

  .card-body {
    padding: 16px;
  }
}


.service-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.avg-time {
  color: #bbb;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.rating {
  color: gold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.price {
  color: #d4af37;
  font-weight: bold;
  font-size: 1rem;
}

.view-all-btn {
  width: 100%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  padding: 12px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin: 0 auto;
}

.view-all-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/*------------------------------------------------*/

.service-card {
  background-color: #121212;
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  height: auto; /* <--- ESSENCIAL */
}

.service-card:hover {
  transform: scale(1.02);
}

.service-title {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 20px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.btn-book {
  background-color: #bfa66a;
  border: none;
  color: black;
  font-weight: bold;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-book:hover {
  background-color: #d6b96d;
}



.logo-divider .border-top {
  opacity: 0.2;
}


/*------------------------galeria-----------------------*/
.galeria-container {
  width: 100vw; /* pega toda a largura da tela */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 30px 0;
  background: linear-gradient(to right, #111, #1a1a1a);
  box-sizing: border-box;
}

.galeria-container img {
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Larguras variadas */
.img-barber1 { width: 300px; }
.img-barber2 { width: 220px; }
.img-barber3 { width: 250px; }
.img-barber4 { width: 280px; }
.img-barber5 { width: 200px; }
.img-barber6 { width: 320px; }

.galeria-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
}
