/* Custom styles and overrides */
:root {
    --navy-900: #102a38;
    --navy-800: #243b4c;
    --gold-400: #facc15;
    --gold-500: #eab308;
}

body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #102a38;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #243b4c;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Prevent layout shift on load */
.reveal {
    will-change: opacity, transform;
}

/* Ensure touch targets are large enough */
button, a {
    min-height: 44px;
    min-width: 44px;
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Animation performance */
.float-animation,
.card-hover {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .float-animation {
        animation: none;
    }
}
