﻿/* ============================================================
   MALWA AGRITECH
   PREMIUM PROFESSIONAL FOOTER
   Palette:
   Navy + Charcoal + Ivory + Gold
   ============================================================ */

:root {
    --mf-navy: #101c2c;
    --mf-navy-deep: #091321;
    --mf-navy-light: #17263a;
    --mf-gold: #d8a93b;
    --mf-gold-light: #f0d486;
    --mf-ivory: #f7f5ef;
    --mf-white: #ffffff;
    --mf-text: #b9c1cb;
    --mf-text-light: #e7ebef;
    --mf-border: rgba(255,255,255,.10);
    --mf-container: 1380px;
}


/* ============================================================
   RESET
   ============================================================ */

.malwa-footer,
.malwa-footer * {
    box-sizing: border-box;
}

.malwa-footer {
    width: 100%;
    position: relative;
    background: var(--mf-navy-deep);
    color: var(--mf-text);
    font-family: Arial, Helvetica, sans-serif;
}

    .malwa-footer a {
        text-decoration: none;
    }

.malwa-footer-container {
    width: min(calc(100% - 50px), var(--mf-container));
    margin: 0 auto;
}


/* ============================================================
   MAIN FOOTER
   ============================================================ */

.malwa-footer-main {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
}

    .malwa-footer-main::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        right: -170px;
        top: -180px;
        border-radius: 50%;
        border: 1px solid rgba(216,169,59,.10);
    }

    .malwa-footer-main::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        left: -120px;
        bottom: -120px;
        border-radius: 50%;
        border: 1px solid rgba(216,169,59,.07);
    }


/* ============================================================
   GRID
   ============================================================ */

.malwa-footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.65fr .85fr .95fr 1fr 1.45fr;
    gap: 48px;
}


/* ============================================================
   COMPANY BRAND
   ============================================================ */

.malwa-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.malwa-footer-logo {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 15px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .malwa-footer-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 5px;
    }

.malwa-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--mf-gold);
    font-size: 28px;
}

.malwa-footer-brand-text {
    min-width: 0;
}

    .malwa-footer-brand-text strong {
        display: block;
        color: #ffffff;
        font-size: 23px;
        font-weight: 900;
        letter-spacing: 1px;
        line-height: 1.15;
    }

    .malwa-footer-brand-text span {
        display: block;
        margin-top: 7px;
        color: var(--mf-gold-light);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }


/* ============================================================
   DESCRIPTION
   ============================================================ */

.malwa-footer-description {
    max-width: 390px;
    margin: 0 0 22px;
    color: var(--mf-text);
    font-size: 13px;
    line-height: 1.8;
}


/* ============================================================
   ESTABLISHED
   ============================================================ */

.malwa-footer-established {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 9px 13px;
    border: 1px solid var(--mf-border);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
}

.established-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216,169,59,.12);
    color: var(--mf-gold);
    font-size: 13px;
}

.malwa-footer-established small {
    display: block;
    color: #7f8995;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.malwa-footer-established strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 12px;
}


/* ============================================================
   SOCIAL
   ============================================================ */

.malwa-footer-social {
    display: flex;
    gap: 8px;
}

    .malwa-footer-social a {
        width: 36px;
        height: 36px;
        border: 1px solid var(--mf-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #c7ced6;
        font-size: 12px;
        background: rgba(255,255,255,.025);
        transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
    }

        .malwa-footer-social a:hover {
            transform: translateY(-3px);
            background: var(--mf-gold);
            border-color: var(--mf-gold);
            color: var(--mf-navy-deep);
        }


/* ============================================================
   COLUMNS
   ============================================================ */

.malwa-footer-column h4 {
    position: relative;
    margin: 4px 0 23px;
    padding-bottom: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
}

    .malwa-footer-column h4::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 34px;
        height: 2px;
        background: var(--mf-gold);
    }


/* ============================================================
   LINKS
   ============================================================ */

.malwa-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .malwa-footer-links li {
        margin-bottom: 13px;
    }

        .malwa-footer-links li a {
            display: flex;
            align-items: center;
            gap: 9px;
            color: var(--mf-text);
            font-size: 12px;
            line-height: 1.5;
            transition: color .2s ease, transform .2s ease;
        }

            .malwa-footer-links li a i {
                width: 14px;
                color: var(--mf-gold);
                font-size: 9px;
                text-align: center;
            }

            .malwa-footer-links li a:hover {
                color: #ffffff;
                transform: translateX(4px);
            }


/* ============================================================
   MINI NOTE
   ============================================================ */

.malwa-footer-mini-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--mf-border);
    color: #7f8995;
    font-size: 10px;
    line-height: 1.5;
}

    .malwa-footer-mini-note i {
        color: var(--mf-gold);
        margin-top: 2px;
    }


/* ============================================================
   CONTACT
   ============================================================ */

.malwa-contact-list {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.malwa-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.malwa-contact-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216,169,59,.09);
    color: var(--mf-gold);
    font-size: 11px;
}

.malwa-contact-content {
    min-width: 0;
}

    .malwa-contact-content small {
        display: block;
        margin-bottom: 4px;
        color: #7f8995;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .malwa-contact-content p {
        margin: 0;
        color: var(--mf-text);
        font-size: 11px;
        line-height: 1.65;
    }

    .malwa-contact-content > a {
        display: block;
        color: var(--mf-text);
        font-size: 11px;
        line-height: 1.8;
        transition: color .2s ease;
    }

        .malwa-contact-content > a:hover {
            color: #ffffff;
        }

