/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

/* Selection */
::selection {
    background-color: #1a3c34;
    color: #faf8f4;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu Animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Hamburger Animation */
.menu-active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active #bar2 {
    opacity: 0;
}

.menu-active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .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; }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 248, 244, 0.97) !important;
    box-shadow: 0 1px 0 rgba(26, 60, 52, 0.08);
}

/* Image placeholder fallback */
img {
    image-rendering: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1a3c34;
    outline-offset: 2px;
    border-radius: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2e4d28;
}
