/**
 * AutoGesta Premium Public Website
 * Modern Premium Light-Mode Design System
 */

/* Import Google Font Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-font: 'Outfit', sans-serif;
    
    /* Color Palette - Navy & Slate Blue (Strictly NO Purple / Violet) */
    --color-navy-dark: #0f172a;      /* Slate 900 - Base text and dark sections */
    --color-navy-medium: #1e293b;    /* Slate 800 */
    --color-navy-light: #334155;     /* Slate 700 */
    
    --color-blue-tech: #1d4ed8;      /* Royal Blue 700 - Brand primary */
    --color-blue-hover: #1e40af;     /* Royal Blue 800 - Interaction state */
    --color-blue-light: #eff6ff;     /* Royal Blue 50 - Alert and pill backgrounds */
    --color-accent-amber: #b45309;   /* Amber 700 - Soft premium highlights (certified cars etc.) */
    
    --color-bg-light: #f8fafc;       /* Slate 50 - Secondary backgrounds */
    --color-bg-white: #ffffff;       /* Pure white - Primary background */
    --color-border: #e2e8f0;         /* Slate 200 - Clean soft dividers */
    --color-border-hover: #cbd5e1;   /* Slate 300 */
    
    --color-text-dark: #0f172a;
    --color-text-gray: #64748b;      /* Slate 500 */
    --color-text-light: #94a3b8;     /* Slate 400 */
    
    /* Grid and Shadow tokens */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-premium: 16px;
    --border-radius-sm: 8px;
}

body {
    font-family: var(--primary-font);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-navy-dark);
    letter-spacing: -0.025em;
}

p {
    color: var(--color-text-gray);
    line-height: 1.6;
}

/* Custom Premium Navbar */
.premium-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.premium-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-navy-dark) !important;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.premium-navbar .navbar-brand span {
    color: var(--color-blue-tech);
}

.premium-navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-navy-light) !important;
    padding: 0.6rem 1.1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.premium-navbar .nav-link:hover,
.premium-navbar .nav-item.active .nav-link {
    color: var(--color-blue-tech) !important;
    background-color: var(--color-blue-light);
}

.premium-navbar .btn-contact-nav {
    font-weight: 600;
    background-color: var(--color-navy-dark);
    color: var(--color-bg-white) !important;
    padding: 0.6rem 1.3rem !important;
    border-radius: var(--border-radius-sm);
    border: none;
    transition: var(--transition-smooth);
}

.premium-navbar .btn-contact-nav:hover {
    background-color: var(--color-blue-tech);
    transform: translateY(-1px);
}

/* Photographic Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 100px 0;
    background-color: var(--color-bg-light);
    background-image: radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(100, 116, 139, 0.03) 0px, transparent 50%);
    overflow: hidden;
}

.hero-img-container {
    position: relative;
    border-radius: var(--border-radius-premium);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-img-container:hover img {
    transform: scale(1.03);
}

/* Quick Search Card */
.search-card-container {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-premium);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium);
    padding: 24px;
}

/* Vehicle Grid Cards */
.vehicle-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-premium);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: var(--color-border-hover);
}

.vehicle-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.vehicle-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover .vehicle-card-img img {
    transform: scale(1.05);
}

.vehicle-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--color-bg-white);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-card-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-blue-tech);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

.vehicle-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.vehicle-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vehicle-card-spec-item {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-gray);
    background-color: var(--color-bg-light);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vehicle-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-navy-dark);
}

.vehicle-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue-tech);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.vehicle-card-link:hover {
    color: var(--color-blue-hover);
}

/* Sidebar filter card */
.filter-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-premium);
    border: 1px solid var(--color-border);
    padding: 24px;
    position: sticky;
    top: 100px;
}

/* Service cards */
.service-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-premium);
    padding: 32px;
    transition: var(--transition-smooth);
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--color-blue-light);
    color: var(--color-blue-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-blue-tech);
    color: var(--color-bg-white);
}

/* Vehicle Detail Page styling */
.detail-main-img-box {
    border-radius: var(--border-radius-premium);
    overflow: hidden;
    background-color: var(--color-bg-light);
    height: 500px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.detail-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumb-gallery {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.detail-thumb-item {
    width: 90px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.detail-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumb-item.active,
.detail-thumb-item:hover {
    border-color: var(--color-blue-tech);
}

.detail-price-badge {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-navy-dark);
}

.spec-grid-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-premium);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.spec-grid-item {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.spec-grid-item:last-child {
    border-bottom: none;
}

.spec-grid-label {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    font-weight: 500;
}

.spec-grid-value {
    font-size: 0.95rem;
    color: var(--color-navy-dark);
    font-weight: 700;
    text-align: right;
}

/* Clean forms styling */
.form-control, .form-select {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border-color: var(--color-border);
    color: var(--color-navy-dark);
    font-family: var(--primary-font);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
    border-color: var(--color-blue-tech);
}

/* Custom interactive inputs (like Range slider) */
.form-range::-webkit-slider-thumb {
    background: var(--color-blue-tech);
}

.form-range::-webkit-slider-thumb:active {
    background: var(--color-blue-hover);
}

/* Premium Outlined & Filled Buttons */
.btn-premium-primary {
    background-color: var(--color-blue-tech);
    color: var(--color-bg-white);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    transition: var(--transition-smooth);
}

.btn-premium-primary:hover {
    background-color: var(--color-blue-hover);
    color: var(--color-bg-white);
    transform: translateY(-1px);
}

.btn-premium-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-navy-dark);
    border: 1px solid var(--color-border);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.btn-premium-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-border-hover);
    color: var(--color-navy-dark);
    transform: translateY(-1px);
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--border-radius-premium);
    overflow: hidden;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--color-bg-white);
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: #cbd5e1;
}

/* Animations helper classes */
.anim-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Section dividers styling */
.section-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-blue-tech);
    border-radius: 2px;
}

.section-title-center {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-blue-tech);
    border-radius: 2px;
}

/* Spectacular 100% Photographic Slideshow Hero Section */
.hero-section {
    position: relative;
    padding: 0;
    height: 650px;
    background-color: var(--color-navy-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    animation: slideSequence 15s infinite ease-in-out;
}

/* 3 Photo Timing Schedule */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-slide:nth-child(2) {
    animation-delay: 5s;
}
.hero-slide:nth-child(3) {
    animation-delay: 10s;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.hero-slideshow-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #ffffff;
}

/* Ken Burns Subtle Zoom & Fade Animation Sequence */
@keyframes slideSequence {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    4% {
        opacity: 1;
    }
    33.33% {
        opacity: 1;
    }
    37.33% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 0;
    }
}

/* Glassmorphic content card overlay inside the hero section for ultimate premium look */
.hero-glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-slideshow-content h6 {
    color: #eff6ff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-slideshow-content h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-slideshow-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Brands selection gallery custom styling */
.brand-logo-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition-smooth);
}

.brand-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue-tech);
}

.brand-logo-card img {
    max-height: 50px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.brand-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Category Card Styling System */
.category-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-premium);
    padding: 30px 20px;
    transition: var(--transition-smooth);
    height: 100%;
    display: block;
}

.category-card:hover {
    border-color: var(--color-blue-tech);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--color-blue-light);
    color: var(--color-blue-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon-box {
    background-color: var(--color-blue-tech);
    color: var(--color-bg-white);
}


