/* =============================================================
   PAGE HERO
   Base .hero styles + page-specific extensions
   ============================================================= */

/******************************************
 * BASE HERO
 ******************************************/

.hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1300 / 500;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(171, 170, 170, 0.10);
    box-shadow: 2px 2px 4px rgba(179, 179, 179, 0.3);
}

.hero-content--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.hero-image,
.hero-image picture {
    width: 101%;
    height: 101%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    /* JavaScript sets bottom and font-size */
}

.hero-title {
    font-weight: 800;
    line-height: 0.9;
    margin: 0 0 12px 0;
    word-break: break-word;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    /* JavaScript sets font-size */
}

.hero-subtitle--mobile { display: none; }

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    /* JavaScript sets font-size */
}

.atl-word {
    display: inline-block;
    white-space: nowrap;
}

.atl-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    animation: atl-fade-up 0.8s ease-out forwards;
}

@keyframes atl-fade-up {
    from {
        opacity: 0;
        transform: translateY(0.5em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/******************************************
 * HEADER FADE
 ******************************************/
.header.scrolled {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

@media (max-width: 599px) {
    .hero-subtitle--desktop { display: none; }
    .hero-subtitle--mobile  { display: block; }
}

/******************************************
 * PAGE HERO EXTENSIONS
 ******************************************/

.page-hero {
}

/* Suppress gradient for naturally dark images */
.page-hero[data-overlay="none"]::after {
    display: none;
}

/* Optional gradient for light images */
.page-hero:not([data-overlay="none"])::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.40) 100%
    );
    z-index: 1;
}

.ab-section-title {
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-size: 1.9rem;
    color: #252625;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.page-hero .hero-title {
    text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 4px 28px rgba(0,0,0,0.65);
}

.page-hero .hero-subtitle {
    text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 16px rgba(0,0,0,0.55);
}

.hero-subtitle {
    line-height: 3;
}

/* ── Bottom bar ─────────────────────────────────────────────── */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
}

.hero-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hero-breadcrumb span[aria-hidden] {
    color: rgba(255,255,255,0.45);
}

@media (min-width: 600px) {
    .breadcrumb-parent { display: none; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .page-hero {
        height: clamp(220px, 75vh, 400px);
    }
}

@media (max-width: 599px) {
    .hero {
        aspect-ratio: 600 / 900;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .hero-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hero-image,
    .hero-image picture {
        width: 100%;
        height: 100%;
    }

    .hero-bottom-bar {
        padding: 8px 16px;
    }

    .hero-breadcrumb {
        font-size: 1.00rem;
    }
}