/* Configuração do Design System Dra. Tatiane Gomes - Lumina Elite Refinement */
:root {
    --brand-main: #C9A962;
    --brand-hover: #A68B4B;
    --brand-accent: #F5F0E6;
    --brand-dark: #121212;
    /* Suavizado de 0A0A0A */
    --brand-gray: #4B4B4B;
    --brand-light: #FDFBF7;
    --whatsapp-color: #25D366;
    --bg-color: #F4F2EE;
    /* Off-white mais editorial */
    --text-color: var(--brand-dark);
    --card-bg: #FFFFFF;
    --border-color: rgba(201, 169, 98, 0.08);
    /* Borda tonal */
    --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Proteção Anti-Cópia */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

a, button, input, textarea, [data-interactive="true"] {
    user-select: auto;
    pointer-events: auto;
}

body.dark-mode {
    --brand-main: #D4B673;
    /* Dourado levemente mais claro para vibrar no preto */
    --brand-hover: #E5C784;
    --brand-accent: #1A1A1A;
    --brand-dark: #FDFBF7;
    /* Texto principal fica claro */
    --brand-gray: #A0A0A0;
    /* Cinza para textos secundários */
    --brand-light: #000000;
    --bg-color: #000000;
    --text-color: #FDFBF7;
    --card-bg: #0A0A0A;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Noise Overlay Global */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* Forçar fundo preto na página inteira */
html.dark-mode,
body.dark-mode {
    background-color: #000000 !important;
}

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.6s var(--ease-premium), color 0.6s var(--ease-premium);
}

/* Tipografia Editorial */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

h1,
h2,
h3 {
    letter-spacing: -0.01em;
}

/* Micro-Tipografia Técnica */
.micro-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Glassmorphism Refinado */
.glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .glass {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}



/* Modal Styling */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cursor-zoom-in {
    cursor: zoom-in !important;
}

.modal-content {
    background: var(--brand-light);
    border-radius: 2rem;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    animation: modalIn 0.5s var(--ease-premium);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--brand-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s var(--ease-premium);
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Animations & Micro-interactions */
.hover-lift {
    transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
    position: relative;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(201, 169, 98, 0.2);
    border-color: var(--brand-main) !important;
}

/* Spotlight Effect */
.spotlight {
    position: relative;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--x, 50%) var(--y, 50%),
        rgba(201, 169, 98, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease-premium);
    pointer-events: none;
    z-index: 10;
}

.dark-mode .spotlight::before {
    background: radial-gradient(
        400px circle at var(--x, 50%) var(--y, 50%),
        rgba(212, 182, 115, 0.2),
        transparent 40%
    );
}

.spotlight:hover::before {
    opacity: 1;
}

/* Fade Up Entry */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse slower and more elegant */
@keyframes pulse-ring-luxury {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.2);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(201, 169, 98, 0);
    }

    100% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(201, 169, 98, 0);
    }
}

.pulse-custom-slow {
    animation: pulse-ring-luxury 4s var(--ease-premium) infinite;
}

/* Wrapper fixo para controles (Centralizado com o card) */
.fixed-controls-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 512px; /* max-w-lg */
    height: 0;
    z-index: 1000;
    pointer-events: none;
}

/* Theme Toggle Button Refinado */
.theme-toggle {
    position: absolute;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    pointer-events: auto;
    transition: transform 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
    backdrop-filter: blur(8px);
}

.theme-toggle.theme-toggle--hidden {
    transform: translateY(-100px);
    opacity: 0;
    pointer-events: none;
}

.theme-toggle:hover {
    transform: scale(1.05) rotate(12deg);
    border-color: var(--brand-main);
}

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--brand-main) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--brand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-main);
    opacity: 0.3;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--brand-main);
    border-radius: 10px;
    opacity: 0.5;
}

/* Dark mode shadow removals and refinement */
.dark-mode .shadow-2xl {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 182, 115, 0.03) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.dark-mode .shadow-xl,
.dark-mode .shadow-lg,
.dark-mode .shadow-md,
.dark-mode .shadow-sm {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8) !important;
}

.dark-mode body {
    background-color: #050505 !important;
    /* Ligeiramente mais claro que a coluna para dar contraste */
}

