/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: black; /* Page background is black */
    color: #eee; /* Default text color for the entire page (light gray) */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    padding-top: 80px; /* Add this: Accounts for default header height */
}

/* Global H2 Styling: Centered and Red */
/* This rule targets all h2 elements. */
h2 {
    text-align: center; /* Center all h2s */
    color: #FF4444; /* Red color for all h2s */
    font-size: 2.5rem; /* Consistent font size for h2s */
    margin-top: 40px; /* Space above h2s */
    margin-bottom: 30px; /* Space below h2s */
}

/* Hero Section */
.hero-section {
    background-color: black; /* First section: Black */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 50px 60px; /* Adjust padding to control height, previously 120px 50px 60px */
   /* max-width: 1400px;*/
    margin: 0 auto;
    gap: 40px;
    min-height: 600px; /* Set a minimum height for consistency */
}
.hero-content {
    display: flex;
    flex-direction: column;
    /* ... existing properties ... */
}
/* Adjustments for text within hero-section */
.hero-content h2 {
    font-size: 2rem;
    color: white; /* Explicitly white for primary hero heading */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtext {
    font-size: 0.9rem;
    color: #ccc; /* Slightly darker light gray for subtext */
    margin-bottom: 30px;
    margin-top:20px;
}
.hero-content a {
align-self: center; /* This centers the anchor tag horizontally */
}

/* Advantages Section */
#advantages-section { /* Second section: Dark Gray */
    background-color: #333;
    padding: 80px 50px; /* Consistent vertical padding */
    margin-top: 0; /* Remove margin-top to eliminate white space */
    width: 100%;
    min-height: 600px; /* Set a minimum height for consistency */
    display: flex; /* Use flexbox to center content vertically if needed */
    align-items: center; /* Center content vertically */
}

/* Cars Section */
#cars-section {
    background-color: black;
    padding: 80px 20px; /* Reduced horizontal padding for mobile */
    margin-top: 0;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}/* Center slider horizontally */
/* FIX: Override info-box styles for the car section to prevent layout issues. */
.cars-content {
   /* max-width: 1400px;*/
    margin: 0 auto;
    color: #eee;
    text-align: center;
    margin-bottom: 30px; /* Adds spacing between title and slider */
}

.info-box {
    flex: 1 1 300px; /* Allows boxes to grow/shrink, with a base width of 300px */
    background-color: black; /* A darker background for better contrast */
    padding: 25px; /* Inner padding for content */
    border-radius: 8px; /* Slightly rounded corners */
    text-align: center; /* Centers text content within each box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    min-height: 200px; /* Ensures a consistent minimum height for all boxes */
    display: flex; /* Makes info-box a flex container itself */
    flex-direction: column; /* Stacks content vertically inside the box */
    justify-content: center; /* Centers content vertically inside the box */
    align-items: center; /* Centers content horizontally inside the box */
}

.slider-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider {
    position: relative;
    width: 100%; /* Changed from fixed 500px */
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
}

/* Better slide styling */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Info Box H3 text color within society section */
.info-box h3 {
    color: #FF4444; /* Uses your accent red color for headings */
    margin-bottom: 10px; /* Adds space below the heading */
}

.info-box p {
    color: #eee; /* Light grey text for readability on the dark background */
    font-size: 0.95rem; /* Slightly smaller font size */
    line-height: 1.5; /* Improved line spacing for readability */
}

.stat .label {
    color: #ccc; /* Ensure label text is visible on dark background */
}
span.label {
    font-size: 1rem;
    margin-top: 40px;
    color: #ccc; /* Ensure label text is visible on dark background */
}

/* Info Section */
.info-container { /* Fifth section: Black */
    background-color: black;
    padding: 80px 30px; /* Consistent vertical padding */
    margin-top: 0; /* Remove margin-top */
    min-height: 400px; /* Set a minimum height for consistency */
    display: flex;
    align-items: center;
}

