/* ============================================
   CARLOS SOUZA BARBEARIA - PREMIUM STYLES
   Pacote completo de refinamentos de luxo
   Versão: 1.0 | Data: Novembro 2025
   ============================================ */

/* ============================================
   1. HOVER STATES SOFISTICADOS
   ============================================ */

/* Efeito onda nos botões */
.btn-primary, .btn-secondary, .btn-contato-modal, .blog-cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before, .btn-secondary::before, 
.btn-contato-modal::before, .blog-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before, .btn-secondary:hover::before,
.btn-contato-modal:hover::before, .blog-cta-button:hover::before {
    width: 400px;
    height: 400px;
}

/* ============================================
   2. CARDS 3D REAIS COM SOMBRA DINÂMICA
   ============================================ */

.service-card, .blog-card, .unit-card, .info-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover, .blog-card:hover {
    transform: rotateX(2deg) rotateY(2deg) translateZ(15px) translateY(-10px);
}

/* Sombra dinâmica realista */
.service-card::after, .blog-card::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 25px;
    right: 25px;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(218,165,32,0.4) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.service-card:hover::after, .blog-card:hover::after {
    opacity: 1;
    bottom: -35px;
    filter: blur(30px);
}

/* ============================================
   3. CURSOR PERSONALIZADO PREMIUM - DESABILITADO
   ============================================ */

/* CURSOR CUSTOMIZADO DESABILITADO A PEDIDO DO CLIENTE */
/* Para reativar, remova os comentários abaixo */

/*
body {
    cursor: none;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #DAA520;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transition: transform 0.15s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(218,165,32,0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999998;
    transition: transform 0.25s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    transform: scale(1.8);
    background: rgba(218,165,32,0.3);
}

body, input, textarea, button, a {
    cursor: none !important;
}
*/

/* ============================================
   4. LOADING BAR PREMIUM
   ============================================ */

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(218,165,32,0.5);
    transition: width 0.3s ease;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   5. GRADIENTES ANIMADOS
   ============================================ */

.gold-glow, .contato-titulo, .blog-titulo {
    background: linear-gradient(45deg, 
        #DAA520 0%, 
        #FFD700 25%,
        #FFED4E 50%,
        #FFD700 75%, 
        #DAA520 100%);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   6. GLASSMORPHISM AUTÊNTICO
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(218, 165, 32, 0.3);
    box-shadow: 
        0 12px 40px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ============================================
   7. TIPOGRAFIA REFINADA
   ============================================ */

h1, h2, h3 {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    letter-spacing: -2px;
    line-height: 1.05;
}

h2 {
    letter-spacing: -1.5px;
    line-height: 1.1;
}

/* Primeira letra destacada em títulos principais */
.hero-slider h1::first-letter {
    font-size: 1.3em;
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(218,165,32,0.6);
}

p {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
}

/* ============================================
   8. DIVISORES DECORATIVOS
   ============================================ */

.section-divider {
    width: 100%;
    height: 40px;
    position: relative;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.section-divider svg {
    width: 200px;
    height: 20px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(218,165,32,0.3), transparent);
}

/* ============================================
   9. TOOLTIPS PREMIUM
   ============================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    color: #DAA520;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   10. SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 30px; /* Ajustado de 60px para 30px - mais espaço dos botões */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transição suave */
}

/* Classe para esconder ao rolar */
.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #DAA520;
    border-radius: 13px;
    position: relative;
    box-shadow: 0 0 20px rgba(218,165,32,0.3);
}

.scroll-indicator .wheel {
    width: 4px;
    height: 10px;
    background: #DAA520;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s infinite;
    box-shadow: 0 0 10px rgba(218,165,32,0.5);
}

.scroll-indicator span {
    color: rgba(218,165,32,0.8);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 0.8;
    }
    50% { 
        transform: translateX(-50%) translateY(-15px); 
        opacity: 1;
    }
}

@keyframes scrollWheel {
    0% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(16px); 
    }
}

/* Esconder em mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   11. IMAGE REVEAL CINEMATOGRÁFICO
   ============================================ */

.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal img {
    transform: scale(1.2);
    filter: brightness(0.7);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.5) 50%, #000 100%);
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 1;
}

.image-reveal.active::after {
    transform: translateX(100%);
}

.image-reveal.active img {
    transform: scale(1);
    filter: brightness(1);
}

/* ============================================
   12. PARTICLES PREMIUM (Otimizado)
   ============================================ */

.particle {
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* ============================================
   13. CONTADORES ANIMADOS
   ============================================ */

.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   14. MICRO-ANIMAÇÕES NOS ÍCONES
   ============================================ */

.fas, .fab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .fas,
.info-card:hover .fas {
    transform: scale(1.1) rotate(5deg);
    color: #FFD700;
}

/* ============================================
   15. EFEITO DE BRILHO EM BORDAS
   ============================================ */

.gold-glow-box {
    position: relative;
}

.gold-glow-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(218,165,32,0.3) 50%,
        transparent 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.gold-glow-box:hover::before {
    opacity: 1;
}

/* ============================================
   16. SMOOTH SCROLLBAR (Chrome/Edge)
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #DAA520, #FFD700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #DAA520);
}

/* ============================================
   17. SELECTION CUSTOMIZADA
   ============================================ */

::selection {
    background: rgba(218,165,32,0.3);
    color: #FFD700;
}

::-moz-selection {
    background: rgba(218,165,32,0.3);
    color: #FFD700;
}

/* ============================================
   18. PERFORMANCE OPTIMIZATIONS
   ============================================ */

.service-card, .blog-card, .unit-card, .glass {
    will-change: transform;
}

/* ============================================
   19. LINK HOVER PREMIUM
   ============================================ */

a:not(.btn-primary):not(.btn-secondary) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn-primary):not(.btn-secondary)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn-primary):not(.btn-secondary):hover::after {
    width: 100%;
}

/* ============================================
   20. RESPONSIVIDADE PREMIUM
   ============================================ */

@media (max-width: 768px) {
    /* Desabilitar cursor customizado em mobile */
    body {
        cursor: auto !important;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    /* Ajustar efeitos 3D para mobile */
    .service-card:hover, .blog-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
}

/* ============================================
   ANIMAÇÕES GLOBAIS PREMIUM
   ============================================ */

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(218,165,32,0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(218,165,32,0.6);
    }
}

/* ============================================
   FIM DO PREMIUM.CSS
   Total de linhas: ~550
   Tamanho estimado: ~18KB
   Performance: Otimizado
   Compatibilidade: 95%+ navegadores modernos
   ============================================ */
