/**
 * ============================================================================
 * HERO SECTION STYLES — Full-width hero banners
 * ============================================================================
 *
 * Used on:
 * - Homepage (large hero with video/image bg + CTAs)
 * - Inner pages (smaller hero banner with page title)
 *
 * @package Oraculi
 * @since   1.0.0
 * ============================================================================
 */


/* =================================================================
   1. HOMEPAGE HERO (Large)
   ================================================================= */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
}

/* Background image/video container */
.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-behind);
}

.hero__background img,
.hero__background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay for text readability */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(100, 13, 13, 0.6) 100%     /* Maroon tint */
    );
    z-index: var(--z-base);
}

/* Content container */
.hero__content {
    position: relative;
    z-index: calc(var(--z-base) + 1);
    text-align: center;
    max-width: 800px;
    padding: var(--space-2xl) var(--container-padding);
}

/* Hero heading */
.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero subtitle / description */
.hero__subtitle {
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA buttons */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}


/* =================================================================
   2. INNER PAGE HERO (Smaller)
   ================================================================= */

.hero--inner {
    min-height: 300px;
    background-color: var(--color-maroon);
}

.hero--inner .hero__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.hero--inner .hero__subtitle {
    font-size: var(--text-md);
    margin-bottom: 0;
}

/* Breadcrumb on inner pages */
.hero__breadcrumb {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.hero__breadcrumb a:hover {
    color: var(--color-white);
}

.hero__breadcrumb span {
    margin: 0 var(--space-xs);
}


/* =================================================================
   3. HERO DECORATIVE ELEMENTS
   ================================================================= */

/* Subtle wave divider at bottom of hero */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: calc(var(--z-base) + 2);
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: auto;
    fill: var(--color-white);
}

/* Hero for cream background sections */
.hero--cream + .section {
    padding-top: 0;
}

.hero__wave--cream svg {
    fill: var(--color-cream);
}


/* =================================================================
   4. HERO CAROUSEL (Homepage multi-slide)
   =================================================================
   Crossfade carousel for the homepage hero. Each slide holds its own
   background (image or video) and can display unique title/subtitle.
*/

.hero-carousel {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    color: var(--color-white);
}

/* Individual slide — stacked on top of each other via position:absolute */
.hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Slide background (image or video) */
.hero-carousel__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel__slide-bg img,
.hero-carousel__slide-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay per slide */
.hero-carousel__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(100, 13, 13, 0.6) 100%
    );
}

/* Slide text content */
.hero-carousel__slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 800px;
    width: 90%;
    z-index: 2;
    padding: var(--space-xl);
}

.hero-carousel__slide-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-carousel__slide.is-active .hero-carousel__slide-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel__slide-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-carousel__slide.is-active .hero-carousel__slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* CTA buttons inside carousel slides */
.hero-carousel__slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.hero-carousel__slide.is-active .hero-carousel__slide-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Dot navigation */
.hero-carousel__dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-carousel__dot.is-active {
    background: var(--color-burnt-orange);
    border-color: var(--color-burnt-orange);
    transform: scale(1.2);
}

/* Progress bar */
.hero-carousel__progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.hero-carousel__progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-burnt-orange), var(--color-dark-red));
}

/* Wave divider for carousel hero */
.hero-carousel .hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 10;
    line-height: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide {
        transition: none;
    }
    .hero-carousel__slide-title,
    .hero-carousel__slide-subtitle,
    .hero-carousel__slide-actions {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

