/* ==========================================
   WealthNexus - Custom & Enhancement Styles
   ========================================== */

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Material Symbols Rendering Optimization */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Color Utility Fallbacks matching tailwind config */
.custom-emerald { color: #10B981; }
.bg-custom-emerald { background-color: #10B981; }
.border-custom-emerald { border-color: #10B981; }

.custom-navy { color: #0F172A; }
.bg-custom-navy { background-color: #0F172A; }
.border-custom-navy { border-color: #0F172A; }

/* Sticky Navbar Scroll State Transitions */
#main-header {
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    height: 4.5rem; /* 72px */
}

.dark #main-header.scrolled {
    background-color: rgba(45, 49, 51, 0.95) !important;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Subtle Professional Fade-In Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Interactive Selection States for Calendar & Booking */
.format-btn.active, .slot-btn.active {
    border-color: #10B981 !important;
    border-width: 2px !important;
    background-color: #F0FDF4 !important;
    color: #0F172A !important;
    font-weight: 700 !important;
}

.day-btn.selected {
    background-color: #10B981 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.day-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Modal Window Styles */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f9fb;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
