/* Custom styles for Granados Autos */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c0b59e;
    border-radius: 3px;
}

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

/* Selection color */
::selection {
    background: #f5d5c8;
    color: #6f3626;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(7) { transition-delay: 0.3s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(192, 181, 158, 0.2);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-bottom-color: #d67d55 !important;
}

/* 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;
    }
}

/* Print styles */
@media print {
    .fixed,
    #mobileMenu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
