/* ====================================
PALETA DE CORES PREMIUM & RESET
==================================== */
:root {
  --primary: #c5a059;
  --primary-glow: #e2c286;
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #181818;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ====================================
LAYOUT REUTILIZÁVEL
==================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: "Cinzel", serif;
  text-align: center;
  font-size: 2.8rem;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 50px;
  text-transform: uppercase;
}

/* ====================================
HEADER (Glassmorphism)
==================================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.3s ease;
}

.nav-container {
  height: 95px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 5px rgba(197, 160, 89, 0.3));
}

.logo div {
  display: flex;
  flex-direction: column;
}

.logo span {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1;
}

.logo small {
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 3px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ====================================
HERO SECTION (Onde a imagem de fundo brilha!)
==================================== */
.hero {
  height: 100vh;
  /* O linear-gradient funciona como um óculos escuro sobre a foto, impedindo que ela ofusque as letras brancas */
  background:
    linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.95)),
    url("img/barber-bg.jpg ") no-repeat center center/cover;
  background-attachment: fixed; /* Efeito Parallax elegante ao rolar a página */
  display: flex;
  align-items: center;
  padding-top: 95px;
}

.hero-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
  max-width: 580px;
  font-size: 1.25rem;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #a37f3d);
  color: #000000;
  padding: 18px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
  background: linear-gradient(135deg, var(--primary-glow), var(--primary));
}

/* ====================================
SERVIÇOS
==================================== */
.services {
  padding: 120px 0;
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 8px;
  padding: 45px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 80px;
  height: 80px;
  background: rgba(197, 160, 89, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.3s ease;
}

.card:hover .icon-box {
  background: var(--primary);
  border-color: var(--primary);
}

.card:hover .icon-box i {
  color: #000;
}

.card i {
  color: var(--primary);
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.price {
  display: inline-block;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(197, 160, 89, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(197, 160, 89, 0.15);
}

/* ====================================
GALERIA E MOLDURAS
==================================== */
.gallery {
  padding: 120px 0;
  background: #0f0f0f;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-grid img:hover {
  transform: scale(1.06);
}

/* ====================================
SOBRE
==================================== */
.about {
  padding: 140px 0;
  background: var(--bg-dark);
}

.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 300;
}

/* ====================================
LOCALIZAÇÃO
==================================== */
.location {
  padding: 120px 0;
  background: #0f0f0f;
}

.map iframe {
  width: 100%;
  height: 480px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 6px;
}

/* ====================================
CONTATO
==================================== */
.contact {
  padding: 120px 0;
  background: var(--bg-dark);
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.1);
  padding: 35px 50px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 280px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.contact-card i {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-card span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ====================================
LIGHTBOX SYSTEM
==================================== */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.98);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

#lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

#close-lightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #ffffff;
  font-size: 3.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

#close-lightbox:hover {
  color: var(--primary);
}

/* ====================================
FOOTER
==================================== */
footer {
  padding: 45px 20px;
  text-align: center;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #555555;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ====================================
RESPONSIVIDADE AJUSTADA
==================================== */
@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 95px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 95px);
    background: #0a0a0a;
    flex-direction: column;
    padding: 50px 40px;
    gap: 35px;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    border-left: 1px solid rgba(197, 160, 89, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    background-attachment: scroll; /* Desativa parallax no celular para melhor performance */
  }

  .hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}

/* ====================================
SISTEMA DE ANIMAÇÃO DINÂMICA
==================================== */
.item-animar {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.item-animar.show {
  opacity: 1;
  transform: translateY(0);
}
