/* General */
html {
    scroll-behavior: auto; /* JavaScript will handle smooth scrolling */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px; /* Base font size */
    line-height: 1.6; /* Standard line height for readability */
    color: #2e3a45;
    overflow-x: hidden;
}

.navigation {
    width: 100%;
    position: fixed; /* Ensures it stays on top during scrolling */
    top: 0;
    z-index: 10; /* Makes sure it is above other content */
}

section {
    height: 100vh;
    scroll-snap-align: start;
}

section .top {
    min-height: 85vh;
}

section .top p {
    font-weight: 200;
    letter-spacing: 0.06em;
}

section .bottom {
    min-height: 15vh;
    display: flex;
    align-items: center; /* Centers vertically */
    box-shadow: inset 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.08em; 
}

.container {
    display: flex;
    align-items: center; /* Centers vertically */
}

.prompt {
    line-height: 0.8;
    text-align: center;
    
}

.content h2 {
    font-size: 2rem; /* Tertiary heading size */
    font-weight: 700; /* Bold for emphasis */
    text-align: center;
    line-height: 1.2; /* Compact line height for headings */
}

.content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem; /* Tertiary heading size */
    font-weight: 700; /* Bold for emphasis */
    line-height: 1.2; /* Compact line height for headings */
}


/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo img {
    max-height: 30px; 
    width: auto;
    display: block;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav .nav-links li a {
    color: #ffffff;
    font-weight: 300;
    transition: color 0.3s;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    text-decoration: none;
}

nav .nav-links li a:hover {
    color: #a8c1d5;
}


/* Home Section */
.home .top {
    background-color: #4B6079;
    color: white;
}

.home .bottom {
    background-image: url('civitas_fleet.png');
    color: #ffffff;
}

.hero {
    align-items: flex-start; /* Aligns text to the top */
    justify-content: flex-start; /* Aligns text to the left */
    height: 300px; /* Set container height */
}

.graphic, .tag {
    margin-bottom: 2rem; 
    display: flex;
    align-items: end; /* Centers vertically */
}

.tag {
    margin-top: 40px; 
}

.home h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: lighter;
    text-align: left;
}

.home h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: lighter;
    text-align: left;
    letter-spacing: 0.05em;
}

.home p {
    margin-top: 5rem;
    padding-top: 1rem;
    font-size: 5.2rem;
    font-weight: 600!important;
    text-align: left;
    line-height: 1;
    letter-spacing: -0.01em;
}

.home .bottom {
    background-image: url('civitas_fleet.png');
    background-size: cover; /* Adjust to ensure the image fits the section */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Makes the background static */
    background-position: center;
}

.electric .top {
    background-image: url('civitas_fleet.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}


/* Electric Section */

.electric {
    position: relative; /* Ensure the pseudo-element is positioned relative to this section */
    overflow: hidden;   /* Ensure the overlay doesn't exceed the section bounds */
}

.electric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the color and transparency */
    z-index: 1; /* Place the overlay below the content */
}

.electric .container {
    position: relative; /* Ensure content remains above the overlay */
    z-index: 2;
}

.electric .top {
    background-image: url('civitas_fleet.png');
    background-size: cover; 
    background-repeat: no-repeat;
    color: white;
}

.electric .bottom {
    background-color: #2e3a45;
    color: #a8c1d5;
}

.electric .top .overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1; /* Above the image */

}

.electric h2 {
    color: #ffffff;
    font-size: 5.2rem;
    font-weight: 600;
    text-align: left;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 1rem;
    z-index: 2;
}

.electric h4 {
    font-size: 1.3rem;
    font-weight: 300;
}


/* Core Offering Section */
.offering .top {
    background-color: #2e3a45;
    color: #fff;
}

.offering .bottom {
    background-color: #a8c1d5;
}

.contain {
    display: flex;
    justify-content: center; /* Centers the div horizontally */
    align-items: center;    /* Centers the div vertically */
}

.contain p {
    text-align: center;
    max-width: 80%;
    margin-bottom: 60px;
}


/* Why Us Section */
.choose .top {
    background-color: #a8c1d5;
    color: white;
}

.choose .bottom {
    background-color: #4B6079;
    color: #fff;
}

/* Why Us Section */
.contact {
    background-color: #4B6079;
    color: white;
}


/* Contact Us Section */
button {
    display: inline-block;
    background-color: #a8c1d5;
    color: #2e3a45;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.cta:hover {
    background-color: #354a5a;
    color: #a8c1d5;
}


@media handheld, only screen and (max-width: 767px) {
    section {
        height: auto;
    }
    
    section .top {
        min-height: auto;
    }
    
    section .bottom {
        min-height: auto;
        display: flex;
    }

    p {
        text-align: left!important;
    }
    h2 {
        text-align: left!important;
    }

    .contain p {
        min-width: 100%!important;
    }

    .home p {
        margin-top: 2rem;
        padding-top: 1rem;
        font-size: 2.6rem!important;
        font-weight: 600;
        text-align: left;
        line-height: 1;
        letter-spacing: -0.01em;
    }

    .electric h2 {
        font-size: 2.6rem!important;
        font-weight: 600;
        text-align: left;
        line-height: 1;
        letter-spacing: -0.01em;
    }

    .grid-pad {
        padding-top: 60px;
    }

    .electric .grid-pad{
        margin-top: 100px;
        margin-bottom: 200px;
    }
    .navigation {
        position: relative; 
        background-color: #4B6079;
    }
    .nav-links {
        display: none!important;
    }

    .container {
        display: flex;
        justify-content: flex-start; 
        align-items: flex-start;
    }
    .hero {
        height: auto;
    }
}