html,
body {
    height: 100%;
    /* Ensure the html and body are 100% height */
    margin: 0;
    /* Remove default margin */
}

/* Custom styles for AB Pools VA */
body {
    background-color: #f8f9fa;
    font-family: 'Lato',
        sans-serif;
    font-size: 1.3em;
}

.main-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Menu */
.navbar-brand {
    font-family: 'Anton', sans-serif;
    font-size: 1.5em;
}

.request-btn {
    background-color: #17a2b8;
    transition: background-color 0.3s ease;
}

.request-btn:hover {
    background-color: #138496;
}


/* jumbotron */
.jumbotron h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.jumbotron p {
    font-size: 1.3em;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.index-bg-image {
    background-image: url('../img/banner-desktop.jpg');
    height: 400px;
    background-size: cover;
    background-position: center;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    .index-bg-image {
        background-image: url('../img/banner-mobile.jpg');
        height: 600px;
        background-size: cover;
        background-position: center;
    }

    .jumbotron p {
        font-size: .9em;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        width: 100% !important;
    }
}

.custom-list {
    list-style-type: none;
    padding-left: 0;
}

.custom-list li {
    display: flex;
    align-items: center;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1em;
}

.custom-list li::before {
    content: url('../icons/check.svg');
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Container styles */
.estimate-container {
    width: 100%;
    max-width: 600px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    background-color: #f8f9fa;
}

/* Header styles */
.estimate-header {
    background-color: #ececec;
    padding: 1.5rem;
    border-radius: 5px 5px 0 0;
}

/* Background image and body styles */
.estimate-body {
    background-image: url('../img/thumbsup.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem 1rem;
    border-radius: 0 0 5px 5px;
    background-position: center 5%;
}

/* Text alignment in the button */
.btn-info.d-inline-flex.align-items-center img {
    margin-left: 10px;
}

/* General styles for the feature boxes */
.feature-box {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 300px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Overlay content (text) on top of the background */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    text-align: center;
    padding: 23px;
}

.overlay p {
    font-size: 1.0em;
}

/* Hover effect to darken the background and make the text more readable */
.feature-box:hover .overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* add a slight zoom effect on hover */
.feature-box:hover {
    transform: scale(1.05);
}

/* Individual background images for each feature box */
.feature-box:nth-child(1) {
    background-image: url('../img/construction.jpg');
}

.feature-box:nth-child(2) {
    background-image: url('../img/service.jpg');
}

.feature-box:nth-child(3) {
    background-image: url('../img/restoration.jpg');
}

.feature-box:nth-child(4) {
    background-image: url('../img/jacuzzi.jpg');
}

/* Container styling for the title */
.counties-served h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.counties-served .highlight {
    color: rgb(48, 113, 129);
}

.counties-served .icon {
    width: 40px;
    margin-left: 10px;
}

/* Flex-based custom column width for 5 columns */
.custom-col {
    flex-basis: 18%;
    margin-bottom: 1rem;
    padding: 0 10px;
}

.counties-list h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.counties-list ul {
    list-style-type: none;
    padding-left: 0;
}

.counties-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Responsive behavior: stack columns on smaller screens */
@media (max-width: 768px) {
    .custom-col {
        flex-basis: 100%;
        text-align: center;
    }

    .counties-served h2 {
        font-size: 2rem;
    }

    .counties-list li {
        font-size: 0.9rem;
    }

    .counties-list {
        padding-left: 0 !important;
    }
}

.what-we-do h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.what-we-do .highlight {
    color: rgb(48, 113, 129);
}

.what-we-do .icon {
    width: 40px;
    margin-left: 10px;
    vertical-align: middle;
}

.what-we-do h5 {
    margin-bottom: 1rem;
}

.what-we-do ul {
    list-style: none;
}

.what-we-do ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .what-we-do h2 {
        font-size: 2rem;
    }

    .what-we-do ul li {
        font-size: 0.9rem;
    }
}


/* General footer styling */
.footer {
    background-color: #282b31;
    /* Dark background */
    color: #d3d3d3;
    /* Light grey text */
    padding: 40px 0;
    /* Vertical padding */
    text-align: center;
    /* Center text and content */
    font-family: 'Anton', sans-serif;
    /* Apply Anton font to the entire footer */
}

.footer-logo h3 {
    font-size: 1.7em;
    /* Size for company name */
    font-weight: bold;
    margin-bottom: 20px;
    color: #e0ddd5;
    /* Slight off-white color for the logo */
    font-family: 'Anton', sans-serif;
    /* Ensure Anton font for the logo text */
}

.social-icons a {
    margin: 0 15px;
    /* Spacing between icons */
    display: inline-block;
}

.social-icons img {
    width: 40px;
    /* Size of social media icons */
    height: 40px;
    filter: grayscale(100%);
    /* Icons are in greyscale */
    transition: filter 0.3s ease;
    /* Smooth transition on hover */
}

.social-icons a:hover img {
    filter: none;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.6em;
    font-family: Roboto,
        sans-serif;
}

.footer-copyright a {
    color: #d3d3d3;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.satisfaction-text .highlight {
    color: rgb(48, 113, 129);
}

.satisfaction-text p {
    font-size: 1em;
    padding-bottom: 10px;
}

/* Main content styling */
.contact-main-content {
    padding: 20px;
}

.contact-info p {
    font-size: 1rem;
}

.contact-title {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.contact-item i {
    margin-right: 10px;
    color: #308171;
    /* Icon color */
}

/* Contact Form */
.contact-form {
    padding-left: 20px;
}

.form-title {
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.5rem;
}

.form-group label {
    font-weight: bold;
    font-size: 1rem;
}

.form-control {
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 4px;
}

.form-buttons {
    margin-top: 20px;
}

.form-buttons button {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info {
        margin-bottom: 30px;
    }

    .contact-info,
    .contact-form {
        padding-left: 30px;
        padding-right: 0;
    }
}

.pool-bg-image {
    background-image: url('../img/water.jpg');
    height: 300px;
    background-size: cover;
    background-position: center;
}


@media (max-width: 768px) {
    .pool-jumbo h1 {
        font-size: 1.7em;
    }
}

.starting-right .highlight {
    color: rgb(48, 113, 129);
}

/* General list styling */
.qa-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.qa-list li {
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-left: 30px;
    position: relative;
}

/* Question styling */
.qa-list .question i {
    color: #007bff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.qa-list .question {
    font-weight: bold;
}

/* Answer styling */
.qa-list .answer i {
    color: #f9c74f;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

.qa-list .answer {
    color: #333;
}

.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.modal-body {
    padding: 0;
}

.custom-img {
    width: 100%;
    height: auto;
    max-width: 80%;
    display: block;
    margin: 0 auto;
}