/* ============================================
   RSL Hero Component
   Version: 1.0.0
   Description: Flexible, accessible hero sections with multiple layouts,
   backgrounds, and premium effects. Fully ADA compliant.
   ============================================ */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Hero sizing */
    --rsl-hero-height-sm: 200px;
    --rsl-hero-height-md: 50vh;
    --rsl-hero-height-lg: 80vh;
    --rsl-hero-height-full: 100vh;

    /* Hero spacing */
    --rsl-hero-padding-x: 2rem;
    --rsl-hero-padding-y: 3rem;
    --rsl-hero-content-max-width: 800px;
    --rsl-hero-split-gap: 3rem;

    /* Hero colors */
    --rsl-hero-text-light: #ffffff;
    --rsl-hero-text-dark: #1a1a1a;
    --rsl-hero-overlay-light: rgba(255, 255, 255, 0.85);
    --rsl-hero-overlay-dark: rgba(0, 0, 0, 0.6);
    --rsl-hero-overlay-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);

    /* Hero gradients */
    --rsl-hero-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --rsl-hero-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --rsl-hero-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --rsl-hero-gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --rsl-hero-gradient-nature: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --rsl-hero-gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Hero typography */
    --rsl-hero-heading-size: clamp(2rem, 5vw, 4rem);
    --rsl-hero-heading-weight: 700;
    --rsl-hero-heading-line-height: 1.1;
    --rsl-hero-subheading-size: clamp(1rem, 2vw, 1.5rem);
    --rsl-hero-eyebrow-size: 0.875rem;

    /* Hero transitions */
    --rsl-hero-transition: 0.3s ease;
    --rsl-hero-parallax-speed: 0.5;
}

/* ============================================
   Base Hero Styles
   ============================================ */
.rsl-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--rsl-hero-height-md);
    padding: var(--rsl-hero-padding-y) var(--rsl-hero-padding-x);
    overflow: hidden;
    background-color: #667eea;
    background: var(--rsl-hero-gradient-primary);
    color: var(--rsl-hero-text-light);
    box-sizing: border-box;
}

/* Skip link for keyboard users - visually hidden but accessible */
.rsl-hero-skip {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: var(--rsl-hero-text-light);
    color: var(--rsl-hero-text-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform var(--rsl-hero-transition), opacity var(--rsl-hero-transition);
}

.rsl-hero-skip:focus {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ============================================
   Size Variants
   ============================================ */
.rsl-hero[data-hero-size="sm"] {
    min-height: var(--rsl-hero-height-sm);
    --rsl-hero-heading-size: clamp(1.5rem, 3vw, 2.5rem);
    --rsl-hero-subheading-size: clamp(0.875rem, 1.5vw, 1.125rem);
    --rsl-hero-padding-y: 2rem;
}

.rsl-hero[data-hero-size="md"] {
    min-height: var(--rsl-hero-height-md);
}

.rsl-hero[data-hero-size="lg"] {
    min-height: var(--rsl-hero-height-lg);
}

.rsl-hero[data-hero-size="full"] {
    min-height: var(--rsl-hero-height-full);
}

/* ============================================
   Content Container
   ============================================ */
.rsl-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
}

.rsl-hero-content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* ============================================
   Layout Variants
   ============================================ */

/* Center layout (default) - text centered, no margins needed */
.rsl-hero[data-hero-layout="center"] .rsl-hero-content,
.rsl-hero:not([data-hero-layout]) .rsl-hero-content {
    text-align: center;
}

.rsl-hero[data-hero-layout="center"] .rsl-hero-actions,
.rsl-hero:not([data-hero-layout]) .rsl-hero-actions {
    justify-content: center;
}

.rsl-hero[data-hero-layout="center"] .rsl-hero-features,
.rsl-hero:not([data-hero-layout]) .rsl-hero-features {
    justify-content: center;
}

/* Split layouts - container */
.rsl-hero[data-hero-layout="split-left"] .rsl-hero-inner,
.rsl-hero[data-hero-layout="split-right"] .rsl-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rsl-hero-split-gap);
    align-items: center;
}

/* Split left - media on left, content on right */
.rsl-hero[data-hero-layout="split-left"] .rsl-hero-media {
    order: 1;
}

.rsl-hero[data-hero-layout="split-left"] .rsl-hero-content {
    order: 2;
    text-align: left;
}

/* Split right - content on left, media on right */
.rsl-hero[data-hero-layout="split-right"] .rsl-hero-media {
    order: 2;
}

.rsl-hero[data-hero-layout="split-right"] .rsl-hero-content {
    order: 1;
    text-align: left;
}

