/* Approved hero. The fixed Elementor header remains unchanged; only this
   page supplies its verified 70px clearance. Standalone previews have no offset. */
.webless-wordpress-emergency-repair-page .wr-page {
    --wr-hero-header-clearance: 70px;
}

.wr-hero--floating {
    padding-block: calc(clamp(52px, 6vw, 88px) + var(--wr-hero-header-clearance, 0px)) clamp(52px, 6vw, 88px);
}

.webless-wordpress-emergency-repair-page #wr-hero-action-title {
    /* Keep the result visible when a longer repair expands the centered panel. */
    scroll-margin-top: calc(240px + var(--wp-admin--admin-bar--height, 0px));
}

.wr-hero-story {
    max-width: 650px;
    text-shadow: none;
}

.wr-hero-story p.wr-hero-story__eyebrow {
    align-items: center;
    color: var(--wr-primary);
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin-bottom: 26px;
    text-transform: uppercase;
}

.wr-hero-story__eyebrow .dashicons {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.wr-hero-story h1 {
	font-size: clamp(54px, 5.35vw, 78px);
	font-weight: 600;
	line-height: 1.03;
    max-width: 650px;
}

.wr-hero-story h1 > span {
	display: inline;
}

.wr-hero-story h1 .wr-hero-story__outcome {
	color: var(--wr-primary);
	font-weight: 700;
}

.wr-hero-story p.wr-hero-story__lead {
    margin-top: 28px;
    max-width: 49ch;
}

/* Floating evidence: actual illustration assets, gently offset in space. */
.wr-hero--floating .wr-hero-story h1 {
	max-width: 650px;
}

.wr-hero--floating .wr-hero-story p.wr-hero-story__lead {
    margin-top: 22px;
}

.wr-hero-story figure.wr-hero-evidence {
    display: grid;
    margin-top: 34px;
    max-width: 600px;
    padding: 8px 6px 0;
    position: relative;
}

.wr-hero-evidence__pair {
    animation: wr-evidence-cycle 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: grid;
    gap: 30px 14px;
    grid-area: 1 / 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.wr-hero-evidence__pair:nth-child(1) { animation-delay: 0s; }
.wr-hero-evidence__pair:nth-child(2) { animation-delay: -18s; }
.wr-hero-evidence__pair:nth-child(3) { animation-delay: -12s; }
.wr-hero-evidence__pair:nth-child(4) { animation-delay: -6s; }

.wr-hero-evidence__card {
    animation: wr-evidence-float 7s ease-in-out infinite;
    background: var(--wr-ink-soft);
    border: 1px solid var(--wr-border-strong);
    border-radius: 7px;
    box-shadow: 0 15px 26px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.wr-hero-evidence__card--left {
    --wr-evidence-angle: -3deg;
    top: 0;
    z-index: 2;
}

.wr-hero-evidence__card--right {
    --wr-evidence-angle: 3deg;
    animation-delay: -3.5s;
    top: 8px;
}

.wr-hero-evidence__card img,
.wr-hero-evidence__status {
    aspect-ratio: 1568 / 1003;
    display: block;
    margin: 0;
    width: 100%;
}

.wr-hero-evidence__card img {
    height: auto;
    object-fit: cover;
}

.wr-hero-evidence__status {
    border: 0;
    border-radius: 0;
}

.wr-hero-evidence__status .wr-signal-card__status-bar {
    box-sizing: border-box;
    min-height: 24px;
    padding: 5px 8px;
}

.wr-hero-evidence__status .wr-signal-card__status-alert {
    box-sizing: border-box;
    gap: 9px;
    padding: 8px;
}

.wr-hero-evidence__status .wr-signal-card__status-alert > .dashicons {
    font-size: 28px;
    height: 28px;
    width: 28px;
}

.wr-hero-evidence__status .wr-signal-card__status-alert strong {
    font-size: 11px;
}

.wr-hero-evidence__status .wr-signal-card__status-alert small {
    font-size: 8.5px;
    margin-top: 2px;
}

.wr-hero-evidence__card > span {
    align-items: center;
    border-top: 1px solid var(--wr-border);
    color: var(--wr-white);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    padding: 8px 12px;
}

.wr-hero-evidence__card .dashicons {
    color: var(--wr-danger);
    font-size: 16px;
    height: 16px;
    width: 16px;
}

@keyframes wr-evidence-float {
    0%, 100% { transform: translateY(0) rotate(var(--wr-evidence-angle)); }
    50% { transform: translateY(-8px) rotate(var(--wr-evidence-angle)); }
}

@keyframes wr-evidence-cycle {
    0%, 20% { opacity: 1; transform: translateY(0); }
    25% { opacity: 0; transform: translateY(-8px); }
    26%, 95% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1025px) {
    .wr-hero--floating .wr-hero__grid {
        column-gap: 48px;
        grid-template-columns: minmax(0, 1.3fr) minmax(390px, 1fr);
        margin-inline: auto;
        max-width: 1198px;
    }
}

@media (max-width: 1024px) {
    .wr-hero-story { max-width: 690px; }
    .wr-hero-story h1 { max-width: 680px; }
}

@media (max-width: 767px) {
    /* Keep the decorative evidence after the interactive selector on mobile. */
    .wr-hero--floating .wr-hero__copy,
    .wr-hero--floating .wr-hero-story {
        display: contents;
    }

    .wr-hero--floating .wr-hero__action {
        order: 1;
    }

    .wr-hero--floating .wr-hero-story figure.wr-hero-evidence {
        margin-top: 0;
        order: 2;
    }
}

@media (max-width: 700px) {
	.wr-hero-story h1 {
		font-size: clamp(44px, 12.5vw, 60px);
	}
}

@media (max-width: 600px) {
    .wr-hero-story p.wr-hero-story__eyebrow {
        gap: 10px;
        margin-bottom: 22px;
    }

    .wr-hero-story p.wr-hero-story__lead,
    .wr-hero--floating .wr-hero-story p.wr-hero-story__lead {
        margin-top: 22px;
    }

    .wr-hero-story figure.wr-hero-evidence {
        margin-top: 34px;
    }

    .wr-hero-evidence__card > span {
        font-size: 10px;
        gap: 5px;
        padding: 6px 8px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .wr-hero-evidence__pair {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .wr-hero-evidence__pair:first-child { opacity: 1; }
    .wr-hero-evidence__card { animation: none; }
}
