/*
 * Site footer (Modules/Frontend/resources/views/layouts/footer.blade.php).
 * Sizes are in px because the site sets html { font-size: 62.5% }.
 */
.mf {
    --mf-brand: #EA3639;
    --mf-brand-dark: #C92A2D;
    --mf-ink: #3A2626;
    --mf-muted: #6E6A6B;
    --mf-line: #F1EBEB;
    --mf-bg: #FBF7F7;
    margin-top: 48px;
    background: var(--mf-bg);
    border-top: 1px solid var(--mf-line);
    border-radius: 0;
    color: var(--mf-ink);
    font-size: 14px;
    line-height: 1.55;
}

.mf *,
.mf *::before,
.mf *::after {
    box-sizing: border-box;
}

.mf p,
.mf ul,
.mf address {
    margin: 0;
    padding: 0;
}

.mf ul {
    list-style: none;
}

.mf address {
    font-style: normal;
}

.mf a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.mf svg {
    flex-shrink: 0;
    transition: none;
}

.mf-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Help strip */
.mf-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 44px;
    padding: 22px 28px;
    background: #fff;
    border: 1px solid var(--mf-line);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgb(47 14 14 / 0.03), 0 4px 16px rgb(47 14 14 / 0.04);
}

.mf-help-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.mf-help-text {
    margin-top: 4px !important;
    color: var(--mf-muted);
}

.mf-help-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.mf-btn-primary {
    background: #FDECEC;
    color: var(--mf-brand-dark) !important;
}

.mf-btn-primary:hover {
    background: var(--mf-brand);
    color: #fff !important;
}

.mf-btn-whatsapp {
    border: 1px solid #BFE9CF;
    background: #EEFBF3;
    color: #128C4B !important;
}

.mf-btn-whatsapp:hover {
    border-color: #25D366;
    background: #DFF7E8;
}

/* Columns */
.mf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 44px;
}

.mf-logo img {
    display: block;
    width: auto;
    height: 52px;
}

.mf-about {
    max-width: 360px;
    margin-top: 16px !important;
    color: var(--mf-muted);
}

.mf-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mf-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--mf-line);
    border-radius: 50%;
    background: #fff;
    color: var(--mf-ink);
}

.mf-social a:hover {
    border-color: var(--mf-brand);
    background: var(--mf-brand);
    color: #fff;
}

.mf-heading {
    margin-bottom: 14px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9A8E8E;
}

.mf-col li + li {
    margin-top: 10px;
}

.mf-col a:hover {
    color: var(--mf-brand);
}

.mf-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mf-contact li + li {
    margin-top: 14px;
}

.mf-ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: -4px;
    border-radius: 8px;
    background: #FDECEC;
    color: var(--mf-brand);
    flex-shrink: 0;
}

.mf-contact address,
.mf-contact a {
    color: var(--mf-ink);
}

/* Bottom bar */
.mf .mf-bottom {
    border-top: 1px solid var(--mf-line);
    border-radius: 0;
    background: #fff;
}

.mf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 13px;
    color: var(--mf-muted);
}

.mf-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.mf-legal a:hover {
    color: var(--mf-brand);
}

.mf-version {
    color: #A39696;
    font-size: 12px;
}

/* Tablet */
@media (max-width: 1023.98px) {
    .mf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .mf-brand,
    .mf-contact {
        grid-column: span 2;
    }
}

/* Phone */
@media (max-width: 767.98px) {
    .mf {
        margin-top: 40px;
    }

    .mf-wrap {
        padding: 0 16px;
    }

    .mf-help {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin: 24px 0 32px;
        padding: 20px;
    }

    .mf-help-actions .mf-btn {
        flex: 1;
        padding: 0 12px;
    }

    .mf-grid {
        padding-bottom: 32px;
    }

    .mf-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