.rsl-hero[data-hero-layout="split-left"] .rsl-hero-actions,
.rsl-hero[data-hero-layout="split-right"] .rsl-hero-actions {
    justify-content: flex-start;
}

/* Responsive split layouts */
@media (max-width: 768px) {
    .rsl-hero[data-hero-layout="split-left"] .rsl-hero-inner,
    .rsl-hero[data-hero-layout="split-right"] .rsl-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rsl-hero[data-hero-layout="split-left"] .rsl-hero-media,
    .rsl-hero[data-hero-layout="split-right"] .rsl-hero-media {
        order: 1;
    }

    .rsl-hero[data-hero-layout="split-left"] .rsl-hero-content,
    .rsl-hero[data-hero-layout="split-right"] .rsl-hero-content {
        order: 2;
        text-align: center;
    }

    .rsl-hero[data-hero-layout="split-left"] .rsl-hero-actions,
    .rsl-hero[data-hero-layout="split-right"] .rsl-hero-actions {
        justify-content: center;
    }
}

/* Text alignment override */
.rsl-hero[data-hero-align="left"] .rsl-hero-content {
    text-align: left;
}

.rsl-hero[data-hero-align="center"] .rsl-hero-content {
    text-align: center;
}

.rsl-hero[data-hero-align="right"] .rsl-hero-content {
    text-align: right;
}

/* ============================================
   Background Variants
   ============================================ */

