/* Adaptive desktop hero selection: cinematic by default, lightweight when needed. */

.rw-fallback-hero {
    display: none !important;
    min-height: calc(100svh - 84px);
}

html[data-rw-hero-mode="fallback"] .rw-cinematic-hero {
    display: none !important;
}

html[data-rw-hero-mode="fallback"] .rw-fallback-hero {
    display: flex !important;
    animation: rwFallbackHeroReveal 0.52s cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.rw-fallback-hero::before,
.rw-fallback-hero .trg-hero-logo img {
    animation: none !important;
}

.rw-fallback-hero .trg-hero-logo img {
    filter: drop-shadow(0 8px 20px rgba(0, 119, 255, 0.2));
}

.rw-fallback-hero .trg-stat,
.rw-fallback-hero .trg-btn-secondary,
.rw-fallback-hero .idx-social-link {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.rw-fallback-hero .trg-hero-container {
    padding-top: 38px;
    padding-bottom: 32px;
}

.rw-fallback-hero .trg-hero-logo img {
    width: 112px;
}

.rw-fallback-hero .trg-hero-logo {
    margin-bottom: 14px;
}

.rw-fallback-hero .trg-hero-container .subtitle {
    margin-bottom: 22px;
}

.rw-fallback-hero .trg-hero-cta {
    margin-top: 12px;
    margin-bottom: 22px;
}

.rw-fallback-hero .idx-differentiators {
    margin-bottom: 20px;
}

.rw-fallback-hero .trg-hero-stats {
    gap: 16px;
}

.rw-fallback-hero .trg-stat {
    padding: 16px;
}

.rw-fallback-hero .idx-social-strip {
    margin-top: 20px;
}

.rw-fallback-experience-switch {
    order: 11;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.rw-fallback-cinematic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid rgba(0, 119, 255, 0.22);
    border-radius: 999px;
    color: #0759c7;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 92, 200, 0.12);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rw-fallback-cinematic-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rw-fallback-cinematic-button:hover,
.rw-fallback-cinematic-button:focus-visible {
    border-color: rgba(0, 119, 255, 0.48);
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 92, 200, 0.2);
}

.rw-fallback-cinematic-button:focus-visible {
    outline: 3px solid rgba(76, 201, 255, 0.34);
    outline-offset: 3px;
}

html[data-theme="dark"] .rw-fallback-cinematic-button {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.26);
    background: rgba(28, 36, 56, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

@media (min-width: 769px) and (max-height: 900px) {
    .rw-fallback-hero .trg-hero-logo,
    .rw-fallback-hero .idx-hero-kicker,
    .rw-fallback-hero .trg-hero-container > h1,
    .rw-fallback-hero .idx-social-strip {
        display: none;
    }

    .rw-fallback-hero .trg-hero-container {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .rw-fallback-hero .idx-hero-slogan {
        font-size: clamp(44px, 5.6vw, 68px);
        margin-bottom: 4px;
        padding-top: 3px;
        padding-bottom: 6px;
    }

    .rw-fallback-hero .idx-hero-service-label {
        margin-bottom: 8px;
    }

    .rw-fallback-hero .trg-hero-container .subtitle {
        margin-bottom: 10px;
    }

    .rw-fallback-hero .trg-hero-cta {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .rw-fallback-hero .idx-differentiators {
        margin-bottom: 8px;
    }

    .rw-fallback-hero .trg-hero-stats {
        gap: 12px;
    }

    .rw-fallback-hero .trg-stat {
        padding: 11px;
    }

    .rw-fallback-experience-switch {
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .rw-fallback-experience-switch {
        width: 100%;
        margin-top: 16px;
    }

    .rw-fallback-cinematic-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-rw-hero-mode="fallback"] .rw-fallback-hero {
        animation: none;
    }
}

@keyframes rwFallbackHeroReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
