/* [rhf_search] City/ZIP + Service search */
.rhf-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.rhf-search__field {
    position: relative;
    flex: 1 1 220px;
}

.rhf-search__loc,
.rhf-search__svc {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    color: #222;
    background: #f6f7f9;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

.rhf-search__loc:focus,
.rhf-search__svc:focus {
    outline: none;
    border-color: #f7b118;
    background: #fff;
}

.rhf-search__btn {
    flex: 0 0 auto;
    height: 52px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    color: #151735;
    background: #f7b118;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.rhf-search__btn:hover {
    filter: brightness(0.92);
}

.rhf-search__suggestions {
    position: absolute;
    z-index: 999;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}

.rhf-search__suggestions li {
    padding: 10px 16px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
}

.rhf-search__suggestions li.is-active {
    background: #fef6e4;
}

@media (max-width: 575px) {
    .rhf-search__btn {
        flex: 1 1 100%;
    }
}

/* Home page (with Search) template: single banner with H1, text and search */
.rhf-banner {
    position: relative;
    z-index: 5; /* above the CTA boxes (z-index 4) so suggestions can overlap them */
    display: flex;
    align-items: center;
    min-height: 720px;
    padding: 120px 0 180px; /* bottom room for the CTA boxes that overlap by 80px */
    background-color: #151735;
    background-position: center;
    background-size: cover;
}

.rhf-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 23, 53, 0.55) 0%, rgba(21, 23, 53, 0.75) 100%);
}

.rhf-banner .container {
    position: relative;
    width: 100%;
}

.rhf-banner__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rhf-banner__title {
    margin-bottom: 20px;
    font-size: 60px;
    line-height: 1.15;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.rhf-banner__text {
    max-width: 680px;
    margin: 0 auto 36px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.rhf-banner .rhf-search {
    text-align: left;
}

@media (max-width: 991px) {
    .rhf-banner {
        min-height: 0;
        padding: 90px 0 150px;
    }

    .rhf-banner__title {
        font-size: 44px;
    }
}

@media (max-width: 575px) {
    .rhf-banner {
        padding: 60px 0 130px;
    }

    .rhf-banner__title {
        font-size: 32px;
    }

    .rhf-banner__text {
        font-size: 17px;
        margin-bottom: 26px;
    }
}

/* Slider templates: search box fixed over the hero slider (stays put while slides change) */
.rhf-has-search {
    position: relative;
}

.rhf-hero-search {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 140px; /* clears the CTA boxes that overlap the slider bottom by 80px */
    z-index: 5;
}

.rhf-hero-search__title {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Open suggestions upward: the slider section clips anything below it */
.rhf-hero-search .rhf-search__suggestions {
    top: auto;
    bottom: calc(100% + 4px);
}

@media (min-width: 992px) {
    /* Centre the slide text in the space above the search box instead of the full slide */
    .rhf-has-search .single-slider {
        padding-bottom: 200px;
    }
}

/* Slider Centered template: centred slide text like the single banner, dark overlay */
.rhf-slider-centered .slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 23, 53, 0.55) 0%, rgba(21, 23, 53, 0.75) 100%);
}

@media (min-width: 992px) {
    /* 700px slide, 80px hidden by the CTA boxes: text + form sit centred as one block in the visible 620px */
    .rhf-slider-centered .slider-height {
        min-height: 700px;
    }

    .rhf-slider-centered .single-slider {
        padding-bottom: 192px;
    }

    .rhf-slider-centered .rhf-hero-search {
        bottom: 259px;
    }
}

@media (max-width: 991px) {
    /* Below the slider in normal flow so it never covers the slide text */
    .rhf-hero-search {
        position: static;
        padding: 30px 0 110px; /* bottom room for the overlapping CTA boxes */
        background: #151735;
    }

    .rhf-hero-search__title {
        font-size: 20px;
        text-shadow: none;
    }

    .rhf-slider-centered .slider-height {
        min-height: 520px;
    }
}

/* Compact search: [rhf_search compact="1"] (header on general pages) */
.rhf-search--compact {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: none;
}

.rhf-search--compact .rhf-search__field--loc {
    flex: 1 1 auto;
    min-width: 0;
}

.rhf-search--compact .rhf-search__loc {
    height: 50px;
    padding: 0 14px;
    font-size: 15px;
    background: transparent;
    border: 0;
}

.rhf-search--compact .rhf-search__loc:focus {
    background: transparent;
}

.rhf-search--compact .rhf-search__btn {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 17px;
    border-radius: 0 5px 5px 0;
}

/* Header placement: fills the grey header block where the phone number used to be */
.header-right .rhf-header-search {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 0 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}

.header-right .rhf-header-search .rhf-search__suggestions {
    z-index: 1000;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-right .rhf-header-search .rhf-search__loc {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Slider Centered: yellow tagline above the heading + mobile "Our Services" button */
.rhf-banner__tagline {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7b118;
}

.rhf-banner__btn {
    margin-top: 6px;
}

@media (max-width: 991px) {
    .rhf-banner__tagline {
        margin-bottom: 12px;
        font-size: 14px;
        letter-spacing: 0.06em;
    }

    .rhf-banner__btn {
        height: 52px;
        padding: 0 34px;
        line-height: 52px;
    }
}

/* Breadcrumb banner search (header.php → rhf_breadcrumb_search()) */
.rhf-bc-search {
    max-width: 820px;
    margin: 28px auto 34px;
}

.rhf-bc-search__title {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.rhf-bc-search .rhf-search {
    text-align: left;
}

/* City page: service dropdown only, so a narrower bar */
.rhf-bc-search--city {
    max-width: 560px;
}

@media (max-width: 767px) {
    .rhf-bc-search {
        margin: 20px auto 30px;
    }

    .rhf-bc-search__title {
        font-size: 17px;
    }
}

/* Footer disclaimer image (footer.php): 2x images shown at their real text size, shrink on narrow phones */
.rhf-disclaimer img {
    display: block;
    max-width: 100%;
    height: auto;
}
