:root {
    --primary-red: #ef4444;
    --dark-slate: #0f172a;
    --footer-bg: #111111;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
}

body { 
    background-color: #f8fafc; 
    color: var(--dark-slate); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* --- Navigation (Final Mobile-Friendly Version) --- */
.sticky-nav {
    position: sticky; 
    top: 0; 
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 80px;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    font-style: italic; 
}

.logo a { text-decoration: none; color: inherit; }
.logo span { color: var(--primary-red); }

/* Desktop Navigation */
.nav-links { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
}

.nav-links a { 
    text-decoration: none; 
    color: #475569; 
    font-weight: 700; 
    font-size: 0.8rem; 
    letter-spacing: 0.5px;
    transition: var(--transition); 
}

.nav-links a:hover { color: var(--primary-red); }

/* Hamburger Icon */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-slate);
    transition: var(--transition);
}

/* --- Perfect Hero Slider --- */
.hero-slider {
    position: relative; 
    height: 85vh;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
    background-color: var(--dark-slate);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/images/slider1.jpg');
    transition: background-image 1.2s ease-in-out;
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    max-width: 800px; 
    padding: 0 20px; 
}

/* --- Parts Inventory Grid --- */
#resultsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.part-card {
    background: white; 
    padding: 20px; 
    border-radius: 12px;
    border: 1px solid #e2e8f0; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    transition: var(--transition);
}

.part-card:hover { 
    border-color: var(--primary-red); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
}

/* --- Info Sections --- */
.info-section { 
    padding: 80px 5%; 
    background: white; 
    border-top: 1px solid #f1f5f9; 
}

.info-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 50px; 
}

.info-card h2 { 
    color: var(--primary-red); 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    font-weight: 900; 
    border-left: 4px solid var(--primary-red); 
    padding-left: 15px; 
}

/* --- Floating Hub --- */
.floating-hub { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 2000; 
}

.float-btn {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: white; font-size: 1.5rem; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition); text-decoration: none;
}

.float-btn:hover { transform: translateY(-5px) scale(1.1); }
.bg-whatsapp { background-color: #25d366; }
.bg-call { background-color: var(--primary-red); }

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 80px 5% 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-red) !important; padding-left: 5px; }

.footer-socials { display: flex; gap: 15px; margin-top: 25px; }
.social-icon {
    width: 45px; height: 45px;
    border: 1px solid #334155;
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center;
    color: #ffffff; text-decoration: none; transition: var(--transition);
}

.social-icon:hover { 
    background: var(--primary-red); 
    border-color: var(--primary-red); 
}

/* --- Mobile Media Queries (The "Menu Fix") --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show bars on mobile */
    }

    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Right below the nav height */
        left: 0;
        width: 100%;
        background: white;
        padding: 30px 0;
        text-align: center;
        border-bottom: 3px solid var(--primary-red);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 25px;
    }

    /* JavaScript will toggle this class */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem; /* Larger font for thumbs */
        display: block;
        width: 100%;
    }

    .hero-slider h1 { font-size: 2.5rem; }
    .footer-container { flex-direction: column; }
}

/* --- Utilities --- */
.hidden { display: none !important; }