/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.loader-content {
  text-align: center;
}
.shave-icon {
  font-size: 3rem;
  animation: rotate 2s infinite linear;
}
.loader-line {
  width: 100px;
  height: 2px;
  background: var(--gold);
  margin: 15px auto;
  position: relative;
  overflow: hidden;
}
.loader-line::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: loading 1.5s infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes loading {
  100% {
    left: 100%;
  }
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 8%;
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(10px);
}
.logo {
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
}
.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu a {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: 0.3s;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gold);
  transition: 0.3s;
}
.nav-menu a:hover::after {
  width: 100%;
}

.btn-cta-nav {
  background: var(--gold);
  color: #000 !important;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid var(--gold);
}
.btn-cta-nav:hover {
  background: transparent;
  color: var(--gold) !important;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

/* HERO COM PARALLAX */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?q=80&w=2070")
    center/cover;
  z-index: 1;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}
.hero h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 25px;
  color: #fff;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #ccc;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  padding: 18px 40px;
  font-weight: 900;
  border-radius: 4px;
  display: inline-block;
  margin: 10px;
  transition: var(--transition);
}
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 16px 40px;
  font-weight: 900;
  border-radius: 4px;
  display: inline-block;
  margin: 10px;
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* PHOTO GRID */
.section-container {
  padding: 120px 8%;
}
.section-title {
  text-align: center;
  margin-bottom: 80px;
}
.section-title span {
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.section-title h2 {
  font-size: 3rem;
  margin-top: 15px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.photo-card {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s ease;
  filter: grayscale(100%);
}
.photo-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0px solid var(--gold);
  transition: 0.3s;
}
.photo-card:hover::after {
  border-width: 10px;
}

.hidden {
  display: none !important;
}

.btn-more {
  margin-top: 60px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 18px 50px;
  cursor: pointer;
  font-weight: 900;
  transition: var(--transition);
}
.btn-more:hover {
  background: var(--gold);
  color: #000;
}

/* PRICES */
.bg-alt {
  background-color: var(--dark-grey);
}
.price-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.price-item {
  background: var(--dark);
  padding: 50px 40px;
  border-radius: 20px;
  width: 350px;
  text-align: center;
  border: 1px solid #333;
  transition: var(--transition);
}
.price-item:hover {
  transform: translateY(-15px);
  border-color: var(--gold);
}
.price-item.featured {
  border: 2px solid var(--gold);
  transform: scale(1.05);
}

.badge {
  color: var(--white);
  font-size: 1.3em;
  font-weight: 600;
}

/* CONTACT */
.contact-flex {
  display: flex;
  gap: 80px;
  align-items: center;
}
.map-box {
  flex: 1.5;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.info-box h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.contact-item i {
  color: var(--gold);
  font-size: 1.8rem;
}
.social-links a {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.5em;
  margin-right: 20px;
}

/* --- FOOTER PREMIUM STYLE --- */
.main-footer {
  background: linear-gradient(to top, #050505, #0d0d0d);
  padding: 100px 0 30px 0;
  position: relative;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  overflow: hidden;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: var(--gold);
  filter: blur(150px);
  opacity: 0.05;
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-desc {
  color: #888;
  line-height: 1.8;
  margin: 25px 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(10px);
}

.footer-links a:hover i {
  transform: scale(1.5);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.footer-bottom {
  padding-top: 40px;
  text-align: center;
}

.bottom-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin-bottom: 30px;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.85rem;
}

.footer-info span {
  color: var(--gold);
}

.dev-credits i {
  color: #ff4d4d;
  margin: 0 5px;
  animation: pulse 1.5s infinite;
}

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

/* RESPONSIVE */
@media (max-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 1. CORREÇÃO DO ESPAÇO VAZIO NA DIREITA */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* 2. NAVBAR E LOGO */
  .navbar {
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    box-sizing: border-box;
  }

  /* 3. SEÇÕES E TITULOS (Ajuste para não vazar) */
  .section-container {
    padding: 60px 5%; /* Menos espaço lateral para caber no celular */
    width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 2.2rem; /* Reduzi um pouco para o texto não empurrar a tela */
  }

  .photo-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  /* 4. TABELA DE PREÇOS (O provável culpado pelo espaço vazio) */
  .price-item {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-flex {
    flex-direction: column;
  }
  .map-box {
    height: 300px;
    width: 100%;
  }

  /* 5. MENU HAMBÚRGUER (Seu código original preservado) */
  .mobile-menu-icon {
    display: block !important;
    cursor: pointer;
    z-index: 1100;
    position: relative;
  }

  .mobile-menu-icon div {
    width: 30px;
    height: 3px;
    background-color: var(--gold);
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 3px;
  }

  /* 6. NAV MENU MOBILE */
  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    pointer-events: none;
    visibility: hidden; 
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), visibility 0.5s;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateX(0);
    pointer-events: all;
    visibility: visible;
    pointer-events: all;
  }

  .btn-cta-nav {
    display: none;
  }

  .section-title h2 {
    font-size: 2rem !important; /* Diminui o tamanho para caber em qualquer celular */
    word-wrap: break-word; /* Garante que a palavra quebre se necessário */
    overflow-wrap: break-word;
    line-height: 1.2; /* Ajusta o espaçamento entre as linhas */
    width: 100%; /* Garante que ocupe apenas a largura do pai */
  }

  .footer-content {
    display: flex;
    flex-direction: column; /* Força uma coluna única no mobile */
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-col {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .footer-bottom {
    padding: 40px 0 60px 0; /* Aumentei o padding inferior para 60px */
  }

  .footer-info {
    flex-direction: column; /* Empilha as informações de direitos e dev */
    gap: 15px; /* Dá respiro entre as duas linhas de texto */
    text-align: center;
  }

  .bottom-line {
    margin-bottom: 40px; /* Mais espaço após a linha divisória */
  }

  /* Ajuste para os links e navegação no footer */
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .footer-links a {
    justify-content: center;
  }
}

/* ANIMAÇÃO DO X */
.mobile-menu-icon.active .line1 {
  transform: rotate(-45deg) translate(-6px, 7px);
}
.mobile-menu-icon.active .line2 {
  opacity: 0;
}
.mobile-menu-icon.active .line3 {
  transform: rotate(45deg) translate(-6px, -7px);
}
