/* ==========================================
   VARIÁVEIS DE COR E FONTE
   Troque aqui os tons de dourado, se quiser.
========================================== */
:root {
  --preto: #070707;
  --grafite: #262628;
  --grafite-claro: #262626;
  --dourado: #cfa50e;
  --dourado-claro: #e5c34c;
  --branco: #f5f5f5;
  --cinza-texto: #b3b3b3;

  --fonte-titulo: 'Bebas Neue', sans-serif;
  --fonte-texto: 'Poppins', sans-serif;
}

/* ==========================================
   RESET BÁSICO
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   BOTÕES
========================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--fonte-texto);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  background: var(--dourado);
  color: var(--preto);
}

.btn-gold:hover {
  background: var(--dourado-claro);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

/* ==========================================
   MENU / HEADER
========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo span {
  color: var(--dourado);
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(207, 165, 14, 0.4);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

/* Ícones do menu. São SVGs de linha simples, sem depender de
   nenhuma biblioteca — usam "currentColor" pra acompanhar a cor
   do texto do link (fica branco e vira dourado quando ativo/hover). */
.nav-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dourado);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botão hambúrguer (aparece só no celular) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--branco);
}

/* ==========================================
   PÁGINA INICIAL (HERO)
========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: radial-gradient(circle at 50% 38%, #2a2a2c 0%, #141415 48%, #070707 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(7, 7, 7, 0.72), transparent 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.1) 35%, rgba(7, 7, 7, 0.1) 65%, rgba(7, 7, 7, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 2px;
  line-height: 1;
}

.hero-content h1 span {
  color: var(--dourado);
}

.hero-frase {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--cinza-texto);
}

.hero-content .btn {
  margin-top: 34px;
}

/* ==========================================
   HERO 3D (novo)
========================================== */
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  perspective: 1000px;
  pointer-events: none;
}

.hero-luz {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(207, 165, 14, 0.16), transparent 45%);
}

.camada {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Logo AR grande, ao fundo (recorte da imagemgago.jpeg) */
.logo-ar {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(80vh, 92vw, 720px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
          mask-image: radial-gradient(circle, #000 30%, transparent 68%);
}

.logo-ar img {
  position: absolute;
  width: 230%;
  max-width: none;   /* anula o "max-width: 100%" global das imagens */
  left: -69.4%;
  top: -23%;
}

/* Objetos 3D */
.obj {
  position: absolute;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.65));
  transform: rotate(var(--rot, 0deg));
  animation: flutuar 9s ease-in-out infinite;
}

.obj svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes flutuar {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-10px); }
}

/* Posição e tamanho de cada objeto (ajuste à vontade) */
.obj-tesoura {
  left: -1%;
  top: 12%;
  width: clamp(150px, 20vw, 300px);
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.7)) blur(1.2px); /* levemente fora de foco = mais perto */
  animation-duration: 10s;
}

.obj-maquina {
  right: 3%;
  bottom: 5%;
  width: clamp(110px, 13vw, 190px);
  animation-duration: 11s;
  animation-delay: -3s;
}

.obj-navalha {
  right: 15%;
  top: 17%;
  width: clamp(48px, 5.5vw, 85px);
  opacity: 0.85;
  animation-duration: 12s;
}

.obj-pente {
  left: 13%;
  bottom: 9%;
  width: clamp(120px, 15vw, 220px);
  opacity: 0.9;
  animation-duration: 12s;
  animation-delay: -5s;
}

.obj-poste {
  left: 17%;
  top: 12%;
  width: clamp(38px, 4.2vw, 64px);
  opacity: 0.55;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6)) blur(1px);
  animation: none;
}

/* Partículas douradas (bem discretas) */
.particulas {
  position: absolute;
  inset: 0;
}

.particula {
  position: absolute;
  border-radius: 50%;
  background: var(--dourado-claro);
  box-shadow: 0 0 8px rgba(229, 195, 76, 0.8);
  opacity: 0;
  animation: brilhar 9s ease-in-out infinite;
}

@keyframes brilhar {
  0%, 100% { opacity: 0;    transform: translateY(0); }
  50%      { opacity: 0.55; transform: translateY(-18px); }
}