/* Solid colors */
.rsl-hero[data-hero-bg="solid"] {
    background: var(--rsl-hero-bg-color, #667eea);
}

/* Gradient backgrounds */
.rsl-hero[data-hero-bg="gradient"] {
    background: var(--rsl-hero-gradient-primary);
}

.rsl-hero[data-hero-bg="gradient-dark"] {
    background: var(--rsl-hero-gradient-dark);
}

.rsl-hero[data-hero-bg="gradient-warm"] {
    background: var(--rsl-hero-gradient-warm);
}

.rsl-hero[data-hero-bg="gradient-cool"] {
    background: var(--rsl-hero-gradient-cool);
}

.rsl-hero[data-hero-bg="gradient-nature"] {
    background: var(--rsl-hero-gradient-nature);
}

.rsl-hero[data-hero-bg="gradient-sunset"] {
    background: var(--rsl-hero-gradient-sunset);
}

/* Animated gradient background */
.rsl-hero[data-hero-bg="gradient-animated"] {
    background: linear-gradient(
        -45deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe,
        #667eea
    );
    background-size: 400% 400%;
    animation: rsl-hero-gradient-shift 15s ease infinite;
}

/* Image background */
.rsl-hero[data-hero-bg="image"] {
    background-color: #1a1a1a;
}

.rsl-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.rsl-hero-background img,
.rsl-hero-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video background */
.rsl-hero[data-hero-bg="video"] {
    background-color: #1a1a1a;
}

.rsl-hero-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

/* No background */
.rsl-hero[data-hero-bg="none"] {
    background: transparent;
    color: var(--rsl-hero-text-dark);
}

/* ============================================
   Overlay Variants
   ============================================ */
.rsl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Light overlay for dark backgrounds */
.rsl-hero[data-hero-overlay="light"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay="light"] {
    background: var(--rsl-hero-overlay-light);
}

.rsl-hero[data-hero-overlay="light"] {
    color: var(--rsl-hero-text-dark);
}

/* Dark overlay for light backgrounds/images */
.rsl-hero[data-hero-overlay="dark"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay="dark"] {
    background: var(--rsl-hero-overlay-dark);
}

/* Gradient overlay */
.rsl-hero[data-hero-overlay="gradient"] .rsl-hero-overlay {
    background: var(--rsl-hero-overlay-gradient);
}

/* Custom overlay opacity - support both parent and direct attribute patterns */
.rsl-hero[data-hero-overlay-opacity="25"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay-opacity="0.25"] { opacity: 0.25; }
.rsl-hero[data-hero-overlay-opacity="50"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay-opacity="0.5"] { opacity: 0.5; }
.rsl-hero[data-hero-overlay-opacity="75"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay-opacity="0.75"] { opacity: 0.75; }
.rsl-hero[data-hero-overlay-opacity="90"] .rsl-hero-overlay,
.rsl-hero-overlay[data-overlay-opacity="0.9"] { opacity: 0.9; }

/* Additional opacity values */
.rsl-hero-overlay[data-overlay-opacity="0.6"] { opacity: 0.6; }
.rsl-hero-overlay[data-overlay-opacity="0.7"] { opacity: 0.7; }
.rsl-hero-overlay[data-overlay-opacity="0.8"] { opacity: 0.8; }

/* ============================================
   Content Elements
   ============================================ */

/* Eyebrow / Badge */
.rsl-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: var(--rsl-hero-eyebrow-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.rsl-hero[data-hero-overlay="light"] .rsl-hero-eyebrow,
.rsl-hero[data-hero-bg="none"] .rsl-hero-eyebrow {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Heading */
.rsl-hero-heading {
    margin: 0 0 1rem 0;
    font-size: var(--rsl-hero-heading-size);
    font-weight: var(--rsl-hero-heading-weight);
    line-height: var(--rsl-hero-heading-line-height);
}

.rsl-hero-heading-accent {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subheading */
.rsl-hero-subheading {
    margin: 0 0 2rem 0;
    font-size: var(--rsl-hero-subheading-size);
    line-height: 1.6;
    opacity: 0.9;
}

/* Actions / CTA buttons */
.rsl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rsl-hero-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--rsl-hero-transition);
}

/* Primary button in hero */
.rsl-hero-actions .btn-primary {
    background: var(--rsl-hero-text-light);
    color: #667eea;
    border: 2px solid var(--rsl-hero-text-light);
}

.rsl-hero-actions .btn-primary:hover,
.rsl-hero-actions .btn-primary:focus {
    background: transparent;
    color: var(--rsl-hero-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Outline button in hero */
.rsl-hero-actions .btn-outline {
    background: transparent;
    color: var(--rsl-hero-text-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.rsl-hero-actions .btn-outline:hover,
.rsl-hero-actions .btn-outline:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rsl-hero-text-light);
    transform: translateY(-2px);
}

/* Light overlay button adjustments */
.rsl-hero[data-hero-overlay="light"] .rsl-hero-actions .btn-primary,
.rsl-hero[data-hero-bg="none"] .rsl-hero-actions .btn-primary {
    background: #667eea;
    color: var(--rsl-hero-text-light);
    border-color: #667eea;
}

.rsl-hero[data-hero-overlay="light"] .rsl-hero-actions .btn-primary:hover,
.rsl-hero[data-hero-bg="none"] .rsl-hero-actions .btn-primary:hover {
    background: #5a6fd6;
    border-color: #5a6fd6;
    color: var(--rsl-hero-text-light);
}

.rsl-hero[data-hero-overlay="light"] .rsl-hero-actions .btn-outline,
.rsl-hero[data-hero-bg="none"] .rsl-hero-actions .btn-outline {
    color: var(--rsl-hero-text-dark);
    border-color: rgba(0, 0, 0, 0.3);
}

.rsl-hero[data-hero-overlay="light"] .rsl-hero-actions .btn-outline:hover,
.rsl-hero[data-hero-bg="none"] .rsl-hero-actions .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--rsl-hero-text-dark);
}

/* Feature icons grid */
.rsl-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.rsl-hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.rsl-hero-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1.25rem;
}

.rsl-hero-feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Light overlay feature adjustments */
.rsl-hero[data-hero-overlay="light"] .rsl-hero-feature-icon,
.rsl-hero[data-hero-bg="none"] .rsl-hero-feature-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Media container for split layouts */
.rsl-hero-media {
    position: relative;
}

.rsl-hero-media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Scroll Indicator
   ============================================ */
.rsl-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: opacity var(--rsl-hero-transition);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.rsl-hero-scroll:hover,
.rsl-hero-scroll:focus {
    opacity: 1;
    outline: none;
}

.rsl-hero-scroll:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 4px;
}

.rsl-hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.rsl-hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: rsl-hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes rsl-hero-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ============================================
   Premium Effects
   ============================================ */

/* Animated gradient background - via data-hero-animate-bg attribute */
.rsl-hero[data-hero-animate-bg] {
    background: linear-gradient(
        -45deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe,
        #667eea
    );
    background-size: 400% 400%;
    animation: rsl-hero-gradient-shift 15s ease infinite;
}

@keyframes rsl-hero-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Parallax effect (controlled via JS) */
.rsl-hero[data-hero-parallax] .rsl-hero-background {
    will-change: transform;
}

/* Typewriter effect container */
.rsl-hero-typewriter {
    display: inline;
}

.rsl-hero-typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    animation: rsl-hero-cursor-blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes rsl-hero-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Fade in animation */
.rsl-hero[data-hero-animate-in] .rsl-hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: rsl-hero-fade-in 0.8s ease forwards;
}

