/* Custom Styles for Used Car Sales Website */
/* BLACKBOXAI_DEBUG_UNIQUE_9f3c */

:root {
    --primary-color: #d4a017;
    --secondary-color: #24313f;
    --accent-color: #f7f3e8;
    --dark-color: #111827;
    --text-muted: #6b7280;
    --border-color: #ececec;
    --card-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    --hover-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
    --danger-color: #111827;
    --warning-color: #b87b00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background: linear-gradient(180deg, #fffdf8 0%, #f7f7f3 100%);
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.nav-link {
    font-weight: 600;
    transition: color 0.25s ease;
    color: var(--secondary-color) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.hero-section {
    color: white;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(212, 160, 23, 0.3) 100%),
        url('../images/branding/driveiqmotors%20logo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 220px 220px;
    animation: float 22s linear infinite;
    z-index: 0;
}

.hero-section .container,
.hero-section .search-box {
    position: relative;
    z-index: 1;
}

.hero-section .search-box {
    margin-top: 1.75rem;
    padding: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-120px) rotate(360deg); }
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.96;
    margin-bottom: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.search-box .form-control,
.search-box .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.8rem 0.95rem;
    background: #fff;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.search-box .btn-primary {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #e9bc47);
    border: none;
}

section.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.bg-light {
    background-color: #f8f8f4 !important;
}

.car-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: white;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.car-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

.car-image-wrapper {
    overflow: hidden;
    position: relative;
    height: 210px;
    border-radius: 0;
    background: linear-gradient(135deg, #f4f4f4, #ececec);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card:hover .card-img-top {
    transform: scale(1.04);
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(17, 24, 39, 0.9);
    color: white;
}

.car-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.about-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.car-detail-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: #f7f7f3;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.car-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

.detail-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.detail-thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.detail-spec {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    box-shadow: var(--card-shadow);
}

.detail-spec-value {
    color: var(--primary-color);
    font-weight: 800;
}

.btn-outline-primary,
.btn-primary,
.btn-outline-light {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #e4b84a);
    border-color: var(--primary-color);
    color: #111;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #c99512, var(--primary-color));
    border-color: #c99512;
    color: #111;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #111;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.bg-primary {
    background: linear-gradient(135deg, var(--secondary-color), #3b4a5d) !important;
}

.footer {
    background: #111827;
    color: #f3f4f6;
    padding: 3rem 0 2rem;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.scroll-btn.left {
    left: -12px;
}

.scroll-btn.right {
    right: -12px;
}

.scroll-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    padding-bottom: 0.5rem;
}

.scroll-inventory .car-card .car-image-wrapper {
    height: 220px;
}

.scroll-inventory .car-card .card-img-top {
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0 50px;
        min-height: auto;
        background-position: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        padding: 1rem;
    }

    .scroll-btn {
        display: none;
    }

    .scroll-inventory {
        grid-template-columns: 1fr;
    }

    .car-card .card-img-top {
        height: 190px;
    }

    .car-image-wrapper {
        height: 190px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 58px 0 42px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .search-box .btn-primary {
        width: 100%;
    }

    .d-flex.gap-3.justify-content-center {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-spec {
        padding: 1rem 0.5rem;
    }
}

@media (min-width: 992px) {
    .scroll-inventory {
        padding: 1rem 0 0.5rem;
        gap: 1.4rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0.5rem;
        scrollbar-width: thin;
    }

    .scroll-inventory .car-card {
        flex: 0 0 320px;
        scroll-snap-align: start;
    }
}

