/* =========================================================================
   Strona glowna (front-page) - nowoczesny wyglad (Aktiv Sport).
   Zasieg: .aktiv-hero, .aktiv-home-main i ich dzieci - nie rusza reszty witryny.
   Rekawica: kolory z presetow motywu Greenshift z bezpiecznymi fallbackami.
   ========================================================================= */

/* --- Hero ----------------------------------------------------------------- */
.aktiv-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    margin-top: 0;
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem);
    color: var(--wp--preset--color--basecolor, #08203a);
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .35)),
        url("../img/sekcja.avif") center / cover no-repeat;
    border-bottom: 1px solid rgba(8, 32, 58, .08);
    overflow: hidden;
}

.aktiv-hero__inner { width: 100%; }

.aktiv-hero__title {
    margin: 0 0 1rem;
    font-family: "Oswald", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--wp--preset--color--basecolor, #08203a);
    text-wrap: balance;
}

.aktiv-hero__lead {
    margin: 0 auto 2rem;
    max-width: 640px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: var(--wp--preset--color--basecolor, #08203a);
}

.aktiv-hero__cta { margin-top: .25rem; }
.aktiv-hero .wp-block-buttons { justify-content: center; }

.aktiv-hero .wp-block-button__link,
.aktiv-btn .wp-block-button__link {
    background-color: var(--wp--preset--color--primary, #003f77);
    color: var(--wp--preset--color--textonprimary, #fffffd);
    border: 0;
    padding: 1rem 2.4rem;
    font-family: "Oswald", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(8, 32, 58, .35);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.aktiv-hero .wp-block-button__link:hover,
.aktiv-btn .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--basecolor, #08203a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(8, 32, 58, .30);
}

/* --- Sekcja glowna -------------------------------------------------------- */
.aktiv-home-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.aktiv-section-title {
    margin: 0 0 .75rem;
    text-align: center;
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--wp--preset--color--basecolor, #08203a);
}

.aktiv-section-lead {
    max-width: 680px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    color: rgba(8, 32, 58, .72);
}

/* --- Karty lokalizacji ---------------------------------------------------- */
.aktiv-locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 1.75rem);
    margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.aktiv-location {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    padding: clamp(1.75rem, 4vw, 2.6rem) 1.5rem;
    text-decoration: none;
    color: #08203a;
    background: #ffffff;
    border: 1px solid rgba(8, 32, 58, .10);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aktiv-location::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--wp--preset--color--primary, #003f77);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}

.aktiv-location--alt::before { background: var(--wp--preset--color--basecolor, #08203a); }

.aktiv-location:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 32, 58, .14);
    border-color: rgba(8, 32, 58, .16);
}

.aktiv-location:hover::before { transform: scaleY(1); }

.aktiv-location__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #fff;
    background: var(--wp--preset--color--basecolor, #08203a);
}

.aktiv-location--alt .aktiv-location__icon { background: var(--wp--preset--color--primary, #003f77); }
.aktiv-location__icon svg { width: 30px; height: 30px; }

.aktiv-location__name {
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aktiv-location__arrow {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--wp--preset--color--primary, #003f77);
    transition: transform .2s ease;
}

.aktiv-location:hover .aktiv-location__arrow { transform: translateX(6px); }

/* --- Pasek promocyjny (min. 8 dni) --------------------------------------- */
.aktiv-promo {
    position: relative;
    max-width: 820px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
    background: linear-gradient(120deg, rgba(0, 63, 119, .12), rgba(0, 63, 119, .04));
    border: 1px solid rgba(0, 63, 119, .38);
    border-radius: 16px;
    overflow: hidden;
}

.aktiv-promo p {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-family: "Oswald", sans-serif;
    font-size: clamp(.95rem, 1.15vw, 1.05rem);
    font-weight: 700;
    letter-spacing: .02em;
    color: #08203a;
}

@media (max-width: 767.98px) {
    .aktiv-promo p {
        white-space: normal;
        font-size: clamp(1rem, 3.8vw, 1.15rem);
    }
}

/* --- Notka o lokalizacjach ------------------------------------------------ */
.aktiv-note {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
    background: #f7f9fb;
    border: 1px solid rgba(8, 32, 58, .08);
    border-radius: 16px;
}

.aktiv-note p {
    margin: 0;
    color: rgba(8, 32, 58, .70);
    line-height: 1.65;
}

/* --- Responsywnosc -------------------------------------------------------- */
@media (max-width: 640px) {
    .aktiv-hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .aktiv-hero__title { font-size: clamp(1.65rem, 7.5vw, 2.3rem); }

    .aktiv-locations { grid-template-columns: 1fr; }
}