.dark-mode .bg-brand-light {
    background-color: #000000 !important;
    /* Coluna central totalmente preta */
}

.dark-mode .bg-white {
    background-color: var(--card-bg) !important;
}

.dark-mode .bg-brand-accent {
    background-color: rgba(212, 182, 115, 0.1) !important;
}

.dark-mode .border-brand-accent {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .border-zinc-100 {
    border-color: var(--border-color) !important;
}

/* Forçar legibilidade de textos secundários no Dark Mode */
.dark-mode .text-brand-gray {
    color: var(--brand-gray) !important;
}

.dark-mode .text-zinc-600 {
    color: #A0A0A0 !important;
}

.dark-mode .text-zinc-400 {
    color: #808080 !important;
}

.dark-mode .text-brand-dark {
    color: var(--brand-dark) !important;
}

/* Ajuste de seções pretas que ficam sólidas demais */
.dark-mode .bg-zinc-900,
.dark-mode .bg-zinc-800 {
    background-color: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Imagens em dark mode com leve filtro para não estourar brancos */
.dark-mode img {
    filter: brightness(0.9) contrast(1.1);
}

.dark-mode .filter.grayscale {
    filter: grayscale(1) invert(1) brightness(2) !important;
}

/* Horizontal Scroll for Reviews */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scrollReviews 60s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Infinite Scroll for Results Gallery */
@keyframes scrollResults {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-fast {
    display: flex;
    width: max-content;
    animation: scrollResults 20s linear infinite;
}

.animate-scroll-fast:hover {
    animation-play-state: paused;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-modalZoom {
    animation: modalZoom 0.4s var(--ease-premium);
}

/* ============================================================
   ANIMATED TICKER (Top Bar)
   ============================================================ */
.welcome-ticker {
    width: 100%;
    background: #ffffff;
    color: var(--brand-main);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 50;
    border-bottom: 2px solid var(--brand-main);
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    gap: 1.5rem;
    animation: ticker-anim 80s linear infinite;
    justify-content: center; /* Início centralizado */
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-items: center;
}

.ticker-content span {
    display: inline-block;
}

.ticker-content .separator {
    color: var(--brand-main);
    opacity: 0.4;
    font-weight: 300;
}

@keyframes ticker-anim {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.dark-mode .welcome-ticker {
    background: #111111;
    color: var(--brand-main);
    border-bottom: 1px solid var(--brand-main);
}

.dark-mode .welcome-ticker .separator {
    color: var(--brand-main);
    opacity: 0.4;
}

/* Music Animation */
@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(201, 169, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0); }
}

#music-toggle.playing {
    animation: pulse-music 2s infinite;
    border-color: var(--brand-main);
}

/* Ticker Animation for Welcome Bar */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

.welcome-ticker .separator {
    margin: 0 1.5rem;
    opacity: 0.3;
}

/* WhatsApp Floating Button */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Whatsapp message */
#whatsapp-message {
    width: 193px;
    margin-left: 0px;
    position: absolute;
    bottom: 75px; /* Ajustado para dar espaço à cauda */
    right: 0px;
    padding: 10px 24px 10px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #1a1a1b;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1002;
}

/* Ponta do balão (cauda) */
#whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: -1;
}

#whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dark-mode #whatsapp-message::after {
    border-color: rgba(255, 255, 255, 0.08);
}

.close-whatsapp-bubble {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    color: #000; /* Preto */
    cursor: pointer;
    font-size: 10px;
    padding: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8; /* Leve transparência mas visível */
}

.close-whatsapp-bubble:hover {
    color: #000;
    opacity: 1;
}

.dark-mode .whatsapp-message-bubble {
    background: rgba(18, 18, 18, 0.8);
    color: #e5e5e7;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dark-mode .close-whatsapp-bubble:hover {
    color: #fff;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

.whatsapp-float i {
    margin-top: 1px;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Notificação do WhatsApp */
.whatsapp-notify {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1003;
}

.whatsapp-notify.show {
    opacity: 1;
    transform: scale(1);
}

.dark-mode .whatsapp-notify {
    border-color: #000;
}

/* Forar siglas das avaliaes a serem brancas no Light Mode */
body.light-mode .bg-brand-main.\!text-white {
    color: #ffffff !important;
}
