/* Landing Page Styles */

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 600px;
    /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darken overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content-center {
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    text-transform: uppercase;
    border-radius: 4px;
    background-color: #00A651;
    /* BAS World Green */
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-hero:hover {
    background-color: #008c44;
}

/* Recommended Section */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

/* Vehicle Carousel */
.vehicle-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.vehicle-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.track-products {
    animation: scroll 60s linear infinite;
}

.track-reviews {
    animation: scroll 80s linear infinite;
}

.vehicle-carousel-track:hover {
    animation-play-state: paused;
}

.carousel-card {
    flex: 0 0 300px;
    width: 300px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the width since we doubled the items */
    }
}

/* Trustpilot Section */
.dark-section {
    background-color: #1a1a1a;
    color: #fff;
}

.white-text {
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.trustpilot-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tp-card {
    background: #fff;
    color: #333;
    padding: 1.5rem;
    border-radius: 4px;
}

.tp-stars {
    color: #00b67a;
    /* Trustpilot Green */
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tp-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tp-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tp-author {
    font-size: 0.8rem;
    color: #666;
}

.tp-footer {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    background-color: #f5f5f5;
}

.contact-banner {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Vertically center content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-content {
    flex: 1;
    padding: 3rem;
    text-align: center;
    /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex items (buttons) */
    justify-content: center;
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    /* Center buttons horizontally */
    width: 100%;
}

/* Contact Buttons Styles */
.contact-buttons .btn-primary,
.contact-buttons .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    width: 240px;
    /* Fixed equal width */
}

.contact-buttons .btn-primary {
    background-color: #00A651;
    color: #fff;
    border: 2px solid #00A651;
}

.contact-buttons .btn-primary:hover {
    background-color: #008c44;
    border-color: #008c44;
}

.contact-buttons .btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.contact-buttons .btn-outline:hover {
    background-color: #333;
    color: #fff;
}

.contact-image {
    flex: 1;
    align-self: stretch;
    /* Ensure it takes full height */
    background-image: url('../img/contact-support.png');
    /* Need to ensure this exists or use color */
    background-size: cover;
    background-position: center;
    min-height: 300px;
    background-color: #ddd;
    /* Fallback */
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .contact-banner {
        flex-direction: column;
    }

    .contact-image {
        height: 200px;
        min-height: auto;
    }
}

/* Services Section */
.services-section {
    background-color: #f9f9f9;
    /* Light gray background to distinguish */
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 4px solid #00A651;
    /* Brand accent */
}

.service-content {
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-desc {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.btn-service {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border: 2px solid #00A651;
    color: #00A651;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: auto;
    /* Pushes button to bottom */
}

.btn-service:hover {
    background-color: #00A651;
    color: #fff;
}