/* General Styles */

@import url('https://use.typekit.net/hji1dmf.css');

body {
    font-family: "futura-pt", sans-serif;
    color: #003b5c;
    background-color: white;
    margin: 0px;
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: whitesmoke;
    color: #003b5c;
    padding: 2rem 0;
    
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


.header-title {
    font-size: 1.5rem;
    color: #003b5c;
    margin-left: 5px;
    align-content: center;
}

.logo {
    display: flex;
}


.logo img {
    height: 100px;
    padding-right: 10px;
}

a.contact-button {
    color: inherit;
    text-decoration: none;
    font-size: 1.5rem;
}

.contact-button:hover {
    text-decoration: underline;
    cursor: pointer;
}



.contact-button:hover {
    text-decoration: underline;
}

a {
    color: #003b5c; /* Your dark blue color */
    text-decoration: underline; /* Remove underline */
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

a:hover {
    color: #ef3340; /* Your red color for hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Hero Section */
#hero {
    background-color: #003b5c; /* Dark Blue background */
    display: flex;
    justify-content: center;
    border-bottom: solid 30px #99d6ea; /* Red bottom border */
    height: 70vh; /* Adjust height as needed */
    position: relative;
}

/* Hero Content Container with Gradient Overlay */
.hero-content {
    display: flex;
    align-items: stretch; /* Ensure both image and text stretch vertically */
    width: 100%;
    
}

/* Image Section */
.hero-content-image {
    position: relative;
    width: 40%; /* Adjust this to control image-to-text ratio */
    overflow: hidden; /* Crop overflow for zoom effect */
}

/* Zoom Effect on Image */
.hero-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay for Seamless Fade */
.hero-content-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(to right, rgba(0, 59, 92, 0) 0%, #003b5c 100%);
    z-index: 1;
}

/* Text Content Section */
.text-content {
    width: 60%;
    padding: 2rem;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-left: 2rem;
    align-items: center;
}

/* Upper Text Styling */
.upper-text {
    font-size: 2rem;
    color: #99d6ea;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.upper-text::before,
.upper-text::after {
    content: "";
    width: 40px;
    height: 2px;
    background-color: #ef3340;
    margin: 0 10px;
}

/* Title Styling */
.text-content h1 {
    font-size: 5rem; /* Large font size for main title */
    font-weight: bold;
    margin: 0;
    letter-spacing: 3px;
    text-align: center;


}

/* Subtext Styling */
.subtext {
    font-size: 2rem;
    color: #99d6ea;
    margin-top: 1rem;
}


/* Light blue bottom border using ::after */
#hero::after {
    content: "";
    position: absolute;
    bottom: -45px; /* Positions it just below the red border */
    left: 0;
    right: 0;
    height: 30px; /* Thickness of the light blue border */
    background-color: #ef3340; /* Light blue color */
    z-index: 1; /* Ensures it’s above any background elements */
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: #ef3340; /* Red color for button */
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth shadow and transform transition */
    text-align: center;
}

/* Hover Effect for Button */
.cta-button:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow for lift effect */
    transform: translateY(-2px); /* Slightly move the button up */
    cursor: pointer;
    color: white;
}






/* Call-to-Action Buttons */
.cta-buttons .cta-button {
    background-color: #ef3340;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0;
    transition: background-color 0.3s;
}

.cta-buttons .cta-button:hover {
    background-color: #c32a33; /* Slightly darker red on hover, but within the same color tone */
}

/* General content-section styles */


.content-section {
    padding: 3rem 2rem;
    background-color: white;
    color: #003b5c;
    max-width: 85%;
    margin: 3rem auto;
}



.content-section h2::before,
.content-section h2::after {
    content: "";
    width: 50px; /* Adjust to control length of side lines */
    height: 2px;
    background-color: #ef3340;
    margin: 0 10px;
}



/* Flex layout for text and image */
.content-flex-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Align text and image to the top */
    flex-wrap: wrap; /* Ensures responsive wrapping on smaller screens */
    gap: 2.5rem;
}

/* Content text styles */
.content-text {
    
    text-align: left;
}

.content-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #003b5c;
    margin-bottom: 1.5rem;
    margin-block-start: 0rem;
}

/* Hero image styles */
.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 50%;
    height: auto;
}

/* New Section: What Sets the BACnet Fan Control Apart */

/* Overall Section Styles */
#what-sets-apart {
    padding: 3rem 2rem;
    background-color: white;
    color: #003b5c;
    max-width: 85%;
    margin: 3rem auto;
}



#what-sets-apart h2::before,
#what-sets-apart h2::after {
    content: "";
    width: 50px; /* Adjust to control length of side lines */
    height: 2px;
    background-color: #ef3340;
    margin: 0 10px;
}



/* Flexbox Container */
#what-sets-apart .content-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 2.5rem; /* Adds space between the text and image */
}

/* Text Section Styles */
#what-sets-apart .content-text {
    
    font-size: 1.5rem;
    line-height: 1.8;
    color: #003b5c;
}

#what-sets-apart .content-text p {
    margin-bottom: 1.5rem; /* Adds spacing between paragraphs */
}

