/* ====================================================
   CONTAINER
   ==================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--text {
    max-width: var(--container-text);
}

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--c-white);
    height: var(--header-h);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 50px;
    width: auto;
}

@media (min-width: 1024px) {
    .header__logo img {
        height: 80px;
    }
}

.header__cta {
    flex-shrink: 0;
    margin-left: auto;
}

@media (max-width: 1023px) {
    .header__cta {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .header__cta {
        display: inline-flex;
    }
}

.nav__cta-mobile {
    display: inline-flex;
    margin: 16px auto 8px;
}

@media (min-width: 1024px) {
    .nav__cta-mobile {
        display: none !important;
    }
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-navy);
    border-radius: 2px;
    transition: transform var(--t-normal), opacity var(--t-normal);
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}

.site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--c-white);
    overflow-y: auto;
    padding: 1.5rem 1.25rem 3rem;
    z-index: 999;
}

.site-nav.is-open {
    display: block;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex !important;
        position: static;
        inset: unset;
        background: none;
        overflow: visible;
        padding: 0;
        flex: 1;
        justify-content: center;
    }
}

/* ====================================================
   MAIN CONTENT
   ==================================================== */
main {
    min-height: calc(100vh - var(--header-h) - 300px);
}

/* ====================================================
   PAGE CONTENT (subpages)
   ==================================================== */
.page-content {
    padding-block: var(--sp-lg);
}

.page-h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-bottom: var(--sp-md);
    line-height: 1.15;
}

.page-h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--c-green);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.page-body {
    max-width: none;
}

/* Styl treści WP */
.page-body h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-body h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-body h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-body p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 1.1rem;
}

.page-body h2 {
    padding-left: 0.85rem;
    border-left: 4px solid var(--c-green);
}

.page-body ul,
.page-body ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }

.page-body li {
    margin-bottom: 0.4rem;
}

.page-body a {
    color: var(--c-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-body a:hover {
    color: var(--c-green);
}

.page-body img {
    border-radius: var(--r-md);
    margin-block: 1.5rem;
    max-width: 100%;
    height: auto;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: var(--fs-sm);
}

.page-body table th,
.page-body table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--c-gray-200);
    text-align: left;
}

.page-body table th {
    background: var(--c-blue-pale);
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
}

.page-body figure {
    margin-block: 1.5rem;
}

.page-body figcaption {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* WP block cleanup */
.page-body .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-body .wp-block-column {
    flex: 1;
    min-width: 200px;
}

/* ====================================================
   FOOTER — jasny, słoneczny, sielski (sky-blue)
   ==================================================== */
.site-footer {
    color: var(--c-text);
    background: var(--c-blue-pale);
}

/* --- Górne pasmo: informacje + zdjęcie --- */
.footer__top {
    background:
        radial-gradient(120% 140% at 85% 0%, #ffffff 0%, rgba(255,255,255,0) 55%),
        linear-gradient(180deg, #f4fbff 0%, #e6f3ff 55%, #d9edff 100%);
    border-top: 3px solid var(--c-blue-light);
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    align-items: center;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
    .footer__inner {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
        gap: var(--sp-lg);
    }
}

.footer__info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
}

@media (min-width: 600px) {
    .footer__info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer__info {
        grid-template-columns: repeat(3, 1fr);
        column-gap: var(--sp-md);
    }
    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

/* --- Marka --- */
.footer__name {
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

.footer__name-kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-blue-dark);
}

.footer__name-main {
    display: block;
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    color: var(--c-navy);
}

.footer__tagline {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--c-text-muted);
}

/* --- Nagłówki kolumn --- */
.footer__heading {
    font-size: 0.95rem;
    font-weight: var(--fw-bold);
    color: var(--c-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

/* --- Adres --- */
.footer__address {
    font-style: normal;
}

.footer__address p {
    margin-bottom: 0.35rem;
    font-size: var(--fs-sm);
    color: var(--c-text);
}

/* --- Kontakt --- */
.footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-sm);
}

.footer__contact a {
    color: var(--c-text);
    transition: color var(--t-fast);
    word-break: break-word;
}

.footer__contact a:hover {
    color: var(--c-blue-dark);
    text-decoration: underline;
}

/* --- Ikonki (przebarwiane maską — pastelowe, sky-blue + zieleń) --- */
.footer__ico {
    flex-shrink: 0;
    display: inline-block;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.footer__ico--phone {
    width: 20px;
    height: 20px;
    background-color: var(--c-green);
    -webkit-mask-image: url('../img/icons/STOPKA_TELEFON.png');
            mask-image: url('../img/icons/STOPKA_TELEFON.png');
}

.footer__ico--mail {
    width: 20px;
    height: 20px;
    background-color: var(--c-blue);
    -webkit-mask-image: url('../img/icons/STOPKA_EMAIL.png');
            mask-image: url('../img/icons/STOPKA_EMAIL.png');
}

.footer__ico--fb {
    width: 30px;
    height: 30px;
    background-color: var(--c-blue);
    -webkit-mask-image: url('../img/icons/STOPKA_FACEBOOK_V1.png');
            mask-image: url('../img/icons/STOPKA_FACEBOOK_V1.png');
}

/* --- Facebook --- */
.footer__fb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-navy);
    transition: color var(--t-fast);
}

.footer__fb:hover { color: var(--c-blue-dark); }
.footer__fb:hover .footer__ico--fb { background-color: var(--c-blue-dark); }

/* --- Zdjęcie dziewczynki --- */
.footer__media {
    display: flex;
    justify-content: center;
}

.footer__media img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 607 / 815;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 599px) {
    .footer__media img {
        max-width: 200px;
    }
}

/* --- 5. sekcja: dofinansowanie UE --- */
.footer__eu {
    background: #ffffff;
    border-top: 1px solid var(--c-blue-light);
}

.footer__eu-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--sp-md) 1.25rem;
    text-align: center;
}

.footer__eu-note {
    margin: 0 auto 1.1rem;
    max-width: 1000px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--c-text);
}

.footer__eu-logo {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin-inline: auto;
}

/* --- Dolny pasek --- */
.footer__bottom {
    text-align: center;
    padding: 1.15rem 1.25rem;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    background: var(--c-blue-pale);
    border-top: 1px solid rgba(97, 164, 255, 0.25);
}

.footer__bottom p {
    max-width: var(--container);
    margin-inline: auto;
}
