/* Custom Styles & Utilities */

:root {
    --color-midnight-blue: #0f1c3f;
    --color-mint: #4ade80;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-600: #57534e;
}

/* Tailwind Config Extension (handled via inline script, but custom overrides here) */
.bg-midnight-blue {
    background-color: var(--color-midnight-blue);
}

.text-midnight-blue {
    color: var(--color-midnight-blue);
}

.bg-emerald-700 {
    background-color: #047857;
}

.text-emerald-700 {
    color: #047857;
}

/* Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Initial state handled by animation */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 1; /* Default visible for no-JS */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-on-scroll.delay-100 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-200 { transition-delay: 0.2s; }

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

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

/* Subtle hover effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-mint);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--color-mint);
    outline-offset: 2px;
}
