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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F3EA;
}
::-webkit-scrollbar-thumb {
    background: #8fb89e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a56;
}

/* Selection */
::selection {
    background: #1B4332;
    color: #FDFAF6;
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#site-header.scrolled .font-serif {
    color: #1A1512;
}

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

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.2s ease;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

/* Scroll reveal base — progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d7a56;
    outline-offset: 2px;
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* Custom button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Print styles */
@media print {
    #site-header,
    #mobile-menu,
    #contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
