/* ============================================================
   SPIRO PILATES — footer.css
   Układ jak Wix: 4 kolumny + pionowy separator przed formularzem
   Używa zmiennych z base CSS: --bg, --text, --muted, --line,
   --cta, --cta-text, --accent, --font-body, --font-title
   Umieść w: your-theme/assets/css/footer.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   FOOTER WRAPPER
══════════════════════════════════════════════════════════════ */
.site-footer.wix-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
    color: var(--text);
}

/* ── Wewnętrzny grid 4 kolumn ──────────────────────────────── */
.wix-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr auto 1.6fr;
    align-items: start;
    gap: 0 48px;
    padding: 72px 0 60px;
}

/* ══════════════════════════════════════════════════════════════
   KOLUMNY — wspólne style
══════════════════════════════════════════════════════════════ */
.wix-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Tytuł kolumny */
.wix-footer__title {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 24px;
    text-transform: none;
}

/* Tekst adresowy */
.wix-footer__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wix-footer__text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.wix-footer__text a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.wix-footer__text a:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════════
   MENU
══════════════════════════════════════════════════════════════ */
.wix-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wix-footer__menu li a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.wix-footer__menu li a:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════════════
   SOCIAL
══════════════════════════════════════════════════════════════ */
.wix-footer__social {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

/* Jeden blok: QR + ikona pod spodem */
.wix-footer__social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* QR obrazek */
.wix-footer__qr-img {
    width: 88px;
    height: 88px;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s;
}

.wix-footer__qr-img:hover {
    opacity: 0.85;
}

/* Ikonki IG + FB */
.wix-footer__icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.wix-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cta);
    color: var(--cta-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.wix-icon:hover {
    background: var(--accent);
    color: var(--text);
    transform: scale(1.08);
}

/* ══════════════════════════════════════════════════════════════
   SEPARATOR PIONOWY
══════════════════════════════════════════════════════════════ */
.wix-footer__vline {
    width: 1px;
    align-self: stretch;
    background: var(--line);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   FORMULARZ
══════════════════════════════════════════════════════════════ */
.wix-footer__form {
    padding-left: 8px;
}

.wix-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Wiersz imię + nazwisko obok siebie */
.wix-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Pojedyncze pole */
.wix-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wix-field span {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.wix-field input,
.wix-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    outline: none;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.2s;
    resize: none;
    width: 100%;
}

.wix-field input:focus,
.wix-field textarea:focus {
    border-bottom-color: var(--text);
}

.wix-field input::placeholder,
.wix-field textarea::placeholder {
    color: transparent;
}

.wix-field textarea {
    min-height: 80px;
}

/* Przycisk Wyślij — kolor akcentu jak Wix */
.wix-form__submit {
    width: 100%;
    padding: 13px 24px;
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--accent);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    margin-top: 4px;
}

.wix-form__submit:hover {
    background: var(--cta);
    border-color: var(--cta);
    color: var(--cta-text);
}

/* ══════════════════════════════════════════════════════════════
   PASEK DOLNY — copyright + CTA
══════════════════════════════════════════════════════════════ */
.wix-footer__bottom {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wix-footer__bottom small {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* Przycisk Fitssey w stopce */
.wix-footer__fitssey {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--cta);
    color: var(--cta-text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--cta);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}

.wix-footer__fitssey::after {
    content: '→';
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.wix-footer__fitssey:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

.wix-footer__fitssey:hover::after {
    transform: translateX(5px);
}

@media (max-width: 640px) {
    .wix-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .wix-footer__fitssey {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .wix-footer__inner {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .wix-footer__vline { display: none; }
    .wix-footer__form {
        grid-column: 1 / -1;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 40px;
        margin-top: 8px;
    }
    .wix-form__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .wix-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 0 32px;
        padding: 56px 0 48px;
    }
    .wix-footer__col:first-child {
        grid-column: 1 / -1;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .wix-footer__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .wix-footer__col {
        padding-bottom: 32px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 0;
    }
    .wix-footer__col:last-child {
        border-bottom: none;
    }
    .wix-form__row { grid-template-columns: 1fr; }
}