/* ==========================================================
   Site-wide readability and UX fixes on top of the theme.
   Loaded after responsive.css, so equal-specificity rules win.
   ========================================================== */

/* ---- Text over photos: page titles ---- */
.cmt-page-title-row-inner {
    position: relative;
    background: linear-gradient(90deg, rgba(14, 13, 40, 0.78) 0%, rgba(14, 13, 40, 0.45) 55%, rgba(14, 13, 40, 0.15) 100%);
}

.page-title-heading h2,
.breadcrumb-wrapper {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* The current breadcrumb item was skin red on a busy photo. */
.cmt-page-title-row .breadcrumb-wrapper span:last-child {
    color: rgba(255, 255, 255, 0.8);
}

.cmt-page-title-row .breadcrumb-wrapper a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The theme only draws a separator after the first crumb. */
.breadcrumb-wrapper span:not(:first-child):not(:last-child) {
    padding-right: 20px;
}

.breadcrumb-wrapper span:not(:first-child):not(:last-child)::after {
    position: absolute;
    content: "";
    width: 2px;
    height: 12px;
    right: 6px;
    top: 7px;
    background-color: #fff;
}

/* ---- Text over photos: home slider ---- */
#rev_slider_2_1 rs-sbg-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 13, 40, 0.72) 0%, rgba(14, 13, 40, 0.4) 50%, rgba(14, 13, 40, 0) 85%);
    pointer-events: none;
}

#rev_slider_2_1 rs-layer[data-type="text"] {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* ---- Long-form content on purchase / transport pages ---- */
.cmt-service-description p,
.cmt-service-description li {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4966;
}

.cmt-service-description a {
    color: #16143e;
    text-decoration: underline;
    text-decoration-color: #e21f2f;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cmt-service-description a:hover {
    color: #e21f2f;
}

/* Call to action closing every purchase / transport page */
.page-cta {
    margin-top: 10px;
    padding: 32px 36px;
    background-color: #16143e;
    color: rgba(255, 255, 255, 0.85);
}

.page-cta h4 {
    margin-bottom: 8px;
    color: #fff;
}

.page-cta p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.page-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Phone shortcut in the mobile header ---- */
.header-phone-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .header-phone-mobile {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 44px;
        min-height: 44px;
        color: #fff;
        font-weight: 600;
        font-size: 15px;
        white-space: nowrap;
        z-index: 2;
    }

    .header-phone-mobile:hover,
    .header-phone-mobile:focus {
        color: #fff;
    }

    .header-phone-mobile i {
        font-size: 22px;
        color: #e21f2f;
    }
}

/* Phones: icon only, and leave room for it next to the logo. */
@media (max-width: 575px) {
    .header-phone-mobile span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    #logo-img {
        max-width: calc(100vw - 140px);
        height: auto;
    }
}

/* ---- Sub-page menu above the content on small screens ---- */
@media (max-width: 991px) {
    .sidebar .sidebar-right {
        order: -1;
        padding-top: 0 !important;
        margin-bottom: 30px;
    }

    .sidebar .sidebar-right .widget_media_image {
        display: none;
    }

    .page-cta {
        padding: 26px 22px;
    }

    .page-cta__actions .cmt-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ---- Footer ---- */
.first-footer .widget-title {
    text-wrap: balance;
}

/* ---- Keyboard focus, site-wide ---- */
a:focus-visible,
button:focus-visible,
.cmt-btn:focus-visible {
    outline: 2px solid #e21f2f;
    outline-offset: 2px;
}

.cmt-bgcolor-darkgrey a:focus-visible,
.first-footer a:focus-visible,
.site-header-menu a:focus-visible,
.page-cta a:focus-visible {
    outline-color: #fff;
}
