/* BelMaS site-specific improvements */

:root {
    --belmas-red: #e81e25;
    --belmas-navy: #27255f;
    --belmas-surface: #f5f6f8;
}

img {
    max-width: 100%;
    height: auto;
}

.hero-title {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.mt-bnr-inr-entry .banner-title-outer h1 {
    margin-top: 0;
    color: #fff;
    font-size: 22px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
}

.top-bar a,
.contact-slide-hide a,
.bg-dark a,
.widget_address a {
    color: inherit;
}

.top-bar a:hover,
.contact-slide-hide a:hover,
.bg-dark a:hover,
.widget_address a:hover {
    color: var(--belmas-red);
}

/* Readable contact details on the light header bar. */
.header-style-1 .top-bar.bg-gray .e-p-bx,
.header-style-1 .top-bar.bg-gray .e-p-bx li {
    color: #181818;
}

.header-style-1 .top-bar.bg-gray .e-p-bx li a {
    color: var(--belmas-navy);
}

.header-style-1 .top-bar.bg-gray .e-p-bx li a:hover,
.header-style-1 .top-bar.bg-gray .e-p-bx li a:focus {
    color: var(--belmas-red);
}

.contact-location {
    padding: 80px 0;
    background: #ffffff;
}

.contact-map-card {
    display: grid;
    grid-template-columns: minmax(340px, 0.42fr) minmax(0, 0.58fr);
    overflow: hidden;
    min-height: 460px;
    background: #111111;
    border-top: 4px solid var(--belmas-red);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.contact-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding: 52px 46px;
    color: #fff;
    background: #111111;
}

.contact-map-header .site-button {
    margin-top: 32px;
}

.contact-location h2 {
    margin: 8px 0 14px;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.contact-location p {
    margin: 0;
    color: #d0d0d0;
    font-size: 15px;
}

.contact-location-kicker {
    color: var(--belmas-red) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.contact-map-frame {
    position: relative;
    min-height: 460px;
    background: #e5e6e8;
}

.contact-map-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    box-shadow: inset 18px 0 28px -26px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
    filter: grayscale(0.62) saturate(0.65) contrast(1.04);
}

.contact-map-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 220px;
    padding: 14px 18px;
    color: #111111;
    background: rgba(255, 255, 255, 0.96);
    border-left: 4px solid var(--belmas-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.contact-map-badge strong {
    font-size: 15px;
}

.contact-map-badge span {
    color: #555555;
    font-size: 12px;
}

.contact-team-grid {
    display: flex;
    flex-wrap: wrap;
}

.contact-team-item {
    display: flex;
}

.contact-team-card {
    width: 100%;
}

.contact-team-card .figcaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    padding: 32px 16px;
    text-align: center;
}

.contact-team-card .contact-team-name {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.35;
}

.contact-team-card .contact-team-role {
    margin: 0 0 18px;
    color: #111111;
}

.contact-team-card .contact-team-meta {
    margin: 0 0 12px;
    font-size: 14px;
}

.contact-team-card .contact-team-meta:last-child {
    margin-bottom: 0;
}

.contact-team-card .contact-team-meta a {
    color: #111111;
    white-space: nowrap;
}

.contact-team-card .contact-team-meta a:hover,
.contact-team-card .contact-team-meta a:focus {
    color: var(--belmas-red);
}

.contact-team-card .contact-team-meta .fa {
    margin-right: 4px;
}

.call-estimate.bg-dark a.site-button-secondry,
.call-estimate.bg-dark a.site-button-secondry:visited,
.call-estimate.bg-dark a.site-button-secondry:hover,
.call-estimate.bg-dark a.site-button-secondry:focus {
    color: #ffffff;
}

.contact-label {
    display: block;
    margin-bottom: 7px;
    color: #303038;
    font-weight: 600;
}

.form-honeypot {
    display: none !important;
}

.form-message:empty {
    display: none;
}

.form-message .alert {
    margin-bottom: 22px;
}

.form-control:focus,
button:focus,
a:focus {
    outline: 2px solid var(--belmas-red);
    outline-offset: 2px;
}

#submit-btn:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background-color: #777 !important;
    border-color: #777 !important;
}

@media only screen and (max-width: 767px) {
    .contact-team-item {
        display: block;
    }

    .contact-team-card .figcaption {
        min-height: 220px;
    }

    .contact-location {
        padding: 46px 0;
    }

    .contact-map-card {
        display: block;
        min-height: 0;
    }

    .contact-map-header {
        padding: 34px 26px 38px;
    }

    .contact-location h2 {
        font-size: 26px;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        height: 340px;
        min-height: 340px;
    }

    .contact-map-badge {
        right: 14px;
        bottom: 14px;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer signature: company copyright on the left, site credit on the right. */
.site-footer .widget > .company-legal-name {
    text-transform: none;
}

.footer-dark .footer-bottom .container {
    width: auto;
}

@media (min-width: 768px) {
    .footer-dark .footer-bottom .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .footer-dark .footer-bottom .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .footer-dark .footer-bottom .container {
        width: 1170px;
    }
}

.footer-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    text-align: left;
}

.footer-signature p {
    margin: 0;
    color: #ffffff;
}

.footer-signature a {
    color: #e81e25;
}

.footer-signature a:hover,
.footer-signature a:focus {
    color: #ff454b;
}

.footer-signature .footer-credit {
    text-align: right;
}

button.scroltop {
    right: 15px;
    left: auto;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

button.scroltop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .footer-signature {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-signature .footer-credit {
        text-align: left;
    }
}

/* Homepage footer: a stronger closing section while preserving the shared signature bar. */
.home-footer.footer-dark .home-footer-top {
    position: relative;
    overflow: hidden;
    padding: 68px 0 58px;
    border-top: 3px solid #e81e25;
    background:
        radial-gradient(circle at 92% 4%, rgba(232, 30, 37, 0.16), transparent 31%),
        radial-gradient(circle at 8% 110%, rgba(34, 45, 105, 0.28), transparent 38%),
        #08090d;
}

.home-footer .home-footer-accent {
    position: absolute;
    top: -145px;
    right: -115px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.home-footer .home-footer-accent::before,
.home-footer .home-footer-accent::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.home-footer .home-footer-accent::before {
    inset: 42px;
}

.home-footer .home-footer-accent::after {
    inset: 88px;
}

.home-footer .home-footer-cta-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 44px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-footer.footer-dark .home-footer-kicker {
    margin: 0 0 10px;
    color: #e81e25;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.home-footer.footer-dark .home-footer-cta-copy h2 {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.4px;
    text-transform: none;
}

.home-footer.footer-dark .home-footer-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 25px;
    border: 1px solid #e81e25;
    background: #e81e25;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(232, 30, 37, 0.18);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-footer.footer-dark .home-footer-button:hover,
.home-footer.footer-dark .home-footer-button:focus {
    border-color: #ffffff;
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.home-footer .home-footer-button .fa {
    font-size: 15px;
}

.home-footer .home-footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr;
    gap: 70px;
    align-items: start;
}

.home-footer .home-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.home-footer .home-footer-logo img {
    width: 184px;
    height: auto;
}

.home-footer.footer-dark .home-footer-brand p {
    max-width: 310px;
    margin: 0 0 24px;
    color: #a9adb7;
    font-size: 14px;
    line-height: 1.75;
}

.home-footer.footer-dark .home-footer-main h3 {
    position: relative;
    margin: 4px 0 24px;
    padding-bottom: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.35px;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-footer .home-footer-main h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #e81e25;
}

.home-footer .home-footer-social {
    display: flex;
    gap: 8px;
    margin: 0;
}

.home-footer.footer-dark .home-footer-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: #e81e25;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-footer.footer-dark .home-footer-social li a:hover,
.home-footer.footer-dark .home-footer-social li a:focus {
    border-color: #e81e25;
    background: #e81e25;
    color: #ffffff;
}

.home-footer .home-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-footer.footer-dark .home-footer-contact a {
    display: inline-block;
    margin-bottom: 11px;
    color: #c5c8cf;
    line-height: 1.5;
}

.home-footer.footer-dark .home-footer-contact .home-footer-phone {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.home-footer.footer-dark .home-footer-contact a:hover,
.home-footer.footer-dark .home-footer-contact a:focus {
    color: #e81e25;
}

.home-footer.footer-dark .home-footer-contact address {
    margin: 5px 0 0;
    color: #8f949f;
    font-size: 13px;
    font-style: normal;
    line-height: 1.65;
}

.home-footer .home-footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-footer .home-footer-links li {
    margin: 0 0 10px;
    padding: 0;
}

.home-footer.footer-dark .home-footer-links a {
    position: relative;
    display: inline-block;
    padding-left: 14px;
    color: #a9adb7;
    font-size: 13px;
    line-height: 1.5;
}

.home-footer .home-footer-links a::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 4px;
    height: 4px;
    background: #e81e25;
}

.home-footer.footer-dark .home-footer-links a:hover,
.home-footer.footer-dark .home-footer-links a:focus {
    color: #ffffff;
}

@media (max-width: 991px) {
    .home-footer .home-footer-cta-row {
        align-items: flex-start;
    }

    .home-footer .home-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 42px;
    }

    .home-footer .home-footer-company {
        grid-column: 1 / -1;
    }

    .home-footer .home-footer-company ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 30px;
    }

    .home-footer .home-footer-company li {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .home-footer.footer-dark .home-footer-top {
        padding: 48px 0 42px;
    }

    .home-footer .home-footer-cta-row {
        flex-direction: column;
        gap: 26px;
        margin-bottom: 36px;
        padding-bottom: 34px;
    }

    .home-footer.footer-dark .home-footer-cta-copy h2 {
        font-size: 27px;
        line-height: 1.32;
    }

    .home-footer.footer-dark .home-footer-button {
        width: 100%;
    }

    .home-footer .home-footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-footer .home-footer-company {
        grid-column: auto;
    }

    .home-footer .home-footer-company ul {
        display: block;
    }

    .home-footer .home-footer-company li {
        margin-bottom: 10px;
    }

    .home-footer.footer-dark .home-footer-brand p {
        max-width: 100%;
    }
}

/* Branded 404 page. */
.error-page-section {
    position: relative;
    display: flex;
    min-height: 620px;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(34, 45, 105, 0.06), transparent 42%),
        #f7f7f8;
}

.error-page-section::before,
.error-page-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.error-page-section::before {
    top: 0;
    right: -130px;
    width: 430px;
    height: 100%;
    border-left: 1px solid rgba(34, 45, 105, 0.08);
    background: linear-gradient(155deg, rgba(232, 30, 37, 0.08), transparent 58%);
    transform: skewX(-16deg);
}

.error-page-section::after {
    bottom: 0;
    left: 0;
    width: 42%;
    height: 3px;
    background: #e81e25;
}

.error-page-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 90px 20px 100px;
    text-align: center;
}

.error-page-code {
    margin: 0 0 -28px;
    color: rgba(34, 45, 105, 0.09);
    font-family: "Poppins", sans-serif;
    font-size: 210px;
    font-weight: 800;
    letter-spacing: -14px;
    line-height: 0.82;
    user-select: none;
}

.error-page-kicker {
    margin: 0 0 13px;
    color: #e81e25;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.error-page-section .error-page-title {
    margin: 0 0 20px;
    color: #111218;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -0.6px;
    line-height: 1.18;
    text-transform: none;
}

.error-page-description {
    max-width: 620px;
    margin: 0 auto 32px;
    color: #5f626b;
    font-size: 16px;
    line-height: 1.75;
}

.error-page-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.error-page-actions a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.error-page-primary {
    border: 1px solid #e81e25;
    background: #e81e25;
    color: #ffffff;
}

.error-page-primary:hover,
.error-page-primary:focus {
    border-color: #111218;
    background: #111218;
    color: #ffffff;
    transform: translateY(-2px);
}

.error-page-secondary {
    border: 1px solid #252f68;
    background: transparent;
    color: #252f68;
}

.error-page-secondary:hover,
.error-page-secondary:focus {
    background: #252f68;
    color: #ffffff;
    transform: translateY(-2px);
}

.error-page-contact {
    margin: 0;
    color: #777b84;
    font-size: 13px;
}

.error-page-contact a {
    color: #111218;
    font-weight: 600;
}

.error-page-contact a:hover,
.error-page-contact a:focus {
    color: #e81e25;
}

@media (max-width: 767px) {
    .error-page-section {
        min-height: 540px;
    }

    .error-page-inner {
        padding: 70px 10px 80px;
    }

    .error-page-code {
        margin-bottom: -16px;
        font-size: 132px;
        letter-spacing: -9px;
    }

    .error-page-section .error-page-title {
        font-size: 32px;
        line-height: 1.25;
    }

    .error-page-description {
        font-size: 15px;
    }

    .error-page-actions {
        flex-direction: column;
    }

    .error-page-actions a {
        width: 100%;
    }
}
