/* css/custom-car.css */

/* Combined Hero and Features Section */
.car-hero-features {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh; /* Flexible minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent any overflow */
}

/* Overlay to darken the background image for better text visibility */
.car-hero-features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 1;
}

/* Content within the Hero-Features Section */
.car-hero-features .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

/* Section Title */
.car-hero-features .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Features Grid */
.car-hero-features .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Enhanced Features Box Styling */
.car-hero-features .feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Increased opacity for better contrast */
    padding: 20px; /* Reduced padding for better fit */
    border-radius: 12px; /* Slightly more rounded corners */
    flex: 1 1 200px;
    max-width: 250px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    word-wrap: break-word; /* Prevent text overflow */
}

.car-hero-features .feature-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px); /* Adds a subtle lift effect on hover */
}

.car-hero-features .feature-item i {
    font-size: 2.5rem; /* Increased icon size for better visibility */
    color: #28a745; /* Bootstrap's success color */
    margin-bottom: 15px; /* Increased margin below the icon */
}

.car-hero-features .feature-item h5 {
    font-size: 1.3rem; /* Slightly larger font size for headings */
    margin-bottom: 10px;
    color: #ffffff; /* Ensures the heading text is white for contrast */
}

.car-hero-features .feature-item p {
    font-size: 1rem;
    color: #e0e0e0; /* Light gray text for better readability */
}

/* Background Images for Each Model */
.car-hero-features.maybach {
    background-image: url('../assets/images/maybach/maybach.jpg');
}

.car-hero-features.sclass2017 {
    background-image: url('../assets/images/s-klasse-2017.jpg');
}

.car-hero-features.eclass2017 {
    background-image: url('../assets/images/e-klasse-2017.jpg');
}

.car-hero-features.eclass2022 {
    background-image: url('../assets/images/e-klasse-2022.jpg');
}

.car-hero-features.vito {
    background-image: url('../assets/images/vito.jpg');
}

.car-hero-features.vclass {
    background-image: url('../assets/images/v-class.jpg');
}

/* Pricing Section Styles */
.car-pricing .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.car-pricing .table-responsive {
    overflow-x: auto;
}

.car-pricing table th,
.car-pricing table td {
    vertical-align: middle;
}

.car-pricing .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.car-pricing .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Car Features Section Styles */
.car-features .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.car-features .feature-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.car-features .feature-card:hover {
    background-color: #e2e6ea;
    transform: translateY(-5px);
}

.car-features .feature-card h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #343a40;
}

.car-features .feature-card p {
    font-size: 1rem;
    color: #495057;
}

/* Booking Section Styles */
.book-now-section .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.book-now-section .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
}

.book-now-section .form-control:focus {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 1);
}

.book-now-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.book-now-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Responsive Adjustments for Combined Hero and Features Section */
@media (max-width: 992px) {
    .car-hero-features {
        min-height: 80vh; /* Adjust height if needed */
    }
    .car-hero-features .section-title {
        font-size: 2rem;
    }
    .car-hero-features .feature-item {
        flex: 1 1 150px;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .car-hero-features {
        min-height: auto; /* Let content define height */
        padding: 30px 15px; /* Reduce padding */
    }
    .car-hero-features .section-title {
        font-size: 1.75rem;
    }
    .car-hero-features .features-grid {
        gap: 15px;
    }
    .car-hero-features .feature-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .car-hero-features .feature-item i {
        font-size: 2rem; /* Reduce icon size for better fit */
    }
    .car-hero-features .feature-item h5 {
        font-size: 1.1rem;
    }
    .car-hero-features .feature-item p {
        font-size: 0.9rem;
    }

    /* Adjust button sizes and layout */
    .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        width: 100%; /* Ensure buttons take full width when stacked */
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 768px) {
    /* Adjust accordion font sizes */
    .car-features .accordion-button {
        font-size: 1rem;
    }

    .car-features .accordion-body {
        font-size: 0.95rem;
    }
}

/* Ensure no horizontal overflow */
body {
    overflow-x: hidden;
}
