* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background-color: white;
    overflow-x: hidden;
}
img {
    max-width: 100%;
}
/* Container */
.container {
    margin: 0 auto;
    padding: 0 15px;
}
.hero {
    position: relative;
    background-image: url("../imgs/bg-1.jpg");
    background-size: cover;
    background-position: center center;
    min-height: 735px;
    display: flex;
    align-items: center;
    justify-content: center; /* Initially center the content */
    /* padding-top: 7rem; */
    padding: 97px 0 !important;
    margin-top: 6.5rem;
}

/* Content Box */
.content-box {
    background-color: rgba(240, 246, 234, 0.7);
    padding: 50px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: 50px;
    margin-bottom: 13rem !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.content-box h1 {
    font-size: 40px;
    font-weight: 400;
    text-align: left;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
    font-family: "Radio Canada Big", serif;
    font-weight: bold;
}

/* Service Icons */
.service-icon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
    margin-top: 20px;
}
.service-icon a {
    width: 100%;
    padding: 25px 10px;
    background-color: #f0f5e9;
    color: black;
    border: 1px solid #146190;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.service-icon i {
    color: #146190;
}

.service-icon a i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
    color: #146190;
    transition: color 0.3s ease; /* Smooth transition for the icon color */
}

.service-icon a:hover {
    background-color: #146190;
    color: white;
}

