/* ============================================================
    Distinctive Car Toyz — Master Stylesheet
    ============================================================ */

/* --- VARIABLES --- */
:root {
    --brand-green: #6bc1df; /* FULL CONVERSION TO SKY BLUE */
    --nav-bg: #24292c;
    --top-bar-bg: #1a1e20;
    --body-bg: #f4f7f9;
    --white: #ffffff;
    --text-dark: #24292c;
    --text-muted: #6c757d;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-med: 0 20px 50px rgba(0,0,0,0.1);
    --shadow-header: 0 2px 15px rgba(0,0,0,0.1);
    --radius-lg: 20px;
    --radius-md: 15px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}


/* --- BASE / RESET --- */
html, body {
    background-color: var(--body-bg);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}
body {
    padding-top: 135px;
}
.fw-800 { font-weight: 800; }


/* ============================================================
    PRELOADER
    ============================================================ */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.preloader-logo {
    max-width: 220px;
    animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
    0%   { transform: scale(0.95); opacity: 0.7; }
    50%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
.preloader-hidden {
    opacity: 0 !important;
    pointer-events: none;
}


/* ============================================================
    HEADER — FIXED WRAPPER
    ============================================================ */
.header-fixed-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: var(--shadow-header);
}


/* --- TOP BAR --- */
.top-bar {
    background: var(--top-bar-bg);
    color: #adb5bd;
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar i { color: var(--brand-green); margin-right: 5px; }
.top-bar a { color: inherit; text-decoration: none; }


/* --- NAVBAR --- */
.navbar {
    background: var(--nav-bg) !important;
    padding: 0;
    border-bottom: 3px solid var(--brand-green);
}
.logo-img {
    max-height: 55px;
    width: auto;
    margin: 12px 0;
}
.navbar-toggler { border: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}


/* --- DESKTOP MEGA-MENU --- */
@media (min-width: 992px) {
    .nav-link {
        color: rgba(255,255,255,0.9) !important;
        font-weight: 700;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 35px 15px !important;
        display: block;
    }
    .nav-link:hover { color: var(--brand-green) !important; }
    .nav-item.dropdown { position: static; }
    .mega-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        margin-top: 0;
        transition: opacity 0.2s ease-in-out, visibility 0.2s;
        background: var(--white);
        box-shadow: 0 40px 80px rgba(0,0,0,0.15);
        padding: 40px 0;
        z-index: 1000;
        pointer-events: none;
    }
    .nav-item.dropdown:hover .mega-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .cat-img-wrapper { height: 85px; }
    .service-showcase-img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        margin-bottom: 15px;
        border: 1px solid #eee;
        display: block;
    }
    .service-list:not(:last-child) { border-right: 1px solid #dee2e6; }
}


/* --- MOBILE SIDEBAR --- */
@media (max-width: 991px) {
    body { padding-top: 75px; }
    .top-bar { display: none !important; }
    .logo-img { max-height: 42px; }
    .offcanvas {
        background: var(--nav-bg) !important;
        border-left: 3px solid var(--brand-green);
        width: 320px !important;
    }
    .offcanvas .nav-link {
        color: white !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .cat-img-wrapper { height: 65px; }
    .mobile-contact-footer {
        margin-top: auto;
        padding: 20px 0;
        color: #adb5bd;
        font-size: 0.85rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-contact-footer i { color: var(--brand-green); margin-right: 8px; }
    .mobile-contact-footer a { color: var(--brand-green); text-decoration: none; font-weight: bold; }
    .mob-service-group { margin-bottom: 15px; }
    .mob-service-title {
        color: var(--brand-green);
        font-weight: 800;
        font-size: 0.7rem;
        letter-spacing: 1px;
        display: block;
        margin-bottom: 8px;
    }
    .mob-sub-link {
        color: var(--text-dark) !important;
        font-size: 0.85rem !important;
        padding: 6px 0 !important;
        border: none !important;
        text-decoration: none;
        display: block;
    }
}


/* --- CATEGORY BOXES --- */
.cat-box {
    text-align: center;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
    transition: var(--transition);
}
.cat-box:hover { transform: scale(1.05); }
.cat-img-wrapper {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cat-img-wrapper img { max-width: 100%; height: 100%; object-fit: contain; }
img[src*="van.png"] { transform: scale(1.18); }
.cat-name {
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dark);
}


/* --- SERVICE LINKS (mega-menu) --- */
.service-title {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--brand-green);
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}
.service-list a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 4px 0;
    transition: var(--transition);
}
.service-list a:hover {
    color: var(--brand-green);
    padding-left: 5px;
}


/* --- BUTTONS --- */
.btn-brand {
    background: var(--brand-green) !important;
    border: none;
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-brand:hover {
    background: #4daecd !important; /* Darker Sky Blue */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,193,223,0.3);
}


/* ============================================================
    HERO SECTION
    ============================================================ */
.hero-wrapper {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: #1a1e20;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(75deg, rgba(26,30,32,1) 30%, rgba(26,30,32,0.4) 100%);
    z-index: 2;
}
.animate-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}


/* ============================================================
    TRUST BAR
    ============================================================ */
.trust-bar {
    background: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: var(--radius-md);
}


/* ============================================================
    SHOWROOM / LAB SPLIT SECTION
    ============================================================ */
.split-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-med);
    overflow: hidden;
}
.split-bg-watermark {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.05;
    pointer-events: none;
}


/* ============================================================
    SERVICE CARDS (with images)
    ============================================================ */
