* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #111;
  color: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  background-color: #000;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.topo h1 {
  color: #d4af37;
  font-size: 28px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #d4af37;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #d4af37;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  position: relative;
  z-index: 1002;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.menu-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.banner {
  background: url('img/inicio.jpg') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 700px;
}

.overlay h2 {
  font-size: 42px;
  margin-bottom: 15px;
  color: #d4af37;
}

.overlay p {
  font-size: 20px;
  margin-bottom: 25px;
}

.botao {
  display: inline-block;
  background-color: #d4af37;
  color: #000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.botao:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

.secao {
  padding: 60px 0;
}

.secao h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #d4af37;
  font-size: 32px;
}

.destaque {
  background-color: #1a1a1a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card h3 {
  margin: 15px 0 10px;
  color: #d4af37;
  padding: 0 10px;
}

.card p {
  padding: 0 15px;
  margin-bottom: 10px;
}

.card span {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.barbeiro img {
  height: 280px;
}

.horarios-box {
  max-width: 500px;
  margin: auto;
  background-color: #222;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
}

#contato p,
#localizacao p,
#sobre p {
  text-align: center;
  max-width: 800px;
  margin: 10px auto;
  font-size: 18px;
}

.mapa {
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
}

footer {
  background-color: #000;
  text-align: center;
  padding: 20px;
  color: #aaa;
  margin-top: 20px;
}

/* ========= ANIMAÇÕES BASE ========= */
.banner_revelar,
.secao_destaque_revelar,
.secao_revelar,
.card_revelar,
.card_barbeiro_revelar,
.horarios_revelar,
.mapa_revelar {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

/* Banner: entra da direita */
.banner_revelar {
  transform: translateX(80px);
}

.banner_revelar.ativo {
  opacity: 1;
  transform: translateX(0);
}

/* Seções normais: entra da direita */
.secao_revelar {
  transform: translateX(70px);
}

.secao_revelar.ativo {
  opacity: 1;
  transform: translateX(0);
}

/* Seções com destaque: entra um pouco mais forte */
.secao_destaque_revelar {
  transform: translateX(90px);
}

.secao_destaque_revelar.ativo {
  opacity: 1;
  transform: translateX(0);
}

/* Cards de serviços */
.card_revelar {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.card_revelar.ativo {
  opacity: 1;
  transform: translateX(0);
}

/* Cards de barbeiros */
.card_barbeiro_revelar {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card_barbeiro_revelar.ativo {
  opacity: 1;
  transform: translateX(0);
}

/* Box de horários */
.horarios_revelar {
  transform: translateY(40px);
}

.horarios_revelar.ativo {
  opacity: 1;
  transform: translateY(0);
}

/* Mapa */
.mapa_revelar {
  transform: translateY(50px);
}

.mapa_revelar.ativo {
  opacity: 1;
  transform: translateY(0);
}
/* TABLET */
@media (max-width: 992px) {
  .topo {
    justify-content: space-between;
  }

  .topo h1 {
    font-size: 26px;
  }

  .overlay h2 {
    font-size: 34px;
  }

  .overlay p {
    font-size: 18px;
  }
}

/* CELULAR */
@media (max-width: 768px) {
  header {
    padding: 14px 0;
  }

  .container {
    width: 92%;
  }

  .topo {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .topo h1 {
    font-size: 24px;
    line-height: 1.2;
    max-width: 220px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: #0d0d0d;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 60px 0 20px;
    transition: right 0.3s ease;
    z-index: 1001;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    flex-wrap: nowrap;
  }

  nav.ativo {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #d4af37;
  }

  .banner {
    min-height: 75vh;
    background-position: center;
  }

  .overlay {
    padding: 25px 18px;
    border-radius: 12px;
    width: 100%;
  }

  .overlay h2 {
    font-size: 28px;
  }

  .overlay p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .botao {
    width: 100%;
    max-width: 260px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .secao {
    padding: 45px 0;
  }

  .secao h2 {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card {
    padding-bottom: 12px;
    border-radius: 10px;
  }

  .card img {
    height: 140px;
  }

  .barbeiro img {
    height: 150px;
  }

  .card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    padding: 0 6px;
  }

  .card p {
    font-size: 13px;
    padding: 0 8px;
    margin-bottom: 6px;
  }

  .card span {
    font-size: 14px;
  }

  #contato p,
  #localizacao p,
  #sobre p {
    font-size: 16px;
  }

  .horarios-box {
    padding: 20px 15px;
    font-size: 16px;
  }

  .mapa iframe {
    height: 260px;
  }

  footer {
    font-size: 14px;
    padding: 18px 12px;
  }
}

/* CELULAR PEQUENO */
@media (max-width: 480px) {
  .topo h1 {
    font-size: 21px;
    max-width: 190px;
  }

  .menu-toggle {
    font-size: 28px;
  }

  .overlay {
    padding: 22px 14px;
  }

  .overlay h2 {
    font-size: 24px;
  }

  .overlay p {
    font-size: 15px;
  }

  .secao h2 {
    font-size: 23px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card img {
    height: 120px;
  }

  .barbeiro img {
    height: 130px;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 12px;
  }

  .card span {
    font-size: 13px;
  }

  .mapa iframe {
    height: 220px;
  }
}