/* Custom styles for New Image Auto Sales */

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6a91;
}

/* Selection color */
::selection {
    background: #f9a3b8;
    color: #3d0614;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Form styles */
input, textarea {
    border: 1.5px solid #fce7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    color: #1f2937;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #a1183b;
    box-shadow: 0 0 0 3px rgba(161, 24, 59, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* Success message */
.form-success {
    background: linear-gradient(135deg, #fdf2f4, #fce7eb);
    border: 1px solid #f4a3b8;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

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

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(161, 24, 59, 0.12);
}
