:root {
    --primary: #9F80E0;
    --secondary: #5bb894;
    --light: #F8F7FC;
    --dark: #25222F;
    --success: #4CAF50;
    --danger: hsl(346, 100%, 76%);
    --warning: #5fdd56;
    --info: #5086E0;
    --white: #FFFFFF;
    --gray: #7D7A8C;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: var(--primary);
    padding: 8px 0;
    color: var(--white);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-left a {
    color: var(--white);
    font-size: 14px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a {
    color: var(--white);
    font-size: 16px;
    margin-left: 10px;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.navbar a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--primary);
}

.navbar a:hover:after {
    width: 100%;
}

/* Mobile menu active state */
.navbar.active {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    flex-direction: column;
    padding: 20px;
    z-index: 99;
}

.header-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: var(--gray);
}

.phone-number {
    font-weight: 700;
    color: var(--dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(176, 116, 116, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(#9F80E0, rgba(13, 110, 253, 0.8)), url('images/card-leak-man.webp') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: visible;

}

.hero-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-plumber-image {
    position: absolute;
    bottom: -20px;
    right: 42%;
    /* Positions the image so it's partially hidden behind the form */
    height: 100%;
    /* Controls the height of the image relative to the section */
    max-height: 350px;
    /* Sets a maximum height for the image */
    width: auto;
    /* Maintains the aspect ratio */
    z-index: 0;
    pointer-events: none;
    /* Ensures clicks pass through the image to elements below */
}

@media (max-width: 992px) {
    .hero-plumber-image {
        right: 10%;
        /* Adjust position to be visible but not dominate */
        height: 50%;
        max-height: 200px;
        bottom: 590;
        /* Removed opacity so image is clear */
    }
}

/* For very small screens, we can adjust further */
@media (max-width: 576px) {
    .hero-plumber-image {
        right: 5%;
        height: 80%;
        max-height: 200px;
        /* Optional: you can hide it completely on very small screens */
        /* display: none; */
    }
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--warning);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-feature i {
    color: var(--warning);
}

.hero-form {
    flex: 0 0 400px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-title {
    color: var(--dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    margin-top: 10px;
}

.form-submit:hover {
    background-color: #9f80e0;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

.form-footer i {
    color: var(--success);
    margin-right: 5px;
}

.supporting-local-badge {
    background-color: #5D3FD3;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.supporting-local-badge i {
    margin-right: 8px;
}

/* Media query for mobile devices */
@media (max-width: 767px) {
    .supporting-local-badge {
        flex-direction: column;
        padding: 12px;
    }
    
    .supporting-local-badge i {
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 18px; /* Slightly larger icon on mobile */
    }
}

/* Local support banner styles */
.local-support-banner {
    background-color: #f5f0ff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e6d9ff;
}

.local-support-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.local-support-banner i {
    color: #5D3FD3;
    font-size: 24px;
}

.local-support-banner p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.local-support-banner strong {
    color: #5D3FD3;
}

/* Media query for mobile banner */
@media (max-width: 767px) {
    .local-support-banner .container {
        flex-direction: column;
        gap: 5px;
    }
}

    /* Mobile Bottom CTA Banner */
    .mobile-bottom-banner {
        display: none; /* Hidden by default, shown only on mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 10px 0;
        text-align: center;
    }

    .mobile-bottom-banner {
        display: flex;
        justify-content: space-between;
    }

    .mobile-cta-btn {
        flex: 1;
        padding: 8px 0;
    }

    .mobile-cta-btn a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

    .mobile-cta-btn i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .call-btn a {
        color: white;
    }

    .call-btn {
        background-color: var(--primary); /* Using the site's primary color */
        border-radius: 4px 0 0 4px;
        margin-right: 1px;
    }

    .quote-btn {
        background-color: var(--secondary); /* Using the site's secondary color */
        border-radius: 0 4px 4px 0;
        margin-left: 1px;
    }

    .quote-btn a {
        color: white;
    }

    /* Media query to show the banner only on mobile devices */
    @media (max-width: 768px) {
        .mobile-bottom-banner {
            display: flex;
        }
        
        /* Add bottom padding to the body to ensure content isn't hidden behind the banner */
        body {
            padding-bottom: 70px;
        }
        
        /* Adjust Google reviews badge position to not overlap with the bottom banner */
        [style*="position: fixed; bottom: 20px; right: 20px;"] {
            bottom: 80px !important;
        }
    }

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-text {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 500;
}

.service-link:hover {
    color: var(--secondary);
}

/* Why Choose Us */
.why-us {
    padding: 80px 0;
    background-color: var(--light);
}

.why-us-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.why-us-image {
    flex: 0 0 45%;
}

.why-us-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.why-us-text {
    flex: 1;
}

.why-us-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.why-us-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

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

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-text {
    font-size: 14px;
    color: var(--gray);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-location {
    font-size: 14px;
    color: var(--gray);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary), #3a8eff);
    color: var(--white);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text {
    flex: 0 0 65%;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* Footer */
footer {
    background-color: #181c23;
    color: #adb5bd;
    padding: 60px 0 30px;
    margin-top: auto;
    /* Push footer to bottom if content is short */
}

/* Ensure the footer stays at bottom with min-height approach */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Full viewport height */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-about p {
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1000px) {

    .navbar,
    .header-top-left {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-form {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .why-us-content {
        flex-direction: column;
    }

    .why-us-image {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .why-us-features {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header-top-content {
        justify-content: center;
    }

    .header-top-right {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .header-cta {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Exit Intent Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.popup-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
}

.popup-form {
    margin-bottom: 20px;
}

.popup-footer {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

/* FAQ cards */
.faq-card {
    margin-bottom: 25px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.faq-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-answer {
    color: var(--gray);
}