/* Custom styles that complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #2D5A3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #264d34;
}

/* Navbar transition */
.nav-scrolled {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Form styles */
input, textarea, select {
    width: 100%;
    border-radius: 0.75rem;
    border: 2px solid #EDE5D8;
    padding: 0.75rem 1rem;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    font-size: 1rem;
    color: #193422;
    background: #FDFCFA;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2D5A3D;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #a5ccaa;
}

/* Success message */
.form-success {
    display: none;
    background: #eaf4ec;
    border: 2px solid #a5ccaa;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form-success.show {
    display: block;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
