/* MAIN PAGE CSS */

header {
    background-color: #475b6b;
    text-align: center;
    padding: 1em 0;
}

/* navigation bar styles */
.navbar {
    height: auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    background-color: #0d1821;
    overflow: hidden;
}

.navbar a {
    color: white;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    text-decoration: none;
}

.navbar a:hover {
    border: 4px;
    border-radius: 10px; 
    background-color: #597b91;
    color: white;
}

.navbar .icon {
    display: none;
}
/*Body & Main */

body {
    background-color: #475b6b;
}
main {
    background-color: #0d1821; 
    position: relative;
    text-align: center;
    padding: 20px;
}
/* Main page cover */
.hero {
    position: relative;
    min-height: 500px;
    background-color: #0d1821;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 35%;
    padding: 70px 0 70px 5%;
}

.hero-tagline {
    color: #6bb6e8;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero h1 {
    color: white;
    font-size: 64px;
    text-align: left;
    line-height: 1.05;
    margin: 20px 0;
}

.hero-description {
    color: white;
    font-size: 22px;
    line-height: 1.4;
}

/* Button to contact us */
.estimate-button {
    display: inline-block;
    background-color: #6bb6e8;
    color: white;
    padding: 20px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

/********************************
* Navy background to picture    *
* of House and licensed picture *
********************************/
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
} 

 /* Gradient to picture */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 35%;
    width: 15%;
    height: 100%;
    background: linear-gradient(
        to right,
        #0d1821 0%,
        rgba(13, 24, 33, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
} 

main h2 {
    border: 5px;
    text-align: left;
    border-radius: 8px; 
    font-size: x-large;
    color: black;
}

main h3 {
    border: 5px;
    border-radius: 8px; 
    color: black;
}

.left-title {
    text-align: left !important;
}

main p {
    border: 5px;
    border-radius: 8px; 
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    text-align: left;
    margin-bottom: 40px;
}

/***************************
*   Mission Statement      *
****************************/
.mission {
    background-color: #f1f6fa;
    text-align: center;
    padding: 70px 15%;
    border-top: 1px solid #d6e2eb;
    border-bottom: 1px solid #d6e2eb;
}

.mission h2 {
    color: #0d1821;
    font-size: 42px;
    margin-bottom: 25px;
    font-family: Georgia, serif;
}

.mission p {
    color: #34495e;
    font-size: 20px;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto;
}

/*********************
 *  WHY CHOOSE US    *
**********************/

.why-us {
    background-color: #eef8fd;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    padding: 35px 6%;
    text-align: center;
}

.why-item {
    padding: 0 25px;
    border-right: 1px solid #b8cbd8;
}

.why-item:last-child {
    border-right: none;
}


.why-item h3 {
    color: #061e38;
    font-size: 24px;
    margin: 12px 0 7px;
}

.why-item p {
    color: #25384b;
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}


/**********************
*   OUR SERVICES       *
**********************/

.services {
    background-color: white;
    padding: 30px 5% 50px;
}

.services-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    margin-bottom: 25px;
}

.services-title h2 {
    color: #061e38;
    font-size: 44px;
    margin: 0;
}

.services-title span {
    display: block;
    width: 220px;
    height: 2px;
    background-color: #8daabd;
}


/*********************
*    Service Grid    *
**********************/

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;

    max-width: 1400px;
    margin: auto;
}

.service-item {
    text-align: center;
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}


/*****************************
*  Services colors  *
******************************/

.home-icon {
    background-color: #062f59;
}

.electrical-icon {
    background-color: #e5a900;
}

.remodel-icon {
    background-color: #176452;
}

.hvac-icon {
    background-color: #4d9bd3;
}

.plumbing-icon {
    background-color: #512183;
}

.duct-icon {
    background-color: #7d878d;
}


/**********************
* Service text        *
**********************/

.service-item h3 {
    color: #071d35;
    font-size: 18px;
    margin: 0 0 12px;
}

.service-item p {
    color: #405064;
    font-size: 16px;
    text-align: center;
    line-height: 1.45;
    margin: 0;
}

/* More Details of Service Button */
.details-button-container {
    text-align: center;
    margin-top: 35px;
}
.details-button {
    display: inline-block;
    align-items: center;
    background-color: #6bb6e8;
    color: white;
    padding: 10px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;    

}


/* TABLET USERS */

@media (max-width: 1000px) {

    .why-us {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .why-item {
        border-right: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }

}


/* SMALL SCREEN USERS RESPONSE */

@media (max-width: 600px) {

    .why-us {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .why-item {
        padding: 20px 0;
        border-bottom: 1px solid #b8cbd8;
    }

    .why-item:last-child {
        border-bottom: none;
    }

    .services {
        padding: 30px 20px;
    }

    .services-title {
        gap: 15px;
    }

    .services-title h2 {
        font-size: 34px;
        white-space: nowrap;
    }

    .services-title span {
        width: 70px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 15px;
    }

    .service-icon {
        width: 85px;
        height: 85px;
        font-size: 40px;
    }

    .service-item h3 {
        font-size: 16px;
    }

    .service-item p {
        font-size: 14px;
    }
} */