.malwa-direction-link {
    margin-top: 6px !important;
    color: var(--mf-gold-light) !important;
    font-size: 10px !important;
    font-weight: 700;
}

    .malwa-direction-link i {
        margin-right: 5px;
    }


/* ============================================================
   SERVICE STRIP
   ============================================================ */

.malwa-footer-service-strip {
    background: var(--mf-navy);
    border-top: 1px solid var(--mf-border);
    border-bottom: 1px solid var(--mf-border);
}

.malwa-service-strip-grid {
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0;
}

.malwa-service-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-right: 1px solid var(--mf-border);
}

    .malwa-service-highlight:last-child {
        border-right: 0;
    }

    .malwa-service-highlight > span {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(216,169,59,.08);
        color: var(--mf-gold);
        font-size: 14px;
    }

    .malwa-service-highlight strong {
        display: block;
        color: #ffffff;
        font-size: 12px;
        font-weight: 800;
    }

    .malwa-service-highlight small {
        display: block;
        margin-top: 4px;
        color: #7f8995;
        font-size: 9px;
        line-height: 1.4;
    }


/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.malwa-footer-bottom {
    background: #07101d;
}

.malwa-footer-bottom-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}


/* COPYRIGHT */

.malwa-copyright {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #687482;
    font-size: 10px;
}

    .malwa-copyright strong {
        color: #d3d8de;
    }


/* LEGAL */

.malwa-footer-legal {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .malwa-footer-legal a {
        color: #788390;
        font-size: 10px;
        transition: color .2s ease;
    }

        .malwa-footer-legal a:hover {
            color: var(--mf-gold-light);
        }

    .malwa-footer-legal span {
        color: #394452;
    }


/* ============================================================
   POWERED BY
   ============================================================ */

.malwa-powered {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #687482;
    font-size: 9px;
}

.malwa-arb-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mf-gold-light);
    font-size: 11px;
    font-weight: 800;
    transition: color .2s ease;
}

    .malwa-arb-link:hover {
        color: #ffffff;
    }

    .malwa-arb-link i {
        font-size: 8px;
    }


/* ============================================================
   BACK TO TOP
   ============================================================ */

.malwa-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mf-gold);
    color: var(--mf-navy-deep);
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
    z-index: 9999;
}

    .malwa-back-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .malwa-back-top:hover {
        background: #ffffff;
    }


/* ============================================================
   LARGE TABLET
   ============================================================ */

@media (max-width: 1200px) {

    .malwa-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }

    .malwa-contact-column {
        grid-column: span 2;
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .malwa-footer-container {
        width: min(calc(100% - 36px), var(--mf-container));
    }

    .malwa-footer-main {
        padding: 55px 0 45px;
    }

    .malwa-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 38px 30px;
    }

    .malwa-contact-column {
        grid-column: span 3;
    }

    .malwa-contact-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .malwa-service-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .malwa-service-highlight:nth-child(2) {
        border-right: 0;
    }

    .malwa-service-highlight:nth-child(-n+2) {
        border-bottom: 1px solid var(--mf-border);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 680px) {

    .malwa-footer-container {
        width: calc(100% - 28px);
    }

    .malwa-footer-main {
        padding: 45px 0 38px;
    }

    .malwa-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .malwa-contact-column {
        grid-column: auto;
    }

    .malwa-footer-brand-text strong {
        font-size: 20px;
    }

    .malwa-footer-description {
        max-width: 100%;
        font-size: 12px;
    }

    .malwa-contact-list {
        display: flex;
        gap: 18px;
    }

    .malwa-service-strip-grid {
        grid-template-columns: 1fr;
    }

    .malwa-service-highlight {
        border-right: 0;
        border-bottom: 1px solid var(--mf-border);
    }

        .malwa-service-highlight:last-child {
            border-bottom: 0;
        }

    .malwa-footer-bottom-inner {
        min-height: auto;
        padding: 22px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .malwa-copyright,
    .malwa-footer-legal,
    .malwa-powered {
        justify-content: center;
    }

    .malwa-powered {
        justify-self: auto;
        flex-wrap: wrap;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .malwa-footer-container {
        width: calc(100% - 22px);
    }

    .malwa-footer-brand {
        align-items: flex-start;
    }

    .malwa-footer-logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .malwa-footer-brand-text strong {
        font-size: 18px;
    }

    .malwa-footer-brand-text span {
        font-size: 10px;
    }

    .malwa-footer-description {
        font-size: 11px;
        line-height: 1.7;
    }

    .malwa-footer-column h4 {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .malwa-footer-links li a {
        font-size: 11px;
    }

    .malwa-contact-content p,
    .malwa-contact-content > a {
        font-size: 10px;
    }

    .malwa-copyright {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 9px;
    }

    .malwa-footer-legal a {
        font-size: 9px;
    }

    .malwa-powered {
        font-size: 8px;
    }

    .malwa-back-top {
        width: 40px;
        height: 40px;
        right: 14px;
        bottom: 14px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .malwa-footer *,
    .malwa-footer *::before,
    .malwa-footer *::after {
        transition: none !important;
        animation: none !important;
    }
}
