/* P05 language/menu layer: the approved logo, photographs and flags are never mirrored. */
#site-header.p05-site-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 112px;
    padding: 20px 36px;
    color: #fff;
}

.p05-site-header [hidden] {
    display: none !important;
}

.p05-site-header #site-logo {
    flex: 0 0 136px;
    width: 136px;
    margin: 0;
}

.p05-site-header #site-logo .main-logo {
    display: block;
}

.p05-site-header #site-logo img {
    display: block;
    width: 136px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    transform: none;
}

#p05-primary-panel {
    flex: 1 1 auto;
    min-width: 0;
}

.p05-primary-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p05-primary-links > li {
    margin: 0;
    padding: 0;
}

.p05-primary-links > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: start;
}

.p05-primary-links > li > a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 1px;
    height: 2px;
    background: #e52329;
    transform: scaleX(0);
    transition: transform 150ms ease;
}

.p05-primary-links > li > a:hover::after,
.p05-primary-links > li > a[aria-current="page"]::after {
    transform: scaleX(1);
}

.p05-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 20px;
    min-width: 0;
}

.p05-header-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 700;
}

.p05-header-phone img {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 13px;
    background: #e52329;
    border-radius: 50%;
}

.p05-header-contact {
    margin: 0;
    white-space: nowrap;
}

.p05-header-contact .button {
    padding: 13px 22px;
}

.p05-desktop-languages {
    position: relative;
    flex: 0 0 auto;
    text-align: start;
}

.p05-language-toggle,
.p05-language-nojs > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 146px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    text-transform: none;
    cursor: pointer;
}

.p05-language-toggle:hover,
.p05-language-toggle[aria-expanded="true"] {
    background: #222;
    color: #fff;
}

.p05-language-icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 18px;
    object-fit: contain;
    transform: none;
}

.p05-language-name {
    min-width: 0;
    unicode-bidi: isolate;
}

.p05-language-chevron {
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    margin-inline-end: 2px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

[dir="rtl"] .p05-language-chevron {
    transform: translateY(-2px) rotate(-45deg);
}

.p05-language-list {
    box-sizing: border-box;
    position: absolute;
    z-index: 10010;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    width: 200px;
    max-height: min(560px, calc(100dvh - 130px));
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    list-style: none;
}

.p05-language-list li,
.p05-language-grid li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.p05-language-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px;
    border-radius: 3px;
    color: #242424;
    font-size: 15px;
    line-height: 1.4;
    text-align: start;
}

.p05-language-link:hover,
.p05-language-link:focus-visible {
    background: #f5f5f5;
    color: #a50b12;
}

.p05-language-link.is-selected {
    background: #fff0f0;
    color: #950b12;
    font-weight: 700;
}

.p05-language-check {
    color: #a50b12;
    font-weight: 700;
}

.p05-language-fallback-notice {
    grid-column: 1 / -1;
    color: #555;
    font-size: 12px;
    line-height: 1.5;
}

.p05-mobile-languages,
.p05-menu-toggle {
    display: none;
}

.p05-site-header a:focus-visible,
.p05-site-header button:focus-visible,
.p05-site-header summary:focus-visible,
#footer a:focus-visible {
    outline: 3px solid #e52329;
    outline-offset: 3px;
}

.p05-ltr,
a[href^="tel:"],
a[href^="mailto:"],
input[type="email"],
input[type="url"],
input[type="tel"] {
    direction: ltr;
    unicode-bidi: isolate;
}

.p05-footer-service-title {
    margin-top: 24px;
}

#footer.p05-site-footer .link-wrap {
    display: block;
    width: 100%;
    margin-inline: 0;
    padding-inline-start: 0;
}

#footer.p05-site-footer .menu-1 {
    padding-inline-end: 20px;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .p05-site-header,
html[dir="rtl"] #footer {
    text-align: start;
}

html[dir="rtl"] .breadcrumbs .breadcrumb-trail > a {
    padding-right: 0;
    padding-left: 16px;
}

html[dir="rtl"] .breadcrumbs .breadcrumb-trail > span {
    padding-left: 0;
    padding-right: 14px;
}

html[dir="rtl"] .breadcrumbs .breadcrumb-trail > a::before {
    right: auto;
    left: -2px;
    transform: scaleX(-1);
}

html[dir="rtl"] .flat-blog-details #contactform,
html[dir="rtl"] .flat-blog-details #contactform label {
    text-align: right;
}

@media (min-width: 768px) {
    html[dir="rtl"] .flat-blog-details #contactform .style-text {
        float: right;
    }
    html[dir="rtl"] .flat-blog-details #contactform .phone-wrap,
    html[dir="rtl"] .flat-blog-details #contactform .name-wrap {
        padding-right: 0;
        padding-left: 15px;
    }
    html[dir="rtl"] .flat-blog-details #contactform .email-wrap,
    html[dir="rtl"] .flat-blog-details #contactform .site-wrap {
        padding-left: 0;
        padding-right: 15px;
    }
}

