/* General Page Styling */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #E9F1F7; /* Matches the homepage background */
    margin: 0;
    padding: 0;
}

/* 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);
}

/* Logo and Brand Text */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    font-size: 2rem; /* Match form titles */
    font-weight: bold;
    font-family: 'Lora', serif;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
}

/* 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; /* Ensures it takes space */
    text-align: center;
    margin: 0 auto;
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 18px;
    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.show .dropdown-menu {
    display: block !important;
}

.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;
}

.dropdown-menu.show {
    display: block !important;
}




/* Button Container */
.navbar-buttons {
    display: flex; /* Keeps buttons in a row */
    gap: 15px; /* Adds space between Call Us & Email Us */
    align-items: center; /* Ensures vertical alignment */
}


/* 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;
}


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








/* === 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);
}











/* --- 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;
}









/* Hero Section Styling */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background-color: #E9F1F7;
}

.hero-section .section-title {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #5BA4CF;
}

.hero-section .row {
    margin-top: 30px;
}

.hero-section img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h2 {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Sidewalks & Walkways Benefits Section */
.sidewalks-benefits {
    background-color: #E9F1F7;
    padding: 60px 0;
}

.sidewalks-benefits h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5BA4CF;
    text-align: center;
    margin-bottom: 30px;
}

.benefit-card {
    background: #5BA4CF;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    color: #002244;
}

.benefit-card:hover {
    transform: scale(1.05);
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #F3F3E3;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1.1rem;
    color: #F3F3E3;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5BA4CF;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: #5BA4CF;
    color: #E9F1F7;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
    border: none;
}

.cta-section .btn-primary:hover {
    background-color: #002244;
}














/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

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

    .benefit-card,
    .option-card {
        margin-bottom: 20px;
    }
}

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

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

    .driveway-info h2,
    .driveway-benefits h2,
    .driveway-process h2,
    .driveway-options h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .driveway-info p,
    .driveway-benefits p,
    .cta-section p {
        font-size: 1rem;
    }

    .cta-section .btn-primary {
        font-size: 1rem;
        padding: 12px 24px;
    }
}



/* Responsive Styling */
@media (max-width: 768px) {
    .custom-navbar {
        padding: 10px 15px;
    }

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

    .navbar-toggler {
        padding: 6px 8px;
    }

    .bio-section {
        padding: 80px 5%;
        background-attachment: scroll; /* Fix for iOS Safari */
        background-size: cover;
        background-position: center;
    }

    .bio-section h3 {
        font-size: 1.8rem;
    }

    .bio-section h2 {
        font-size: 2.8rem;
    }

    .bio-section p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-social {
        gap: 15px;
    }

    .footer-contact a {
        font-size: 1rem;
    }
}

/* 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;
    }
}

@media (max-width: 768px) {
    .hero-section img {
        margin-bottom: 20px; /* Adds spacing between the image and text */
    }

    .hero-section h2 {
        margin-top: 15px; /* Adds spacing above the heading */
        text-align: center; /* Keeps it centered for better alignment */
    }

    .hero-section p {
        padding: 0 15px; /* Ensures text does not touch the edges */
    }
}

@media (max-width: 768px) {
    .hero-driveway-section .row {
        flex-direction: column;
    }

    .hero-driveway-section img {
        margin-bottom: 20px; /* Adds space below the image */
    }

    .hero-driveway-section h2 {
        margin-top: 10px; /* Adds some spacing above the heading */
        text-align: center; /* Centers text on smaller screens */
    }

    .hero-driveway-section p {
        padding: 0 15px; /* Adds horizontal padding for better readability */
    }

    .cta-section {
        padding: 60px 20px; /* Adds side padding for better spacing on small screens */
    }

    .cta-section h2 {
        font-size: 2rem; /* Reduce heading size on mobile */
        margin-bottom: 15px;
    }

    .cta-section p {
        font-size: 1rem; /* Adjust text size */
        padding: 0 15px; /* Adds padding to prevent text from touching edges */
        margin-bottom: 25px;
    }

    .cta-section .btn-primary {
        font-size: 1rem; /* Adjust button size */
        padding: 12px 24px;
    }
}