/* Custom styles - minimal, additive to Tailwind */

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

/* Base font settings */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Thin line decoration under section titles */
.line-decoration {
    position: relative;
    display: inline-block;
}

.line-decoration::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: #047857;
    margin-top: 16px;
}

.line-decoration.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.97) !important;
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.15);
    color: #065F46;
}

/* Subtle focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
