/**
 * HBREA Hero Styles
 *
 * Styles for hero sections: full-width with image and simple colored bar.
 *
 * @package HBREA
 * @since 1.0.0
 */

/* ==========================================================================
   FULL-WIDTH HERO (Homepage, key landing pages)
   ========================================================================== */

.hbrea-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--hbrea-hero-min-height);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark Overlay */
.hbrea-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hbrea-hero-overlay);
    display: flex;
    align-items: center;
}

/* Content Container */
.hbrea-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--hbrea-container);
    margin: 0 auto;
    padding: var(--hbrea-space-8) var(--hbrea-gutter);
    color: var(--hbrea-white);
}

/* Headline */
.hbrea-hero__headline {
    font-family: var(--hbrea-font-heading);
    font-size: var(--hbrea-text-4xl);
    font-weight: var(--hbrea-font-extrabold);
    line-height: var(--hbrea-leading-tight);
    letter-spacing: var(--hbrea-tracking-tight);
    color: var(--hbrea-white);
    margin-bottom: var(--hbrea-space-4);
    max-width: 18ch;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .hbrea-hero__headline {
        font-size: var(--hbrea-text-5xl);
    }
}

@media (min-width: 1024px) {
    .hbrea-hero__headline {
        font-size: var(--hbrea-text-6xl);
    }
}

/* Subheadline */
.hbrea-hero__sub {
    font-size: var(--hbrea-text-lg);
    line-height: var(--hbrea-leading-relaxed);
    color: var(--hbrea-gray-200);
    margin-bottom: var(--hbrea-space-8);
    max-width: 50ch;
}

@media (min-width: 768px) {
    .hbrea-hero__sub {
        font-size: var(--hbrea-text-xl);
    }
}

/* CTA Buttons */
.hbrea-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hbrea-space-4);
}

/* Center-aligned variant */
.hbrea-hero--center .hbrea-hero__content {
    text-align: center;
}

.hbrea-hero--center .hbrea-hero__headline,
.hbrea-hero--center .hbrea-hero__sub {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.hbrea-hero--center .hbrea-hero__ctas {
    justify-content: center;
}

/* Taller Hero Variant */
.hbrea-hero--tall {
    min-height: 85vh;
}

/* Shorter Hero Variant */
.hbrea-hero--short {
    min-height: 50vh;
}

/* ==========================================================================
   SIMPLE HERO (Inner pages)
   ========================================================================== */

.hbrea-hero-simple {
    background-color: var(--hbrea-navy);
    padding: var(--hbrea-space-16) 0 var(--hbrea-space-12);
    text-align: center;
}

.hbrea-hero-simple__content {
    max-width: var(--hbrea-container);
    margin: 0 auto;
    padding: 0 var(--hbrea-gutter);
}

.hbrea-hero-simple__title {
    font-family: var(--hbrea-font-heading);
    font-size: var(--hbrea-text-4xl);
    font-weight: var(--hbrea-font-extrabold);
    color: var(--hbrea-white);
    margin-bottom: var(--hbrea-space-2);
    text-transform: uppercase;
    letter-spacing: var(--hbrea-tracking-tight);
}

@media (min-width: 768px) {
    .hbrea-hero-simple__title {
        font-size: var(--hbrea-text-5xl);
    }
}

.hbrea-hero-simple__subtitle {
    font-size: var(--hbrea-text-lg);
    color: var(--hbrea-gray-300);
    max-width: 50ch;
    margin: 0 auto;
}

/* Simple Hero with Background Image */
.hbrea-hero-simple--image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.hbrea-hero-simple--image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hbrea-hero-overlay);
}

.hbrea-hero-simple--image .hbrea-hero-simple__content {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HERO DECORATIVE ELEMENTS
   ========================================================================== */

/* Scroll Indicator */
.hbrea-hero__scroll {
    position: absolute;
    bottom: var(--hbrea-space-8);
    left: 50%;
    transform: translateX(-50%);
    color: var(--hbrea-white);
    opacity: 0.7;
    animation: hbrea-bounce 2s infinite;
    cursor: pointer;
    transition: opacity var(--hbrea-transition);
}

.hbrea-hero__scroll:hover {
    opacity: 1;
}

.hbrea-hero__scroll svg {
    width: 24px;
    height: 24px;
}

@keyframes hbrea-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Gradient Overlay Variant (left to right) */
.hbrea-hero--gradient .hbrea-hero__overlay {
    background: linear-gradient(
        to right,
        rgba(10, 31, 63, 0.9) 0%,
        rgba(10, 31, 63, 0.7) 50%,
        rgba(10, 31, 63, 0.4) 100%
    );
}

/* Bottom Gradient Variant */
.hbrea-hero--gradient-bottom .hbrea-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(10, 31, 63, 0.95) 0%,
        rgba(10, 31, 63, 0.5) 50%,
        rgba(10, 31, 63, 0.2) 100%
    );
}

/* ==========================================================================
   HERO RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (min-width: 768px) {
    .hbrea-hero__content {
        padding: var(--hbrea-space-12) var(--hbrea-gutter);
    }

    .hbrea-hero-simple {
        padding: var(--hbrea-space-20) 0 var(--hbrea-space-16);
    }
}

@media (min-width: 1024px) {
    .hbrea-hero__content {
        padding: var(--hbrea-space-16) var(--hbrea-gutter);
    }

    .hbrea-hero-simple {
        padding: var(--hbrea-space-24) 0 var(--hbrea-space-20);
    }
}

/* ==========================================================================
   HERO ACCESSIBILITY
   ========================================================================== */

/* Ensure text remains readable */
.hbrea-hero__headline,
.hbrea-hero__sub {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Focus states for CTAs in hero */
.hbrea-hero .hbrea-btn:focus-visible {
    outline: 2px solid var(--hbrea-white);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hbrea-hero__scroll {
        animation: none;
    }
}
