
/* =========================================
   R3S PREMIUM HERO DESIGN
   Desktop + Tablet + Mobile
========================================= */

.r3s-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #080808;
}

.r3s-hero-swiper {
    position: relative;
    width: 100%;
    height: min(760px, 86vh);
    min-height: 650px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #080808;
}

/* BACKGROUND IMAGE */

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8s cubic-bezier(.2,.7,.2,1);
}

.swiper-slide-active .hero-image img {
    transform: scale(1.06);
}

/* PREMIUM IMAGE OVERLAY */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, .96) 0%,
            rgba(5, 5, 5, .91) 32%,
            rgba(5, 5, 5, .70) 58%,
            rgba(5, 5, 5, .25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .55) 0%,
            transparent 35%
        );
}

.hero-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        #DD0311 35%,
        #DD0311 70%,
        transparent
    );
    opacity: .9;
}

/* MAIN LAYOUT */

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-layout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 85px 0 120px;
    color: #ffffff;
}

/* EYEBROW */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.eyebrow-line {
    width: 35px;
    height: 2px;
    flex-shrink: 0;
    background: #DD0311;
}

/* HEADING */

.hero-content h1,
.hero-content h2 {
    max-width: 700px;
    margin: 0 0 23px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero-content h1 span,
.hero-content h2 span {
    display: inline-block;
    color: #FF2836;
}

/* DESCRIPTION */

.hero-description {
    max-width: 590px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.85;
    font-weight: 400;
}

/* BUTTONS */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .r3s-btn {
    min-height: 54px;
    padding: 15px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
}

.hero-actions .r3s-btn i {
    transition: transform .3s ease;
}

.hero-actions .r3s-btn:hover i {
    transform: translate(3px, -3px);
}

.hero-outline-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}

.hero-outline-btn:hover {
    color: #ffffff;
    background: #DD0311;
    border-color: #DD0311;
    transform: translateY(-3px);
}

/* TRUST LINE */

.hero-trust {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 38px;
}

.hero-trust-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF3844;
    background: rgba(221, 3, 17, .12);
    border: 1px solid rgba(221, 3, 17, .45);
    border-radius: 50%;
    font-size: 20px;
}

.hero-trust strong,
.hero-trust span {
    display: block;
}

.hero-trust strong {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-trust span {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

/* RIGHT FLOATING CARD */

.hero-side-card {
    position: relative;
    z-index: 2;
    flex: 0 0 285px;
    width: 285px;
    padding: 25px 22px 18px;
    background: rgba(15, 15, 15, .72);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    transform: translateY(25px);
    opacity: 0;
    transition: opacity .7s .45s ease, transform .7s .45s ease;
}

.swiper-slide-active .hero-side-card {
    opacity: 1;
    transform: translateY(0);
}

.hero-side-card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #ffffff;
    background: #DD0311;
    border-radius: 10px;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(221, 3, 17, .25);
}

.hero-side-card-content > span {
    display: block;
    margin-bottom: 10px;
    color: #FF626B;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-side-card-content strong {
    display: block;
    margin-bottom: 9px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.hero-side-card-content small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    line-height: 1.7;
}

.hero-side-card-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    font-weight: 700;
}

.hero-side-card-footer i {
    color: #25D366;
    font-size: 14px;
}

/* CONTENT ENTRANCE ANIMATION */

.swiper-slide .hero-eyebrow,
.swiper-slide .hero-content h1,
.swiper-slide .hero-content h2,
.swiper-slide .hero-description,
.swiper-slide .hero-actions,
.swiper-slide .hero-trust {
    opacity: 0;
    transform: translateY(22px);
}

.swiper-slide-active .hero-eyebrow {
    animation: heroFadeUp .7s .1s ease forwards;
}

.swiper-slide-active .hero-content h1,
.swiper-slide-active .hero-content h2 {
    animation: heroFadeUp .75s .22s ease forwards;
}

.swiper-slide-active .hero-description {
    animation: heroFadeUp .75s .36s ease forwards;
}

.swiper-slide-active .hero-actions {
    animation: heroFadeUp .75s .5s ease forwards;
}

