/* ===== Custom Styles for Five Brothers Mechanic Shop ===== */

:root {
    --color-plum-50: #fdf2f8;
    --color-plum-100: #fce7f3;
    --color-plum-200: #fbcfe8;
    --color-plum-300: #f9a8d4;
    --color-plum-400: #f472b6;
    --color-plum-500: #4A235A;
    --color-plum-600: #3D1D4B;
    --color-plum-700: #2E1738;
    --color-plum-800: #1F1025;
    --color-plum-900: #120A15;
    --color-amber-350: #F5B041;
    --color-amber-450: #E8960A;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* ===== Selection ===== */
::selection {
    background: var(--color-amber-450);
    color: var(--color-plum-900);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-plum-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-plum-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-amber-450);
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (no JS progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Navbar glass effect on scroll */
    #navbar.scrolled {
        background: rgba(18, 10, 21, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }
    
    #navbar.scrolled .nav-link {
        color: rgba(253, 242, 248, 0.8);
    }
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(30px);
    }
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== Button focus states ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-amber-450);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Image aspect ratio fallback ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .service-card {
        opacity: 1;
        transform: none;
    }
}

/* ===== Mobile responsive ===== */
@media (max-width: 767px) {
    .font-heading {
        font-family: 'Outfit', sans-serif;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* ===== Print ===== */
@media print {
    #navbar, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
}
