﻿
/* =========================================
   FOOTER BASE
   ========================================= */

.mts-footer {
    --footer-green: #83c928;
    --footer-green-dark: #6dad19;
    --footer-bg: #111315;
    --footer-bottom-bg: #090909;
    --footer-text: #f5f5f5;
    --footer-muted: #c4c7ca;
    position: relative;
    margin-top: 15px;
    padding-top: 0;
    color: var(--footer-text);
    background: var(--footer-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

    .mts-footer *,
    .mts-footer *::before,
    .mts-footer *::after {
        box-sizing: border-box;
    }

    .mts-footer a {
        color: inherit;
        text-decoration: none;
    }

        .mts-footer a:hover {
            color: var(--footer-green);
        }

/* =========================================
   TOP GREEN CONTACT BAR
   ========================================= */

.mts-footer-contact-bar {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 60px)); /* min(1464px, calc(100% - 60px)) */
    min-height: 76px; /* 96px */
    margin: 0 auto -48px; /* 0 auto -48px */
    padding: 20px 26px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    align-items: center;
    gap: 28px;
    color: #ffffff;
    background-color: var(--footer-green);
    background-image: linear-gradient( 90deg, rgba(131, 201, 40, 0.98) 0%, rgba(131, 201, 40, 0.96) 68%, rgba(109, 173, 25, 0.84) 100% );
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
}

/* Contact items */

