/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

/* ========== NAVIGATION ========== */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.0);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(250, 249, 246, 0.97);
    border-bottom-color: rgba(26, 86, 50, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a5632;
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* ========== MOBILE NAV ========== */
.mobile-nav-link {
    display: block;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #1a5632;
    outline-offset: 2px;
}

/* ========== SELECTION ========== */
::selection {
    background: #a8cfb8;
    color: #0a2415;
}

/* ========== 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);
    }
}

/* ========== BUTTON RIPPLE ========== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:hover::after {
    opacity: 1;
}

/* ========== INPUT AUTOFILL ========== */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f3ee inset !important;
    -webkit-text-fill-color: #0a2415 !important;
}
