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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

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

::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #022c22;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: none;
    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);
    }
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(2, 44, 34, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========== CUSTOM SELECT ARROW ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SMOOTH SCROLL OFFSET ========== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========== PRINT ========== */
@media print {
    #navbar, #mobile-menu, .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