/* Legibilidade do texto (fica parado, na frente de tudo) */
.hero-content h1,
.hero-frase {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

/* Botão: brilho dourado + reflexo no hover */
.hero-content .btn {
  position: relative;
  overflow: hidden;
}

.hero-content .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
}

.hero-content .btn:hover {
  box-shadow:
    0 0 0 1px rgba(229, 195, 76, 0.5),
    0 0 22px rgba(229, 195, 76, 0.55),
    0 10px 28px rgba(207, 165, 14, 0.4);
}

.hero-content .btn:hover::after {
  left: 130%;
  transition: left 0.7s ease;
}

/* Celular: menos objetos, sem blur e sem animação pesada */
@media (max-width: 768px) {
  .obj {
    animation: none;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6));
    opacity: 0.75;
  }
  .obj-pente,
  .obj-navalha,
  .obj-poste { display: none; }

  .obj-tesoura { left: -9%; top: 13%; width: 34vw; }
  .obj-maquina { right: -4%; bottom: 8%; width: 24vw; }

  .logo-ar { width: 105vw; opacity: 0.35; }
}

/* Quem prefere menos movimento no sistema não vê animações */
@media (prefers-reduced-motion: reduce) {
  .obj, .particula { animation: none; }
  .particula { opacity: 0.3; }
}


/* ==========================================
   SEÇÕES GERAIS
========================================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--grafite);
}

.section-title {
  font-family: var(--fonte-titulo);
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dourado);
}

/* Efeito de aparecer suavemente ao rolar (a classe .visivel é
   adicionada pelo script.js quando a seção entra na tela) */
.section,
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visivel,
.hero-content.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   SOBRE NÓS
========================================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

.sobre-texto p {
  color: var(--cinza-texto);
  margin-bottom: 16px;
}

.diferenciais li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.diferenciais li::before {
  content: "— ";
  color: var(--dourado);
}

/* ==========================================
   SERVIÇOS (CARDS)
========================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.card {
  background: var(--grafite-claro);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--dourado);
}

.card h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.card p {
  color: var(--cinza-texto);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.preco {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 1.3rem;
  color: var(--dourado);
}

/* ==========================================
   GALERIA
========================================== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.galeria-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grafite-claro), var(--preto));
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.galeria-item:hover {
  transform: scale(1.03);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* mantém o cabelo/rosto em destaque no recorte */
}

/* ==========================================
   DIFERENCIAIS
========================================== */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.diferencial {
  background: var(--grafite-claro);
  border-left: 3px solid var(--dourado);
  border-radius: 4px;
  padding: 26px;
}

.diferencial p {
  font-style: italic;
  color: var(--branco);
  margin-bottom: 14px;
}

.diferencial span {
  color: var(--dourado);
  font-size: 0.85rem;
}

/* ==========================================
   CONTATO
========================================== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}

.contato-info li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contato-info strong {
  color: var(--dourado);
}

.mapa {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}

.btn-whatsapp {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ==========================================
   RODAPÉ
========================================== */
.footer {
  text-align: center;
  padding: 26px;
  color: var(--cinza-texto);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================
   NOVIDADES
========================================== */

/* Header fica mais compacto e opaco depois que a página rola um pouco
   (a classe .scrolled é adicionada pelo script.js) */
.header.scrolled {
  background: rgba(7, 7, 7, 0.97);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.header.scrolled .nav {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Link do menu fica dourado quando você está naquela seção da página
   (a classe .ativo é controlada pelo script.js conforme a rolagem) */
.nav-links a.ativo {
  color: var(--dourado);
}

.nav-links a.ativo::after {
  width: 100%;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 99;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Botão de voltar ao topo: fica escondido até você rolar a página
   (a classe .mostrar é adicionada pelo script.js) */
.btn-topo {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  background: var(--grafite-claro);
  color: var(--dourado);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99;
}

.btn-topo.mostrar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-topo:hover {
  border-color: var(--dourado);
}

/* ==========================================
   RESPONSIVO (CELULAR)
========================================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 66px;
    right: 0;
    height: calc(100vh - 66px);
    width: 220px;
    background: var(--grafite);
    flex-direction: column;
    padding: 30px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.aberto {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

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

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