/* ========================================
   Kevin W. Latta — Wealth Management
   Custom Styles
======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #4ade80;
    color: #102a43;
}

/* ========================================
   Navbar scroll state
======================================== */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #102a43;
}

.navbar-scrolled .nav-logo-sub {
    color: #627d98;
}

/* ========================================
   Mobile menu
======================================== */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========================================
   Scroll reveal animations
   Progressive enhancement: content is
   visible by default; JS adds animation
======================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Form focus states
======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #4ade80 !important;
}

/* ========================================
   Custom scrollbar
======================================== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* ========================================
   Utility: subtle hover lift on cards
======================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
}
