/* Base & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 163, 74, 0.08);
}

/* Smooth focus styles */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Custom selection color */
::selection {
    background: #bbf7d0;
    color: #052e16;
}

/* Image loading placeholder */
img {
    background-color: #f0fdf4;
}

/* Button hover micro-interaction */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle pulse for emergency badge */
@keyframes pulse-emerald {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }
}

/* Gradient text utility (if needed) */
.text-gradient {
    background: linear-gradient(135deg, #16a34a, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
