/* Layout CSS */

body {
    background-color: var(--color-background);
    color: var(--color-white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background-color: var(--color-background);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    /* Adjusted size */
    width: auto;
}

/* Hero Section */
#hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 700;
    max-height: 85vh; /* Optional constraint to keep it visible on smaller laptop screens */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    /* Prevent header overlap */
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Sections General */
section {
    padding: 4rem 5%;
}

/* Form Section */
#lead-form {
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.form-container {
    background-color: var(--color-primary);
    padding: 3rem;
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.form-container h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.form-container p {
    color: var(--color-black);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 5% 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsiveness */
@media (max-width: 768px) {
    section {
        padding: 3rem 5%;
    }

    .form-container {
        padding: 2rem;
    }

    #hero {
        height: auto;
        /* Allow aspect-ratio to dictate height */
        min-height: 0;
        /* Override previous min-height */
        width: 100%;
        aspect-ratio: 7 / 5;
        /* Matches 700x500 mobile image absolute ratio */
        max-height: 70vh;
    }

    .slide {
        background-size: cover;
        /* Cover ensures it fills the aspect-ratio container perfectly */
        background-position: center;
        background-repeat: no-repeat;
    }
}