/* ==========================================================================
   Hero Sections
   ========================================================================== */

/* Homepage Hero */
.mm-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--mm-black);
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
}

/* Dark overlay on the hero (always visible) */
.mm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Fallback image — real <img>, works on all devices including iOS */
.mm-hero__fallback-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mm-hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mm-hero__slider .swiper,
.mm-hero__slider .swiper-wrapper,
.mm-hero__slider .swiper-slide {
    height: 100%;
    width: 100%;
}

.mm-hero__slide {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Slide image — real <img> instead of background-image for iOS compatibility */
.mm-hero__slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ken Burns only on desktop */
@media (min-width: 769px) {
    .mm-hero__slide-img {
        inset: -5%;
        width: 110%;
        height: 110%;
        animation: mm-ken-burns 20s ease-in-out infinite alternate;
    }

    .mm-hero__slide:nth-child(2) .mm-hero__slide-img {
        animation-direction: alternate-reverse;
    }

    .mm-hero__slide:nth-child(3) .mm-hero__slide-img {
        animation-duration: 25s;
    }
}

@keyframes mm-ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

/* Hero video background */
.mm-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mm-hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-hero__video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mm-gradient-hero);
    z-index: 1;
}

/* YouTube embed as background - hide ALL YouTube UI */
.mm-hero__video--youtube {
    pointer-events: none;
    overflow: hidden;
}

.mm-hero__video--youtube iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale up to crop out YouTube UI elements (play button, title, controls) */
    width: 180vw;
    height: 180vh;
    min-width: 180vw;
    min-height: 180vh;
    transform: translate(-50%, -50%);
    border: none;
    object-fit: cover;
}

/* Hero content */
.mm-hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding-top: 120px;
}

@media (max-width: 768px) {
    .mm-hero__content {
        padding-top: 140px;
    }
}

.mm-hero__label {
    font-family: var(--mm-font-body);
    font-size: var(--mm-text-xs);
    font-weight: var(--mm-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-widest);
    color: var(--mm-gold-light);
    margin-bottom: var(--mm-space-md);
}

.mm-hero__title {
    font-size: var(--mm-text-hero);
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: var(--mm-space-md);
    letter-spacing: -0.02em;
}

.mm-hero__title span {
    color: var(--mm-gold);
    font-weight: 800;
}

.mm-hero__subtitle {
    font-family: var(--mm-font-body);
    font-size: var(--mm-text-xs);
    font-weight: var(--mm-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-widest);
    color: var(--mm-soft-gray);
    margin-bottom: var(--mm-space-sm);
}

.mm-hero__desc {
    font-size: var(--mm-text-md);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin-bottom: var(--mm-space-lg);
    line-height: var(--mm-leading-loose);
}

.mm-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--mm-space-md);
    flex-wrap: wrap;
}

/* Scroll indicator */
.mm-hero__scroll {
    position: absolute;
    bottom: var(--mm-space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--mm-space-xs);
    color: var(--mm-light-gray);
    font-size: var(--mm-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-wider);
    animation: mm-scroll-bounce 2s infinite;
}

.mm-hero__scroll-line {
    width: 1px;
    height: 30px;
    background: var(--mm-gold);
    animation: mm-scroll-line 2s infinite;
}

@keyframes mm-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes mm-scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Stats bar (below hero) */
.mm-stats-bar {
    background: linear-gradient(180deg, #0a0a0a 0%, var(--mm-charcoal) 50%, #0a0a0a 100%);
    border-top: 1px solid rgba(var(--mm-gold-rgb), 0.2);
    border-bottom: 1px solid rgba(var(--mm-gold-rgb), 0.2);
    padding: var(--mm-space-2xl) 0;
    position: relative;
}

.mm-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(var(--mm-gold-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.mm-stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mm-space-lg);
    text-align: center;
    position: relative;
}

.mm-stats-bar__item {
    position: relative;
    padding: var(--mm-space-md) 0;
}

.mm-stats-bar__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(var(--mm-gold-rgb), 0.3), transparent);
}

/* Inner Page Hero */
.mm-page-hero {
    position: relative;
    padding: calc(var(--mm-space-3xl) + 100px) 0 var(--mm-space-3xl);
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.mm-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.85) 70%, rgba(10,10,10,0.95) 100%);
}

/* Gold accent line at bottom of hero */
.mm-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mm-gold), transparent);
    z-index: 2;
}

.mm-page-hero__content {
    position: relative;
    z-index: 2;
}

.mm-page-hero__label {
    font-family: var(--mm-font-body);
    font-size: var(--mm-text-xs);
    font-weight: var(--mm-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-widest);
    color: var(--mm-gold);
    margin-bottom: var(--mm-space-sm);
}

.mm-page-hero__title {
    font-size: var(--mm-text-2xl);
    font-weight: 800;
    color: #ffffff;
    max-width: 700px;
    letter-spacing: -0.01em;
}

.mm-page-hero__desc {
    font-size: var(--mm-text-md);
    color: var(--mm-soft-gray);
    max-width: 500px;
    margin-top: var(--mm-space-sm);
}

/* Showreel section */
.mm-showreel {
    position: relative;
    padding: var(--mm-space-3xl) 0;
    background: var(--mm-black);
    text-align: center;
}

.mm-showreel__inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--mm-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.mm-showreel__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-showreel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--mm-space-sm);
    transition: background var(--mm-transition);
}

.mm-showreel__inner:hover .mm-showreel__overlay {
    background: rgba(0, 0, 0, 0.3);
}

.mm-showreel__play {
    width: 80px;
    height: 80px;
    border: 2px solid var(--mm-white);
    border-radius: var(--mm-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--mm-transition);
}

.mm-showreel__inner:hover .mm-showreel__play {
    border-color: var(--mm-gold);
    background: rgba(var(--mm-gold-rgb), 0.2);
    transform: scale(1.1);
}

.mm-showreel__play svg {
    width: 28px;
    height: 28px;
    fill: var(--mm-white);
    margin-left: 4px;
}

.mm-showreel__label {
    font-size: var(--mm-text-sm);
    font-weight: var(--mm-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-wider);
    color: var(--mm-white);
}

.mm-showreel__duration {
    font-size: var(--mm-text-xs);
    color: var(--mm-light-gray);
}
