/* Base & utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ef;
}
::-webkit-scrollbar-thumb {
    background: #8fb88f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5e9a5e;
}

/* Nav active state */
.nav.scrolled {
    box-shadow: 0 1px 20px rgba(22, 46, 22, 0.08);
}

/* Mobile menu transitions */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3d7a3d;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Process card */
.process-card {
    position: relative;
}
.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3d7a3d, #5e9a5e);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.process-card:hover::before {
    opacity: 1;
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float 4s ease-in-out 1s infinite;
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Button ripple */
button, a {
    cursor: pointer;
}
