/* =========================================================
   RISI Hero Widget — Front-End Styles v2
   SAFE ANIMATION APPROACH:
   All elements are fully visible by default.
   Fade-in animations are applied only via @media
   (prefers-reduced-motion: no-preference) so content
   is ALWAYS readable even if CSS animations fail.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Reset ──────────────────────────────────────────────── */
.risi-hero *,
.risi-hero *::before,
.risi-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Hero Shell ─────────────────────────────────────────── */
.risi-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: 'Inter', sans-serif;
}

/* ─── Dark overlay ───────────────────────────────────────── */
.risi-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: #0d0d0d;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

/* ─── Left gradient ──────────────────────────────────────── */
.risi-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(13,13,13,0.92) 0%,
        rgba(13,13,13,0.70) 40%,
        rgba(13,13,13,0.10) 70%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ─── Inner container ────────────────────────────────────── */
.risi-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 120px 60px;
}

/* ─── Content column ─────────────────────────────────────── */
.risi-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 560px;
}

/* ─── Kicker — ALWAYS VISIBLE ────────────────────────────── */
.risi-hero__kicker {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 18px;
    line-height: 1.4;
    opacity: 1;    /* always visible */
}

/* ─── Main title — ALWAYS VISIBLE ───────────────────────── */
.risi-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(52px, 7vw, 90px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    opacity: 1;    /* always visible */
}

.risi-hero__title-white {
    color: #ffffff;
    display: block;
    line-height: inherit;
}

.risi-hero__title-amber {
    color: #c9a84c;
    display: block;       /* own line, no extra <br> needed */
    font-style: normal;   /* same slant as white lines */
    font-weight: 700;
}

.risi-hero__title-amber::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #c9a84c;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    transform: translateY(-4px);
}

/* ─── Body — ALWAYS VISIBLE ──────────────────────────────── */
.risi-hero__body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: #b0b0b0;
    max-width: 420px;
    margin-bottom: 44px;
    opacity: 1;    /* always visible */
}

/* ─── Buttons — ALWAYS VISIBLE ───────────────────────────── */
.risi-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    opacity: 1;    /* always visible */
}

/* ─── Base button ────────────────────────────────────────── */
.risi-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}
.risi-hero__btn:hover { transform: translateY(-2px); }

.risi-hero__btn--primary {
    background-color: #c9a84c;
    border-color: #c9a84c;
    color: #0d0d0d;
}
.risi-hero__btn--primary:hover {
    background-color: #b8923c;
    border-color: #b8923c;
    color: #0d0d0d;
}

.risi-hero__btn--secondary {
    background-color: transparent;
    border-color: rgba(255,255,255,0.40);
    color: #ffffff;
}
.risi-hero__btn--secondary:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

.risi-hero__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.risi-hero__btn--secondary:hover .risi-hero__btn-arrow {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* ─── Scroll indicator — ALWAYS VISIBLE ─────────────────── */
.risi-hero__scroll-indicator {
    position: absolute;
    right: 48px;
    bottom: 50%;
    transform: translateY(50%) rotate(90deg);
    transform-origin: center center;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 1;
}
.risi-hero__scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}
.risi-hero__scroll-line {
    display: inline-block;
    width: 48px;
    height: 1px;
    background: rgba(255,255,255,0.30);
}
.risi-hero__scroll-cross {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
}

/* ─── Slide counter — ALWAYS VISIBLE ────────────────────── */
.risi-hero__slide-counter {
    position: absolute;
    bottom: 42px;
    left: 60px;
    z-index: 3;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.40);
    opacity: 1;
}
.risi-hero__slide-current {
    color: rgba(255,255,255,0.80);
    font-weight: 600;
}

/* ─── Entrance animations — ENHANCEMENT ONLY ────────────── */
/* Only applied when the browser/OS allows motion.            */
/* If animations are blocked for any reason, content remains  */
/* fully visible via the opacity:1 defaults above.           */
@media (prefers-reduced-motion: no-preference) {
    .risi-hero__kicker {
        opacity: 0;
        animation: risiHeroFadeUp 0.7s ease forwards 0.15s;
    }
    .risi-hero__title {
        opacity: 0;
        animation: risiHeroFadeUp 0.7s ease forwards 0.30s;
    }
    .risi-hero__body {
        opacity: 0;
        animation: risiHeroFadeUp 0.7s ease forwards 0.45s;
    }
    .risi-hero__buttons {
        opacity: 0;
        animation: risiHeroFadeUp 0.7s ease forwards 0.60s;
    }
    .risi-hero__scroll-indicator {
        opacity: 0;
        animation: risiHeroFadeIn 0.8s ease forwards 1.0s;
    }
    .risi-hero__slide-counter {
        opacity: 0;
        animation: risiHeroFadeIn 0.8s ease forwards 1.1s;
    }
}

@keyframes risiHeroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes risiHeroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Elementor editor: always show content ─────────────── */
.elementor-editor-active .risi-hero__kicker,
.elementor-editor-active .risi-hero__title,
.elementor-editor-active .risi-hero__body,
.elementor-editor-active .risi-hero__buttons,
.elementor-editor-active .risi-hero__scroll-indicator,
.elementor-editor-active .risi-hero__slide-counter {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .risi-hero__inner { padding: 100px 40px; }
    .risi-hero__scroll-indicator { display: none !important; }
    .risi-hero__slide-counter { left: 40px; }
}
@media (max-width: 768px) {
    .risi-hero { min-height: 90vh; }
    .risi-hero__inner { padding: 80px 24px 100px; }
    .risi-hero__content { max-width: 100%; }
    .risi-hero__title { font-size: clamp(42px, 11vw, 64px); }
    .risi-hero__body { max-width: 100%; font-size: 14px; }
    .risi-hero__buttons { flex-direction: column; align-items: flex-start; }
    .risi-hero__btn { width: 100%; justify-content: center; }
    .risi-hero__scroll-indicator { display: none; }
    .risi-hero__slide-counter { left: 24px; bottom: 28px; }
}
@media (max-width: 480px) {
    .risi-hero__inner { padding: 72px 20px 90px; }
    .risi-hero__kicker { font-size: 10px; }
    .risi-hero__title { font-size: clamp(36px, 12vw, 54px); }
}