.rsl-hero[data-hero-animate-in] .rsl-hero-eyebrow { animation-delay: 0.1s; }
.rsl-hero[data-hero-animate-in] .rsl-hero-heading { animation-delay: 0.2s; }
.rsl-hero[data-hero-animate-in] .rsl-hero-subheading { animation-delay: 0.3s; }
.rsl-hero[data-hero-animate-in] .rsl-hero-actions { animation-delay: 0.4s; }
.rsl-hero[data-hero-animate-in] .rsl-hero-features { animation-delay: 0.5s; }

@keyframes rsl-hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .rsl-hero[data-hero-animate-bg] {
        animation: none;
    }

    .rsl-hero-scroll-icon::before {
        animation: none;
    }

    .rsl-hero-typewriter-cursor {
        animation: none;
        opacity: 1;
    }

    .rsl-hero[data-hero-animate-in] .rsl-hero-content > * {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .rsl-hero[data-hero-parallax] .rsl-hero-background {
        transform: none !important;
    }
}

/* ============================================
   Focus Styles
   ============================================ */
.rsl-hero a:focus-visible,
.rsl-hero button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}

.rsl-hero[data-hero-overlay="light"] a:focus-visible,
.rsl-hero[data-hero-overlay="light"] button:focus-visible,
.rsl-hero[data-hero-bg="none"] a:focus-visible,
.rsl-hero[data-hero-bg="none"] button:focus-visible {
    outline-color: #667eea;
}

/* ============================================
   Dark Mode Support
   ============================================ */

/* Preserve gradient backgrounds in dark mode - they should NOT change */
[data-theme="dark"] .rsl-hero[data-hero-bg="gradient"] {
    background: var(--rsl-hero-gradient-primary);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-dark"] {
    background: var(--rsl-hero-gradient-dark);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-warm"] {
    background: var(--rsl-hero-gradient-warm);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-cool"] {
    background: var(--rsl-hero-gradient-cool);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-nature"] {
    background: var(--rsl-hero-gradient-nature);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-sunset"] {
    background: var(--rsl-hero-gradient-sunset);
}

/* Dark mode animated gradient - use background-image to not reset background-position */
[data-theme="dark"] .rsl-hero[data-hero-bg="gradient-animated"],
[data-theme="dark"] .rsl-hero[data-hero-animate-bg] {
    background-image: linear-gradient(
        -45deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe,
        #667eea
    ) !important;
    background-size: 400% 400% !important;
    -webkit-animation: rsl-hero-gradient-shift 15s ease infinite !important;
    animation: rsl-hero-gradient-shift 15s ease infinite !important;
}

[data-theme="dark"] .rsl-hero[data-hero-bg="none"] {
    color: var(--rsl-hero-text-light);
}

[data-theme="dark"] .rsl-hero[data-hero-bg="none"] .rsl-hero-eyebrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: inherit;
}

[data-theme="dark"] .rsl-hero[data-hero-bg="none"] .rsl-hero-feature-icon {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

[data-theme="dark"] .rsl-hero[data-hero-bg="none"] .rsl-hero-actions .btn-outline {
    color: var(--rsl-hero-text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light overlay should keep dark text even in dark mode (overlay is white/light) */
[data-theme="dark"] .rsl-hero[data-hero-overlay="light"] {
    color: var(--rsl-hero-text-dark);
}

[data-theme="dark"] .rsl-hero[data-hero-overlay="light"] .rsl-hero-subheading {
    color: var(--rsl-hero-text-dark);
    opacity: 0.8;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    :root {
        --rsl-hero-padding-x: 1.5rem;
        --rsl-hero-padding-y: 2rem;
    }

    .rsl-hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .rsl-hero-actions .btn {
        width: auto;
        min-width: 200px;
        max-width: 85%;
        justify-content: center;
    }

    .rsl-hero-features {
        gap: 1.5rem;
    }

    .rsl-hero-scroll {
        bottom: 1rem;
    }

    /* Reduce full height on mobile for usability */
    .rsl-hero[data-hero-size="full"] {
        min-height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    .rsl-hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .rsl-hero-feature {
        flex-direction: row;
        text-align: left;
    }

    .rsl-hero-feature-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

/* Text shadow for better readability on images */
.rsl-hero-text-shadow .rsl-hero-heading,
.rsl-hero-text-shadow .rsl-hero-subheading {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Constrained width for content */
.rsl-hero-content-narrow {
    max-width: 600px;
}

.rsl-hero-content-wide {
    max-width: 1000px;
}
