/* General Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F3F3F3;
    margin: 0;
    padding: 0;
    color: #1A354F;

}

.container {
    width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

p {
    font-size: 16px;
    line-height: 25px;
    color: #1A354F;
}

h2 {
    margin: 0px;
    font-size: 36px;
    font-weight: bold;
}

/* Header Styles */
header {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row !important;
}

header .container {
    display: flex;
    flex-direction: row; 
}

.logo {
    flex: 1;
}

nav {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 20px;
}

nav a {
    margin: 0 25px;
    text-decoration: none;
    color: #1A354F;
}

.call-button {
    background-color: #014BAC;
    color: white;
    padding: 20px 25px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    margin: 21px 0px;
}

.call-button:hover {
    box-shadow: 0 5px 30px rgba(0, 49, 95, 0.5);
    transform: scale(1.02);
}

.call-button img {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
}

.hero-text {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: bold;
    margin: 0px;
}

.hero-text p {
    font-size: 20px;
    margin: 20px 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center; /* Vertically centers the hero text and images */
    padding: 40px 0;
    justify-content: space-between;
}

.hero-images {
    display: flex;
    gap: 20px; /* 20px gap between columns */
    max-height: 550px; /* Maximum height for the hero images */
    flex: 1;
    margin-left: 50px;
}

.large {
    width: 60%; /* Adjust width to make the large image less wide */
    max-height: 100%; /* Ensures the large image fits within its column */
    object-fit: cover;
    border-radius: 20px;
}

.small-images {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes space between top and bottom images */
    width: 200px; /* Adjust width as needed */
    gap: 20px;
}

.small-image-wrapper {
    height: 50%; /* Each wrapper takes half the height of the small-images column */
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-text {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Box Styles */
.boxes {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}

.box {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 35px;
    flex-basis: 31%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.box img {
    height: 50px;
    width: auto;
}

.box h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

.box p {
    margin: 0;
}

/* Info Section */

#info {
    padding: 40px 0;
    display: flex;
}

.info-left {
    max-width: 50%;
}

.info-left img {
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.info-right {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 115px;
    align-items: flex-start;
}

.info-right h2 {
    font-size: 36px;
    font-weight: semi-bold;
}

.info-right p {
    margin: 20px 0;
}

/* Services Section */

#services {
    display: flex;
}

.services-left {
    margin-bottom: 40px;
    max-width: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.services-left h2 {
    font-size: 36px;
    font-weight: bold;
}

.services-left p {
    margin: 20px 0;
}

.services-right {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 50%;
    margin-left: 50px;
    min-height: 300px; /* Fixed min-height for uniformity */
    padding: 20px; /* Add padding to give space inside the container */
    height: 640px;
}

.service-item {
    padding: 0 20px 0px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    
}

.service-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1A354F50;
    width: 100%;
    flex-wrap: wrap;
}

.service-headline h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 17px 0;
    flex: 1; /* Allow h4 to take up remaining space */
}

.arrow {
    height: 9px;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    flex-basis: 100%;
}

.service-item.active .text {
    max-height: 260px;
    opacity: 1;
    padding: 0px 0px 15px 0px;
}

.service-item.active .arrow {
    transform: rotate(180deg);
}



/* Projects Section */
.projects {
    padding: 40px 0;
}

.projects h2 {
    margin-bottom: 20px;
}

.project-box {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.item {
    margin: 10px 20px; /* Optional spacing between items */
}


.item-1,
.item-2,
.item-4 {
    flex: 0 1 auto; /* Don't grow, but allow them to shrink */
    white-space: nowrap; /* Prevent items from wrapping to new lines (if needed) */
}

.item-3 {
    flex: 1 1 auto; /* Allow it to grow and shrink */
    text-align: left; /* Optional: Center the text inside the third item */
}

/* Reviews Section */
.reviews {
    padding: 40px 0;
}

.reviews h2 {
    margin-bottom: 20px;
}

.reviews h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0px;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if needed */
    justify-content: space-between; /* Creates even spacing between items */
    width: 100%; /* Full width container */
    gap: 20px; /* Adds space between the boxes */
    margin: 0 auto; /* Optional: center the container */
}

.review-box {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex: 1 1 calc(25% - 20px); /* 25% width minus the gap */
    box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
}

.review-box p {
    margin: 10px 0;
}

.stars {
    margin: 0px 0px 10px 0px !important;
}

/* Contact Section */
.contact {
    padding: 40px 0;
    display: flex;
}

.contact-left {
    float: left;
    width: 50%;
    /* display: flex;
    flex-direction: column;
    align-items: flex-start;*/
}

.contact-right {
    float: right;
    width: 50%;
    margin-left: 80px;
}

.contact-left p {
    margin-bottom: 20px;
}

.contact-box {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    width: 360px;
    text-decoration: none;
}

.contact-box:hover {
    box-shadow: 0 5px 30px rgba(0, 49, 95, 0.3);
    transform: scale(1.02);
}

.contact-box:active {
    box-shadow: inset 0 4px 4px rgba(0, 49, 95, 0.2);
    transform: scale(0.98);
}

.contact-box img {
    margin-right: 20px;
    height: 30px;
}

.contact-box p {
    margin: 0px;
    font-weight: 600;
    color: #014BAC;
}

.contact-right form {
    display: flex;
    flex-direction: column;
}

.contact-right label {
    margin-bottom: 5px;
    color: #014BAC;
}

.contact-right input,
.contact-right textarea {
    border-radius: 30px;
    box-shadow: inset 0 4px 4px rgba(0, 49, 95, 0.2);
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    min-height: 50px;
}

.contact-right textarea {
    resize: vertical;
    min-height: 250px;
}

/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
   padding-bottom: 15px;
}

