/* =========================================================================
   footer.css — pas newslettera, stopka
   ========================================================================= */

/* === Pas newslettera === */
.newsband {
    position: relative;
    z-index: 1;
    padding-top: clamp(80px, 8vw, 120px);
}
.newsband__box {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 56px);
    overflow: hidden;
    background: var(--grad-band);
    color: var(--c-light);
}
.newsband__icon {
    flex: none;
    max-width: 100%;
    width: 100px;
    height: auto;
}
.newsband__txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
}
.newsband__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}
.newsband__title {
    font-family: var(--font-head);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 600;
    line-height: 1.15;
}
.newsband__form {
    flex: 1;
    min-width: min(100%, 300px);
    max-width: 480px;
}

/* formularz newslettera (CF7): .nlform__row = pole + przycisk w białej pigułce, .nlform__note = zgoda pod spodem */
.newsband .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nlform__row {
    display: flex;
    padding: 5px;
    border-radius: 999px;
    background: var(--c-light);
    transition: box-shadow .2s;
}
.nlform__row:has(.wpcf7-not-valid) {
    box-shadow: 0 0 0 3px #FFEB3B;
}
.nlform__row .wpcf7-form-control-wrap {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.nlform__row input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: none;
    color: var(--c-txt);
    font-size: 15px;
}
.nlform__row .wpcf7-submit {
    flex: none;
    min-width: 128px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(110deg, var(--c-accent) 0%, var(--c-accent) 50%, var(--c-accent-dark) 100%) 0 0 / 220% 100%;
    color: var(--c-light);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    transition: background-position .6s var(--ease), transform .15s;
}
.nlform__row .wpcf7-submit:hover {
    background-position: 100% 0;
}
.nlform__row .wpcf7-not-valid-tip {
    display: none;
}
.nlform__note,
.newsband .wpcf7-response-output {
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    border: 0 !important;
    color: var(--c-light);
    font-size: 14px;
    line-height: 1.4;
}
.newsband .wpcf7-response-output {
    font-size: 15px;
    font-weight: 500;
}
.nlform__note a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nlform__note a:hover {
    color: var(--c-light);
}
.newsband .wpcf7-spinner {
    display: none;
}

/* === Stopka === */
.footer {
    position: relative;
    z-index: 1;
    padding-top: clamp(56px, 6vw, 96px);
}
.footer__main {
    background: var(--c-bg-alt);
}
.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
    align-items: start;
    gap: 36px clamp(30px, 4vw, 64px);
    padding-top: 56px;
    padding-bottom: 56px;
}
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}
.footer__logo {
    display: block;
    max-width: 380px;
    width: 100%;
    height: auto;
}
.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-left: -4px;
    color: var(--c-txt-muted);
    font-size: 17px;
    line-height: 1.4;
}
.footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    transition: background-color .35s var(--ease), color .3s var(--ease);
}
a.footer__contact-item:hover {
    background-color: var(--c-light);
    color: var(--c-accent);
}
.footer__contact-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-light);
    color: var(--c-blue);
}
.footer__social {
    display: flex;
    gap: 10px;
}
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-light);
    color: var(--c-blue);
    transition: background-color .35s, color .35s, transform .3s var(--ease);
}
.footer__social-link:hover {
    background: var(--c-bg-hover);
    color: var(--c-accent);
}
.footer__social-link:active {
    transform: scale(.94);
}
.footer__nav,
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer__links li {
    display: flex;
}
.footer__heading {
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-size: min(20px, 5.6vw);
    font-weight: 600;
    line-height: 1;
}
.footer__link {
    display: inline-flex;
    margin-left: -12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--c-txt-muted);
    font-size: 17px;
    line-height: 1.3;
    transition: background-color .35s var(--ease), color .3s var(--ease), padding .35s var(--ease), transform .18s var(--ease);
}
.footer__link:hover {
    padding-left: 16px;
    padding-right: 8px;
    background-color: var(--c-light);
    color: var(--c-accent);
}
.footer__link:active {
    transform: scale(.95);
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 30px;
    padding-top: 20px;
    padding-bottom: 30px;
    color: var(--c-txt-muted);
    font-size: 15px;
    line-height: 1;
}
.footer__policy {
    margin-left: -12px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background-color .35s var(--ease), color .3s var(--ease);
}
.footer__policy:hover {
    background-color: var(--c-bg-alt);
}
.footer__built {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.footer__built:hover {
    color: var(--c-txt-muted);
}
.footer__built img {
    width: auto;
    height: 18px;
}

@media (max-width: 999px) {
    .footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer__brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 639px) {
    .footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* newsletter: przycisk pod polem */
    .nlform__row {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        background: none;
    }
    .nlform__row .wpcf7-form-control-wrap {
        padding: 5px;
        border-radius: 999px;
        background: var(--c-light);
    }
    .nlform__row:has(.wpcf7-not-valid) {
        box-shadow: none;
    }
    .nlform__row:has(.wpcf7-not-valid) .wpcf7-form-control-wrap {
        box-shadow: 0 0 0 3px #FFEB3B;
    }
    .nlform__row .wpcf7-submit {
        width: 100%;
    }
}

/* === Pasek linków wtyczki SEO (swg-glossary) — linki są w kolumnie stopki === */
.seven-footer-seo {
    display: none;
}
