/* ========================================
   RESPONSIVE CSS - FULL RESPONSIVE OVERHAUL
   Breakpoints: 480px | 768px | 991px | 1199px
   ======================================== */

/* ========================================
   GLOBAL UTILITY OVERRIDES
   ======================================== */

/* Prevent horizontal scroll globally */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Remove the dangerous global .d-flex override - it breaks Bootstrap layouts */
/* Only apply flex-column where explicitly needed via specific classes */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   CONTAINER RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .custom-wide-container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991px) {
    .custom-wide-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 767px) {
    .custom-wide-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 480px) {
    .custom-wide-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========================================
   TYPOGRAPHY RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    h1 {
        font-size: 1.9rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.35rem !important;
    }

    h4 {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 480px) {
    .display-3 {
        font-size: 1.75rem !important;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }
}

/* ========================================
   SPACING RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mb-4 {
        margin-bottom: 1.25rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* ========================================
   NAVIGATION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .main-navbar .navbar-collapse {
        background: rgba(10, 37, 64, 0.98);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
    }

    .navbar-nav {
        text-align: left;
        margin: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-right-group {
        margin-top: 0.75rem;
        justify-content: flex-start !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .phone-box {
        font-size: 0.9rem !important;
        padding: 6px 14px !important;
    }

    .main-navbar .navbar-right-group {
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
    .main-navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-brand img,
    .navbar-brand .logo {
        max-height: 45px !important;
    }

    .phone-box {
        font-size: 0.82rem !important;
        padding: 5px 10px !important;
    }
}

@media (max-width: 480px) {
    .phone-box {
        font-size: 0.78rem !important;
    }
}

/* ========================================
   HERO SECTION RESPONSIVE
   ======================================== */
/* Hero must stack: text on top, form below on mobile */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
        overflow: visible !important;
    }

    .hero-bg-wrapper {
        min-height: auto !important;
        padding-bottom: 2rem;
    }

    /* Reverse column order so text is first */
    .hero-section .row.flex-lg-row-reverse,
    .hero-section .row.flex-lg-row.flex-column-reverse {
        flex-direction: column-reverse !important;
    }

    /* Text column — FIRST on mobile (on top) */
    .hero-section .col-lg-7,
    .hero-text-col {
        text-align: center;
        order: 1;
    }

    /* Form column — SECOND on mobile (below text) */
    .hero-section .col-lg-5 {
        order: 2;
        display: flex;
        justify-content: center;
    }

    .hero-section .col-lg-7,
    .hero-section .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 0 !important;
    }

    /* Hero text column — ensure no negative margin pushes it behind form */
    .hero-text-col {
        margin-top: 0 !important;
        position: relative;
        z-index: 3;
    }

    .hero-section .col-lg-7 h1,
    .hero-text-col h1 {
        font-size: 2rem !important;
        text-align: center;
    }

    .hero-section .col-lg-7 .lead,
    .hero-text-col .lead {
        text-align: center;
        font-size: 1rem !important;
    }

    .hero-section .d-flex.flex-wrap.gap-3 {
        justify-content: center !important;
        flex-direction: row !important;
    }

    /* Quote form takes full width */
    .quote-form-card-modern {
        max-width: 520px !important;
        width: 100% !important;
        margin: 0 auto 1.5rem auto !important;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 0 !important;
    }

    .hero-section .col-lg-7 h1 {
        font-size: 1.7rem !important;
    }

    .quote-form-card-modern {
        padding: 1.5rem 1.25rem !important;
        border-radius: 1.25rem !important;
        margin: 0 0 1.5rem 0 !important;
        max-width: 100% !important;
        min-width: unset !important;
    }

    .form-control-modern,
    .form-select.form-control-modern {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 0.75rem 0.9rem 0.75rem 2.4rem !important;
        min-height: 46px;
    }

    .form-icon-modern {
        left: 12px !important;
        font-size: 1rem !important;
    }

    .quote-btn-modern {
        font-size: 1rem !important;
        padding: 0.9rem 0 !important;
    }

    .quote-form-card-modern h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 0 !important;
    }

    .hero-section .col-lg-7 h1 {
        font-size: 1.5rem !important;
    }

    .quote-form-card-modern {
        padding: 1.25rem 1rem !important;
        border-radius: 1rem !important;
    }

    .quote-form-card-modern h3 {
        font-size: 1.3rem !important;
    }

    .btn-get-quote-cut {
        font-size: 1rem !important;
        padding: 0.85rem 1.75rem !important;
    }
}

