* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ANIMAÇÕES E KEYFRAMES */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(197, 157, 95, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(197, 157, 95, 0.8);
  }
}

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

:root {
  --cor-escura: #1f1f1f;
  --cor-secundaria: #2c2c2c;
  --cor-clara: #f5f1ea;
  --cor-destaque: #c59d5f;
  --cor-texto: #333333;
  --cor-branca: #ffffff;
  --sombra: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--cor-texto);
  background-color: var(--cor-clara);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.topo {
  background: linear-gradient(rgba(31, 31, 31, 0.92), rgba(31, 31, 31, 0.92)),
    url("img/corte_barba.jpg")
      center/cover no-repeat;
  color: var(--cor-branca);
  padding: 24px 0 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s;
}

.topo.scrolled {
  box-shadow: var(--sombra);
  padding: 16px 0 20px;
}

.logo-area {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cor-branca);
}

.logo-box {
  width: 82px;
  height: 82px;
  border: 2px solid var(--cor-destaque);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cor-destaque);
  background-color: rgba(255, 255, 255, 0.05);
}

.logo-texto h1 {
  font-family: "Cinzel", serif;
  font-size: 1.7rem;
  line-height: 1.2;
}

.logo-texto p {
  font-size: 0.95rem;
  color: #d9d9d9;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.menu a {
  color: var(--cor-branca);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  animation: fadeInDown 0.6s ease backwards;
}

.menu a:nth-child(1) { animation-delay: 0.1s; }
.menu a:nth-child(2) { animation-delay: 0.2s; }
.menu a:nth-child(3) { animation-delay: 0.3s; }
.menu a:nth-child(4) { animation-delay: 0.4s; }
.menu a:nth-child(5) { animation-delay: 0.5s; }
.menu a:nth-child(6) { animation-delay: 0.6s; }

.menu a:hover {
  color: var(--cor-destaque);
  border-bottom: 2px solid var(--cor-destaque);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--cor-branca);
  border-radius: 3px;
  transition: 0.3s;
}

.menu-toggle.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.ativo span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.secao {
  padding: 80px 0;
}

.principal {
  background-color: var(--cor-clara);
}

.banner {
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  box-shadow: var(--sombra);
}

.banner-conteudo {
  color: var(--cor-branca);
  max-width: 600px;
  padding: 40px;
}

.banner-conteudo .destaque {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cor-destaque);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-conteudo h2 {
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.banner-conteudo p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  background-color: var(--cor-destaque);
  color: var(--cor-escura);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.3s;
  animation: bounceIn 0.8s ease;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 8px 16px rgba(197, 157, 95, 0.3);
}

.conteudo-principal,
.conteudo-sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.texto-principal h2,
.titulo-secao {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.texto-principal h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
  color: #777;
}

.texto-principal p,
.texto-sobre p {
  margin-bottom: 14px;
  font-size: 1rem;
}

.imagem-principal img,
.imagem-sobre img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--sombra);
}

.servicos {
  background:
    linear-gradient(rgba(34, 34, 34, 0.93), rgba(34, 34, 34, 0.93)),
    url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1600&q=80")
    center/cover fixed no-repeat;
  color: var(--cor-branca);
  text-align: center;
}

.descricao-secao {
  max-width: 700px;
  margin: 0 auto 35px;
  text-align: center;
}

.cards-servicos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 18px;
  border-radius: 12px;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px) rotateY(2deg);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--cor-destaque);
  box-shadow: 0 12px 24px rgba(197, 157, 95, 0.2);
}

.card h3 {
  color: var(--cor-destaque);
  margin-bottom: 12px;
}

.lista-servicos {
  list-style-position: inside;
  display: inline-block;
  text-align: left;
  line-height: 2;
}

.sobre {
  background-color: #ffffff;
}

.texto-sobre {
  font-size: 1rem;
}

.contato {
  background:
    linear-gradient(rgba(197, 157, 95, 0.15), rgba(197, 157, 95, 0.15)),
    #ece7df;
  text-align: center;
}

.mapa {
  width: 100%;
  max-width: 820px;
  height: 380px;
  margin: 30px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sombra);
}

.faixa-contato {
  max-width: 820px;
  margin: 0 auto 24px;
  background-color: #7f7a74;
  color: var(--cor-branca);
  padding: 14px;
  border-radius: 8px;
  font-weight: 500;
}

