/* =====================================================
   RB Hero — single text overlay + simple bg image gallery
   No Swiper, no modules — just CSS opacity transitions
   ===================================================== */

.rb-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    color: var(--rb-light);
    --rb-hero-transition: 1200ms;
}

/* ---------- Background image stack ---------- */
.rb-hero__bg-stack {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.rb-hero__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    opacity: 0;
    visibility: visible !important;
    transition: opacity var(--rb-hero-transition) ease-in-out;
    will-change: opacity, transform;
}

.rb-hero__bg.is-active {
    opacity: 1;
    z-index: 2;
}

/* Ken Burns slow zoom on the active background */
.rb-hero__bg.is-active {
    animation: rb-kenburns 8s ease-out forwards;
}

@keyframes rb-kenburns {
    0%   { transform: scale(1.0)  translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* ---------- Overlay ---------- */
.rb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(31,27,22,0.55) 0%, rgba(31,27,22,0.20) 100%);
}

/* ---------- Content ---------- */
.rb-hero__inner {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: var(--rb-space-9) var(--rb-space-4);
}

.rb-hero__content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-4);
    animation: rb-hero-rise 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes rb-hero-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rb-hero__eyebrow {
    display: inline-block;
    font-family: var(--rb-font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rb-accent);
}

.rb-hero__headline {
    font-family: var(--rb-font-heading);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--rb-light);
    margin: 0;
}

.rb-hero__subtext {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.rb-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--rb-space-3);
    margin-top: var(--rb-space-3);
}

.rb-hero__inner[style*="align-items: flex-start"] .rb-hero__buttons { justify-content: flex-start; }
.rb-hero__inner[style*="align-items: flex-end"]   .rb-hero__buttons { justify-content: flex-end; }

.rb-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--rb-font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: var(--rb-transition);
    cursor: pointer;
    text-decoration: none !important;
    border: 2px solid transparent;
    white-space: nowrap;
}

.rb-hero__btn--primary {
    background: var(--rb-accent);
    color: var(--rb-dark) !important;
    box-shadow: 0 8px 24px rgba(242, 177, 55, 0.35);
}

.rb-hero__btn--primary:hover {
    background: var(--rb-primary);
    color: var(--rb-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(164, 123, 82, 0.4);
}

.rb-hero__btn--primary:hover .rb-hero__btn-icon {
    transform: translateX(4px);
}

.rb-hero__btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--rb-transition);
}

.rb-hero__btn--secondary {
    background: transparent;
    color: var(--rb-light) !important;
    border-color: var(--rb-light);
}

.rb-hero__btn--secondary:hover {
    background: var(--rb-light);
    color: var(--rb-dark) !important;
    transform: translateY(-2px);
}

/* ---------- Arrows ---------- */
.rb-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--rb-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    cursor: pointer;
    padding: 0;
    transition: var(--rb-transition);
    outline: none !important;
    box-shadow: none !important;
}

.rb-hero__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

.rb-hero__arrow:hover,
.rb-hero__arrow:focus,
.rb-hero__arrow:active {
    background: var(--rb-accent) !important;
    color: var(--rb-dark) !important;
    border-color: var(--rb-accent) !important;
    transform: translateY(-50%) scale(1.05);
    outline: none !important;
}

.rb-hero__arrow--prev { left: var(--rb-space-4); }
.rb-hero__arrow--next { right: var(--rb-space-4); }

/* ---------- Pagination dots ---------- */
.rb-hero__pagination {
    position: absolute;
    bottom: var(--rb-space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    align-items: center;
}

.rb-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    transition: var(--rb-transition);
    outline: none !important;
    box-shadow: none !important;
}

.rb-hero__dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
}

.rb-hero__dot.is-active {
    background: var(--rb-accent) !important;
    width: 32px;
    border-radius: 5px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rb-hero__arrow {
        width: 48px;
        height: 48px;
    }
    .rb-hero__arrow--prev { left: var(--rb-space-3); }
    .rb-hero__arrow--next { right: var(--rb-space-3); }
}

@media (max-width: 768px) {
    .rb-hero__inner {
        padding: var(--rb-space-7) var(--rb-space-3);
    }
    .rb-hero__headline {
        font-size: clamp(28px, 8vw, 44px);
    }
    .rb-hero__subtext {
        font-size: 16px;
    }
    .rb-hero__btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    /* Hide arrows on mobile — pagination dots + swipe handle nav */
    .rb-hero__arrow { display: none !important; }
    .rb-hero__pagination { bottom: var(--rb-space-4); }

    .rb-hero__bg {
        object-position: center center !important;
        object-fit: cover !important;
    }

    .rb-hero__buttons,
    .rb-hero__inner[style*="align-items: flex-start"] .rb-hero__buttons,
    .rb-hero__inner[style*="align-items: flex-end"]   .rb-hero__buttons {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .rb-hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    .rb-hero__btn { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rb-hero__content,
    .rb-hero__btn,
    .rb-hero__arrow,
    .rb-hero__dot,
    .rb-hero__bg { animation: none !important; transition: none !important; }
    .rb-hero__bg.is-active { animation: none !important; }
}
