/**
 * Hero Section Styles
 *
 * @package Media_Khodro
 * @since 1.0.0
 */

/* === Hero Section === */
.mk-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    background: linear-gradient(135deg, var(--mk-secondary-dark) 0%, var(--mk-secondary) 100%);
    --mk-header-stack-height: 120px;
    margin-top: calc(-1 * var(--mk-header-stack-height));
    padding-top: var(--mk-header-stack-height);
}

body.mk-has-header-ad .mk-hero {
    --mk-header-stack-height: 180px;
}

@media (max-width: 992px) {
    .mk-hero {
        margin-top: 0;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        height: auto;
        min-height: min(72vh, 640px);
        min-height: min(72svh, 640px);
    }

    .mk-hero-content {
        height: auto;
        min-height: min(58vh, 480px);
        min-height: min(58svh, 480px);
        padding: 1.5rem 0 2rem;
    }
}

/* Background */
.mk-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Video Background */
.mk-hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    min-height: 100%;
    height: auto;
    transform: translate3d(-50%, -50%, 0);
    object-fit: cover;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
}

.mk-hero-bg-video.is-failed {
    display: none;
}

.mk-hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    min-height: 100%;
    height: auto;
    transform: translate3d(-50%, -50%, 0);
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(-50%, -50%, 0);
}

/* Overlay */
.mk-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Content Layout */
.mk-hero .mk-container {
    position: relative;
    z-index: 1;
}

.mk-hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: inherit;
    text-align: center;
}

/* Text Content */
.mk-hero-text {
    color: var(--mk-white);
    max-width: 800px;
    margin: 0 auto;
}


.mk-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--mk-white);
    text-align: center;
}

.mk-hero-highlight {
    position: relative;
    display: inline-block;
}

.mk-hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    left: 0;
    height: 12px;
    background: linear-gradient(90deg, var(--mk-primary), var(--mk-accent));
    opacity: 0.4;
    border-radius: var(--mk-radius-sm);
    z-index: -1;
}

.mk-hero-desc {
    font-size: 1.25rem;
    color: var(--mk-gray-300);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-align: center;
}


/* Scroll Indicator */
.mk-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--mk-gray-400);
    font-size: 0.85rem;
    z-index: 2;
}

.mk-hero-scroll span {
    display: block;
    margin-bottom: 0.5rem;
}

.mk-scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--mk-gray-400);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.mk-scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--mk-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 24px; opacity: 0.3; }
}

/* === Responsive === */
@media (max-width: 1200px) {
    .mk-hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .mk-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mk-hero {
        min-height: min(68vh, 560px);
        min-height: min(68svh, 560px);
    }

    .mk-hero-content {
        min-height: min(52vh, 420px);
        min-height: min(52svh, 420px);
        padding: 1.25rem 0 1.75rem;
    }

    .mk-hero .mk-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .mk-hero-title {
        font-size: 1.75rem;
    }
    
    .mk-hero-desc {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .mk-hero-scroll {
        display: none;
    }
}

