/**
 * PROPERTISM V4 - HERO MODULE
 */

.hero-hybrid {
    position: relative;
    height: var(--hero-height) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: calc(var(--nav-height) + 12px) 0 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: var(--brand-navy);
}

#home-section.hero-hybrid,
#home-section.hero-hybrid.hero-hybrid-has-image {
    padding: calc(var(--nav-height) + 12px) 0 0 !important;
}

.hero-hybrid-media {
    position: absolute !important;
    inset: 0;
    z-index: 0;
}

.hero-hybrid-rotator {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-hybrid-image {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-hybrid-image.is-active {
    opacity: 1;
}

/* Dark Overlay with subtle warm gold at bottom */
.hero-hybrid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 15, 26, 0.40) 0%,
        rgba(11, 15, 26, 0.55) 55%,
        rgba(160, 118, 40, 0.20) 85%,
        rgba(196, 156, 82, 0.28) 100%
    );
    z-index: 1;
}

.hero-hybrid-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    transform: none;
}

.hero-title-premium {
    font-family: var(--serif-main) !important;
    font-weight: 500 !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    color: #FFFFFF !important; /* Always white on hero image for legibility */
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
}

.hero-title-premium i,
.hero-title-premium .highlight-gold {
    font-family: var(--serif-main) !important;
    font-style: italic !important;
    color: #E4C36A !important;
    font-weight: inherit !important;
    white-space: nowrap;
    filter: brightness(1.12) saturate(1.08);
    text-shadow:
        0 2px 10px rgba(255, 255, 255, 0.18),
        0 0 22px rgba(228, 195, 106, 0.48),
        0 0 44px rgba(228, 195, 106, 0.32),
        0 12px 30px rgba(0, 0, 0, 0.45) !important;
}

.hero-title-premium .highlight-gold {
    font-family: 'Cinzel', serif !important;
    font-style: normal !important;
    color: #E4C36A !important;
    filter: brightness(1.12) saturate(1.08) !important;
    background: rgba(12, 14, 22, 0.28) !important;
    padding: 2px 10px !important;
    border-radius: 0 !important;
    text-shadow:
        0 2px 14px rgba(255, 255, 255, 0.28),
        0 0 32px rgba(228, 195, 106, 0.65),
        0 0 60px rgba(228, 195, 106, 0.40),
        0 12px 30px rgba(0, 0, 0, 0.50) !important;
}

.hero-title-divider {
    width: 120px;
    height: 1px;
    background: rgba(196, 156, 82, 0.6);
    margin: 32px auto 40px;
    position: relative;
}

.hero-title-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--brand-gold);
    border: 1px solid #FFFFFF;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero-description,
.hero-desc-premium {
    font-family: var(--sans-main) !important;
    font-size: 1.15rem !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin: 0 auto 48px !important;
    line-height: 1.8 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* V4 Button Hardening - Zero Radius Enforcement */
.hero-actions .btn-gold,
.hero-actions .btn-outline-white {
    border-radius: 0 !important; /* Sharp architectural corners */
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    transition: all 0.3s ease !important;
}

.hero-actions .btn-gold {
    background: var(--brand-gold) !important;
    color: var(--brand-navy) !important;
    border: 1px solid var(--brand-gold) !important;
    box-shadow: 0 4px 15px rgba(196, 156, 82, 0.2) !important;
}

.hero-actions .btn-gold:hover {
    background: #FFFFFF !important;
    color: var(--brand-navy) !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 156, 82, 0.4) !important;
}

.hero-actions .btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
}

.hero-actions .btn-outline-white:hover {
    border-color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Typography Profile Tuning */
[data-typography="classic"] .hero-hybrid-content {
    transform: translateY(clamp(1.1rem, 2.3vh, 1.6rem));
}

[data-typography="classic"] .hero-title-premium {
    font-size: clamp(2.1rem, 4.25vw, 3.7rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    max-width: 22.5ch;
    margin-left: auto !important;
    margin-right: auto !important;
    text-wrap: balance;
}

[data-typography="classic"] .hero-title-premium .highlight-gold {
    display: block;
    margin-top: 0.15rem;
}

[data-typography="classic"] .hero-title-divider {
    margin: 28px auto 34px;
}

[data-typography="classic"] .hero-description,
[data-typography="classic"] .hero-desc-premium {
    max-width: 46rem;
    margin-bottom: 2.35rem !important;
}

[data-typography="classic"] .hero-actions {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    #home-section.hero-hybrid,
    #home-section.hero-hybrid.hero-hybrid-has-image {
        padding-top: calc(var(--nav-height) + 8px) !important;
    }

    [data-typography="classic"] .hero-hybrid-content {
        transform: translateY(clamp(0.75rem, 2vh, 1.25rem));
    }
}

@media (max-width: 768px) {
    #home-section.hero-hybrid,
    #home-section.hero-hybrid.hero-hybrid-has-image {
        height: auto !important;
        min-height: 100svh !important;
        padding: calc(var(--nav-height) + 18px) 0 48px !important;
    }

    .hero-hybrid-content {
        max-width: 100% !important;
        padding: 0 24px !important;
        transform: none !important;
    }

    .hero-title-premium {
        font-size: clamp(1.75rem, 9vw, 2.55rem) !important;
        line-height: 1.08 !important;
        max-width: 16ch !important; /* Increased from 10ch */
        margin: 0 auto 18px !important;
        text-wrap: balance;
    }

    .hero-title-premium .highlight-gold {
        display: block;
        white-space: normal;
        margin-top: 0.3rem;
    }

    .hero-title-divider {
        width: 92px;
        margin: 20px auto 24px;
    }

    .hero-description,
    .hero-desc-premium {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        max-width: 31ch;
        margin: 0 auto 28px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: min(100%, 17.5rem);
        margin: 0 auto;
    }

    .hero-actions .btn-gold,
    .hero-actions .btn-outline-white {
        width: 100%;
        justify-content: center;
        padding: 14px 18px !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.13em !important;
    }

    [data-typography="classic"] .hero-hybrid-content {
        transform: none !important;
    }

    [data-typography="classic"] .hero-title-premium {
        font-size: clamp(1.65rem, 8.2vw, 2.25rem) !important;
        line-height: 1.06 !important;
        max-width: 10.25ch;
    }
}
