/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.75;
}

/* Scroll Reveal — progressive enhancement, hidden by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Navbar */
#navbar {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 79, 32, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(42, 79, 32, 0.06);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #6fa552;
}

/* Mobile menu button animation */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active #line2 {
    opacity: 0;
}

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

/* Form focus styles */
input:focus, textarea:focus {
    border-color: #356326 !important;
}

/* Selection */
::selection {
    background: #c5dca5;
    color: #1a3315;
}

/* Subtle transitions on links */
a {
    text-decoration: none;
}

/* Map container */
iframe {
    display: block;
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Remove default button styles */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #356326;
    outline-offset: 2px;
    border-radius: 4px;
}
