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

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
#site-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

#site-header.scrolled .font-heading,
#site-header.scrolled span {
    color: #1B4332 !important;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

    .scroll-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.scroll-animate:nth-child(2) { transition-delay: 0.08s; }
.scroll-animate:nth-child(3) { transition-delay: 0.16s; }
.scroll-animate:nth-child(4) { transition-delay: 0.24s; }
.scroll-animate:nth-child(5) { transition-delay: 0.32s; }
.scroll-animate:nth-child(6) { transition-delay: 0.40s; }

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

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

/* ========== CUSTOM SELECT ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ========== NAV ACTIVE STATE ========== */
nav a.active {
    color: #287a48 !important;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #287a48;
    border-radius: 1px;
}

/* ========== SELECTION ========== */
::selection {
    background: #1B4332;
    color: #FAF9F6;
}
