/* Custom styles for De La Tire Shop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #7f1d34;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1e3b;
}

/* Selection color */
::selection {
    background: #d44566;
    color: #faf8f5;
}

/* Hero image shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Subtle pulse for CTA */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Reduced motion preference */
@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;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 20, 18, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Service card hover lift */
.service-card-hover:hover {
    transform: translateY(-4px);
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"] {
    opacity: 0;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Playfair Display italics fix */
.font-serif em {
    font-style: italic;
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-110 {
        transform: scale(1);
    }
    .group:hover .group-hover\\:rotate-3 {
        transform: rotate(0deg);
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .cta-banner {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
