/* ============================================================
   Unique Consultoria — Design System "Premium Financial Authority"
   Estilos compartilhados entre todas as páginas.
   A configuração de tokens do Tailwind fica em assets/tailwind-config.js
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A;
    color: #e5e2e1;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar refinada ---- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* ---- Barra de progresso de leitura ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #d4af37, #f2ca50);
    z-index: 100;
}

/* ---- Ícones Material Symbols ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---- Navegação de vidro (frosted obsidian) ---- */
.glass-nav {
    background: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.glass-nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.9);
}

/* ---- Link de navegação com sublinhado animado ---- */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #f2ca50;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after {
    width: 100%;
}

/* ---- Bordas douradas ---- */
.gold-border,
.gold-border-subtle {
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.gold-border-active {
    border: 1px solid rgba(212, 175, 55, 0.6);
}
.gold-border-focus:focus-within {
    border-color: rgba(212, 175, 55, 0.8);
}

/* ---- Gradientes e brilhos ---- */
.hero-gradient {
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 30%, rgba(10, 10, 10, 0.2) 100%);
}
.metallic-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f2ca50 50%, #d4af37 100%);
}
.text-glow {
    text-shadow: 0 0 15px rgba(242, 202, 80, 0.3);
}
.gold-gradient-text,
.text-gradient-gold {
    background: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Transição padrão ---- */
.transition-standard {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Cards de expertise (home / sobre) ---- */
.expertise-card:hover {
    border-color: #D4AF37;
    transform: translateY(-4px);
}

/* ---- Glass card (serviços) ---- */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 202, 80, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-card:hover {
    border-color: rgba(242, 202, 80, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

/* ---- Bento grid (serviços) ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* ---- Sublinhado dourado animado ---- */
.gold-border-underline {
    position: relative;
}
.gold-border-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 20%;
    height: 1px;
    background: #f2ca50;
    transition: width 0.3s ease;
}
.gold-border-underline:hover::after {
    width: 100%;
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Botão dourado com brilho "high-gloss" ---- */
.btn-gold {
    position: relative;
    overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-gold:hover::after {
    left: 130%;
}

/* ---- Spotlight dourado que segue o mouse nos cards ---- */
.spotlight {
    position: relative;
}
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 202, 80, 0.08), transparent 60%);
    z-index: 1;
}
.spotlight:hover::before {
    opacity: 1;
}

/* ---- Divisor dourado degradê ---- */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* ---- Entrada cinematográfica do hero ---- */
.fade-up {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fade-up-d1 { animation-delay: 0.12s; }
.fade-up-d2 { animation-delay: 0.26s; }
.fade-up-d3 { animation-delay: 0.40s; }
.fade-up-d4 { animation-delay: 0.54s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Botão voltar ao topo ---- */
#back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f2ca50;
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.4s ease;
}
#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover {
    background: #d4af37;
    color: #0a0a0a;
}

/* ---- Menu mobile ---- */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 420px;
    opacity: 1;
}
