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

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

/* === Navbar === */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1a1a1a;
}

#navbar.scrolled .nav-subtext {
    color: #3d6e30;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Service Card Hover === */
.service-card {
    will-change: transform, box-shadow;
}

/* === Form Focus States === */
input:focus,
textarea:focus {
    outline: none;
}

/* === Mobile Menu Animation === */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* === Custom Selection === */
::selection {
    background: #c5dfbd;
    color: #1a3a14;
}

/* === Smooth transitions for all interactive elements === */
a, button {
    transition: all 0.2s ease;
}

/* === Print styles === */
@media print {
    nav, #contact-form, #form-success {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
