/* ============================================
   Rios Income Tax — Custom Styles
   ============================================ */

/* Base styles */
html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background-color: #d4754a;
    color: #ffffff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d8d3ca;
    border-radius: 4px;
}

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

/* Navbar transitions */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(160, 149, 136, 0.15);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

#mobileMenu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu .mobile-link:nth-child(4) { animation-delay: 0.2s; }

/* Mobile menu button animation */
#mobileMenuBtn.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#mobileMenuBtn.active span:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card:hover svg {
    transform: scale(1.05);
}

.service-card svg {
    transition: transform 0.3s ease;
}

/* Process step animations */
.process-step {
    opacity: 1;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    background-color: #ffffff;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

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

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
