/* UrgentMed Occupational Health Hero — be9863ca — v8.0.0 */

/* ===================== ELEMENTOR WRAPPER OVERRIDE ===================== */
/* Elementor's widget wrapper can clip overflow — override it when overflow mode is active */
.elementor-widget-urgentmed_occ_health_hero_be9863ca {
    overflow: visible !important;
}

.elementor-widget-urgentmed_occ_health_hero_be9863ca > .elementor-widget-container {
    overflow: visible !important;
}

.umoh-hero-be9863ca {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Default: clip overflow. Overflow class removes it. */
.umoh-hero-be9863ca:not(.umoh-hero-overflow-be9863ca) {
    overflow: hidden;
}

/* When overflow is allowed, EVERYTHING is visible */
.umoh-hero-overflow-be9863ca {
    overflow: visible !important;
}

/* ===================== BACKGROUND IMAGE MODE ===================== */

.umoh-hero-bg-mode-be9863ca {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden !important; /* Background mode always clips */
}

.umoh-bg-image-be9863ca {
    --umoh-bg-nudge-x: 0px;
    --umoh-bg-nudge-y: 0px;
    --umoh-bg-pos-x: 50%;
    --umoh-bg-pos-y: 50%;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    translate: var(--umoh-bg-nudge-x) var(--umoh-bg-nudge-y);
}

.umoh-bg-overlay-be9863ca {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.umoh-bg-mode-content-be9863ca {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Background mode text colors — white by default for readability over image */
.umoh-hero-bg-mode-be9863ca .umoh-headline-be9863ca {
    color: #ffffff;
}

.umoh-hero-bg-mode-be9863ca .umoh-subheadline-be9863ca {
    color: rgba(255, 255, 255, 0.85);
}

.umoh-hero-bg-mode-be9863ca .umoh-bullet-text-be9863ca {
    color: rgba(255, 255, 255, 0.9);
}

.umoh-hero-bg-mode-be9863ca .umoh-bullet-icon-be9863ca {
    color: rgba(255, 255, 255, 0.8);
}

.umoh-hero-bg-mode-be9863ca .umoh-bullet-icon-be9863ca svg {
    fill: rgba(255, 255, 255, 0.8);
}

.umoh-hero-bg-mode-be9863ca .umoh-local-proof-be9863ca {
    color: rgba(255, 255, 255, 0.65);
}

.umoh-hero-bg-mode-be9863ca .umoh-badge-be9863ca {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.umoh-hero-bg-mode-be9863ca .umoh-trust-label-be9863ca {
    color: rgba(255, 255, 255, 0.55);
}

.umoh-hero-bg-mode-be9863ca .umoh-stats-bar-be9863ca {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.umoh-hero-bg-mode-be9863ca .umoh-stat-value-be9863ca {
    color: #ffffff;
}

.umoh-hero-bg-mode-be9863ca .umoh-stat-label-be9863ca {
    color: rgba(255, 255, 255, 0.65);
}

.umoh-hero-bg-mode-be9863ca .umoh-stat-item-be9863ca + .umoh-stat-item-be9863ca::before {
    background-color: rgba(255, 255, 255, 0.2);
}

.umoh-hero-bg-mode-be9863ca .umoh-trust-section-be9863ca {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca svg {
    fill: #ffffff;
}

.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca:hover,
.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca:hover svg,
.umoh-hero-bg-mode-be9863ca .umoh-btn-secondary-be9863ca:focus-visible svg {
    fill: #ffffff;
}

/* ===================== COLUMN MODE (DEFAULT) ===================== */

/* Subtle Premium Background Depth */
.umoh-hero-be9863ca::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(3,105,161,0.025) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.umoh-hero-be9863ca::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(14,165,233,0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Background Gradient Overlay */
.umoh-bg-gradient-be9863ca {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Accent Shapes */
.umoh-accent-circle-be9863ca {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.umoh-accent-dot-be9863ca {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Grid Layout */
.umoh-grid-be9863ca {
    display: grid;
    grid-template-columns: 50fr 50fr;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.umoh-content-be9863ca {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.umoh-image-col-be9863ca {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Default: image column clips. Overflow class removes it. */
.umoh-image-col-be9863ca:not(.umoh-overflow-visible-be9863ca) {
    overflow: hidden;
}

/* When overflow is allowed on the image column */
.umoh-image-col-be9863ca.umoh-overflow-visible-be9863ca {
    overflow: visible !important;
}

/* Image Layer Z-Index Controls */
.umoh-layer-forward-be9863ca {
    z-index: 5;
}

.umoh-layer-behind-be9863ca {
    z-index: 0;
}

/* ── Badge — Elite Enterprise Healthcare Editorial ── */
.umoh-badge-be9863ca {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.65rem;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    border: 1px solid rgba(3, 105, 161, 0.07);
    border-left: 2px solid rgba(3, 105, 161, 0.35);
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headline */
.umoh-headline-be9863ca {
    font-size: clamp(1.75rem, 3.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
    padding: 0;
}

/* Subheadline */
.umoh-subheadline-be9863ca {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    margin: 0;
    padding: 0;
    max-width: 580px;
}

/* Trust Bullets */
.umoh-bullets-be9863ca {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}

.umoh-bullet-item-be9863ca {
    display: flex;
    align-items: center;
    gap: 12px;
}

.umoh-bullet-icon-be9863ca {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.umoh-bullet-item-be9863ca:hover .umoh-bullet-icon-be9863ca {
    opacity: 0.7;
}

.umoh-bullet-text-be9863ca {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* CTA Buttons */
.umoh-cta-row-be9863ca {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.umoh-btn-primary-be9863ca,
.umoh-btn-secondary-be9863ca,
.umoh-btn-emergency-be9863ca {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
    box-sizing: border-box;
}

.umoh-btn-primary-be9863ca {
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.umoh-btn-primary-be9863ca:hover,
.umoh-btn-primary-be9863ca:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.18);
}

.umoh-btn-secondary-be9863ca {
    background: transparent;
    border: 1.5px solid;
    font-weight: 500;
}

.umoh-btn-secondary-be9863ca:hover,
.umoh-btn-secondary-be9863ca:focus-visible {
    transform: translateY(-1px);
}

.umoh-btn-emergency-be9863ca {
    color: #dc2626;
    background: transparent;
    border: 1.5px solid #dc2626;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.umoh-btn-emergency-be9863ca:hover,
.umoh-btn-emergency-be9863ca:focus-visible {
    background-color: #fef2f2;
    transform: translateY(-1px);
}

.umoh-emergency-pulse-be9863ca {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    margin-right: 4px;
    animation: umohPulse_be9863ca 1.5s ease-in-out infinite;
}

@keyframes umohPulse_be9863ca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Focus States */
.umoh-btn-primary-be9863ca:focus-visible,
.umoh-btn-secondary-be9863ca:focus-visible,
.umoh-btn-emergency-be9863ca:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 3px;
}

.umoh-btn-icon-be9863ca {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
}

.umoh-btn-icon-be9863ca svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Local Authority Proof */
.umoh-local-proof-be9863ca {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.umoh-local-pin-be9863ca {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Stats Bar */
.umoh-stats-bar-be9863ca {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.umoh-stat-item-be9863ca {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 28px;
    position: relative;
}

.umoh-stat-item-be9863ca:first-child {
    padding-left: 0;
}

.umoh-stat-item-be9863ca + .umoh-stat-item-be9863ca::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background-color: #e2e8f0;
}

.umoh-stat-value-be9863ca {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.umoh-stat-label-be9863ca {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Hero Image — Column Mode */
.umoh-image-wrap-be9863ca {
    --umoh-img-offset-x: 0px;
    --umoh-img-offset-y: 0px;
    --umoh-fade-top: 0%;
    --umoh-fade-right: 0%;
    --umoh-fade-bottom: 0%;
    --umoh-fade-left: 0%;
    position: relative;
    width: 100%;
}

/* Default: wrapper clips. Overflow class removes it. */
.umoh-image-wrap-be9863ca:not(.umoh-overflow-visible-be9863ca) {
    overflow: hidden;
}

/* When overflow is allowed, image wrapper lets scaled images expand freely */
.umoh-image-wrap-be9863ca.umoh-overflow-visible-be9863ca {
    overflow: visible !important;
}

.umoh-image-overlay-be9863ca {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.umoh-hero-img-be9863ca {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
    transform-origin: center center;
}

/* ===================== EDGE FADE ===================== */
/* CRITICAL: mask-image is applied to the IMG element directly, NOT the wrapper.
   Applying mask to the wrapper creates an implicit clipping/stacking context
   that blocks overflow:visible from working. By masking the img itself,
   the wrapper stays overflow:visible and the scaled image can break out. */
.umoh-edge-fade-be9863ca .umoh-hero-img-be9863ca {
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black var(--umoh-fade-top), black calc(100% - var(--umoh-fade-bottom)), transparent 100%),
        linear-gradient(to right, transparent 0%, black var(--umoh-fade-left), black calc(100% - var(--umoh-fade-right)), transparent 100%);
    mask-image:
        linear-gradient(to bottom, transparent 0%, black var(--umoh-fade-top), black calc(100% - var(--umoh-fade-bottom)), transparent 100%),
        linear-gradient(to right, transparent 0%, black var(--umoh-fade-left), black calc(100% - var(--umoh-fade-right)), transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
}

/* Float Animation */
.umoh-float-be9863ca {
    animation: umohFloat_be9863ca 6s ease-in-out infinite;
}

@keyframes umohFloat_be9863ca {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Trust Logos */
.umoh-trust-section-be9863ca {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.umoh-trust-label-be9863ca {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.umoh-trust-logos-be9863ca {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.umoh-trust-logo-be9863ca img {
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.umoh-trust-logo-be9863ca img:hover {
    opacity: 0.8 !important;
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    .umoh-float-be9863ca,
    .umoh-emergency-pulse-be9863ca {
        animation: none;
    }
    .umoh-btn-primary-be9863ca:hover,
    .umoh-btn-secondary-be9863ca:hover,
    .umoh-btn-emergency-be9863ca:hover {
        transform: none;
    }
    .umoh-bullet-icon-be9863ca,
    .umoh-trust-logo-be9863ca img,
    .umoh-btn-primary-be9863ca,
    .umoh-btn-secondary-be9863ca,
    .umoh-btn-emergency-be9863ca {
        transition: none;
    }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
    .umoh-grid-be9863ca {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .umoh-content-be9863ca {
        order: 1;
    }

    .umoh-image-col-be9863ca {
        order: 2;
        margin-top: 40px;
    }

    .umoh-layer-forward-be9863ca,
    .umoh-layer-behind-be9863ca {
        z-index: 2;
    }

    .umoh-subheadline-be9863ca {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .umoh-bullets-be9863ca {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .umoh-bullet-item-be9863ca {
        justify-content: center;
    }

    .umoh-cta-row-be9863ca {
        justify-content: center;
    }

    .umoh-local-proof-be9863ca {
        justify-content: center;
    }

    .umoh-stats-bar-be9863ca {
        justify-content: center;
    }

    .umoh-stat-item-be9863ca {
        align-items: center;
    }

    .umoh-trust-section-be9863ca {
        text-align: center;
    }

    .umoh-trust-logos-be9863ca {
        justify-content: center;
    }

    .umoh-image-wrap-be9863ca {
        max-width: 480px;
    }

    .umoh-accent-circle-be9863ca {
        width: 260px;
        height: 260px;
        top: -80px;
        right: -80px;
    }

    .umoh-accent-dot-be9863ca {
        width: 200px;
        height: 200px;
        bottom: -60px;
        left: -60px;
    }

    /* Badge centered on tablet */
    .umoh-badge-be9863ca {
        border-left-width: 1px;
        border-left-color: rgba(3, 105, 161, 0.07);
    }

    /* Background mode tablet */
    .umoh-bg-mode-content-be9863ca {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .umoh-subheadline-be9863ca {
        font-size: 0.95rem;
    }

    .umoh-cta-row-be9863ca {
        flex-direction: column;
        align-items: stretch;
    }

    .umoh-btn-primary-be9863ca,
    .umoh-btn-secondary-be9863ca,
    .umoh-btn-emergency-be9863ca {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .umoh-image-wrap-be9863ca {
        max-width: 100%;
    }

    .umoh-trust-logos-be9863ca {
        gap: 16px;
    }

    .umoh-stats-bar-be9863ca {
        gap: 16px 0;
    }

    .umoh-stat-item-be9863ca {
        padding: 0 20px;
    }

    .umoh-stat-item-be9863ca + .umoh-stat-item-be9863ca::before {
        height: 24px;
    }

    .umoh-accent-circle-be9863ca {
        width: 180px;
        height: 180px;
        top: -50px;
        right: -50px;
    }

    .umoh-accent-dot-be9863ca {
        width: 140px;
        height: 140px;
        bottom: -40px;
        left: -40px;
    }

    /* Badge — slightly smaller on mobile */
    .umoh-badge-be9863ca {
        font-size: 0.6rem;
        letter-spacing: 0.07em;
    }

    /* Sticky Mobile CTA */
    .umoh-sticky-cta-be9863ca {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        border-radius: 0;
        width: 100%;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
    }
}
