/* ======= Ridge Plan additions: back-to-top button, cookie bar, small fixes ======= */

/* ======= Back-to-top button (right edge) =======
   The dock is a fixed box flush with the right edge with overflow hidden.
   Buttons slide right inside it, so the part that "leaves the browser" is clipped
   and the page never gets wider (no sideways wobble on mobile). */

/* The template's round back-to-top button is replaced by the dock */
.progress-wrap { display: none !important; }

.rp-dock {
    --rp-size: 56px;
    --rp-gap: 14px;            /* space between the buttons and the browser's right edge */
    position: fixed;
    right: 0;
    bottom: 24px;
    z-index: 990;
    width: calc(var(--rp-size) + var(--rp-gap));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}
.rp-dock-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rp-size);
    height: var(--rp-size);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
    transform: translateX(0);
    visibility: visible;
    transition: transform .45s cubic-bezier(.22, .9, .3, 1), filter .2s ease, visibility 0s;
}
/* The template sets a:hover { display:inline-block } and button:hover { background; border },
   which knocked the icons out of place on hover. Lock the dock buttons' own layout. */
.rp-dock .rp-dock-btn,
.rp-dock .rp-dock-btn:hover,
.rp-dock .rp-dock-btn:focus {
    display: flex;
    border: 0;
    padding: 0;
    text-decoration: none;
    letter-spacing: 0;
    line-height: 1;
}
.rp-dock .rp-dock-btn:hover { filter: brightness(1.08); }
.rp-dock .rp-top:hover,
.rp-dock .rp-top:focus { background: #9d005d; color: #fff; }
.rp-dock-btn:focus-visible { outline: 3px solid #272727; outline-offset: -3px; }


/* While the page scrolls: the button slides half out of the window */
.rp-dock.is-scrolling .rp-dock-btn {
    transform: translateX(calc(50% + var(--rp-gap)));
    transition-duration: .25s;
    transition-timing-function: ease-out;
    transition-delay: 0s;
}
/* Fully hidden (back-to-top near the top; homepage dock over the slider) */
.rp-dock .rp-dock-btn.is-hidden,
.rp-dock.rp-dock--after-scroll:not(.is-active) .rp-dock-btn {
    /* a little past 100% so no sub-pixel sliver stays on screen, then fully invisible */
    transform: translateX(calc(100% + var(--rp-gap) + 8px));
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease-in, visibility 0s linear .3s;
}

.rp-top { background: #9d005d; color: #fff; }
.rp-top svg { width: 24px; height: 24px; }
/* Scroll progress: fills the left edge from top to bottom in a neon tone of the brand colour */
.rp-top-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: #ff2db4;
    box-shadow: 0 0 6px #ff2db4, 0 0 12px rgba(255, 45, 180, 0.7);
}

@media (max-width: 767px) {
    .rp-dock { --rp-size: 50px; --rp-gap: 10px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .rp-dock-btn { transition: none !important; }
    .rp-dock.is-scrolling .rp-dock-btn { transform: translateX(0); }
}

/* Cookie consent bar */
.rp-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    max-width: 440px;
    background: #fff;
    color: #272727;
    border-top: 4px solid #9d005d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px 22px;
    font-size: 15px;
    line-height: 1.5;
}
.rp-consent[hidden] { display: none; }
.rp-consent h2 {
    font-family: 'Khand', sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: #272727;
}
.rp-consent p { margin: 0 0 14px; color: #555; }
.rp-consent a { color: #9d005d; text-decoration: underline; }
.rp-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-consent-actions button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #9d005d;
    background: #fff;
    color: #9d005d;
    font-family: 'Khand', sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.rp-consent-actions .rp-accept { background: #9d005d; color: #fff; }
.rp-consent-actions button:hover { opacity: .88; }
@media (max-width: 767px) {
    .rp-consent { left: 0; right: 0; bottom: 0; max-width: none; padding: 16px; }
}

/* Footer and text helpers */
.sub-footer a,
.topbanner-footer h5 a { color: inherit; }
.sub-footer a:hover { text-decoration: underline; }
.rp-cookie-settings { margin-left: 15px; }
/* The template gives every footer span a near-white colour and side padding; the year must look like the rest of the line */
.main-footer .sub-footer p .rp-year {
    color: inherit;
    padding: 0;
}
.sidebar .help .phone a.rp-mail {
    font-size: 19px;
    text-transform: none;
    word-break: break-all;
}
.rp-checklist { margin: 0 0 20px; }
.rp-checklist li { list-style: none; padding-left: 22px; position: relative; margin-bottom: 6px; }
.rp-checklist li::before { content: '\2713'; position: absolute; left: 0; color: #9d005d; }
.rp-cta-quote .btn { display: inline-block; margin-top: 5px; }
@media (max-width: 767px) {
    .rp-cta-quote { margin-bottom: 35px; }
}

/* Homepage slider: small line above the big white title, in the light gold-beige of the site palette (#b19371 / #f3ece5)
   (the dark brand colour was hard to read on the grey slider photos) */
.header .caption h6 {
    color: #e8d3b0;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.header .caption h6::before {
    background-color: #e8d3b0;
}

/* Longer service page copy */
.rp-service-copy { margin: 10px 0 40px; }
.rp-service-copy h2 {
    font-family: 'Khand', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15em;
    text-transform: uppercase;
    color: #272727;
    margin: 35px 0 12px;
}
.rp-service-cta {
    clear: both;
    margin: 10px 0 30px;
    padding: 25px 30px;
    background: #f3ece5;
    border-left: 4px solid #9d005d;
}
.rp-service-cta p { margin-bottom: 15px; color: #272727; }
.rp-service-cta .btn { display: inline-block; float: none; }
@media (max-width: 767px) {
    .rp-service-copy h2 { font-size: 25px; }
}