.service-icon a:hover i {
    color: white; /* Icon color changes to white when the parent is hovered */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 0 0 !important;
        margin-top: 0;
    }

    .content-box {
        padding: 30px;
        margin-bottom: 0 !important;
    }

    .content-box h1 {
        font-size: 29px;
    }

    .service-icon {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 20px;
    }

    .how-it-works {
        height: 500px !important;
    }

    .info-box {
        padding: 9px !important;
        height: 322px !important;
        margin: 0 !important;
    }
    .expert-services {
        margin-top: 20rem !important;
    }
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 0 10px;
    }
    .navbar-text {
        font-size: 12px;
    }
}
@media (max-width: 767px) {
    .hero {
        justify-content: center;
        padding: 20px;
        min-height: 500px;
    }
    .content-box {
        margin: 62px 20px !important;
        max-width: 100%;
        margin-bottom: 60px !important;
    }
    .content-box h1 {
        font-size: 24px;
    }
    .service-icon {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-icon a {
        font-size: 12px;
    }
    .navbar-collapse {
        justify-content: center;
    }
    .navbar-text {
        /* text-align: center; */
        margin-top: 10px;
    }

    .info-box {
        width: 100%;
        margin-bottom: 15px;
    }

    .how-it-works .row {
        flex-direction: column;
    }

    .info-box-container {
        flex-direction: column;
    }

    .how-it-works {
        height: 500px !important;
        padding: 50px 20px !important;
    }
    .info-box-container {
        padding: 30px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-top: 30px;
        position: relative;
        top: -110px;
    }
    .info-box {
        margin: 0;
        margin-bottom: 30px !important;
    }

    .expert-services {
        margin-top: 50rem;
    }

    .image-container {
        order: 2; /* Move image to second */
    }

    .whole-text {
        order: 1; /* Move text to first */
    }
    .content {
        padding-top: 1px;
    }
    .expert-services {
        margin-top: 66rem !important;
    }
    .contact-section {
        padding: 40px 0 !important;
    }
}

@media (min-width: 425px) and (max-width: 576px) {
    .how-it-works {
        padding: 50px 50px 100px 50px !important;
        height: 100% !important;
    }
}

@media (min-width: 375px) and (max-width: 425px) {
    .how-it-works {
        /* padding: 50px 50px 100px 50px !important; */
        height: 100% !important;
    }
}

@media (min-width: 320px) and (max-width: 375px) {
    .how-it-works {
        /* padding: 50px 50px 100px 50px !important; */
        height: 900px !important;
    }
}

@media (max-width: 426px) {
    .hero {
        padding: 1px 0 !important;
        margin-top: 2rem !important;
    }
    .expert-services {
        margin-top: 57rem !important;
    }
}

/* How It Works Section */
.how-it-works {
    background-color: #146190;
    color: white;
    /* padding: 100px 20px; */
    /* padding: 50px 50px 100px 50px !important; */
    height: 50%;
    font-family: "Red Hat Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.how-it-works .label-box {
    background-color: white;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #146190;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.label-box {
    background-color: #75cb20;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #e0ffdc;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.how-it-works h3 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
}

.how-it-works-para {
    /* font-size: 18px; */
    padding-top: 70px !important;
    color: #e0ffdc;
}

/* Info Box Container */
.info-box-container {
    padding: 30px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    position: relative;
    /* top: -110px; */
}

.info-box .solar {
    position: relative;
}

/* Individual Info Box Styling */
.info-box {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    color: black;
    padding: 12px;
    margin: 10px;
    /* width: 30%; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 250px;
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    border: none;
}

.title {
    position: relative;
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Add the border using ::before */
.title::before {
    content: "";
    position: absolute;
    bottom: -10px; /* Distance from the title text */
    left: 0;
    width: 3rem; /* Length of the line */
    height: 2px; /* Thickness of the line */
    background-color: white; /* Color of the line */
}

/* Dark Overlay on Info Box */
.info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f6fe;
    z-index: 1;
    border-radius: inherit; /* Ensures the overlay matches the card's rounded corners */
    pointer-events: none; /* Prevent overlay from interfering with interactions */
}

.info-box h3,
.info-box p {
    position: relative;
    z-index: 1;
}

.info-box h3 {
    font-size: 20px;
    font-weight: bold;
    /* margin-bottom: 105px; */
    display: flex;
    align-items: center;
}

.info-box h3 i {
    background-color: #146190;
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 16px;
    margin-right: 10px;
}

.info-box p {
    font-size: 16px;
    color: black;
    margin: 0;
}
.info-box h3 {
    color: black;
}

/* Background Images for Info Boxes */
.info-box.roofing {
    background-image: url("../imgs/Plumbing\ and\ Heating.jpg"); /* Replace with actual image */
    position: relative;
    z-index: 10;
}

.info-box.solar {
    background-image: url("../imgs/Kitchen.jpg");
}

.info-box.windows {
    background-image: url("../imgs/Electrics\ Service.jpeg"); /* Replace with actual image */
}

.how-it-works .card {
    border-color: transparent;
}

img {
    width: 100%;
}

.expert-services {
    margin-top: 13rem;
}

.expert-content {
    font-family: "Red Hat Display";
    font-size: 16px;
    font-weight: 400;
    color: #606060;
    line-height: 30px;
    padding-top: 2rem;
}

.content {
    padding-top: 3rem;
    padding-left: 2.3rem;
}

.expert-services h2 {
    font-weight: bold;
    position: relative;
}

.expert-services .heading::before {
    content: "";
    position: absolute;
    bottom: -10px; /* Distance from the title text */
    left: 0;
    width: 3rem; /* Length of the line */
    height: 4px; /* Thickness of the line */
    background-color: #146190; /* Color of the line */
}

.info-box-body {
    padding: 0rem 0rem !important;
}

/* Contact Section Styling */
.contact-section {
    padding: 80px 0;
    background-color: white; /* Light background */
}

/* Label Box */
.label-box {
    display: inline-block;
    background-color: #146190; /* Green background */
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 15px;
}

/* Heading */
.heading {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 30px;
}

/* Form Styling */
.contact-form .form-control {
    border: 1px solid black;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
    width: 100%;
}

.contact-form textarea.form-control {
    resize: none; /* Disable resizing */
}

/* Submit Button */
.btn-primary {
    background-color: #146190;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Radio Canada Big", serif;
    font-weight: 400;
    width: 20%;
}

.btn-primary:hover {
    background-color: #146190;
    color: white;
}

.btn-primary:focus {
    background-color: #146190;
    border-color: #146190;
}

/* Contact Info Styling */
.contact-info {
    background-color: #f2f6fe;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.contact-info ul li i {
    color: #146190; /* Icon green color */
    font-size: 18px;
    margin-right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contact-info {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .contact-section .row {
        flex-direction: column;
    }

    .contact-info {
        margin-top: 20px;
    }
}

/* General Section Styling */
.no-padding.bg-color.text-light {
    padding: 50px 0;
    color: white;
    font-family: Arial, sans-serif;
}

/* Feature Box Styling */
.feature-box {
    position: relative;
    text-align: left;
    padding: 70px 15px;

    height: 100%;

    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-box .text {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.feature-box h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

/* Icon Inside the Feature Box */
.feature-box .i-boxed {
    width: 60px;
    height: 60px;
    line-height: 60px;
    display: inline-block;
    background-color: #146190; /* Icon background color */
    color: #fff;
    font-size: 24px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Background Watermark Icon */
.feature-box .wm {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.1); /* Light transparent icon */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none; /* Prevent interaction with the watermark */
}

/* Icon Hover Effect */
.feature-box:hover .i-boxed {
    background-color: #fff; /* Invert the icon background */
    color: #146190; /* Change icon color to green */
}
.feature-box {
    box-shadow: 8px 0 15px rgba(0, 0, 0, 0.2); /* Right-side shadow */
}

.feature-box:hover {
    box-shadow: 12px 0 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Responsive Design */
@media (max-width: 991px) {
    .feature-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .feature-box .wm {
        font-size: 100px; /* Adjust background icon size for small screens */
    }
    .feature-box h4 {
        font-size: 16px;
    }
    .feature-box .text {
        font-size: 13px;
    }
}

/* Footer */

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    outline: none;
}

a,
a:active,
a:focus {
    color: #656974;
    text-decoration: none;
    transition-timing-function: ease-in-out;
    -ms-transition-timing-function: ease-in-out;
    -moz-transition-timing-function: ease-in-out;
    -webkit-transition-timing-function: ease-in-out;
    -o-transition-timing-function: ease-in-out;
    transition-duration: 0.2s;
    -ms-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    -webkit-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
}

ul {
    margin: 0;
    padding: 0;
    /* list-style: none; */
}

img {
    max-width: 100%;
    height: auto;
}

.hero {
    padding: 97px 0 !important;
}
hr {
    color: #eaeaea;
    padding-bottom: 3rem;
}

@media only screen and (max-width: 768px) {
    .single_footer {
        margin-bottom: 30px;
    }
}

.single_footer h4 {
    color: #000000;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
}

.single_footer p {
    color: #656974;
}

.single_footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.single_footer ul li a {
    color: #656974;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    line-height: 36px;
    font-size: 15px;
    text-transform: capitalize;
}

.single_footer ul li a:hover {
    color: #146190;
}

.single_footer_address ul li {
    color: #656974;
}

.single_footer_address ul li span {
    font-weight: 400;
    color: #656974;
    line-height: 28px;
}

.single_footer_address span i {
    color: #146190;
    line-height: 28px;
}

.single_footer_address span {
    font-weight: 400;
    color: #656974;
    line-height: 28px;
}

.single_footer_address span a {
    font-weight: 400;
    color: #656974;
    line-height: 28px;
}

.single_footer_address span a:hover {
    font-weight: 400;
    color: #146190;
    line-height: 28px;
}

.contact_social ul {
    list-style: outside none none;
    margin: 0;
    padding: 0;
}

.social_profile {
    margin-top: 20px;
    text-align: right;
}

.social_profile ul {
    list-style: outside none none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.social_profile ul li {
    display: inline-block;
}

.social_profile ul li a {
    text-align: center;
    border: 0px;
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    margin: 0px 5px;
    font-size: 15px;
    color: #ffffff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: block;
    background: #146190;
    border: 1px solid #146190;
}

@media only screen and (max-width: 768px) {
    .social_profile ul li a {
        margin-right: 10px;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 576px) {
    .social_profile {
        margin-top: 20px;
        text-align: left;
    }
}

@media only screen and (max-width: 480px) {
    .social_profile {
        margin-top: 20px;
        text-align: left;
    }

    .social_profile ul li a {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}

.social_profile ul li a:hover {
    color: #146190;
    background: #ffffff;
    border: 1px solid #ffffff;
}

.copyright {
    margin-top: 25px;
    margin-bottom: 0;
    color: #656974;
    font-size: 15px;
}
.copyright a {
    color: #656974;
    transition: all 0.2s ease 0s;
}
.copyright a:hover {
    color: #146190;
}

/* Top Bar */
.top-bar {
    background-color: #146190;
    color: white;
    font-size: 14px;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000; /* Higher than header */
    top: 0;
}
.top-bar.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.top-bar a {
    color: white;
    text-decoration: none;
    /* margin: 0 10px; */
}

/* Header */
.header {
    position: fixed;
    top: 40px; /* Positioned below Top Bar */
    width: 100%;
    z-index: 900; /* Lower than Top Bar */
    background-color: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 0; /* Move header to top when scrolling */
}

.navbar {
    padding: 10px 20px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #146190;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #333;
}

.navbar-nav .dot {
    width: 6px;
    height: 6px;
    background-color: #146190;
    border-radius: 50%;
    margin: 0 15px;
}

.navbar-text {
    color: #333;
    font-weight: 400;
    font-size: 12px;
}

.navbar-text i {
    color: #146190;
    font-size: 30px;
}

.navbar-text .span-num {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.fa__phone {
    margin-top: 19px !important;
    margin-right: 15px !important;
}

@media screen and (max-width: 425px) {
    .top-bar {
        display: none; /* Completely hide the Top Bar */
    }

    .header {
        top: 0; /* Adjust Header to occupy the space of the hidden Top Bar */
    }
}

.topbar-widget.tb-social {
    padding: 0;
}

.topbar-widget.tb-social a {
    font-size: 14px;
    display: flex;
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    display: inline-block;
    text-align: center;
    border-left: solid 1px #eeeeee46 !important;
}

.topbar-widget.tb-social a:last-child {
    border-right: solid 1px #eeeeee46 !important;
}

/* Parent List Item (Services) */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown Menu */
.nav-item .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the parent */
    left: 0;
    background-color: white; /* Background color for dropdown */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for dropdown */
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    border-radius: 4px;
    min-width: 200px;
    border: none;
}

/* Dropdown Menu Items */
.nav-item .dropdown-menu li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 15px;
}

.nav-item .dropdown-menu li a:hover {
    color: #ffffff; /* Hover color */
    background-color: #146190;
}

/* Show Dropdown on Hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown menu */
}

@media screen and (max-width: 992px) {
    .navbar-nav {
        display: flex;
        align-items: flex-start;
    }

    .navbar-nav .dot {
        display: none;
    }

    .header {
        background-color: white;
        /* overflow: hidden; */
        position: relative;
    }
}

@media screen and (max-width: 768px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Disable hover effect for mobile */
    }

    .dropdown-menu {
        display: none; /* Initially hidden */
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block; /* Show when toggled */
    }
}

/* Toggler Button */
.navbar-toggler {
    border: none; /* Remove border */
    background-color: #33333300; /* Black background for the toggler button */
    padding: 15px 15px;
    /* color: #000000 !important; */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
}

/* Toggler Icon (Three lines) */
.navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: rgb(0, 0, 0); /* White lines for contrast */
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color: rgb(0, 0, 0); /* White lines */
    position: absolute;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -6px; /* Position top line */
}

.navbar-toggler-icon::after {
    top: 6px; /* Position bottom line */
}

/* On Hover */
.navbar-toggler:hover {
    background-color: #ffffff; /* Slightly darker background */
}

/* On Focus (for accessibility) */
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 4px #146190; /* Green shadow on focus */
}

/* Media query for screens with a max width of 767px */
@media (max-width: 767px) {
    .hero {
        background-position: 20%; /* Center the image */
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center-align text and elements */
        background-repeat: no-repeat;
    }
    .hero {
        padding: 1px 0 !important;
        margin-top: 4.5rem;
    }
    .btn-primary {
        width: 100%;
    }
    .container,
    .row {
        margin: 0 auto; /* Center-align content */
        width: 100%; /* Full width on small screens */
        box-sizing: border-box; /* Include padding in width */
    }

    .service-icon a {
        background-color: transparent;
        color: black;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.service-icon {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(120px, 1fr)
    ); /* Dynamically adjust grid items */
    gap: 10px; /* Add spacing */
    justify-items: center;
}
.elivate-bg img {
    max-width: 100%;
    height: 86% !important;
    display: block;
}
