/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Wspólny HERO całej witryny
 * ============================================================
 *
 * Używany przez:
 * - stronę główną,
 * - Aktualności,
 * - Kontakt,
 * - Politykę prywatności,
 * - pozostałe podstrony korzystające z template-parts/hero.php.
 *
 * Responsive:
 * assets/css/hero-responsive.css
 */

/* ============================================================
   1. HERO
   ============================================================ */

.site-hero {
    position: relative;
    width: 100%;
    min-height: 580px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    background-color: #07182d;
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 18, 36, 0.97) 0%,
            rgba(5, 22, 43, 0.91) 32%,
            rgba(6, 26, 50, 0.62) 58%,
            rgba(7, 25, 47, 0.20) 100%
        ),
        url("../images/hero-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* ============================================================
   2. OVERLAY
   ============================================================ */

.site-hero-overlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(3, 16, 31, 0.02),
            rgba(3, 16, 31, 0.10)
        );
}

/* ============================================================
   3. KONTENER
   ============================================================ */

.site-hero-container {
    position: relative;
    z-index: 2;

    width: min(1120px, calc(100% - 56px));
    min-height: 500px;

    margin: 0 auto;
    padding: 40px 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, 0.55fr);

    align-items: center;
    gap: 60px;
}

/* ============================================================
   4. TREŚĆ
   ============================================================ */

.site-hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 720px;
    min-width: 0;
}

/* ============================================================
   5. EYEBROW
   ============================================================ */

.site-hero-eyebrow {
    margin: 0 0 14px;

    color: #dbe8f5;

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}

/* ============================================================
   6. TYTUŁ
   ============================================================ */

.site-hero-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 0.98;

    letter-spacing: -0.035em;
}

/* ============================================================
   7. OPIS
   ============================================================ */

.site-hero-description {
    max-width: 680px;

    margin: 20px 0 0;

    color: #e7eef6;

    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   8. CZERWONY AKCENT
   ============================================================ */

.site-hero-accent {
    display: block;

    width: 35px;
    height: 3px;

    margin-top: 16px;

    background-color: #c62032;
}

/* ============================================================
   9. MOTTO
   ============================================================ */

.site-hero-motto {
    margin: 15px 0 0;

    color: #ffffff;

    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

/* ============================================================
   10. PRZYCISKI
   ============================================================ */

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;
}

.site-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 38px;
    padding: 9px 16px;

    border: 1px solid transparent;
    border-radius: 3px;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

/* Główny przycisk */

.site-hero-button--primary {
    border-color: #c62032;
    background-color: #c62032;
    color: #ffffff;
}

.site-hero-button--primary:hover,
.site-hero-button--primary:focus-visible {
    border-color: #a91828;
    background-color: #a91828;
    color: #ffffff;

    transform: translateY(-1px);
}

/* Drugi przycisk */

.site-hero-button--secondary {
    border-color: rgba(255, 255, 255, 0.72);
    background-color: rgba(7, 24, 45, 0.28);
    color: #ffffff;
}

.site-hero-button--secondary:hover,
.site-hero-button--secondary:focus-visible {
    background-color: #ffffff;
    color: #0b1f3a;
}

/* Focus klawiatury */

.site-hero-button:focus-visible {
    outline: 2px solid rgba(198, 32, 50, 0.45);
    outline-offset: 4px;
}

/* ============================================================
   11. PRAWA CZĘŚĆ HERO
   ============================================================ */

.site-hero-visual {
    position: relative;
    z-index: 2;

    min-width: 0;
    min-height: 380px;
}

/* ============================================================
   12. LOGO KZZPRM
   ============================================================ */

.site-hero-logo {
    position: absolute;
    z-index: 2;

    top: -5px;
    right: 0;

    display: block;

    width: 235px;
    max-width: 100%;
    height: auto;

    filter:
        drop-shadow(
            0 10px 18px rgba(0, 0, 0, 0.24)
        );
}

/* ============================================================
   13. SLOGAN
   ============================================================ */

.site-hero-slogan {
    position: absolute;
    z-index: 3;

    top: 220px;
    right: 20px;

    display: block;

    width: 145px;
    max-width: 100%;
    height: auto;

    filter:
        drop-shadow(
            0 3px 5px rgba(0, 0, 0, 0.30)
        );
}

/* ============================================================
   14. WARIANT COMPACT - PODSTRONY
   ============================================================ */

.site-hero--compact {
    min-height: 380px;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 18, 36, 0.97) 0%,
            rgba(5, 22, 43, 0.91) 32%,
            rgba(6, 26, 50, 0.62) 58%,
            rgba(7, 25, 47, 0.20) 100%
        ),
        url("../images/hero-bg-compact.png");

    background-position: center center;
    background-size: cover;
}

.site-hero--compact .site-hero-container {
    min-height: 320px;
    padding: 30px 0;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(220px, 0.45fr);

    gap: 56px;
}

.site-hero--compact .site-hero-content {
    max-width: 680px;
}

.site-hero--compact .site-hero-title {
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
    line-height: 1;
}

.site-hero--compact .site-hero-description {
    max-width: 600px;
    margin-top: 20px;

    font-size: 0.96rem;
    line-height: 1.6;
}

.site-hero--compact .site-hero-visual {
    min-height: 260px;
}

.site-hero--compact .site-hero-logo {
    top: 0;
    right: 0;

    width: 175px;
}

.site-hero--compact .site-hero-slogan {
    top: 166px;
    right: 14px;

    width: 112px;
}

/* ============================================================
   15. OGRANICZENIE ANIMACJI
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .site-hero-button {
        transition: none;
    }

    .site-hero-button--primary:hover,
    .site-hero-button--primary:focus-visible {
        transform: none;
    }
}