html[dir="rtl"] .fa-angle-right,
html[dir="rtl"] .fa-angle-left,
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .p05-directional-icon {
    transform: scaleX(-1);
}

@media (max-width: 1600px) {
    .p05-header-phone {
        display: none;
    }
}

@media (max-width: 1400px) {
    #site-header.p05-site-header {
        gap: 24px;
        padding-inline: 28px;
    }
    .p05-primary-links {
        gap: 16px;
    }
    .p05-header-contact {
        display: none;
    }
}

@media (max-width: 1180px) {
    .p05-site-header #site-logo img {
        max-height: 60px;
    }
    #site-header.p05-site-header {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
        height: 88px;
        padding: 14px 24px;
    }
    .p05-header-actions {
        display: none;
    }
    .p05-i18n-ready .p05-menu-toggle {
        display: flex;
    }
    .p05-menu-toggle {
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 4px;
        background: rgba(0, 0, 0, .35);
        color: #fff;
        cursor: pointer;
    }
    .p05-menu-toggle-bars,
    .p05-menu-toggle-bars::before,
    .p05-menu-toggle-bars::after {
        display: block;
        position: relative;
        width: 24px;
        height: 2px;
        background: currentColor;
    }
    .p05-menu-toggle-bars::before,
    .p05-menu-toggle-bars::after {
        content: "";
        position: absolute;
        inset-inline-start: 0;
    }
    .p05-menu-toggle-bars::before {
        top: -7px;
    }
    .p05-menu-toggle-bars::after {
        top: 7px;
    }
    .p05-menu-toggle[aria-expanded="true"] .p05-menu-toggle-bars {
        background: transparent;
    }
    .p05-menu-toggle[aria-expanded="true"] .p05-menu-toggle-bars::before {
        top: 0;
        transform: rotate(45deg);
    }
    .p05-menu-toggle[aria-expanded="true"] .p05-menu-toggle-bars::after {
        top: 0;
        transform: rotate(-45deg);
    }
    #p05-primary-panel {
        position: absolute;
        z-index: 10000;
        inset-inline: 0;
        top: 100%;
        width: 100%;
        max-height: calc(100vh - 88px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px 24px 24px;
        background: #151515;
        border-top: 1px solid #444;
        box-shadow: 0 12px 20px rgba(0, 0, 0, .25);
    }
    .p05-primary-links {
        display: block;
    }
    .p05-primary-links > li > a {
        min-height: 46px;
        padding: 10px 2px;
        border-bottom: 1px solid #333;
        font-size: 17px;
    }
    .p05-primary-links > li > a::after {
        display: none;
    }
    .p05-primary-links > li > a[aria-current="page"] {
        color: #ff6f74;
    }
    .p05-mobile-languages {
        display: block;
        margin-top: 22px;
    }
    .p05-mobile-languages h2 {
        margin: 0 0 12px;
        color: #fff;
        font-size: 17px;
        line-height: 1.5;
        font-weight: 700;
        text-align: start;
    }
    .p05-language-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .p05-language-grid .p05-language-link {
        grid-template-columns: 24px minmax(0, 1fr);
        align-content: start;
        gap: 7px;
        min-height: 76px;
        height: 100%;
        padding: 10px 8px;
        border: 1px solid #555;
        background: #242424;
        color: #fff;
    }
    .p05-language-grid .p05-language-name {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-wrap: anywhere;
        font-size: 14px;
    }
    .p05-language-grid .p05-language-check {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        color: #ff858a;
    }
    .p05-language-grid .p05-language-link.is-selected {
        border-color: #ff858a;
        background: #381b1e;
    }
    .p05-language-grid .p05-language-link:hover,
    .p05-language-grid .p05-language-link:focus-visible {
        background: #3b2427;
        color: #fff;
    }
    .p05-language-grid .p05-language-fallback-notice {
        color: #ddd;
    }
    html:not(.p05-i18n-ready) #site-header.p05-site-header {
        position: relative;
        height: auto;
        background: #151515;
    }
    html:not(.p05-i18n-ready) #p05-primary-panel {
        position: static;
        flex-basis: 100%;
        max-height: none;
        padding: 0 0 10px;
        box-shadow: none;
    }
}

/* R4 banner fixtures are populated in all locales; the source slogan size
   previously assumed short copy and clipped a full English word at 360 px. */
@media (max-width: 767px) {
    .slider .content {
        left: 18px;
        right: 18px;
        top: 50%;
        max-width: none;
        text-align: start;
    }
    .slider .content .slogan {
        font-size: clamp(32px, 9vw, 48px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .slider .heading {
        margin-bottom: 28px;
    }
}

@media (max-width: 360px) {
    #site-header.p05-site-header {
        padding-inline: 18px;
    }
    #p05-primary-panel {
        padding-inline: 18px;
    }
    .p05-language-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .p05-primary-links > li > a::after {
        transition: none;
    }
}