/* ========================================
   SEARCH FILTER SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .search-filter-section {
        margin-top: -20px !important;
    }

    .search-filter-card {
        padding: 1.75rem 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .search-filter-section {
        margin-top: 0 !important;
        padding: 1.5rem 0 !important;
    }

    .search-filter-card {
        padding: 1.25rem 1rem !important;
        border-radius: 1rem !important;
        margin: 0 !important;
    }

    /* Stack the search form vertically */
    .search-filter-section .row.g-4 {
        row-gap: 0.75rem !important;
    }

    .search-filter-section .col-md-5,
    .search-filter-section .col-md-2 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .btn-go-cut {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        width: 100%;
    }

    /* Popular city badges - prevent overflow */
    .popular-city-badge-cut {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.9rem !important;
        margin-bottom: 0.4rem;
        white-space: nowrap;
    }

    .popular-searches {
        overflow-x: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.5rem 0;
    }

    .popular-searches span {
        width: 100%;
        text-align: center;
        margin-bottom: 0.4rem;
    }

    .form-select-lg {
        font-size: 16px !important;
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .search-filter-card {
        padding: 1rem 0.75rem !important;
    }

    .popular-city-badge-cut {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.75rem !important;
    }
}

/* ========================================
   ABOUT SECTION RESPONSIVE
   ======================================== */
/* About images use hardcoded pixel offsets - must reset on mobile */
@media (max-width: 1199px) {
    .about-bg-img {
        width: 100% !important;
        height: auto !important;
        max-width: 560px !important;
    }

    .about-foreground-border {
        display: none !important;
    }

    .about-foreground-img {
        width: 75% !important;
        height: auto !important;
        top: 40px !important;
        left: 15% !important;
    }
}

