/* =======================
   LANDING PAGE SPECIFIC STYLES
======================= */

/* Default for landing-page body */
body.landing-page {
    background-color: var(--red-soft); /* Background for the entire landing page */
}

/* =======================
   HERO SECTION LAYOUT
======================= */
.hero-section {
    padding-top: 40px; /* Space below the header */
    padding-bottom: 40px;
    min-height: 75vh; /* Ensure it takes significant viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1.25fr; /* Adjusted ratio for more space to content */
    gap: 30px; /* Increased gap for better spacing */
    align-items: center;
    max-width: 1200px; /* Max width for the content */
    margin: 0 auto;
    width: 100%;
    padding: 0 20px; /* Add horizontal padding */
}

/* Increased height for hero content and slider cards */
.hero-content-card-compact,
.hero-slider-card-compact {
    min-height: 420px; /* Increased height */
    max-height: 420px; /* Increased height */
    height: 100%; /* Ensure they take full height of the grid item */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically within the card */
}

.hero-content-card-compact {
    padding: 30px 30px; /* Slightly more padding */
}

.hero-content-card-compact .hero-logo-box {
    width: 110px; /* Larger logo */
    height: 110px;
    margin-bottom: 20px; /* More space below logo */
    background-color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    padding: 10px;
}

.hero-content-card-compact .hero-logo-box img {
    width: 70%; /* Adjust logo size within its box */
    height: auto;
    display: block;
}

.hero-content-card-compact .eyebrow {
    color: var(--red);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.hero-content-card-compact .landing-title {
    font-size: clamp(1.65rem, 2.5vw, 2.5rem); /* Increased base font size */
    line-height: 1.7;
    margin-bottom: 15px; /* More space below title */
    color: var(--text);
}

.hero-content-card-compact .hero-text {
    line-height: 1.95;
    font-size: 1.05rem; /* Slightly larger text */
    color: var(--muted);
    margin-bottom: 30px; /* More space before buttons */
}

.landing-actions {
    display: flex;
    gap: 15px;
}

/* =======================
   HERO SLIDER STYLES
======================= */
.hero-slider-card-compact {
    position: relative; /* Needed for absolute positioning of slides if required */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* =======================
   BRAND LOOP IMPROVED
======================= */
.brand-slider-section {
    padding: 60px 0; /* More padding */
    background-color: var(--white); /* White background for this section */
}

.section-heading.centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    margin-top: 8px;
    color: var(--text);
}

.brand-strip {
    border-radius: 24px;
    overflow: hidden;
    padding: 18px 0;
    position: relative;
    background: var(--red-soft); /* Soft red background for the strip */
    margin: 0 20px; /* Margin to avoid touching edges */
}

.brand-track-loop {
    display: flex;
    align-items: center;
    gap: 20px; /* Increased gap */
    width: max-content;
    animation: brandLoop 25s linear infinite; /* Slower animation for smoother loop */
}

.brand-item.brand-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px; /* Fixed width for brand items */
    height: 60px;
    background-color: var(--white);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-dark);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(163, 42, 49, 0.08);
    padding: 0 15px;
}

@keyframes brandLoop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Loop half the total width to make it appear continuous */
    }
}


/* =======================
   SERVICE HIGHLIGHT
======================= */
.service-highlight {
    padding: 80px 0; /* More padding */
    background-color: var(--white);
}

.service-box {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.service-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--text);
}

.service-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--muted);
    margin-bottom: 20px;
}

.service-content p:last-of-type {
    margin-bottom: 30px;
}

/* =======================
   CARS SHOWCASE
======================= */
.cars-showcase {
    padding: 80px 0; /* More padding */
    background-color: var(--red-soft);
}

.cars-slider-grid-shell {
    overflow: hidden;
    border-radius: 28px;
    background: var(--white); /* White background for the shell */
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 20px; /* More padding inside */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cars-slider-grid-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 columns for future scalability, showing 3 */
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3); /* Each card is 1/3rd of track width minus gap */
    gap: 16px;
    transition: transform 0.55s ease;
    will-change: transform;
}

