/* 
================================================================================
   BEBO BARBER — PREMIUM DESIGN EXTENSION (WOW EFFECT)
   Baseado nas diretrizes de Web Moderna do Google Chrome Team
================================================================================
*/

/* 1. Suavização Geral e Paleta de Cores OKLCH */
html {
  scroll-behavior: smooth;
  scrollbar-color: oklch(0.75 0.15 75) oklch(0.1 0 0); /* Dourado / Preto */
  scrollbar-width: thin;
}

/* 2. Barra de Rolagem Personalizada (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: oklch(0.08 0 0);
}

::-webkit-scrollbar-thumb {
  background: oklch(0.25 0.02 75);
  border-radius: 6px;
  border: 2px solid oklch(0.08 0 0);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: oklch(0.75 0.15 75); /* Dourado */
}

/* 3. Glassmorphism Avançado no Menu Superior */
.bg-white\/5.backdrop-blur-sm,
header nav,
.backdrop-blur-md {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* 4. Animações de Scroll Nativas (Scroll-Driven Animations) */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Aplicando animações de scroll de forma suave nas seções estruturais */
@media (prefers-reduced-motion: no-preference) {
  #services, 
  #prices, 
  #about, 
  #reviews, 
  #contact {
    animation: fadeInUpScale linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  /* Fade-in suave específico para os cards de serviço */
  .grid > .group {
    animation: fadeInUpScale linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* 5. Efeito 3D Hover nos Cards de Serviços */
.group.relative.bg-gray-900,
.bg-gray-900.rounded-3xl.p-8,
.bg-gray-900.rounded-2xl {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s ease !important;
}

.group.relative.bg-gray-900:hover,
.bg-gray-900.rounded-3xl.p-8:hover,
.bg-gray-900.rounded-2xl:hover {
  transform: translateY(-8px) scale(1.025) !important;
  box-shadow: 0 24px 48px -12px rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Zoom suave otimizado nas imagens dos cards */
.group .w-full.h-full.object-cover {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.group:hover .w-full.h-full.object-cover {
  transform: scale(1.06) !important;
}

/* 6. Efeito Shimmer Metálico nos Botões de Ação (CTA) */
.bg-amber-500,
.inline-flex.items-center.bg-amber-500,
button[type="submit"] {
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.bg-amber-500:hover,
.inline-flex.items-center.bg-amber-500:hover {
  box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.3);
}

.bg-amber-500::after,
.inline-flex.items-center.bg-amber-500::after,
button[type="submit"]::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -80% !important;
  width: 40% !important;
  height: 200% !important;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  transform: rotate(30deg) !important;
  transition: none !important;
}

.bg-amber-500:hover::after,
.inline-flex.items-center.bg-amber-500:hover::after,
button[type="submit"]:hover::after {
  left: 130% !important;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 7. Animação Orgânica e Lenta dos Glowing Blobs de Fundo */
@keyframes pulseGlow {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.15;
  }
  33% {
    transform: translate(30px, -40px) scale(1.15);
    opacity: 0.22;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.12;
  }
  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.15;
  }
}

.blur-3xl.bg-amber-500 {
  animation: pulseGlow 18s ease-in-out infinite alternate !important;
}

/* 8. Text Wrap Tuning e Estilo Premium de Título (Hero) */
h1, h2, h3 {
  text-wrap: balance !important;
}

.text-5xl.sm\:text-6xl.md\:text-7xl {
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  background: linear-gradient(to bottom, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* 9. Estilização Premium para a Seção de QR Codes (Reviews) */
.bg-white.p-4.rounded-2xl {
  border: 2px solid transparent !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s ease !important;
  display: inline-block !important;
}

.bg-white.p-4.rounded-2xl:hover {
  transform: translateY(-8px) scale(1.05) rotate(-1.5deg) !important;
  box-shadow: 0 30px 60px -15px rgba(245, 158, 11, 0.25) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

/* Efeito de flutuação e escala nos ícones das redes sociais */
.bg-gray-900.rounded-3xl.p-8 img.w-48.h-48 {
  border-radius: 12px;
}

/* Animar o ícone de marca/logo do card (Google/Instagram) */
.bg-gray-900.rounded-3xl.p-8:hover img:not(.w-48) {
  animation: pulseLogo 1.5s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4)); }
}

/* Estilo para os links de texto abaixo do QR Code */
.bg-gray-900.rounded-3xl.p-8 a.text-amber-500,
.bg-gray-900.rounded-3xl.p-8 span.text-amber-500 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.bg-gray-900.rounded-3xl.p-8:hover a.text-amber-500 {
  color: #fbbf24;
  transform: scale(1.03);
}

/* 10. Correção e Refinamento do Botão Secundário do Hero (Outline/Telefone) */
a[href^="tel:"] {
  background-color: transparent !important;
  color: oklch(1 0 0) !important; /* Texto Branco */
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
}

a[href^="tel:"]:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: oklch(0.75 0.15 75) !important; /* Borda Dourada no Hover */
  color: oklch(0.75 0.15 75) !important; /* Texto Dourado no Hover */
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15) !important;
  transform: translateY(-2px);
}

/* 11. Centralização dos Links e Chamadas de Ação na Seção de Reviews */
.bg-gray-900.rounded-3xl.p-8 a.text-amber-500 {
  display: flex !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  justify-content: center !important;
  align-items: center !important;
  float: none !important;
  clear: both !important;
}

/* 12. Modal de Boas-Vindas (Seleção de Idioma no Primeiro Acesso) */
#language-welcome-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1;
}

.welcome-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(25px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(150%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
}

.welcome-modal-content {
  background-color: rgba(15, 15, 15, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px !important;
  padding: 3rem 2rem !important;
  max-width: 460px !important;
  width: 90% !important;
  text-align: center !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(245, 158, 11, 0.08) !important;
  transform: translateY(0);
  animation: modalEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-modal-logo {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  margin-bottom: 1.5rem !important;
}

.welcome-modal-logo .dourado-text {
  color: oklch(0.75 0.15 75) !important;
}

.welcome-modal-content h2 {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.welcome-modal-content p {
  color: #a1a1aa !important;
  font-size: 0.95rem !important;
  margin-bottom: 2rem !important;
  line-height: 1.5 !important;
}

.welcome-modal-options {
  display: grid !important;
  grid-template-cols: 1fr 1fr !important;
  gap: 1rem !important;
}

.welcome-modal-options button {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e4e4e7 !important;
  padding: 1.25rem 1rem !important;
  border-radius: 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.welcome-modal-options button:hover {
  background-color: oklch(0.75 0.15 75) !important;
  color: #000 !important;
  border-color: oklch(0.75 0.15 75) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3) !important;
}



