/* ARMAN MANDEGAR — Reference Footer */

.am-footer-v5.am-footer-final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 0;
    padding: 112px 0 0;
    background:
        radial-gradient(ellipse at 52% 10%, rgba(8, 70, 148, .65), transparent 70%),
        linear-gradient(180deg, #05224b 0%, #062d65 58%, #052452 100%);
    color: #fff;
    font-family: Vazirmatn, sans-serif;
}

.am-footer-final *,
.am-footer-final *::before,
.am-footer-final *::after {
    box-sizing: border-box;
}

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

.am-footer-final-container {
    width: min(1880px, calc(100% - 110px));
    margin: auto;
    position: relative;
    z-index: 3;
}

.am-footer-final-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .75fr .82fr 1.13fr;
    gap: 0;
    padding: 0 0 100px;
    align-items: start;
}

.am-footer-final-column,
.am-footer-final-brand {
    min-width: 0;
    padding: 0 38px;
    min-height: 350px;
    border-left: 1px solid rgba(135, 191, 255, .42);
}

.am-footer-final-grid > :first-child {
    padding-right: 0;
}

.am-footer-final-grid > :last-child {
    border-left: 0;
    padding-left: 0;
}

.am-footer-final-column h3 {
    font-size: clamp(19px, 1.55vw, 29px);
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 32px;
    color: #fff;
}

.am-footer-final-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.am-footer-final-column li {
    margin: 0 0 18px;
}

.am-footer-final-column li a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    font-size: clamp(14px, 1.08vw, 20px);
    font-weight: 500;
    line-height: 1.8;
    transition: color .2s;
}

.am-footer-final-column li a:hover {
    color: #75bbff;
}

.am-footer-final-column li a > span {
    font-size: 29px;
    line-height: .8;
    color: #65b2ff;
    transform: rotate(180deg);
}

.am-footer-final-contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 23px;
    font-size: clamp(14px, 1.05vw, 19px);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.am-footer-final-contact-item svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    stroke-width: 1.9;
    color: #f0f7ff;
}

.am-footer-final-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.am-footer-final-logo {
    width: min(100%, 385px);
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -12px 0 30px;
}

.am-footer-final-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: grayscale(1) brightness(0) invert(1);
}

.am-footer-final-brand p {
    max-width: 405px;
    margin: 0 0 27px;
    color: #f1f6ff;
    font-size: clamp(14px, 1.1vw, 20px);
    font-weight: 500;
    line-height: 2.05;
}

.am-footer-final-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.am-footer-final-socials a {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #67b2ff;
    border-radius: 50%;
    background: rgba(4, 38, 83, .18);
    color: #fff;
    transition: background .2s, transform .2s;
}

.am-footer-final-socials a:hover {
    background: #115cbb;
    transform: translateY(-3px);
}

.am-footer-final-socials svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