.links-contato {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.links-contato a {
  color: var(--cor-secundaria);
  background-color: var(--cor-branca);
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 220px;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.links-contato a:hover {
  background-color: var(--cor-destaque);
  color: var(--cor-escura);
}

.rodape {
  background-color: var(--cor-escura);
  color: var(--cor-branca);
  text-align: center;
  padding: 20px 0;
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-flutuante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: 0.3s ease;
  animation: bounceIn 0.6s ease;
  z-index: 999;
  padding: 0;
  overflow: hidden;
}

.whatsapp-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.whatsapp-flutuante:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

/* MODAL DE AGENDAMENTO */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.ativo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--cor-branca);
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.4s ease;
  position: relative;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: var(--cor-escura);
  margin-bottom: 24px;
  font-size: 1.8rem;
  text-align: center;
}

.fechar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.fechar-modal:hover {
  color: var(--cor-escura);
}

.form-agendamento {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grupo {
  display: flex;
  flex-direction: column;
}

.form-grupo label {
  color: var(--cor-escura);
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-grupo input,
.form-grupo select {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: 0.3s;
}

.form-grupo input:focus,
.form-grupo select:focus {
  outline: none;
  border-color: var(--cor-destaque);
  box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.1);
}

.btn-form {
  padding: 14px;
  background-color: var(--cor-destaque);
  color: var(--cor-escura);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-form:hover {
  background-color: #b8894f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 157, 95, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* SEÇÃO DE DEPOIMENTOS */
.depoimentos {
  background: linear-gradient(135deg, #f5f1ea 0%, #ece7df 100%);
}

.cards-depoimentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card-depoimento {
  background: var(--cor-branca);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  border-left: 4px solid var(--cor-destaque);
}

.card-depoimento:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(197, 157, 95, 0.2);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.estrela {
  color: var(--cor-destaque);
  font-size: 1.2rem;
}

.texto-depoimento {
  font-size: 0.95rem;
  color: var(--cor-texto);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.nome-cliente {
  font-weight: 700;
  color: var(--cor-secundaria);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .cards-servicos {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-depoimentos {
    grid-template-columns: repeat(2, 1fr);
  }

  .conteudo-principal,
  .conteudo-sobre {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(31, 31, 31, 0.98);
    padding: 20px;
    gap: 0;
    align-items: stretch;
    z-index: 999;
  }

  .menu.ativo {
    display: flex;
  }

  .menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-width: 2px;
    text-align: center;
  }

  .logo-area {
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    flex-direction: row;
  }

  .logo-box {
    width: 70px;
    height: 70px;
    font-size: 1.4rem;
  }

  .logo-texto h1 {
    font-size: 1.5rem;
  }

  .banner-conteudo h2 {
    font-size: 1.8rem;
  }

  .cards-servicos,
  .cards-depoimentos {
    grid-template-columns: 1fr;
  }

  .conteudo-principal,
  .conteudo-sobre {
    grid-template-columns: 1fr;
  }

  .imagem-principal img,
  .imagem-sobre img {
    height: 280px;
  }

  .mapa {
    height: 300px;
  }

  .secao {
    padding: 60px 0;
  }

  .titulo-secao {
    font-size: 1.8rem;
  }

  .whatsapp-flutuante {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .modal-content {
    padding: 30px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .logo-box {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .logo-texto h1 {
    font-size: 1.3rem;
  }

  .logo-texto p {
    font-size: 0.85rem;
  }

  .banner {
    min-height: 280px;
  }

  .banner-conteudo {
    padding: 20px;
  }

  .banner-conteudo h2 {
    font-size: 1.4rem;
  }

  .banner-conteudo p {
    font-size: 0.95rem;
  }

  .titulo-secao {
    font-size: 1.5rem;
  }

  .texto-principal h2 {
    font-size: 1.5rem;
  }

  .descricao-secao {
    font-size: 0.95rem;
  }

  .card {
    padding: 18px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card-depoimento {
    padding: 20px;
  }

  .texto-depoimento {
    font-size: 0.9rem;
  }

  .links-contato a {
    min-width: 100%;
    max-width: 280px;
  }

  .mapa {
    height: 250px;
  }

  .secao {
    padding: 40px 0;
  }

  .whatsapp-flutuante {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  .modal-content {
    padding: 24px;
  }

  .form-grupo input,
  .form-grupo select {
    padding: 10px;
    font-size: 16px;
  }
}