/* Custom styles — minimal, additive to Tailwind */

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #3d5a33;
    outline-offset: 2px;
}

/* Subtle selection color */
::selection {
    background-color: #c7d4bc;
    color: #11170d;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #c7d4bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0b78e;
}

/* Nav transition */
#nav {
    transition: box-shadow 0.3s ease;
}
#nav.scrolled {
    box-shadow: 0 1px 20px rgba(45, 72, 41, 0.06);
}

/* Hero text animation — only if JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    #hero h1 {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }
    #hero p {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
    }
    #hero .flex-col {
        animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
    }
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Select styling */
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='%233d5a33' stroke-width='2' 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;
}