/* The checkmark container */
.custom-checkbox .checkmark {
    position: relative;
    height: 30px;
    width: 30px;
    box-shadow: inset 0 4px 4px rgba(0, 49, 95, 0.2);
    border-radius: 8px;
    margin-right: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: 1px solid gray;
}

.custom-checkbox .checkmark:hover {
    border: 1px solid #014BAC;
}

/* Style when the checkbox is checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #014BAC; /* Your custom color */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

/* Add a checkmark symbol when checked */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 9px; /* Adjusted to center the checkmark */
    top: 2px; /* Adjusted to center the checkmark */
    width: 8px; /* Adjusted size of the checkmark */
    height: 15px; /* Adjusted size of the checkmark */
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}



.button {
    background-color: #014BAC;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 20px 30px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.button:hover {
    box-shadow: 0 5px 30px rgba(0, 49, 95, 0.5);
    transform: scale(1.02);
}

.secondary-button {
    border: 2px solid #014BAC;
    color: #014BAC;
    border-radius: 40px;
    padding: 20px 30px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;  
}

.secondary-button:hover {
    transform: scale(1.02);
}

.tertiary_button {
    border: none;
    color: #014BAC;
    background-color: transparent;
    font-size: 20px;
    padding: 10px;
}

.contact-right .terms {
    margin: 10px 0;
}

.contact-right .terms input {
    margin-right: 10px;
}

/* Footer Styles */
footer {
    background-color: #014BAC;
    color: white;
    padding: 20px 0;
    display: flex;
    width: 100%;
}

.footer-logo {
    margin: 20px 0px 30px 0px;
}

.footer-logo img {
    height: 100px;
}

.social-icons {
    text-align: center;
}

.divider {
    height: 1px;
    background-color: white;
    margin: 20px 0;
}

.footer-sections {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-section {
    flex: 1;
}

footer h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0px;
}

footer p {
    color: white;
    font-size: 16px;
}

footer a {
    color: white;
    width: 100%;
    float: left;
    margin: 10px 0px;
}

.footer-bottom {
    padding: 10px;
    background-color: #F3F3F3;
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 20px;
}
.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #1A354F;
    text-decoration: none;
}

.footer-bottom-link {
    cursor: pointer;
}

/* Cookie popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111b7; /* Semi-transparent dark background */
    display: none; /* Initially hidden */
    z-index: 999; /* Ensure it's below the modal */
}

.cookie-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: calc(100% - 40px); /* 40px for padding */
    padding: 30px;
    z-index: 1000; /* Ensure modal is above overlay */
    border-radius: 50px;
    background-color: white; /* White background for the consent area */
    display: none; /* Initially hidden */
}

.cookie-content {
    text-align: left;
    position: relative; /* Ensure position relative for close icon */
}

.cookie-content .close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.2;
}

.cookie-content h2 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 20px;
}

.cookie-content p {
    font-size: 14px;
    line-height: 25px;
    margin-bottom: 20px;
}

.cookie-options .button {
    width: 100%;
}


.cookie-options {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    flex-direction: column;
}

.no-scroll {
    overflow: hidden; /* Prevent scrolling */
}

.close {
    color: white;
    float: right;
    height: 20px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 1220px) {
    .container {
        width: 800px;
    }

    .hero-text h1 {
        font-size: 46px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .button, .call-button, nav, .tertiary_button {
        font-size: 16px;
    }

    .box {
        padding: 25px;
    }

    .box img {
        height: 40px;
    }

    #info {
        flex-direction: column-reverse;
    }

    .info-right {
        max-width: 100%;
        flex-direction: column;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .info-left img {
        width: 100%;
    }

    .services-right {
        height: 750px;
    }

    .service-item.active .text {
        max-height: 410px;
    }

    .text {
        font-size: 14px;
    }
}

@media only screen and (max-width: 840px) {
    .services-right {
        height: auto;
        padding: 0px 0px 10px 0px;
    }
    
    .service-item.active .text {
        max-height: 400px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        margin: 0 20px;
        max-width: calc(100% - 40px);
        padding: 0 0 20px;
    }

    .hero-text, .services-right, .services-left, .contact-right, .contact-left, .info-left {
        flex-direction: column;
        width: 100%;
        margin: 0 0 30px;
        max-width: 100%;
    }

    .project-box {
        flex-direction: column;
    }

    .hero-images {
        margin: 0;
        width: 100%;
        max-height: none;
    }

    .hero-images img {
        width: 100%;
        height: auto;
    }

    nav {
        display: none;
    }

    .button, .secondary-button {
        width: 100%;
        text-align: center;
    }

    .contact-box {
        width: 100%;
    }

    header {
        height: 120px;
    }

    header .logo img {
        height: 70px;
    }

    .boxes {
        gap: 20px;
    }

    .large {
        height: 100%;
        width: 58.8%;
        object-fit: cover;
    }

    .hero-text {
        max-width: 100%;
        margin-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .services-left h2, .info-right h2, .projects h2, .reviews h2, h2 {
        font-size: 32px;
    }

    .footer-sections {
        flex-direction: column;
    }

    .footer-bottom {
        align-items: baseline;
        padding: 20px 0px;
    }
}

@media only screen and (max-width: 500px) {
    .cookie-consent {
        position: fixed;
        top:auto;
        left: 0%;
        bottom: 0%;
        transform:none;
        max-width: calc(100% - 0px); /* 40px for padding */
        padding: 20px;
        z-index: 1000; /* Ensure modal is above overlay */
        border-radius: 8px 8px 0px 0px;
        background-color: white; /* White background for the consent area */
        display: none; /* Initially hidden */
    }
}
