/* Base & resets */
*, *::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;
}

img {
    display: block;
    max-width: 100%;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* Mobile menu */
.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line-1 {
    transform: translateY(5px) rotate(45deg);
}

.menu-line-2 {
    opacity: 0;
}

.menu-line-3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 6px;
}

#menu-btn.menu-active .menu-line-1 {
    transform: translateY(5px) rotate(45deg);
}

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

#menu-btn.menu-active .menu-line-3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 6px;
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu item hover */
.group:hover .font-sans.text-sm {
    color: #065f46;
}

/* Custom selection */
::selection {
    background: rgba(6, 95, 70, 0.15);
    color: #022216;
}

/* Smooth focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}
