/* Custom styles for Memphis Autoplex */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8c2a2a, #c44d4d);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #742424, #a83636);
}

/* Selection color */
::selection {
    background: #f9e4e4;
    color: #8c2a2a;
}

/* Subtle pulse animation for CTA buttons */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.btn-primary:hover {
    animation: subtle-pulse 1s ease-in-out infinite;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(140, 42, 42, 0.1);
}

/* Loading state for buttons */
.btn-primary:active {
    transform: translateY(0);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .text-gradient {
        -webkit-text-fill-color: #8c2a2a;
        background: none;
    }
}

/* Reduced motion preferences */
@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 support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    
    .card-hover {
        border: 1px solid ButtonText;
    }
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-gradient {
        background: linear-gradient(135deg, #fdf2f2 0%, #ffe8ec 60%, #f9e4e4 100%);
    }
}
