﻿/* catalog/css/hero.css */

/* -------------------------------
   HERO BASE
--------------------------------*/
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--hero-bg-color, #0b1d33);
    margin-top: calc(var(--nav-h) * -1);
}

/* -------------------------------
   HERO BACKGROUND
--------------------------------*/
.hero-bg,
.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../img/arctic-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* -------------------------------
   HERO OVERLAY
--------------------------------*/
.hero-overlay,
.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* -------------------------------
   HERO CONTENT
--------------------------------*/
.hero-content,
.home-hero-content {
    position: relative;
    z-index: 2;
}

/* -------------------------------
   HERO TYPOGRAPHY
--------------------------------*/
.hero-title {
    color: #ffffff;
    font-weight: var(--font-weight-heading);
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 1rem;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.hero-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    text-wrap: pretty;
}

/* -------------------------------
   COMPACT RITM HERO
--------------------------------*/
.ritm-hero {
    min-height: 320px;
    padding-top: 84px;
    padding-bottom: 42px;
    align-items: center;
}

.ritm-hero .hero-content {
    min-height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.ritm-hero .hero-breadcrumb {
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
}

.ritm-hero .badge-glass {
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
}

.ritm-hero .ritm-hero-title {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.65rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.88;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ritm-hero .ritm-hero-lead {
    max-width: 680px;
    margin-bottom: 0.45rem;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.45;
}

.ritm-hero .text-white-50 {
    max-width: 680px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ritm-hero .ritm-hero-tags {
    margin-top: 0.85rem;
}

/* -------------------------------
   HERO SEARCH CARD
--------------------------------*/
.hero-search-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* -------------------------------
   HERO BREADCRUMBS
--------------------------------*/
.hero-breadcrumb {
    position: relative;
    z-index: 3;
    font-size: 0.82rem;
}

.hero-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
}

.hero-breadcrumb .breadcrumb-item,
.hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.68);
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

/* -------------------------------
   COMPATIBILITY
--------------------------------*/
.input-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* -------------------------------
   ADAPTIVE
--------------------------------*/
@media (max-width: 767px) {
    .ritm-hero {
        min-height: 270px;
        padding-top: 72px;
        padding-bottom: 30px;
    }

    .ritm-hero .hero-breadcrumb {
        margin-bottom: 0.65rem;
        font-size: 0.72rem;
    }

    .ritm-hero .badge-glass {
        margin-bottom: 0.65rem;
    }

    .ritm-hero .ritm-hero-title {
        margin-bottom: 0.5rem;
        font-size: clamp(2.15rem, 11vw, 3.2rem);
        line-height: 0.92;
        letter-spacing: 0;
    }

    .ritm-hero .ritm-hero-lead,
    .ritm-hero .text-white-50 {
        font-size: 0.94rem;
        line-height: 1.35;
    }

    .hero-title {
        line-height: 1.08;
        margin-bottom: 0.85rem;
    }

    .hero-lead {
        max-width: 100%;
        line-height: 1.55;
    }

    .hero-breadcrumb {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .home-hero-bg {
        transition: none !important;
        transform: none !important;
    }
}
