/* MAIN PAGE CSS */

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

/*header a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
}*/

/* 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;
}
/*
@media screen and (max-width: 600px) {
    .navbar a:not(:first-child) {display: none;}
    .navbar a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .navbar.responsive {position: relative;}
    .navbar.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .navbar.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
} */

body {
    background-color: #475b6b;
}


/****************************
*   SERVICES SECTION        *
*****************************/

.service-details-section {
    background-color: #f7f7f7;
    padding: 60px 5% 80px;
}


/****************************
*   TITLE                   *
*****************************/

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

.services-title h1 {
    color: #071d35;
    font-size: 55px;
    margin: 0;
}

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

.services-subtitle {
    text-align: center;
    color: #0b2a4b;
    font-size: 20px;
    margin: 10px 0 35px;
}


/****************************
*   MAIN IMAGE              *
*****************************/

.services-image {
    max-width: 1400px;
    height: 440px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/****************************
*   SERVICE BOX             *
*****************************/


.service-cards {
    max-width: 1300px;
    margin: -100px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}


/* Individual card */

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 75px 30px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
    position: relative;
    min-height: 300px;
}


/****************************
*   SERVICE ICONS           *
*****************************/


.service-icon {
    position: absolute;

    top: -55px;
    left: 50%;

    transform: translateX(-50%);

    width: 110px;
    height: 110px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 50px;

    border: 8px solid white;
}


/* Individual service colors */

.electrical {
    background-color: #e5a900;
}

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

.plumbing {
    background-color: #6f1818;
}

.remodeling {
    background-color: #176452;
}


/****************************
*   SERVICE DETAILS TEXT    *
*****************************/


.service-card h2 {
    color: #071d35;

    font-size: 23px;

    margin: 10px 0 15px;
}

.service-card > p {
    color: #405064;

    font-size: 16px;
    line-height: 1.6;

    min-height: 80px;
}


/****************************
*   EXPAND BUTTON           *
*****************************/


.service-card details {
    margin-top: 20px;
}


/* Removes default triangle */
.service-card summary {
    list-style: none;
}

.service-card summary::-webkit-details-marker {
    display: none;
}


.service-card summary {
    display: inline-block;
    background-color: #6bb6e8;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* hovering color */
.service-card summary:hover {
    background-color: #4a9ed5;
    transform: translateY(-2px);
}


/****************************
*   OPEN/CLOSE              *
*****************************/

.less {
    display: none;
}

/* When card is open */

details[open] .more {
    display: none;
}

details[open] .less {
    display: inline;
}


/****************************
*   FULL DETAILS            *
*****************************/


.full-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #d8e0e5;
    text-align: left;
}


.full-details p {
    color: #405064;
    font-size: 15px;
    line-height: 1.6;
}


.full-details ul {
    color: #405064;
    padding-left: 20px;
    line-height: 1.8;
}


.full-details li {
    margin-bottom: 5px;
}

/* TABLET USERS */

@media (max-width: 1000px) {

    .service-cards {
        grid-template-columns: repeat(2, 1fr);

        gap: 90px 25px;
    }

    .services-image {
        height: 350px;
    }

}


/* SMALL SCREEN USERS RESPONSE */

@media (max-width: 600px) {

    .service-details-section {
        padding: 40px 20px 60px;
    }

    .services-title {
        gap: 15px;
    }

    .services-title h1 {
        font-size: 38px;
        white-space: nowrap;
    }

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

    .services-subtitle {
        font-size: 17px;
    }

    .services-image {
        height: 260px;
    }

    .service-cards {
        grid-template-columns: 1fr;

        margin-top: -40px;

        gap: 90px;
    }

    .service-card {
        padding: 70px 25px 30px;
    }

}

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