/* css/onyx-public.css - KENNEDY MOTORS LUMINOUS STYLE */

:root {
    /* Brand Colors Extracted from Logo */
    --km-blue: #2CA5E0;
    --km-blue-dark: #1A5F8A;
    --km-red: #D91C5C;
    --km-red-dark: #A01242;

    /* Futuristic Base - SILVER MODE */
    --bg-dark: #f0f2f5;
    /* Premium Silver/White Background */
    --bg-card: #ffffff;
    /* White cards for contrast against silver bg */
    --text-main: #111111;
    /* Dark Text */
    --text-muted: #555555;
    /* Grey Text */
    --border-glow: rgba(44, 165, 224, 0.8);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography Stronger for Light Mode */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #111;
    margin-top: 0;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header - White Glass */
.onyx-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #000;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.onyx-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--km-blue), var(--km-red));
}

.onyx-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    /* Solid Black Logo Text */
}

.onyx-nav a {
    color: #444;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.onyx-nav a:hover {
    color: var(--km-blue);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    align-items: center;
    justify-content: flex-start;
}

/* Gradient overlay - lighter for light mode */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-active {
    display: flex;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #000;
    padding-left: 10%;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: #444;
    border-left: 4px solid var(--km-red);
    padding-left: 15px;
}

.btn-hero {
    display: inline-block;
    background: var(--km-blue);
    color: white;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    /* Square/Tech Look */
    box-shadow: 0 5px 15px rgba(44, 165, 224, 0.3);
    transition: all 0.3s;
}

.btn-hero:hover {
    background: var(--km-blue-dark);
    transform: translateY(-2px);
}

/* Inventory Container */
.main-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 800;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--km-red);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-input {
    padding: 15px 25px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #000;
    width: 350px;
    font-family: inherit;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-btn {
    background-color: #000;
    color: #fff;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.car-tile {
    background-color: #fff;
    border: 1px solid #eee;
    /* Light border */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column !important;
    /* Force vertical layout (Image Top, Text Bottom) */
    justify-content: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    /* Ensure full height */
}

.car-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--km-blue);
}

.car-image-container {
    width: 100%;
    min-width: 100%;
    /* Force full width */
    height: 240px;
    background-color: #fce4ec;
    /* Debug pink (if visible, something is wrong) - But actually using light grey */
    background-color: #f1f3f5;
    overflow: hidden;
    position: relative;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.car-tile:hover .car-image {
    transform: scale(1.05);
}

.car-details {
    padding: 25px;
    background: #fff;
}

.car-year-model {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 5px;
}

.car-spec {
    font-size: 0.9rem;
    color: #666;
    /* Grey text */
    margin-bottom: 5px;
}

.car-price {
    font-size: 1.5rem;
    color: var(--km-blue);
    font-weight: 800;
    margin-top: 15px;
}

.tile-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: #000;
    border-bottom: 2px solid var(--km-red);
    padding-bottom: 2px;
}

/* Footer */
.onyx-footer {
    background-color: #f8f9fa;
    color: #555;
    padding: 60px 40px;
    margin-top: 100px;
    border-top: 1px solid #eee;
}

.footer-col h4 {
    color: #000;
    font-weight: 800;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Contact */
.contact-section-wrapper {
    background-color: #fff;
    padding: 80px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .onyx-nav {
        background-color: #fff;
        border-bottom: 2px solid var(--km-blue);
    }

    .onyx-nav a {
        color: #000;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}