/* Custom styles and overrides */

:root {
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 29, 74, 0.08);
}

.navbar-scrolled .font-serif {
    color: #0f1d4a !important;
}

.navbar-scrolled a:not([class*="bg-"]) {
    color: #1e3a8a !important;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure scroll-revealed content is visible by default for no-JS users */
@supports not (animation: reveal 1s) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #bac8ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #91a7ff;
}

/* Selection color */
::selection {
    background-color: #bac8ff;
    color: #0f1d4a;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #4dd9b8;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form, button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