.car-grid-card {
    min-width: 0; /* Essential for grid behavior */
}

.car-grid-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 340px; /* Increased image height */
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(217, 65, 65, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push caption to bottom */
}

.car-grid-image img {
    position: absolute; /* Absolute position to cover card and allow caption overlap */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 22px; /* Match card radius */
    z-index: 1;
}

.car-grid-caption {
    position: relative; /* Relative to allow z-index and overlap */
    z-index: 2; /* Ensure caption is above image */
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(35, 10, 10, 0.92), rgba(35, 10, 10, 0.12));
    color: #fff;
    border-radius: 0 0 22px 22px; /* Round bottom corners */
    backdrop-filter: blur(8px); /* Subtle blur effect */
    -webkit-backdrop-filter: blur(8px);
}

.car-grid-caption h3 {
    margin: 0;
    font-size: 1.15rem; /* Slightly larger title */
    font-weight: 800;
    color: var(--white);
}

.car-grid-caption span {
    display: inline-block;
    margin-top: 6px;
    color: #ffdede;
    font-size: 0.95rem; /* Slightly larger model text */
}

.cars-slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-control {
    padding: 12px 28px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--red);
    color: var(--white);
    box-shadow: var(--shadow);
}

.slider-control:hover {
    background-color: var(--red-dark);
}

.slider-control.secondary-btn { /* If you add secondary buttons later */
    background-color: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid var(--red);
}

.slider-control.secondary-btn:hover {
    background-color: var(--border);
    color: var(--red-dark);
}


/* =======================
   FOOTER STYLES
======================= */
.site-footer {
    padding: 70px 0 50px 0; /* Increased padding */
    background-color: var(--text); /* Dark background for footer */
    color: var(--red-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--red);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--red-soft);
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.footer-center {
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.trust-placeholder {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--red-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--red-soft);
    font-weight: 500;
    text-align: center;
}

/* =======================
   RESPONSIVE ADJUSTMENTS
======================= */
@media (max-width: 992px) {
    .hero-grid-compact {
        grid-template-columns: 1fr;
        gap: 40px; /* Increase gap when stacking */
        text-align: center; /* Center text when stacked */
    }

    .hero-content-card-compact {
        min-height: auto; /* Let content define height */
        max-height: none;
        padding: 30px 20px; /* Adjust padding */
    }

    .hero-slider-card-compact {
        min-height: 350px; /* Adjust slider height */
        max-height: none;
    }

    .hero-content-card-compact .landing-title {
        font-size: clamp(1.5rem, 2vw, 2.2rem);
    }

    .landing-actions {
        justify-content: center; /* Center buttons */
    }

    .service-box {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .service-image {
        order: 2; /* Image below text */
    }

    .service-content {
        order: 1;
    }

    .cars-slider-grid-track {
        grid-auto-columns: calc((100% - 16px) / 2); /* 2 cards on tablet */
    }

    .car-grid-image,
    .car-grid-image img {
        min-height: 290px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column.footer-center {
        grid-column: 1 / -1; /* Span across both columns */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-content-card-compact {
        padding: 25px 15px;
    }

    .hero-content-card-compact .hero-logo-box {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }

    .hero-content-card-compact .landing-title {
        font-size: 1.35rem;
    }

    .landing-actions {
        flex-direction: column;
        align-items: center;
    }

    .brand-strip {
        margin: 0 10px;
    }

    .brand-item.brand-svg {
        min-width: 120px;
        height: 50px;
        font-size: 1rem;
    }

    .cars-slider-grid-shell {
        padding: 15px;
    }

    .cars-slider-grid-track {
        grid-auto-columns: 100%; /* 1 card on mobile */
    }

    .car-grid-image,
    .car-grid-image img {
        min-height: 250px;
    }

    .car-grid-caption h3 {
        font-size: 1.05rem;
    }

    .car-grid-caption span {
        font-size: 0.9rem;
    }

    .cars-slider-controls {
        gap: 15px;
        margin-top: 30px;
    }

    .slider-control {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column.footer-center {
        grid-column: auto; /* Reset span */
    }

    .trust-badges {
        justify-content: center;
    }
}
