/* ==========================================================================
   Brubeck – Footer
   Wszystkie selektory scoped wewnątrz .brubeck-footer
   ========================================================================== */

:root {
    --bf-brand:       #FF7E20;
    --bf-muted:       rgba(255, 255, 255, .64);
    --bf-line:        rgba(255, 255, 255, .14);
    --bf-card:        rgba(255, 255, 255, .055);
    --bf-card-hover:  rgba(255, 126, 32, .12);
    --bf-shadow:      0 18px 44px rgba(0, 0, 0, .24);
}

/* ── Reset wewnątrz footera ── */
.brubeck-footer *,
.brubeck-footer *::before,
.brubeck-footer *::after {
    box-sizing: border-box;
}

.brubeck-footer a {
    color: inherit;
    text-decoration: none;
}

.brubeck-footer img {
    display: block;
    max-width: 100%;
}

/* ── Wrapper główny ── */
.brubeck-footer {
    background: #151618;
    color: #ffffff;
    font-family: "Lato", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brubeck-footer .footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* ── Sekcja górna: brand + newsletter ── */
.brubeck-footer .footer-top {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 34px;
    align-items: stretch;
    padding: 42px 0;
    border-bottom: 1px solid var(--bf-line);
}

.brubeck-footer .footer-brand-panel,
.brubeck-footer .footer-newsletter-panel {
    border: 1px solid var(--bf-line);
    background: var(--bf-card);
    box-shadow: var(--bf-shadow);
    padding: 28px;
}

.brubeck-footer .footer-logo {
    width: clamp(260px, 28vw, 360px);
    margin-bottom: 30px;
    height: auto;
}

.brubeck-footer .footer-eyebrow {
    color: var(--bf-brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.brubeck-footer .footer-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -.02em;
    color: #ffffff;
}

/* neutralizacja globalnego h2::after z child theme */
.brubeck-footer .footer-title::after {
    display: none !important;
    content: none !important;
}

.brubeck-footer .footer-copy,
.brubeck-footer .footer-link,
.brubeck-footer .footer-meta,
.brubeck-footer .footer-bottom,
.brubeck-footer .newsletter-consent {
    color: var(--bf-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ── Siatka kontaktowa ── */
.brubeck-footer .footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.brubeck-footer .footer-contact-card {
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, .035);
    padding: 18px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brubeck-footer .footer-contact-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #ffffff;
}

/* ── Formularz newslettera ── */
.brubeck-footer .newsletter-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.brubeck-footer .newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.brubeck-footer .newsletter-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 15px 16px;
    outline: none;
    font: inherit;
}

.brubeck-footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, .48);
}

.brubeck-footer .newsletter-input:focus {
    border-color: var(--bf-brand);
    box-shadow: inset 0 0 0 1px rgba(255, 126, 32, .28);
}

.brubeck-footer .footer-cta {
    border: 0;
    background: var(--bf-brand);
    color: #fff;
    padding: 15px 20px;
    font-weight: 900;
    cursor: pointer;
    font: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 14px 24px rgba(255, 126, 32, .28);
    white-space: nowrap;
}

.brubeck-footer .footer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(255, 126, 32, .36);
}

.brubeck-footer .newsletter-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.brubeck-footer .newsletter-consent input {
    margin-top: 3px;
    accent-color: var(--bf-brand);
}

/* ── Sekcja główna z kolumnami linków ── */
.brubeck-footer .footer-main {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 42px 0 36px;
}

.brubeck-footer .footer-column h3 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.brubeck-footer .footer-links {
    display: grid;
    gap: 9px;
}

.brubeck-footer .footer-link {
    position: relative;
    width: fit-content;
    color: var(--bf-muted);
    transition: color .18s ease, transform .18s ease;
}

.brubeck-footer .footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 1px;
    background: var(--bf-brand);
    transition: right .18s ease;
}

.brubeck-footer .footer-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.brubeck-footer .footer-link:hover::after {
    right: 0;
}

/* ── Karty kategorii ── */
.brubeck-footer .category-stack {
    display: grid;
    gap: 10px;
}

.brubeck-footer .category-card {
    display: block;
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, .04);
    padding: 14px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.brubeck-footer .category-card:hover {
    background: var(--bf-card-hover);
    border-color: rgba(255, 126, 32, .38);
    transform: translateY(-1px);
}

.brubeck-footer .category-card strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.brubeck-footer .category-card > span {
    color: var(--bf-muted);
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* ── Social media ── */
.brubeck-footer .footer-socials {
    display: grid;
    gap: 10px;
}

.brubeck-footer .social-group {
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, .035);
    padding: 14px;
}

.brubeck-footer .social-group strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
}

.brubeck-footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brubeck-footer .social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.brubeck-footer .social-pill i {
    font-size: 15px;
    line-height: 1;
}

.brubeck-footer .social-pill:hover {
    border-color: var(--bf-brand);
    color: var(--bf-brand);
    background: rgba(255, 126, 32, .08);
}

/* ── Pasek zaufania ── */
.brubeck-footer .footer-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--bf-line);
    border-top: 1px solid var(--bf-line);
    border-bottom: 1px solid var(--bf-line);
}

.brubeck-footer .trust-item {
    background: #090909;
    padding: 18px;
    text-align: center;
}

.brubeck-footer .trust-item strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.brubeck-footer .trust-item span {
    color: var(--bf-muted);
    font-size: 13px;
}

/* ── Pasek dolny (copyright) ── */
.brubeck-footer .footer-bottom-wrap {
    border-top: 1px solid var(--bf-line);
}

.brubeck-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 0;
    color: var(--bf-muted);
    font-size: 14px;
}

.brubeck-footer .footer-bottom-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── FluentForms – przycisk submit w sekcji newsletter ── */
.brubeck-footer form.fluent_form_5 .ff-btn-submit:not(.ff_btn_no_style) {
    background-color: #FF7E20 !important;
    border-color: #FF7E20 !important;
    color: #ffffff !important;
}

.brubeck-footer form.fluent_form_5 .ff-btn-submit:not(.ff_btn_no_style):hover {
    background-color: #e56c10 !important;
    border-color: #e56c10 !important;
}

/* ── Responsywność ── */
@media (max-width: 1160px) {
    .brubeck-footer .footer-top {
        grid-template-columns: 1fr;
    }

    .brubeck-footer .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }

    .brubeck-footer .footer-trust {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .brubeck-footer .footer-inner {
        width: min(100% - 20px, 1240px);
    }

    .brubeck-footer .footer-logo {
        width: min(280px, 100%);
    }

    .brubeck-footer .footer-brand-panel,
    .brubeck-footer .footer-newsletter-panel {
        padding: 22px;
    }

    .brubeck-footer .footer-main,
    .brubeck-footer .footer-contact-grid,
    .brubeck-footer .newsletter-row,
    .brubeck-footer .footer-trust {
        grid-template-columns: 1fr;
    }

    .brubeck-footer .footer-main {
        padding: 26px 0;
    }

    .brubeck-footer .footer-column {
        border-bottom: 1px solid var(--bf-line);
        padding-bottom: 20px;
    }

    .brubeck-footer .footer-column:last-child {
        border-bottom: 0;
    }

    .brubeck-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