.swiper-slide-active .hero-trust {
    animation: heroFadeUp .75s .64s ease forwards;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTTOM CONTROLS */

.hero-controls-wrapper {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%);
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-pagination {
    position: static;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    margin: 0 !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
    transition: all .3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 48px;
    background: #DD0311;
}

/* COUNTER */

.hero-slide-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.current-slide {
    color: #ffffff;
}

.total-slides {
    color: rgba(255, 255, 255, .5);
}

.counter-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, .35);
}

/* NAVIGATION */

.hero-navigation {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.hero-navigation button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all .3s ease;
}

.hero-navigation button:hover {
    color: #ffffff;
    background: #DD0311;
    border-color: #DD0311;
    transform: translateY(-3px);
}

.hero-navigation button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* BOTTOM ACCENT */

.hero-bottom-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 6;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #DD0311 0%,
        #DD0311 25%,
        rgba(221, 3, 17, .1) 100%
    );
}

/* TABLET */

@media (max-width: 1100px) {

    .r3s-hero-swiper,
    .hero-slide {
        height: 650px;
        min-height: 650px;
    }

    .hero-layout {
        gap: 20px;
    }

    .hero-content {
        max-width: 620px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(42px, 5vw, 55px);
    }

    .hero-side-card {
        flex-basis: 245px;
        width: 245px;
        padding: 20px 17px 16px;
    }
}

/* TABLET / SMALL LAPTOP */

@media (max-width: 991px) {

    .hero-side-card {
        display: none;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(5, 5, 5, .94),
            rgba(5, 5, 5, .76) 65%,
            rgba(5, 5, 5, .35)
        );
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .r3s-hero-swiper,
    .hero-slide {
        height: 680px;
        min-height: 680px;
    }

    .hero-image img {
        object-position: 65% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(5, 5, 5, .91),
                rgba(5, 5, 5, .76)
            ),
            linear-gradient(
                0deg,
                rgba(0, 0, 0, .45),
                transparent 60%
            );
    }

    .hero-overlay::after {
        width: 3px;
    }

    .hero-container {
        align-items: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 65px 0 120px;
    }

    .hero-eyebrow {
        gap: 9px;
        margin-bottom: 21px;
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .eyebrow-line {
        width: 24px;
    }

    .hero-content h1,
    .hero-content h2 {
        max-width: 560px;
        margin-bottom: 19px;
        font-size: clamp(36px, 8vw, 46px);
        line-height: 1.16;
        letter-spacing: -1.2px;
    }

    .hero-description {
        max-width: 520px;
        margin-bottom: 25px;
        font-size: 13px;
        line-height: 1.8;
    }

    .hero-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-actions .r3s-btn {
        min-height: 48px;
        padding: 12px 15px;
        font-size: 11px;
        gap: 7px;
    }

    .hero-trust {
        margin-top: 28px;
    }

    .hero-trust-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
    }

    .hero-trust strong {
        font-size: 12px;
    }

    .hero-trust span {
        font-size: 10px;
    }

    /* MOBILE CONTROLS */

    .hero-controls-wrapper {
        bottom: 22px;
    }

    .hero-controls {
        gap: 13px;
    }

    .hero-pagination {
        gap: 5px;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 16px;
        height: 3px;
    }

    .hero-pagination .swiper-pagination-bullet-active {
        width: 30px;
    }

    .hero-slide-counter {
        gap: 7px;
        font-size: 10px;
    }

    .hero-navigation {
        gap: 6px;
    }

    .hero-navigation button {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .r3s-hero-swiper,
    .hero-slide {
        height: 650px;
        min-height: 650px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .r3s-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        margin-top: 22px;
    }

    .hero-controls {
        gap: 10px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .swiper-slide-active .hero-eyebrow,
    .swiper-slide-active .hero-content h1,
    .swiper-slide-active .hero-content h2,
    .swiper-slide-active .hero-description,
    .swiper-slide-active .hero-actions,
    .swiper-slide-active .hero-trust {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-image img,
    .hero-side-card {
        transition: none;
        transform: none;
    }

    .hero-navigation button,
    .hero-actions .r3s-btn {
        transition: none;
    }
}
