/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: rgb(6, 78, 59) !important;
}

.nav-scrolled .font-serif {
    color: rgb(6, 78, 59) !important;
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: color 0.2s;
}

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

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: rgb(6, 78, 59);
}

/* Scroll reveal base - content always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS adds the class */
.reveal-up.is-hidden,
.reveal-left.is-hidden,
.reveal-right.is-hidden {
    opacity: 0;
}

.reveal-up.is-hidden {
    transform: translateY(30px);
}

.reveal-left.is-hidden {
    transform: translateX(-30px);
}

.reveal-right.is-hidden {
    transform: translateX(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none !important;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(253, 249, 240);
}

::-webkit-scrollbar-thumb {
    background: rgb(167, 243, 208);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(110, 231, 183);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Image loading placeholder */
img {
    background-color: rgb(226, 232, 240);
}
