/**

 * Xuan Cuong Handicraft - Module: hero.css

 * Hero Banner Section & Hero Scroll Down Indicator

 */


/* ==========================================================================
   HERO SECTION (BACKGROUND IMAGE WITH LEFT-TO-RIGHT GRADIENT)
   ========================================================================== */
.herosection {
    background-color: #000000;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 120px;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: flex-end;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* --hero-bg / --hero-bg-mobile được truyền inline từ section-home_hero.php */
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0) 100%),
        var(--hero-bg, none);
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}


.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: var(--fs-hero);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    max-width: 860px;
}

.hero-subtext {
    color: var(--yellow, #D6BF89);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 4rem;
}

.btn-hero-red {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--xc-primary);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    width: fit-content;
    transition: var(--transition);
}

.btn-hero-red:hover {
    background-color: var(--xc-primary-light);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* ==========================================================================
   HERO SCROLL DOWN INDICATOR (FIGMA VER 2 - 60px from bottom edge)
   ========================================================================== */
.hero-scroll-indicator {
    margin-top: 180px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-scroll-indicator .scroll-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #60606B;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.hero-scroll-indicator .scroll-text {
    color: var(--text-gray, #60606B);
    text-align: center;
    /* content-button */

    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    /* 160% */
    transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
    transform: translateY(2px);
}

.hero-scroll-indicator:hover .scroll-line {
    background-color: var(--xc-cta, #D6BF89);
    width: 72px;
}

.hero-scroll-indicator:hover .scroll-text {
    color: var(--xc-cta, #D6BF89);
}

@media (max-width: 768px) {

    /* Mobile: dùng ảnh dọc, gradient tối từ dưới lên vì khối chữ nằm ở đáy */
    .hero-parallax-bg {
        background-image:
            linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.1) 100%),
            var(--hero-bg-mobile, var(--hero-bg, none));
        background-position: center top;
    }

    .hero-scroll-indicator {
        margin-top: 40px;
        gap: 12px;
    }

    .hero-scroll-indicator .scroll-line {
        width: 40px;
    }

    .hero-scroll-indicator .scroll-text {
        font-size: 16px;
        line-height: 24px;
    }
}