/* Hero Stage Component Styles - Internal Shadow DOM Styles */

.hero-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-color: white;
    /* margin-top: 64px; */
    /* Add space for fixed header */
    min-height: var(--hero-stage-height, 30vh);
    box-sizing: border-box;
}

.hero-stage__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    /* Ensure we clip the oversized image */
}

.hero-stage__background img {
    width: 100%;
    height: 130%;
    /* Increased from 120% to accommodate more pronounced parallax */
    object-fit: cover;
    object-position: center center;
    /* Center the image both horizontally and vertically */
    transition: transform 0.1s ease-out;
    transform: translateY(-15%);
    /* Adjusted starting position for the larger image */
}

.hero-stage__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-stage__overlay--dark {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.hero-stage__overlay--light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
}

.hero-stage__overlay--gradient {
    background: linear-gradient(135deg, rgba(165, 0, 101, 0.8), rgba(255, 148, 3, 0.6));
}

.hero-stage__overlay--none {
    background: none;
}

.hero-stage__content {
    position: relative;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-stage__content--has-logo {
    justify-content: space-between;
}

.hero-stage__content--left {
    text-align: left;
}

.hero-stage__content--center {
    text-align: center;
    justify-content: center;
}

.hero-stage__content--right {
    text-align: right;
    justify-content: flex-end;
}

.hero-stage__inner {
    animation: fadeInUp 1s ease-out;
}

.hero-stage__logo {
    flex-shrink: 0;
    max-width: 45%;
    max-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stage__logo img {
    max-width: 100%;
    max-height: 14rem;
    width: auto;
    height: auto;
    min-width: 27.5rem;
    min-height: 5rem;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Special handling for SVG files without intrinsic dimensions */
.hero-stage__logo img[src$=".svg"] {
    width: 100%;
    height: 100%;
}

.hero-stage__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: bold;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'RidleyGrotesk-Bold', sans-serif;
}

/* Reduced title size when logo is present */
.hero-stage__content--has-logo .hero-stage__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-stage__subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin: 0 0 2rem 0;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Reduced subtitle size when logo is present */
.hero-stage__content--has-logo .hero-stage__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-stage__actions {
    margin-top: 2rem;
}

.hero-stage__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    user-select: none;
}

.hero-stage__scroll-indicator:hover {
    opacity: 1;
}

.hero-stage__scroll-arrow {
    animation: bounce 2s infinite;
    margin-bottom: 0.5rem;
}

.hero-stage__scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Variants */
.hero-stage--big {
    min-height: 40vh;
}

.hero-stage--default {
    min-height: 30vh;
}

.hero-stage--default .hero-stage__title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero-stage--default .hero-stage__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

/* Light variant */
.hero-stage--light {
    color: #333;
}

.hero-stage--light .hero-stage__title,
.hero-stage--light .hero-stage__subtitle,
.hero-stage--light .hero-stage__scroll-indicator span {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 80rem) {
    .hero-stage {
        min-height: var(--hero-stage-height-mobile, 45vh);
    }

    .hero-stage__content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stage__content--has-logo {
        justify-content: center;
    }

    .hero-stage__content--has-logo .hero-stage__inner {
        max-width: 100%;
        order: 2;
    }

    .hero-stage__logo {
        display: none;
    }

    .hero-stage__title {
        margin-bottom: 0.5rem;
    }

    .hero-stage__subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-stage__scroll-indicator {
        bottom: 1rem;
    }

    /* Disable parallax transforms on mobile for better performance */
    .hero-stage__background img {
        height: 180%;
        transform: translateY(-25%) !important;
    }
}

@media (max-width: 768px) {
    .hero-stage {
        min-height: var(--hero-stage-height-tablet, 45vh);
    }
}

@media (max-width: 480px) {
    .hero-stage {
        min-height: var(--hero-stage-height-xs, 40vh);
    }

    .hero-stage__logo {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-stage__inner {
        animation: none;
    }

    .hero-stage__scroll-arrow {
        animation: none;
    }

    /* Disable parallax for users who prefer reduced motion */
    .hero-stage__background img {
        transform: translateY(-15%) !important;
        /* Keep centered positioning with new offset */
    }
}