/**
 * [BLOCK STYLE: HERO HEADER]
 * LOCATION: logic/blocks/heroheaderblock/style.css
 * STATUS: ALIGNED (Uses Global Reveal Engine)
 */

.block-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 85vh;
    padding: 2rem 1.5rem 4rem 1.5rem;
    background-color: var(--hero-bg, #0f172a);
    color: var(--hero-text, #ffffff);
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
}

.block-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,16,31,0.2) 0%, rgba(10,16,31,0.6) 50%, rgba(10,16,31,0.95) 100%);
    z-index: 1;
}

.block-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.block-hero__title {
    margin: 0;
    font-size: 2.25rem; 
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.block-hero__subtitle {
    margin: 1rem 0 0 0;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 90%;
}

.block-hero__actions {
    margin-top: 2rem;
    width: 100%;
}

.block-hero__btn {
    display: block; 
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--c-accent, #c5a059); 
    color: var(--c-text-on-accent, #000);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.block-hero__badge {
    position: absolute;
    top: 1.5rem; left: 1.5rem; 
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: 0;
}

/* =========================================
   ANIMATIONS (Triggered by JS)
   ========================================= */

/* 1. INITIAL STATE (Hidden) */
.block-hero.reveal-group .block-hero__title,
.block-hero.reveal-group .block-hero__subtitle,
.block-hero.reveal-group .block-hero__actions,
.block-hero.reveal-group .block-hero__badge {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 2. ACTIVE STATE (Visible) */
.block-hero.reveal-active .block-hero__title,
.block-hero.reveal-active .block-hero__subtitle,
.block-hero.reveal-active .block-hero__actions,
.block-hero.reveal-active .block-hero__badge {
    opacity: 1;
    transform: translateY(0);
}

/* 3. STAGGER DELAYS */
.block-hero.reveal-active .block-hero__title    { transition-delay: 0.1s; }
.block-hero.reveal-active .block-hero__subtitle { transition-delay: 0.3s; }
.block-hero.reveal-active .block-hero__actions  { transition-delay: 0.5s; }
.block-hero.reveal-active .block-hero__badge    { transition-delay: 0.7s; }

/* =========================================
   DESKTOP UPGRADE
   ========================================= */
@media (min-width: 768px) {
    .block-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 700px;
        padding: 4rem 5%;
        border-radius: var(--hero-radius, 8px);
        background-position: center center;
    }
    .block-hero__overlay {
        background: linear-gradient(90deg, rgba(10,16,31,0.95) 0%, rgba(10,16,31,0.6) 50%, rgba(10,16,31,0.1) 100%);
    }
    .block-hero__content { max-width: 600px; }
    .block-hero__title { font-size: 3.5rem; }
    .block-hero__subtitle { font-size: 1.15rem; max-width: 100%; }
    .block-hero__actions { width: auto; }
    .block-hero__btn { display: inline-block; width: auto; }
    .block-hero__badge {
        position: relative; top: auto; left: auto; margin-left: 2rem;
    }
}