/* === Custom Services Page | Creasy Slabs & Block === */

/* General Page Styling */
body {
    font-family: 'Inter', sans-serif; /* Matches homepage */
    color: #333; /* Standard text color */
    background-color: #f8f9fa; /* Light gray background */
}

/* Navbar Alignment */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%; /* Adjusted padding for better positioning */
    background-color: #5BA4CF;
    height: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
}

/* Ensuring navbar contents align properly */
.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap; /* Ensures navbar items stay in a row */
    gap: 10px; /* Reduce spacing */
}

/* Fix for navbar brand spacing */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    font-size: 1.6rem;
    font-weight: bold;
    font-family: 'Lora', serif;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand img {
    max-height: 50px; /* Reduce logo size if it's pushing content */
}

/* Ensuring the hamburger menu stays aligned */
.navbar-toggler {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 10px;
}

/* Adjusting the menu icon size */
.navbar-toggler-icon {
    width: 30px;
    height: 30px;
}

/* Centering Nav Links */
/* Navbar Links Centering */
.navbar-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Ensures dropdown stays aligned properly */
.navbar .dropdown {
    position: relative;
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 22px;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #002244 !important;
}

/* === Dropdown Menu === */
.dropdown-menu {
    background-color: white;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.dropdown-item {
    font-size: 1rem;
    color: #333;
    padding: 10px 15px;
    transition: background-color 0.3s ease-in-out;
}

.dropdown-item:hover {
    background-color: #5BA4CF !important; /* Matches navbar */
    color: white !important;
}




/* Button Container */
/* Fixing Button Alignment */
.navbar-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto; /* Keeps buttons right-aligned */
    white-space: nowrap; /* Prevents breaking */
    flex-shrink: 0; /* Ensures buttons do not shrink */
}

/* Make sure buttons don’t shrink */
.navbar-buttons .btn {
    min-width: 110px;
    padding: 12px 20px;
    text-align: center;
}

/* Button Styling */
.call-btn, .email-btn {
    display: flex; /* Ensures button text is centered properly */
    align-items: center;
    justify-content: center;
    padding: 12px 30px; /* Makes the buttons larger */
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    background-color: white;
    color: #333;
    border: 2px solid #5BA4CF;
    text-align: center;
    transition: all 0.3s ease-in-out;
    min-width: 100px;
    text-align: center;
}


/* Button Hover Effects */
.call-btn:hover, .email-btn:hover {
    background-color: #5BA4CF;
    color: white;
    border-color: white;
    transform: scale(1.02);
}

.custom-navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Adds spacing between logo, menu, and buttons */
}






/* === Offcanvas Navigation Fix === */
.offcanvas {
    background-color: #5BA4CF; /* Match main navbar */
    color: white;
}

.offcanvas-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Ensure offcanvas menu items are fully left-aligned */
.offcanvas-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 30px !important;
    display: block;
}

/* Nav Links Inside Offcanvas */
.offcanvas .nav-link {
    color: white !important;
    font-size: 1.4rem;
    padding: 12px 0;
    text-align: left;
}

.offcanvas .nav-link:hover {
    text-decoration: underline;
}

.offcanvas .dropdown-menu {
    background-color: white;
    border-radius: 5px;
    padding: 8px 0;
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
}

/* Ensure nav links are properly aligned */
.offcanvas .navbar-nav {
    width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Individual nav link alignment */
.offcanvas .nav-item {
    width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
}

/* Fix Call & Email Buttons at the Bottom */
.offcanvas-footer {
padding-top: auto;    
width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offcanvas .dropdown-item {
    font-size: 1rem;
    color: #333;
    padding: 8px 10px;
}

.offcanvas .dropdown-item:hover {
    background-color: #5BA4CF !important;
    color: white !important;
}

/* === Fix Call & Email Buttons in Mobile Menu === */
/* Button Adjustments in Mobile Nav */
/* Button Adjustments */
.offcanvas-footer .btn {
    display: flex;
    width: 90%; /* Adjust width to look better */
    margin: 5px 0;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
}

.offcanvas .call-btn, 
.offcanvas .email-btn {
    background-color: white;
    color: #333;
    border: 2px solid #ffffff;
}

.offcanvas .call-btn:hover, 
.offcanvas .email-btn:hover {
    background-color: #ffffff;
    border-color: #5BA4CF;
    color: #5BA4CF;
    transform: scale(1.02);
}












/* Section Title - Residential Concrete Services */
.section-title {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    font-weight: bold;
    color: #5BA4CF; /* Dark Blue - Matches homepage */
    text-align: center;
    margin-bottom: 20px;
}

.h2 {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    font-weight: bold;
    color: #5BA4CF; /* Dark Blue - Matches homepage */
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #555; /* Slightly lighter gray for better readability */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}


/* Services Sections */
.services .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Service Cards */
.service-card {
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    background: white;
    padding-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}

/* Service Images */
.service-card img {
    max-height: 220px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.service-card .card-body {
    text-align: center;
    padding: 20px;
}

/* Service Titles */
.service-card .card-title {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #5BA4CF;
    text-align: center;
    margin-top: 10px;
}

/* Service Descriptions */
.service-card .card-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* "Read More" Buttons */
.service-card .btn-primary {
    background-color: #5ba4cf; /* Light blue - Matches homepage */
    border-color: #5ba4cf;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    width: 50%;
    margin: 0 auto;
}

.service-card .btn-primary:hover {
    background-color: #3884a7;
    border-color: #3884a7;
    transform: scale(1.05);
}










/* --- FOOTER STYLING --- */
.footer {
    background-color: #5BA4CF; /* Maintain brand color */
    color: #F3F3E3;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Lora', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Footer Container */
.footer .container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.footer-contact a {
    color: #F3F3E3;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-contact a:hover {
    color: #002244;
    transform: scale(1.05);
}

/* Social Media Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-social a {
    color: #F3F3E3;
    font-size: 1.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: #002244;
    transform: scale(1.2);
}

/* Privacy Policy */
.footer .privacy-policy {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 5px;
}

.footer .privacy-policy a {
    color: #F3F3E3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .privacy-policy a:hover {
    color: #002244;
}

/* Copyright */
.footer .copyright {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.85;
}

/* Desktop Fix */
@media (min-width: 1200px) {
    .bio-section {
        background-size: 100% auto; /* Ensures the full image width is visible */
        background-position: top center; /* Aligns image properly */
    }
}

@media (max-width: 1200px) {
    .navbar-buttons {
        flex-wrap: nowrap;
        gap: 10px; /* Keeps button spacing controlled */
    }

    .navbar-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
        min-width: 110px;
    }
}

/* === Responsive Styles === */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar .btn {
        padding: 15px 30px; /* Larger buttons on desktop */
        font-size: 1.1rem; /* Bigger text */
        min-width: 150px; /* Ensures buttons don't shrink too much */
    }

    .navbar-buttons .btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        flex-grow: 1; /* Makes them take up more space */
    }

    .navbar-buttons {
        display: none; /* Hide buttons on smaller screens */
    }

    .bio-section {
        min-height: 80vh; /* Taller bio section on desktop */
        background-size: cover; /* Ensures full background visibility */
        background-position: center center;
    }
}

/* Hide buttons on mobile */
@media (max-width: 991px) {
    .navbar-buttons {
        display: none; /* Hides the buttons in the header on mobile */
    }

    .offcanvas .btn {
        display: flex;
        width: 100%;
        margin: 5px 0;
        padding: 12px;
        font-size: 1.1rem;
        font-weight: bold;
        border-radius: 8px;
    }
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-card {
        width: 100%;
    }

    .service-card img {
        height: 200px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

