/* Custom Styles for Wiles Counseling & Assessments */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(45, 55, 72, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #FFF8F5;
}

::-webkit-scrollbar-thumb {
    background: #FF7F50;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF9F80;
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #FF7F50 !important;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease;
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-brand-charcoal {
        background-color: #000 !important;
    }
    
    .text-brand-charcoal {
        color: #000 !important;
    }
}

/* Accessibility - Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #FF7F50;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success State */
.success {
    animation: fadeIn 0.5s ease-out;
}
