/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: calc(100% - 1rem);
}

/* Mobile menu link */
.mobile-link {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-link:hover {
    background-color: rgba(5, 150, 105, 0.08);
    color: #059669;
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    /* Default: fully visible, no animation needed */
}

/* Animation class applied by JS only — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate {
        animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    /* Stagger delays for grid items */
    .scroll-reveal.animate:nth-child(1) { animation-delay: 0ms; }
    .scroll-reveal.animate:nth-child(2) { animation-delay: 80ms; }
    .scroll-reveal.animate:nth-child(3) { animation-delay: 160ms; }
    .scroll-reveal.animate:nth-child(4) { animation-delay: 240ms; }
    .scroll-reveal.animate:nth-child(5) { animation-delay: 320ms; }
    .scroll-reveal.animate:nth-child(6) { animation-delay: 400ms; }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card bump on hover */
.card-bump {
    will-change: transform;
}
.card-bump:hover {
    transform: translateY(-4px);
}

/* Header shadow on scroll */
header.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Subtle gradient for hero image overlay (if needed) */
.hero-image-wrapper {
    position: relative;
}
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
</style>
