/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(13, 30, 63, 0.08);
}

nav.scrolled .font-serif {
    color: #0d1e3f !important;
}

nav.scrolled a:not(.bg-gold-500):not(.bg-navy-900) {
    color: #1e3772 !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #b3c1df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da2cf;
}

/* Selection color */
::selection {
    background: #fde047;
    color: #0d1e3f;
}
</style>