@media (max-width: 991px) {
    .about-section {
        padding: 2.5rem 0 !important;
    }

    .about-image-wrapper {
        min-height: 280px !important;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .about-bg-img {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        max-width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%) !important;
    }

    .about-foreground-img {
        display: none !important;
    }

    .about-foreground-border {
        display: none !important;
    }

    .about-content {
        margin-top: 0 !important;
        padding-left: 0 !important;
    }

    .about-content h2 {
        font-size: 1.7rem !important;
        text-align: center;
    }

    .about-content .lead {
        font-size: 1rem !important;
    }

    .about-quote-btn {
        display: flex;
        justify-content: center;
    }

    /* Testimonial avatars below about image */
    .testimonial-avatar-img {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 767px) {
    .about-image-wrapper {
        min-height: 200px !important;
    }

    .about-bg-img {
        height: 220px !important;
    }

    .about-content h2 {
        font-size: 1.5rem !important;
        text-align: center;
    }

    .testimonial-avatar-img {
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 480px) {
    .about-bg-img {
        height: 180px !important;
    }

    .about-content h2 {
        font-size: 1.3rem !important;
    }
}

/* ========================================
   SERVICES SECTION RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .service-card-v2 {
        width: 100% !important;
        max-width: 480px;
        height: 420px;
    }
}

@media (max-width: 991px) {
    .services-section-updated {
        padding: 2.5rem 0 !important;
    }

    .service-card-v2 {
        width: 100% !important;
        height: 380px !important;
        max-width: 100% !important;
        margin-bottom: 1.25rem !important;
    }

    /* Make services scroll horizontally on tablet if in a row */
    .services-section-updated .row {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .services-section-updated {
        padding: 2rem 0 !important;
    }

    .services-section-updated h2 {
        font-size: 1.7rem !important;
        text-align: center;
    }

    .services-section-updated .lead {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .service-card-v2 {
        width: 100% !important;
        height: 320px !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)) !important;
    }

    .service-card-v2 .card-content {
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
    }

    .service-card-v2 .card-content h5 {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .service-card-v2 {
        height: 280px !important;
    }
}

/* ========================================
   CTA SECTION RESPONSIVE
   ======================================== */
/* Fix the 110vw / overflow issue */
.plumbing-problems-cta {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

@media (max-width: 1199px) {
    .plumbing-problems-cta {
        width: 100% !important;
        height: auto !important;
        min-height: 300px;
        clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px)) !important;
        margin-bottom: -150px !important;
    }
}

@media (max-width: 991px) {
    .plumbing-problems-cta {
        min-height: 250px;
        padding: 2.5rem 1.5rem !important;
        margin-bottom: -100px !important;
        clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)) !important;
        border-radius: 24px !important;
    }

    .plumbing-problems-cta h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .plumbing-problems-cta .lead {
        font-size: 1rem !important;
        text-align: center;
    }

    .plumbing-problems-cta .btn {
        font-size: 1rem !important;
        padding: 0.75rem 2rem !important;
        display: block;
        margin: 0 auto;
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    .plumbing-problems-cta {
        padding: 2rem 1rem !important;
        margin-bottom: -80px !important;
        clip-path: none !important;
        border-radius: 20px !important;
    }

    .plumbing-problems-cta h2 {
        font-size: 1.5rem !important;
    }

    .plumbing-problems-cta .btn {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .plumbing-problems-cta {
        border-radius: 14px !important;
        padding: 1.5rem 0.75rem !important;
        margin-bottom: -60px !important;
    }

    .plumbing-problems-cta h2 {
        font-size: 1.3rem !important;
    }
}

/* ========================================
   WHY CHOOSE US SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .new-why-choose-us-section {
        padding-top: 180px !important;
        padding-bottom: 3rem !important;
    }

    .why-choose-overlap-row {
        margin-bottom: -150px !important;
    }

    .why-choose-card-new {
        min-height: 260px !important;
    }
}

@media (max-width: 767px) {
    .new-why-choose-us-section {
        padding-top: 120px !important;
        padding-bottom: 2rem !important;
    }

    .new-why-choose-us-section h2 {
        font-size: 1.6rem !important;
        text-align: center;
    }

    .new-why-choose-us-section .lead {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .why-choose-overlap-row {
        margin-bottom: -100px !important;
    }

    .why-choose-card-new {
        min-height: 240px !important;
        padding: 3.5rem 1.5rem 1.5rem 1.5rem !important;
        text-align: center;
    }

    .why-choose-icon-new {
        width: 72px !important;
        height: 72px !important;
        top: -36px !important;
    }

    .why-choose-icon-new i {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .new-why-choose-us-section {
        padding-top: 100px !important;
    }

    .why-choose-overlap-row {
        margin-bottom: -60px !important;
    }

    .why-choose-card-new {
        min-height: 200px !important;
        padding: 3rem 1rem 1rem 1rem !important;
    }
}

/* ========================================
   TESTIMONIALS SECTION RESPONSIVE (Critical Fix)
   ======================================== */
/* Fix the negative margins and fixed sizes that cause gaps */
@media (max-width: 1199px) {
    .testimonial-cards-row {
        gap: 1rem !important;
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .testimonial-card-new {
        min-width: 280px !important;
        height: auto !important;
        min-height: 260px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 991px) {
    .testimonial-cards-row {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        gap: 1rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .testimonial-card-new {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.75rem 1.5rem !important;
        clip-path: polygon(0 12px, 12px 0, calc(100% - 40px) 0, 100% 40px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 40px 100%, 0 calc(100% - 40px)) !important;
    }

    .testimonial-arrow-between {
        display: none !important;
    }

    .new-testimonial-section h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .new-testimonial-section .lead {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .new-testimonial-section {
        padding: 2rem 0 !important;
    }

    .new-testimonial-section h2 {
        font-size: 1.5rem !important;
    }

    .testimonial-cards-row {
        max-width: 100% !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .testimonial-card-new {
        min-height: 180px !important;
        padding: 1.5rem 1.25rem !important;
    }

    .testimonial-card-new p.mb-0 {
        font-size: 0.9rem !important;
    }

    .testimonial-card-new h5 {
        font-size: 1rem !important;
    }

    .testimonial-card-new p:not(.mb-0) {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .testimonial-card-new {
        padding: 1.25rem 1rem !important;
        clip-path: none !important;
        border-radius: 12px !important;
    }

    .testimonial-card-new p.mb-0 {
        font-size: 0.85rem !important;
    }
}

/* ========================================
   FAQ SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .faqs-section {
        padding: 2.5rem 0 !important;
    }

    .faqs-section h2,
    .section-title {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .faqs-section .section-subtitle {
        font-size: 1rem !important;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .faqs-section {
        padding: 2rem 0 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .accordion-button {
        font-size: 0.95rem !important;
        padding: 1rem 1.25rem !important;
        min-height: 56px !important;
    }

    .accordion-body {
        font-size: 0.9rem !important;
        padding: 1rem 1.25rem !important;
    }

    .accordion-item {
        clip-path: polygon(0 6px, 6px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 20px 100%, 0 calc(100% - 20px)) !important;
    }
}

@media (max-width: 480px) {
    .accordion-button {
        font-size: 0.88rem !important;
        padding: 0.85rem 1rem !important;
    }

    .accordion-body {
        font-size: 0.85rem !important;
        padding: 0.85rem 1rem !important;
    }

    .accordion-item {
        clip-path: none !important;
        border-radius: 8px !important;
    }
}

/* ========================================
   STATES SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .states-section {
        padding: 2.5rem 0 !important;
    }

    .states-section h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .states-section {
        padding: 2rem 0 !important;
    }

    .states-section h2 {
        font-size: 1.5rem !important;
    }

    .states-section .section-description {
        font-size: 0.95rem !important;
        text-align: center;
    }

    .states-section .card {
        min-height: 80px !important;
        border-radius: 1rem !important;
        margin-bottom: 0 !important;
    }

    .states-section .card .section-state-link {
        font-size: 0.95rem !important;
    }

    .states-section .row {
        row-gap: 14px !important;
    }
}

@media (max-width: 480px) {
    .states-section .card {
        min-height: 64px !important;
        border-radius: 0.75rem !important;
    }

    .states-section .card .section-state-link {
        font-size: 0.85rem !important;
    }

    .states-section .row {
        row-gap: 10px !important;
    }
}

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .new-footer {
        padding: 2.5rem 0 1.5rem 0 !important;
    }

    .new-footer .footer-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767px) {
    .new-footer {
        padding: 2rem 0 1rem 0 !important;
    }

    .new-footer .footer-title {
        font-size: 1rem !important;
        margin-top: 1rem;
    }

    .new-footer p,
    .new-footer li,
    .new-footer a {
        font-size: 0.9rem !important;
    }

    .new-footer .row>[class*="col-"] {
        margin-bottom: 1.25rem;
    }

    /* Stack footer columns cleanly */
    .new-footer .col-lg-4,
    .new-footer .col-lg-2,
    .new-footer .col-md-3,
    .new-footer .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center;
    }

    .new-footer .d-flex {
        justify-content: center !important;
    }

    .social-icon {
        width: 36px !important;
        height: 36px !important;
    }

    /* Footer copyright bar */
    .new-footer .border-top .d-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .new-footer {
        padding: 1.5rem 0 0.75rem 0 !important;
    }

    .new-footer p,
    .new-footer li,
    .new-footer a {
        font-size: 0.85rem !important;
    }

    .social-icon {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ========================================
   CONTACT SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .contact-info-box {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .contact-form-box {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .contact-info-box {
        padding: 1.5rem 1.25rem !important;
        border-radius: 0.75rem !important;
    }

    .contact-form-box {
        padding: 1.5rem 1.25rem !important;
        border-radius: 0.75rem !important;
    }

    .contact-info-box .contact-item {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   FORMS RESPONSIVE (Touch-Friendly)
   ======================================== */
@media (max-width: 767px) {

    .form-control,
    .form-select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 0.7rem 0.9rem !important;
        border-radius: 0.75rem !important;
        min-height: 44px;
    }

    .form-label {
        font-size: 0.9rem !important;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
    }

    .btn-lg {
        min-height: 48px;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .btn-get-quote-cut,
    .btn-go-cut {
        font-size: 1rem !important;
        padding: 0.85rem 1.75rem !important;
    }
}

@media (max-width: 480px) {

    .form-control,
    .form-select {
        font-size: 16px !important;
        padding: 0.65rem 0.8rem !important;
    }
}

/* ========================================
   CARDS GLOBAL RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem !important;
    }
}

/* ========================================
   SCROLL TO TOP BUTTON RESPONSIVE
   ======================================== */
@media (max-width: 767px) {

    #scrollToTopBtn,
    .scroll-to-top-btn {
        width: 44px !important;
        height: 44px !important;
        right: 15px !important;
        bottom: 15px !important;
        font-size: 1.1rem !important;
    }
}

/* ========================================
   FIX ROW COLUMN OVERFLOW GLOBALLY
   ======================================== */
@media (max-width: 767px) {

    /* Only add bottom margin to colums, DON'T FORCE flex-direction */
    .row>[class*="col-"]:not(:last-child) {
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   HERO BGN WRAPPER HEIGHT
   ======================================== */
/* Ensure hero has proper height on all viewports */
.hero-bg-wrapper {
    min-height: 600px;
}

@media (max-width: 991px) {
    .hero-bg-wrapper {
        min-height: auto;
        padding-top: 0;
        padding-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-bg-wrapper {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }
}

/* ========================================
   CTA SECTION RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .plumbing-problems-cta {
        clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)) !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }

    .plumbing-problems-cta h2 {
        font-size: 1.6rem !important;
    }

    .plumbing-problems-cta p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 767px) {
    .plumbing-problems-cta {
        clip-path: none !important;
        border-radius: 16px !important;
        padding: 2rem 1.25rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .plumbing-problems-cta h2 {
        font-size: 1.4rem !important;
    }

    .plumbing-problems-cta .btn {
        width: 100%;
        font-size: 1rem !important;
    }
}

/* ========================================
   PRINT MEDIA QUERY
   ======================================== */
@media print {

    .navbar,
    .scroll-to-top-btn,
    #scrollToTopBtn {
        display: none !important;
    }
}