/* Image Section Styles */
#what-sets-apart .hero-image {
    width: 50%; /* Take half the width of the container */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#what-sets-apart .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Features Section */
.features-section {
    padding: 3rem 2rem;
    background-color: white;
    max-width: 85%;
    margin: 3rem auto;
}



.feature-title h2::before,
.feature-title h2::after {
    content: "";
    width: 50px; /* Adjust to control length of side lines */
    height: 2px;
    background-color: #ef3340;
    margin: 0 10px;
}


/* Flexbox for Features and Image */
.features-section .features-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top */
    width: 100%;
    gap: 2.5rem; /* Adds gap between the list and the image */
    margin-top: 2rem; /* Adds top margin to space the flex container from the title */
}

/* Feature List */
.feature-list {
    width: 60%; /* Half of the flexbox width */
    list-style: square;
   padding-inline-start: 0rem;
    font-size: 1.5rem;
    color: #003b5c;
    margin-top: 0; /* Ensures the list is aligned with the image at the top */
    align-self: center;
}

.feature-list li {
    margin-bottom: 1rem;
}

/* Feature Image */
.features-image {
    width: 40%; /* Half of the flexbox width */
    text-align: center;
    display: flex;
    align-self: center;
    justify-content: end;
}

.features-image img {
    max-width: 70%;
    height: auto;
    margin-top: 0; /* Ensures the image starts at the top */
    border-radius: 12px;
    filter: drop-shadow(rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px);
}



/* Applications Section */
#applications {
    padding: 3rem 2rem;
    background-color: white;
    max-width: 85%; /* Same as the key features */
    margin: 3rem auto;
}


#applications h2::before,
#applications h2::after {
    content: "";
    width: 50px; /* Adjust to control length of side lines */
    height: 2px;
    background-color: #ef3340;
    margin: 0 10px;
}



/* Flexbox for Image (Left) and Text (Right) */
.applications-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align content at the top */
    gap: 3rem; /* Space between image and text */
    width: 100%;
}

/* Image Column */
.applications-image {
    width: 50%; /* Take 50% of the width */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.applications-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

/* Text Column */
.applications-text {
    width: 50%; /* Take 50% of the width */
    font-size: 1.5rem; /* Match font size with key features */
    color: #003b5c;
    line-height: 1.8;
    align-self: center;
}

.applications-text p {
    margin-bottom: 1.5rem; /* Space between paragraphs */
}

/* Footer */
footer {
    background-color: #003b5c;
    color: #99d6ea;
    text-align: center;
    padding: 2rem;
    border-top: #ef3340 solid 10px;
}

.content-section h2,
#what-sets-apart h2,
.feature-title h2,
#applications h2
{
    font-size: 2.5rem;
    color: #003b5c;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
}

.integration-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.integration-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.intergration-content-text {
    width: 50%; /* Take 50% of the width */
    font-size: 1.5rem; /* Match font size with key features */
    color: #003b5c;
    line-height: 1.8;
    align-self: center;
}


/* Responsive Styles */
@media (max-width: 768px) {


    .header-title {
        font-size: 1.25rem;
        color: #003b5c;
        margin-left: 5px;
        align-content: center;
    }

    a.contact-button {
        color: inherit;
        text-decoration: none;
        font-size: 1.25rem;
    }

    /* Hero Section */
    #hero {
        padding: 2rem 1rem;
        height: auto;
    }

    .hero-content {
        flex-direction: column-reverse;
    }

    .hero-content-image {
        width: 100%;
    }

    .hero-content-image::after {
        background: linear-gradient(to top, rgba(0, 59, 92, 0) 0%, #003b5c 100%);
        width: 100%;
    }

    .text-content {
       
        text-align: center;
        padding: 1rem;
        width:auto;
    }

    .text-content h1 {
        font-size: 3rem!important;
    }

    .upper-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }

    .subtext {
        font-size: 1.2rem;
    }

    .cta-button {
        margin: 1.5rem auto 0;
    }

    /* General Sections */
    .content-section .content-text {
        text-align: left;
    }

    .features-image {
       
        justify-content: center;
    }

    .features-section .features-container,
    #applications .applications-container,
    #integration .integration-container {
        flex-direction: column;
        gap: 2rem;
    }

    .features-section .features-container > *,
    #applications .applications-container > *,
    #integration .integration-container > * {
        width: 100%;
    }

    .content-section h2, #what-sets-apart h2, .feature-title h2, #applications h2 {
        font-size: 2rem;
        color: #003b5c;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        display: flex
    ;
        align-items: center;
        justify-content: center;
    }

    .content-section {
        padding: 2rem 2rem;
        background-color: white;
        color: #003b5c;
        max-width: 85%;
        margin: 2rem auto;
    }
    #what-sets-apart {
        padding: 2rem 2rem;
        background-color: white;
        color: #003b5c;
        max-width: 85%;
        margin: 2rem auto;
    }

    .features-section {
        padding: 2rem 2rem;
        background-color: white;
        max-width: 85%;
        margin: 2rem auto;
    }

    #applications {
        padding: 2rem 2rem;
        background-color: white;
        max-width: 85%;
        margin: 2rem auto;
    }
    

}
