/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Wspólny HERO - Responsive
 * ============================================================
 *
 * Desktop:
 * assets/css/hero.css
 *
 * Breakpointy:
 * - 900 px: tablet / iPad
 * - 600 px: telefon
 * - 380 px: mały telefon
 */


/* ============================================================
   1. TABLET / iPAD
   ============================================================ */

@media (max-width: 900px) {

    .site-hero {
        min-height: auto;
    }

    .site-hero-container {
        width: min(720px, calc(100% - 48px));
        min-height: auto;

        padding: 48px 0;

        grid-template-columns:
            minmax(0, 1fr)
            230px;

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

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

    .site-hero-title {
        font-size: clamp(2.8rem, 7vw, 3.8rem);
    }

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

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

    .site-hero-motto {
        font-size: 1.15rem;
    }

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

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

        width: 210px;
    }

    .site-hero-slogan {
        top: 198px;
        right: 14px;
        bottom: auto;

        width: 135px;
    }
}


/* ============================================================
   2. TELEFON
   ============================================================ */

@media (max-width: 600px) {

    .site-hero-container {
        width: calc(100% - 32px);

        padding: 42px 0 34px;

        display: block;
    }

    .site-hero-eyebrow {
        margin-bottom: 12px;

        font-size: 0.74rem;
    }

    .site-hero-title {
        font-size: clamp(2.7rem, 13vw, 3.5rem);
        line-height: 1;
    }

    .site-hero-description {
        margin-top: 20px;

        font-size: 1rem;
        line-height: 1.65;
    }

    .site-hero-accent {
        margin-top: 20px;
    }

    .site-hero-motto {
        margin-top: 16px;

        font-size: 1.2rem;
    }

    .site-hero-actions {
        margin-top: 24px;

        flex-direction: column;
        gap: 10px;
    }

    .site-hero-button {
        width: 100%;
        min-height: 46px;

        font-size: 0.88rem;
    }

    .site-hero-visual {
        min-height: 280px;
        margin-top: 28px;
    }

    .site-hero-logo {
        top: 0;
        left: 50%;
        right: auto;

        width: 190px;
        max-width: 58vw;

        transform: translateX(-50%);
    }

    .site-hero-slogan {
        top: 186px;
        left: 50%;
        right: auto;
        bottom: auto;

        width: 135px;

        transform: translateX(-50%);
    }
}


/* ============================================================
   3. BARDZO MAŁY TELEFON
   ============================================================ */

@media (max-width: 380px) {

    .site-hero-container {
        width: calc(100% - 24px);
    }

    .site-hero-title {
        font-size: 2.5rem;
    }

    .site-hero-description {
        font-size: 0.96rem;
    }

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

    .site-hero-logo {
        width: 175px;
    }

    .site-hero-slogan {
        top: 172px;
        width: 125px;
    }
}


/* ============================================================
   4. 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;
    }
}