/* Custom styles for CB Automotive LLC */

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(201, 152, 46, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

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

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

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a843, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d1527 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Select dropdown styling */
select option {
    background: #0d1527;
    color: #fff;
}

/* Subtle pulse animation for the gold dot */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: subtle-pulse 2s ease-in-out infinite;
}

/* Hover lift for service cards */
.group:hover .group-hover\:translate-y-1 {
    transform: translateY(-4px);
}

/* Map dark theme override */
iframe[title*="location"] {
    border-radius: 0 0 1rem 1rem;
}