.mts-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .mts-footer-contact-item > i {
        flex-shrink: 0;
        font-size: 27px;
        line-height: 1;
    }

    .mts-footer-contact-item div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mts-footer-contact-item strong,
    .mts-footer-contact-item span,
    .mts-footer-contact-item a {
        font-size: 16px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .mts-footer-contact-item strong {
        font-weight: 700;
    }

    .mts-footer-contact-item a:hover {
        color: #173c0b;
    }

/* =========================================
   MAIN FOOTER LAYOUT
   ========================================= */

.mts-footer-main {
    /*text-align:center;*/
    padding: 26px 115px 15px 115px; /* 86px 85px 15px 85px | 96px 0 48px*/
    background: var(--footer-bg);
}

.mts-footer-container {
    width: min(1430px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 40px; /* 38px */
    align-items: start;
}

.mts-footer-column {
    min-width: 0;
}

/* =========================================
   COMPANY LOGO
   ========================================= */

.mts-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px; /* 26px */
}

    .mts-footer-logo img {
        display: block;
        width: 355px; /* 420px */
        height: auto;
        margin: 5px 26px 5px;
        text-align: center;
        object-fit: contain;
        border-radius: 9px;
    }

    .mts-footer-logo span {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .mts-footer-logo strong {
        color: #ffffff;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

    .mts-footer-logo small {
        margin-top: 4px;
        color: var(--footer-green);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
    }

/* =========================================
   COMPANY DESCRIPTION
   ========================================= */

.mts-footer-about > p {
    margin: 12px 26px 18px; /*  12px 0 18px */
    color: var(--footer-text);
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

/* =========================================
   SOCIAL MEDIA ICONS
   ========================================= */

.mts-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 6px 26px;
}

    .mts-footer-social a {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        border: 1px solid #666a6c;
        border-radius: 4px;
        font-size: 20px;
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

        .mts-footer-social a:hover {
            color: #111315;
            background: var(--footer-green);
            border-color: var(--footer-green);
        }

/* =========================================
   FOOTER COLUMN HEADINGS
   ========================================= */

.mts-footer-column h3 {
    margin: 0 0 28px;
    padding-bottom: 8px;
    color: #ffffff;
    border-bottom: 1px solid #414345;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.35;
}

    .mts-footer-column h3 span {
        color: var(--footer-green);
    }

/* =========================================
   USEFUL LINKS
   ========================================= */

.mts-footer-link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

    .mts-footer-link-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
        margin: 12px 26px 18px;
    }

    .mts-footer-link-grid li {
        margin: 0 0 20px;
    }

    .mts-footer-link-grid a {
        display: inline-flex;
        align-items: baseline;
        gap: 12px;
        color: var(--footer-text);
        font-size: 15px;
        line-height: 1.6;
        transition: color 0.2s ease;
    }

        .mts-footer-link-grid a::before {
            content: "\203A";
            color: #ffffff;
            font-size: 23px;
            line-height: 0.8;
        }

        .mts-footer-link-grid a:hover {
            color: var(--footer-green);
        }

/* =========================================
   ADDRESS AND CONTACT DETAILS
   ========================================= */

.mts-footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

    .mts-footer-address-item > i {
        flex-shrink: 0;
        width: 25px;
        padding-top: 3px;
        color: #ffffff;
        font-size: 24px;
        text-align: center;
    }

    .mts-footer-address-item p {
        margin: 0;
        color: var(--footer-text);
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

        .mts-footer-address-item p strong {
            font-weight: 700;
        }

        .mts-footer-address-item p span {
            display: block;
        }

    .mts-footer-address-item a:hover {
        color: var(--footer-green);
    }

/* =========================================
   COPYRIGHT BAR
   ========================================= */

.mts-footer-bottom {
    padding: 9px 0; /* 23px 0 */
    background: var(--footer-bottom-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.mts-footer-bottom-container {
    width: min(1200px, calc(100% - 80px)); /* min(1430px, calc(100% - 60px)) */
    margin: 0 auto;
    color: #bfc1c4;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */

.mts-footer-back-top {
    position: fixed;
    z-index: 1000;
    right: 28px;
    bottom: 180px; /* 50px | 80px*/
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /*background: linear-gradient(135deg, #0066ff, #8DC80D);*/
     background: #0066ff; /*  #55585b */
    border: none;
    border-radius: 10%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

    .mts-footer-back-top.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mts-footer-back-top:hover {
        color: #ffffff;
        background: var(--footer-green-dark);
    }

    .mts-footer-back-top:focus-visible {
        outline: 3px solid var(--footer-green);
        outline-offset: 4px;
    }

/* =========================================
   TABLET RESPONSIVE
   ========================================= */

@media (max-width: 1000px) {
    .mts-footer-contact-bar {
        width: calc(100% - 40px);
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        padding: 12px;
    }

    .mts-footer-contact-item:last-child {
        grid-column: 1 / -1;
    }

    .mts-footer-container {
        width: calc(100% - 40px);
        grid-template-columns: 1fr 1fr;
        gap: 38px 28px;
    }

    .mts-footer-about {
        grid-column: 1 / -1;
        max-width: 650px;
    }

    .mts-footer-column h3 {
        font-size: 24px;
    }

    .mts-footer-bottom-container {
        width: calc(100% - 40px);
    }
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
    .mts-footer {
        margin-top: 50px;
    }

    .mts-footer-contact-bar {
        width: calc(100% - 30px);
        margin-bottom: -30px;
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 5px;
    }

    .mts-footer-contact-item:last-child {
        grid-column: auto;
    }

    .mts-footer-contact-item > i {
        font-size: 23px;
    }

    .mts-footer-contact-item strong,
    .mts-footer-contact-item span,
    .mts-footer-contact-item a {
        font-size: 14px;
    }

    .mts-footer-main {
        padding: 65px 0 32px;
    }

    .mts-footer-container {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .mts-footer-about {
        grid-column: auto;
    }

    .mts-footer-logo {
        margin-bottom: 16px;
    }

        .mts-footer-logo img {
            width: 85%; /* 65px */
            height: auto; /* 65px */
        }

        .mts-footer-logo strong {
            font-size: 18px;
        }

    .mts-footer-about > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .mts-footer-column h3 {
        margin-bottom: 20px;
        font-size: 23px;
    }

    .mts-footer-link-grid {
        gap: 12px;
    }

        .mts-footer-link-grid li {
            margin-bottom: 15px;
        }

        .mts-footer-link-grid a {
            font-size: 14px;
        }

    .mts-footer-address-item p {
        font-size: 14px;
    }

    .mts-footer-bottom {
        padding: 18px 0;
    }

    .mts-footer-bottom-container {
        width: calc(100% - 36px);
        font-size: 13px;
    }

    .mts-footer-back-top {
        right: 14px;
        bottom: 75px; /* 14px | 105 | 75px */
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}
@media (max-width: 480px) {
    .mts-footer-back-top {
        right: 45%;
        bottom: 20px; 
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}
    /* =========================================
   REDUCED MOTION
   ========================================= */

    @media (prefers-reduced-motion: reduce) {
        .mts-footer *,
        .mts-footer *::before,
        .mts-footer *::after {
            transition: none !important;
        }
    }
