/* === CSS VARIABLES (Dark Mode Default) === */
:root {
    --bg-dark: #020617; 
    --bg-section: #0f172a; 
    --bg-blue-dark: #1e3a8a; 
    --text-main: #f8fafc; 
    --text-muted: #94a3b8; 
    --accent-gold: #fbbf24; 
    --accent-gold-hover: #f59e0b; 
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --form-bg: var(--bg-dark);
    --form-border: #1e293b;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* === LIGHT MODE VARIABLES === */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-blue-dark: #dbeafe;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --form-bg: #ffffff;
    --form-border: #cbd5e1;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(90deg, rgba(248,250,252,1) 0%, rgba(241,245,249,0.8) 50%, rgba(219,234,254,0.6) 100%);
}

[data-theme="light"] .coverage {
    background-color: var(--bg-section);
}

[data-theme="light"] .coverage-subtitle {
    color: var(--text-muted) !important;
}

[data-theme="light"] .pill {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

/* === LOADER === */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Class for Centering Blocks */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-gold-hover);
    color: #020617;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(128, 128, 128, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* === ANIMATIONS (Scroll Reveal) === */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === SCROLL UP BUTTON === */
#scroll-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--accent-gold);
    color: #020617;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#scroll-up-btn.show {
    opacity: 1;
    visibility: visible;
}

#scroll-up-btn:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-4px);
}

/* === NAVBAR === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    transition: background 0.3s ease;
}

[data-theme="light"] nav {
    background: rgba(248, 250, 252, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: var(--accent-gold); }

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-gold);
    transition: var(--transition);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover { color: var(--accent-gold); }

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(30, 58, 138, 0.4) 100%);
    transition: background 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span { color: var(--accent-gold); }

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === ABOUT SECTION === */
.about {
    padding: 100px 0;
    background-color: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-img { position: relative; }
.about-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(37, 99, 235, 0.2), rgba(245, 158, 11, 0.2));
    filter: blur(40px);
    z-index: -1;
}

@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* === SERVICES SECTION === */
.services { padding: 100px 0; }
.services .container { text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-top: 3rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-5px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === INVENTORY / CATEGORIES SECTION === */
.vehicles {
    padding: 100px 0;
    background-color: var(--bg-section);
}

.vehicles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.car-card:hover { border-color: rgba(255, 255, 255, 0.3); }

.car-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.car-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-gold-hover);
    color: #020617;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.car-info { padding: 1.5rem; }
.car-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-specs div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-specs i { color: #3b82f6; }

.btn-full {
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--accent-gold);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-full:hover {
    background: var(--accent-gold-hover);
    color: #020617;
}

/* === PROCESS & WHY US === */
.process { padding: 100px 0; }
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.why-us-box {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main); 
}

.check-item i {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.timeline {
    border-left: 2px solid var(--glass-border); 
    padding-left: 2rem;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item { position: relative; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px; 
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

@media (max-width: 968px) {
    .process-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* === MAPS & COVERAGE === */
.coverage {
    padding: 100px 0;
    background-color: var(--bg-blue-dark);
    position: relative;
    text-align: center;
    transition: background 0.3s ease;
}

.sourcing-hubs {
    background-color: var(--bg-section);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--glass-border);
}

.sourcing-hubs .pill {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
}

.coverage-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pill {
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #dbeafe; 
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* === TRUST BADGES === */
.trust {
    padding: 3rem 0;
    background: var(--bg-section);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.badges:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* === CONTACT SECTION === */
.contact { padding: 100px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-section);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-box:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.icon-blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.contact-details span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-details strong {
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-form {
    background: var(--bg-section);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

@media (max-width: 968px) {
    .contact-grid, .form-row { grid-template-columns: 1fr; }
}

/* === FOOTER === */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background-color: var(--bg-section);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    /* Hide desktop navigation links */
    .nav-links { 
        display: none; 
    }
    
    /* Shrink logo text and image for mobile */
    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }
    .brand-logo {
        height: 32px; 
    }

    /* Make the Navbar Get Quote button compact */
    .nav-container .btn-primary {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap; /* Stops the text from stacking on top of itself */
    }

    /* Adjust main layout grids for mobile */
    .about-grid, 
    .process-grid, 
    .contact-grid, 
    .form-row,
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
}

/* Add an extra breakpoint for very small phones (like iPhone SE) */
@media (max-width: 400px) {
    .logo {
        font-size: 0.95rem;
    }
    .nav-container .btn-primary {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}