.service-card {
    padding: 0;
    background: var(--white);
    border-bottom: 3px solid var(--brand-green);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.service-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
    transform: scale(1.08);
}
.service-card-body {
    padding: 1.75rem;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card-body .btn-service {
    margin-top: auto;
    padding-top: 0.75rem;
}
.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-green);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-service:hover {
    background: #4daecd; /* Darker Sky Blue */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,193,223,0.3);
    text-decoration: none;
}
.btn-service i {
    font-size: 1rem;
}

@media (max-width: 767px) {
    .service-card-img { height: 160px; }
}


/* ============================================================
    FEATURED VEHICLES — SCROLLING CAROUSEL
    ============================================================ */
.featured-carousel-wrapper {
    position: relative;
}
.featured-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    scrollbar-width: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-carousel-item {
    flex: 0 0 400px;
    scroll-snap-align: center;
}
.featured-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    background: var(--white);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.14);
}
.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-card:hover img {
    transform: scale(1.05);
}
.featured-card .featured-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--brand-green);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.featured-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.featured-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.featured-divider {
    margin: 0 6px;
    opacity: 0.4;
}
.featured-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 1rem;
}
.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--nav-bg);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--nav-bg);
    border-radius: 50px;
    transition: var(--transition);
    width: fit-content;
}
.btn-featured i { font-size: 0.75rem; }
.btn-featured:hover {
    background: var(--nav-bg);
    color: white;
}
.featured-prev { left: -22px; }
.featured-next { right: -22px; }

@media (max-width: 767px) {
    .featured-carousel { padding: 10px 20px 20px; }
    .featured-carousel-item { flex: 0 0 calc(100vw - 60px); scroll-snap-align: center; }
    .featured-prev { left: 4px; }
    .featured-next { right: 4px; }
}


/* ============================================================
    PREVIOUSLY SOLD — SCROLLING CAROUSEL
    ============================================================ */
.sold-carousel-wrapper {
    position: relative;
}
.sold-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    scrollbar-width: none;
}
.sold-carousel::-webkit-scrollbar { display: none; }
.sold-carousel-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
.sold-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    background: var(--white);
}
.sold-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.sold-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.sold-card .sold-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sold-card-body {
    padding: 1rem 1.25rem;
}

/* Carousel nav buttons */
.sold-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--brand-green);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.sold-carousel-btn:hover {
    background: var(--nav-bg);
    transform: translateY(-50%) scale(1.1);
}
.sold-prev { left: -22px; }
.sold-next { right: -22px; }

@media (max-width: 767px) {
    .sold-carousel-item { flex: 0 0 260px; }
    .sold-prev { left: -10px; }
    .sold-next { right: -10px; }
    .sold-carousel-btn { width: 36px; height: 36px; font-size: 0.9rem; }
}


/* ============================================================
    TESTIMONIALS
    ============================================================ */
.testimonial-section {
    background: var(--nav-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}
.testimonial-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}
.testimonial-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
}
.testimonial-detail {
    color: var(--brand-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
    OUR STORY TEASER
    ============================================================ */
.story-section {
    padding: 100px 0;
    background: var(--white);
}
.story-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-med);
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.story-year {
    display: inline-block;
    background: var(--brand-green);
    color: white;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}


/* ============================================================
    CTA / LEAD CAPTURE
    ============================================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brand-green) 0%, #4daecd 100%);
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    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="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
    opacity: 0.5;
}
.cta-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.cta-form .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 0.9rem;
}
.cta-form .form-control::placeholder { color: rgba(255,255,255,0.6); }
.cta-form .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
    color: white;
}
.cta-form .form-select {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 0.9rem;
}
.btn-cta {
    background: white !important;
    color: var(--brand-green) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    letter-spacing: 1px;
    transition: var(--transition);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


/* ============================================================
    FOOTER
    ============================================================ */
.site-footer {
    background: var(--nav-bg);
    color: #adb5bd;
    padding: 60px 0 0;
}
.site-footer h6 {
    color: var(--white);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 3px 0;
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--brand-green);
    padding-left: 3px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: var(--transition);
    padding: 0;
}
.footer-social a:hover {
    background: var(--brand-green);
    transform: translateY(-3px);
    padding-left: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.8rem;
}
.footer-logo {
    max-height: 45px;
    margin-bottom: 1rem;
}


/* ============================================================
    SERVICE PAGE HERO
    ============================================================ */
.service-hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.service-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,30,32,0.92) 40%, rgba(26,30,32,0.6) 100%);
    z-index: 1;
}

/* ============================================================
    SERVICE PAGE FEATURE CARDS
    ============================================================ */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* ============================================================
    GALLERY / IMAGE PLACEHOLDERS
    ============================================================ */
.gallery-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border: 2px dashed #ced4da;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.gallery-placeholder:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

/* Placeholder images for service cards on services.php */
.service-placeholder-img {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #2a3035 100%) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
}
.service-placeholder-img i {
    font-size: 2.5rem;
}
.service-placeholder-img span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.service-placeholder-img:hover {
    color: var(--brand-green);
}


/* ============================================================
    UTILITY / ANIMATION HELPERS
    ============================================================ */
.section-label {
    color: var(--brand-green);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}


/* ============================================================
    RESPONSIVE TWEAKS
    ============================================================ */
@media (max-width: 767px) {
    .hero-wrapper { height: 70vh; min-height: 500px; }
    .hero-wrapper h1 { font-size: 2.5rem !important; }
    .trust-bar { margin-top: -30px; }
    .story-image { height: 280px; margin-bottom: 2rem; }
    .testimonial-section { padding: 60px 0; }
    .cta-section { padding: 50px 0; }
    .cta-form { padding: 1.5rem; }
}