/* Subtle world map image */
.am-footer-final-map {
    position: absolute;
    z-index: 0;
    width: 43%;
    height: 70%;
    top: 12%;
    right: -3%;
    opacity: .22;
    background-image: url('/images/footer/world-map.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Layered waves */
.am-footer-final-wave {
    position: absolute;
    z-index: 1;
    inset: auto 0 40px;
    height: 210px;
    width: 100%;
    border-radius: 0;
    transform: none;
    opacity: 1;
    background: url('/images/footer/waves.svg') center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.am-footer-final-bottom {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 112px;
    border-top: 1px solid rgba(178, 215, 255, .55);
    padding: 26px 0 32px;
    color: #f0f6ff;
    font-size: clamp(12px, 1vw, 18px);
}

.am-footer-final-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.am-footer-final-bottom-links a {
    padding: 0 20px;
    border-left: 1px solid rgba(200, 224, 255, .65);
}

.am-footer-final-bottom-links a:last-child {
    border-left: 0;
}

.am-footer-final-up {
    position: absolute;
    z-index: 5;
    bottom: 58px;
    right: 4.3%;
    left: auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #79bdff;
    border-radius: 50%;
    background: #0750ac;
    color: #fff;
    cursor: pointer;
}

.am-footer-final-up svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 1200px) {
    .am-footer-v5.am-footer-final {
        padding-top: 65px;
    }

    .am-footer-final-container {
        width: calc(100% - 60px);
    }

    .am-footer-final-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 38px;
        padding-bottom: 75px;
    }

    .am-footer-final-column,
    .am-footer-final-brand {
        min-height: 0;
        padding: 0 22px;
    }

    .am-footer-final-brand {
        grid-column: span 2;
        border-left: 0;
    }
}

@media (max-width: 700px) {
    .am-footer-v5.am-footer-final {
        padding-top: 48px;
    }

    .am-footer-final-container {
        width: calc(100% - 36px);
    }

    .am-footer-final-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 18px;
        padding-bottom: 70px;
    }

    .am-footer-final-column,
    .am-footer-final-brand {
        border: 0;
        padding: 0;
    }

    .am-footer-final-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .am-footer-final-contact {
        grid-column: 1 / -1;
    }

    .am-footer-final-column h3 {
        font-size: 19px;
        margin-bottom: 20px;
    }

    .am-footer-final-column li a {
        font-size: 13px;
    }

    .am-footer-final-logo {
        width: 270px;
        height: 85px;
        margin: 0 0 16px;
    }

    .am-footer-final-brand p {
        font-size: 14px;
    }

    .am-footer-final-socials a {
        width: 46px;
        height: 46px;
    }

    .am-footer-final-socials svg {
        width: 22px;
        height: 22px;
    }

    .am-footer-final-map {
        width: 100%;
        right: 0;
        top: 28%;
        opacity: .12;
    }

    .am-footer-final-wave {
        height: 115px;
    }

    .am-footer-final-bottom {
        flex-direction: column;
        text-align: center;
        padding-bottom: 75px;
        gap: 16px;
    }

    .am-footer-final-bottom-links {
        justify-content: center;
    }

    .am-footer-final-bottom-links a {
        padding: 0 10px;
        font-size: 11px;
    }

    .am-footer-final-up {
        width: 46px;
        height: 46px;
        right: 18px;
        bottom: 16px;
    }
}

/* World map visibility */
.am-footer-final-map {
    width: 47%;
    right: -2%;
    top: 13%;
    opacity: .35;
}

/* Compact footer - reduce excessive vertical spacing */
@media (min-width: 1201px) {
    .am-footer-v5.am-footer-final {
        padding-top: 45px !important;
    }

    .am-footer-final-grid {
        padding-bottom: 35px !important;
    }

    .am-footer-final-column,
    .am-footer-final-brand {
        min-height: 0 !important;
    }

    .am-footer-final-column h3 {
        margin-bottom: 18px !important;
    }

    .am-footer-final-column li {
        margin-bottom: 9px !important;
    }

    .am-footer-final-logo {
        height: 85px !important;
        margin-bottom: 15px !important;
    }

    .am-footer-final-bottom {
        min-height: 65px !important;
        padding: 14px 0 !important;
    }

    .am-footer-final-wave {
        height: 125px !important;
        bottom: 25px !important;
    }

    .am-footer-final-up {
        bottom: 25px !important;
    }
}

/* Footer compact desktop - v10 */
@media (min-width: 1201px) {

    .am-footer-v5.am-footer-final {
        padding-top: 28px !important;
    }

    .am-footer-final-grid {
        padding-bottom: 16px !important;
    }

    .am-footer-final-column,
    .am-footer-final-brand {
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .am-footer-final-column h3 {
        font-size: 19px !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .am-footer-final-column li {
        margin-bottom: 3px !important;
    }

    .am-footer-final-column li a {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .am-footer-final-column li a > span {
        font-size: 20px !important;
    }

    .am-footer-final-logo {
        height: 62px !important;
        margin: 0 0 10px !important;
    }

    .am-footer-final-brand p {
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin-bottom: 12px !important;
    }

    .am-footer-final-contact-item {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }

    .am-footer-final-contact-item svg {
        width: 20px !important;
        height: 20px !important;
    }

    .am-footer-final-socials a {
        width: 39px !important;
        height: 39px !important;
    }

    .am-footer-final-socials svg {
        width: 19px !important;
        height: 19px !important;
    }

    .am-footer-final-wave {
        height: 65px !important;
        bottom: 30px !important;
    }

    .am-footer-final-bottom {
        min-height: 48px !important;
        padding: 9px 0 !important;
        font-size: 12px !important;
    }

    .am-footer-final-up {
        width: 40px !important;
        height: 40px !important;
        bottom: 15px !important;
    }
}
