/* ===== CUSTOM STYLES ===== */

:root {
    --plum-950: #0d0520;
    --plum-900: #1a0a3c;
    --plum-800: #3b1764;
    --plum-700: #5B2C6F;
    --plum-600: #7c3aed;
    --plum-200: #e9d5ff;
    --plum-100: #f3e8ff;
    --amber-500: #F59E0B;
    --amber-400: #FBBF24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(13, 5, 32, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-oil {
    animation-delay: 0s;
}

.card-brakes {
    animation-delay: -2s;
}

.card-trusted {
    animation-delay: -4s;
}

.card-hours {
    animation-delay: -1s;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Default visible state for progressive enhancement */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* Animate on scroll via JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-500), var(--plum-600));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== REVIEW CARDS ===== */
.review-card {
    position: relative;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(91, 44, 111, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    h1 {
        font-size: 2.75rem !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 640px) {
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--plum-100);
}
