/* v1.3.5: scoped alignment correction for header logo and CTA/footer columns. */
@media (min-width: 1101px) {
    .site-header__inner,
    .xp-e-section,
    .xp-premium-hero,
    .site-footer__inner,
    .xp-elementor-footer__inner,
    .section {
        width: min(calc(100% - 80px), 1380px) !important;
        max-width: 1380px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .xp-e-cta {
        display: grid !important;
        grid-template-columns: 1.45fr .9fr .9fr .9fr 1.25fr !important;
        align-items: center !important;
        gap: 34px !important;
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 58px max(40px, calc((100% - 1380px) / 2)) !important;
    }

    .xp-cta {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: max(40px, calc((100% - 1380px) / 2)) !important;
        padding-left: max(40px, calc((100% - 1380px) / 2)) !important;
    }

    .xp-e-cta-title {
        grid-column: 1;
    }

    .xp-e-cta-text {
        grid-column: 2;
    }

    .xp-e-cta-buttons {
        grid-column: 3 / 6;
        justify-content: flex-start;
    }

}

/* v1.3.16: static service images with a separate details button. */
.xp-service-visual,
.xp-e-service-image-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 420px;
    overflow: hidden;
    border: 2px solid rgba(41, 41, 41, .14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(41, 41, 41, .12);
    transform: none !important;
    transition: none !important;
}
.xp-service-visual:hover,
.xp-e-service-image-panel:hover {
    border-color: rgba(41, 41, 41, .14);
    box-shadow: 0 20px 52px rgba(41, 41, 41, .12);
    transform: none !important;
}
.xp-service-visual img,
.xp-e-service-image-panel .xp-e-service-image,
.xp-e-service-image-panel .xp-e-service-image .elementor-widget-container,
.xp-e-service-image-panel .xp-e-service-image img {
    width: 100%;
    min-height: 0;
    height: 100%;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
}
.xp-service-visual > img,
.xp-e-service-image-panel .xp-e-service-image {
    flex: 1 1 auto;
    min-height: 330px;
}
.xp-service-visual:hover img,
.xp-e-service-image-panel:hover img {
    transform: none !important;
}
.xp-service-visual__shade,
.xp-e-service-image-panel::after {
    display: none !important;
    content: none !important;
}
.xp-service-visual__button,
.xp-e-service-image-button {
    position: static !important;
    align-self: flex-start;
    margin: 18px 20px 20px;
}
@media (max-width: 620px) {
    .xp-service-visual,
    .xp-e-service-image-panel { min-height: 330px; }
    .xp-service-visual > img,
    .xp-e-service-image-panel .xp-e-service-image { min-height: 240px; }
    .xp-service-visual__button,
    .xp-e-service-image-button { right: auto !important; bottom: auto !important; left: auto !important; margin: 16px 18px 18px; }
}

/* v1.3.15: mobile-only readability, spacing and navigation correction. */
@media (max-width: 620px) {
    html, body { overflow-x: clip; }
    .site-header__inner { padding-right: 20px !important; padding-left: 20px !important; }
    .xp-e-section, .xp-premium-hero, .xp-e-portfolio-section { padding-right: 20px !important; padding-left: 20px !important; }
    .xp-e-cta { width: calc(100% - 40px) !important; margin: 20px auto !important; padding: 28px 22px !important; }
    .xp-widget-form { padding: 22px !important; }
    .xp-widget-form__grid { display: grid !important; grid-template-columns: 1fr !important; }
    .elementor .e-con, .elementor-widget, .xp-premium-hero__grid > *, .xp-e-split > .e-con, .xp-e-feature-row > .e-con, .xp-e-case-row > .e-con, .xp-e-hero-form-layout > .e-con { min-width: 0 !important; max-width: 100% !important; }
    .xp-premium-hero__title { font-size: clamp(36px, 11vw, 43px) !important; overflow-wrap: break-word; }
    .xp-e-h1 .elementor-heading-title { font-size: clamp(36px, 10.5vw, 42px) !important; overflow-wrap: break-word; }
    .xp-e-button-row, .xp-e-cta-buttons, .xp-premium-hero__actions { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; width: 100% !important; }
    .xp-e-button .elementor-button, .xp-e-button-secondary .elementor-button, .xp-e-button-dark .elementor-button, .xp-premium-button, .xp-button { width: auto !important; max-width: 100% !important; min-height: 46px !important; padding: 0 18px !important; font-size: 13px !important; }
    .mobile-bottom-nav { width: 100% !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; height: 72px; }
    .mobile-bottom-nav a { min-width: 0; }
    .mobile-bottom-nav a { color: #ffffff !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1.2; opacity: 1 !important; }
    .mobile-bottom-nav span { margin-bottom: 2px; color: var(--xp-orange) !important; font-size: 18px; }
    .mobile-more-panel { top: 90px; right: 16px; bottom: auto; left: 16px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 22px; }
    .mobile-more-panel:not([hidden]) { grid-template-columns: 1fr; gap: 0; }
    .mobile-more-panel__head { color: #ffffff !important; }
    .mobile-more-panel > a { color: #ffffff !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.35; opacity: 1 !important; }
    .mobile-more-panel > a span { color: var(--xp-orange) !important; }
}
