/* RS Virla: hero banner + Instagram reels styles (ported from rsv-modern.css) */

:root {
    --rsv-red: #d5262a;
    --rsv-red-dark: #a91d21;
    --rsv-navy: #0d3f5e;
    --rsv-navy-deep: #082a40;
    --rsv-ink: #15181b;
    --rsv-muted: #5d6670;
    --rsv-line: #e6e9ee;
    --rsv-soft: #f5f7fa;
    --rsv-radius: 16px;
    --rsv-radius-sm: 10px;
    --rsv-shadow-sm: 0 2px 8px rgba(13, 63, 94, .06);
    --rsv-shadow: 0 12px 32px -12px rgba(13, 63, 94, .18);
    --rsv-shadow-lg: 0 24px 60px -20px rgba(13, 63, 94, .32);
    --rsv-ease: cubic-bezier(.2, .7, .2, 1);
}

.rsv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-family: var(--rr-ff-heading);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    line-height: 1;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.rsv-btn--primary { background: var(--rsv-red); color: #fff; box-shadow: 0 12px 28px -10px rgba(213, 38, 42, .7); }
.rsv-btn--primary:hover { background: var(--rsv-red-dark); color: #fff; transform: translateY(-2px); }
.rsv-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.rsv-btn--ghost:hover { background: #fff; color: var(--rsv-ink); }
.rsv-btn--outline { border-color: var(--rsv-line); color: var(--rsv-ink); background: #fff; }
.rsv-btn--outline:hover { border-color: var(--rsv-ink); color: var(--rsv-ink); transform: translateY(-2px); }
.rsv-btn i { font-size: 14px; }

/* ---------- Hero ---------- */
.video-banner { min-height: 640px; }

.video-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(213, 38, 42, .28), transparent 55%),
        linear-gradient(180deg, rgba(8, 42, 64, .55) 0%, rgba(8, 20, 30, .72) 60%, rgba(8, 20, 30, .92) 100%);
}

.video-banner .container { position: relative; z-index: 3; }

.video-banner__content { max-width: 880px; margin: 0 auto; padding-top: 60px; }

.rsv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.rsv-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rsv-red);
    box-shadow: 0 0 0 4px rgba(213, 38, 42, .3);
    animation: rsvPulse 2s infinite;
}

@keyframes rsvPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(213, 38, 42, .3); }
    50% { box-shadow: 0 0 0 8px rgba(213, 38, 42, 0); }
}

#banner-text {
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.05;
    letter-spacing: -.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
    min-height: 2.1em;
}

#banner-subtext {
    font-size: clamp(16px, 1.6vw, 20px);
    color: rgba(255, 255, 255, .85) !important;
    max-width: 620px;
    margin: 0 auto 36px !important;
    min-height: 1.6em;
}

#banner-text, #banner-subtext { transition: opacity .5s var(--rsv-ease), transform .5s var(--rsv-ease); }
#banner-text.animate-out, #banner-subtext.animate-out { opacity: 0; transform: translateY(14px); }
#banner-text.animate-in, #banner-subtext.animate-in { opacity: 1; transform: none; }

.rsv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.rsv-hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, .14);
    background: rgba(8, 20, 30, .35);
    backdrop-filter: blur(10px);
}

.rsv-hero-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.rsv-hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.rsv-hero-stat:first-child { border-left: 0; }

.rsv-hero-stat i {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(213, 38, 42, .9);
    font-size: 18px;
}

.rsv-hero-stat strong { display: block; font-family: var(--rr-ff-heading); font-size: 17px; line-height: 1.2; }
.rsv-hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .7); line-height: 1.3; }

