/* Custom base styles and overrides */

html {
    scroll-behavior: smooth;
}

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

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 96px;
}

/* Custom selection color */
::selection {
    background-color: #059669;
    color: #FDFCF8;
}

/* Subtle image hover effect */
img {
    transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Hero animations - only for below-fold content, hero is visible by default */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Fallback: ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transparency transitions */
#navbar.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 47, 35, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #042F23;
}

#navbar.scrolled .nav-link {
    color: #57534e;
}

#navbar.scrolled .nav-link:hover {
    color: #059669;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Thin line accents */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #a7f3d0, transparent);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Menu item hover */
.border-emerald-100 {
    transition: border-color 0.3s ease;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}