.info-point p {
    color: #eee; /* Ensure paragraph text in info-point is visible on dark background */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.98); /* Header background remains light */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #333; /* Nav links remain dark on light header */
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero Section (continued) */
.hero-image {
    flex: 1;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Society Content - for "Nos Avantages" specific text alignment and color */
.society-content {
    padding: 20px; /* Adds overall padding around the content */
    max-width: 1200px; /* Constrains the maximum width of the content */
    margin: 0 auto; /* Centers the content block horizontally */
}




.society-info {
    display: flex; /* Enables Flexbox for horizontal layout */
    flex-wrap: wrap; /* Allows boxes to wrap to the next line on smaller screens */
    justify-content: space-around; /* Distributes boxes with space around them */
    gap: 20px; /* Adds consistent spacing between the boxes */
    max-width: 1200px; /* Ensures the flex container doesn't stretch too wide */
    margin: 40px auto; /* Centers the container and provides vertical spacing */
}
.society-info-partners{
    width: 100%;
    margin: 0 auto;
}
.society-content h2 {
    text-align: center; /* Centers the h2 text */
    color: #ecebeb; /* Red color for the h2 */
    margin-bottom: 30px; /* Adds space below the h2 */
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #37ff00; /* Bright green number, visible on dark background */
    display: block;
    margin-bottom: 10px;
}


/* Info Section (continued) */
.info-content {
    max-width: 1400px;
    margin: 0 auto;
    color: #eee; /* Ensure text within info-content is light gray */
}

.info-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.dashboard-left img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-points {
    margin: 30px 0;
}

.info-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-point .arrow {
    color: #007bff; /* Blue arrow, visible on dark background */
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.primary-button,
.secondary-button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #007bff; /* Blue button, visible on dark background */
    color: white;
}
/* Adjusted secondary button for dark theme visibility */
.secondary-button {
    background-color: #333; /* Dark gray background for secondary button */
    color: #eee; /* Light text for secondary button */
    border: 1px solid #555; /* Subtle border */
}
.secondary-button:hover {
    background-color: #555;
}


/* Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rental Section: Fourth section: Dark Gray */
.rental-section {
    background-color: #333; /* Dark gray for rental section */
    padding: 60px 20px; /* Consistent vertical padding */
    margin-top: 0; /* Remove margin-top */
    text-align: center;
    color: white; /* Ensure text is visible on dark overlay */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* h2 in rental-section will now inherit global h2 styles (red and centered) */

.rental-section p.subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    font-family: monospace;
    color: #ddd; /* Ensure subtitle is visible */
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.step {
    background-color: rgba(255, 255, 255, 0.1); /* semi-transparent white */
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    color: #fff; /* Text inside step boxes is white */
    transition: transform 0.3s ease;
}

.icon-box {
    border: 2px dashed red;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box img {
    max-width: 60px;
    filter: invert(1); /* make white */
}

.step h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FF4444; /* Step h3s also red */
}
/* Add this to your style.css for the new paragraph */
.info-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Keeps two columns for left (image) and right (text/buttons) */
    gap: 50px;
    align-items: center; /* Vertically aligns content in the middle */
}

.dashboard-right {
    display: flex; /* Make dashboard-right a flex container */
    flex-direction: column; /* Stack its children (paragraph and button wrapper) vertically */
    align-items: center; /* Center children horizontally (for the paragraph and button wrapper) */
    text-align: center; /* Center text within the paragraph */
}

.subtext-whatsapp {
    /* Existing or modified styles for this paragraph */
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 20px; /* Space between paragraph and buttons */
}

.action-buttons-wrapper {
    display: flex; /* Make this a flex container */
    justify-content: center; /* Center its children (the two buttons) horizontally */
    gap: 20px; /* Space between buttons */
    width: 100%; /* Ensure it takes full width of its parent to allow centering */
}

.step p {
    font-size: 14px;
    color: #ddd; /* Step paragraph text is light gray */
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }
}
/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-section,
    #advantages-section,
    #cars-section,
    .rental-section,
    .info-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 100px 30px 40px;
    }
    .info-dashboard {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
        gap: 30px;
    }
    .dashboard-left,
    .dashboard-right {
        text-align: center; /* Center content when stacked */
        align-items: center; /* Ensure flex items are centered */
    }
    .hero-content,
    .hero-image {
        max-width: 100%;
    }

    .society-info,
    .info-dashboard {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    main {
        padding-top: 70px; /* Adjusted for header height at this breakpoint */
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        height: 70px;
    }

    .menu-toggle {
        display: block; /* Show toggle button on smaller screens */
    }

    nav {
        display: none; /* Hide nav by default on smaller screens */
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex; /* Show nav when active */
    }

    nav a, .dropdown {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav a:last-child {
        border-bottom: none;
    }
    main {
        padding-top: 70px; /* Adjusted for header height at this breakpoint */
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
        padding: 10px 15px;
    }

    .hero-section {
        padding: 80px 20px 30px;
        min-height: auto; /* Allow hero to be shorter on mobile */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtext {
        font-size: 1rem;
    }

    #advantages-section,
    #cars-section,
    .rental-section,
    .info-container {
        padding: 40px 20px;
        min-height: auto; /* Allow sections to be shorter on mobile */
    }

    .info-box {
        padding: 25px;
    }

    .slider {
        width: 80%; /* Adjust slider width on mobile */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust h2 font size for smaller screens */
    h2 {
        font-size: 2rem; /* Adjusted for smaller screens */
        margin-bottom: 30px;
    }
    main {
        padding-top: 60px; /* Adjusted for header height at this breakpoint */
    }
}