/* ===== Custom Styles for Shea's Auto LLC ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 28, 63, 0.08);
}

#navbar.scrolled .nav-link {
    color: #0f1c3f;
}

#navbar.scrolled .nav-link:hover {
    color: #d4a843;
}

/* ===== Hero floating cards ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

.card-float-1 {
    animation: float-slow 5s ease-in-out infinite;
}

.card-float-2 {
    animation: float-medium 4s ease-in-out infinite;
}

.card-float-3 {
    animation: float-fast 3.5s ease-in-out infinite;
}

.card-float-main {
    animation: float-slow 6s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

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

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

.mobile-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.mobile-link:hover {
    border-bottom-color: #f5db7e;
}

/* ===== Selection color ===== */
::selection {
    background: #d4a843;
    color: #0f1c3f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8ca0ce;
}

/* ===== Focus styles ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    .font-heading {
        font-size: 2.25rem;
    }

    .card-float-1,
    .card-float-2,
    .card-float-3 {
        display: none;
    }
}

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

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