@media (max-width: 991px) {
    .rsv-hero-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .rsv-hero-stat:nth-child(3) { border-left: 0; }
    .rsv-hero-stat { padding: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
    .video-banner__content { padding-bottom: 160px; }
}

@media (max-width: 575px) {
    .video-banner { height: auto !important; min-height: 100svh; }
    .video-banner .row.h-100 { min-height: 100svh; }
    .rsv-hero-stat { padding: 12px; gap: 10px; }
    .rsv-hero-stat i { width: 36px; height: 36px; font-size: 15px; }
    .rsv-hero-stat strong { font-size: 14px; }
    .rsv-hero-stat span { font-size: 11px; }
    .rsv-btn { padding: 13px 22px; font-size: 14px; }
}

/* ---------- Instagram reels ---------- */
.rsv-reels {
    position: relative;
    padding: 110px 0;
    background:
        radial-gradient(1000px 500px at 100% 0%, rgba(213, 38, 42, .07), transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(13, 63, 94, .08), transparent 60%),
        #fbfcfd;
    overflow: hidden;
}

.rsv-reels__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.rsv-reels__head .section__title-wrapper { margin: 0; }

.rsv-ig-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rsv-line);
    box-shadow: var(--rsv-shadow-sm);
}

.rsv-ig-avatar {
    width: 54px;
    height: 54px;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    flex: none;
}

.rsv-ig-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 3px solid #fff;
}

.rsv-ig-profile__meta strong { display: block; color: var(--rsv-ink); font-family: var(--rr-ff-heading); font-size: 16px; line-height: 1.2; }
.rsv-ig-profile__meta span { font-size: 13px; color: var(--rsv-muted); }

.rsv-ig-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
    background-size: 200% 100%;
    white-space: nowrap;
}

.rsv-ig-follow:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(221, 42, 123, .7); }

.rsv-reels__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 22px) / 4);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 26px;
    scrollbar-width: none;
}

.rsv-reels__rail::-webkit-scrollbar { display: none; }

.rsv-reel {
    position: relative;
    scroll-snap-align: start;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    background: var(--rsv-navy-deep);
    box-shadow: var(--rsv-shadow);
    isolation: isolate;
    transition: transform .4s var(--rsv-ease), box-shadow .4s var(--rsv-ease);
}

.rsv-reel:hover { transform: translateY(-8px); box-shadow: var(--rsv-shadow-lg); }

/* Instagram embed: crop the header/footer chrome so only the video shows */
.rsv-reel iframe {
    position: absolute;
    left: 0;
    top: -56px;
    width: 100%;
    height: calc(100% + 56px + 190px);
    border: 0;
    background: #000;
}

.rsv-reel__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.rsv-reel__open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--rsv-ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.rsv-reel__open:hover { background: var(--rsv-red); color: #fff; }

/* Placeholder tile (used until reel links are added) */
.rsv-reel--tile { display: block; color: #fff; }
.rsv-reel--tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rsv-ease); z-index: -2; }
.rsv-reel--tile:hover img { transform: scale(1.08); }
.rsv-reel--tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(8, 20, 30, .85)); }

.rsv-reel__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    font-size: 20px;
    transition: transform .35s var(--rsv-ease), background .35s;
}

.rsv-reel--tile:hover .rsv-reel__play { transform: scale(1.12); background: var(--rsv-red); border-color: var(--rsv-red); }

.rsv-reel__caption { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.rsv-reel__caption strong { display: block; font-family: var(--rr-ff-heading); font-size: 18px; line-height: 1.25; color: #fff; }
.rsv-reel__caption span { font-size: 13px; color: rgba(255, 255, 255, .75); }

.rsv-reels__nav { display: flex; gap: 10px; }

.rsv-reels__nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--rsv-line);
    background: #fff;
    color: var(--rsv-ink);
    display: grid;
    place-items: center;
}

.rsv-reels__nav button:hover { background: var(--rsv-ink); color: #fff; border-color: var(--rsv-ink); }

.rsv-reels__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 1199px) { .rsv-reels__rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 767px) {
    .rsv-reels { padding: 80px 0; }
    .rsv-reels__rail { grid-auto-columns: 62%; gap: 16px; }
    .rsv-reels__nav { display: none; }
}
@media (max-width: 480px) { .rsv-reels__rail { grid-auto-columns: 78%; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
