﻿footer {
    position: relative;
    overflow: hidden;
    background-color: var(--black);
}

footer:before {
    content: "";
    position: absolute;
    z-index: 1;
    background: url(../images/ft-circle.png) no-repeat 0 0;
    width: 785px;
    height: 785px;
    right: -260px;
    top: 100px;
}

footer .bgimg {
    z-index: 0;
    opacity: 0.2;
}
.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: auto;
    transform: scaleY(-1);
    z-index: 1;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* top row: logo + cta text + cta buttons */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 170px;
    padding-bottom: 40px;
}

.footer-logo img {
    display: block;
    width: 294px;
    height: auto;
}

.footer-cta {
    display: flex;
    flex: 1 1 0%;
    min-width: 260px;
    max-width: 975px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 24px;
}

.footer-cta-text {
    flex: 1 1 0%;
    min-width: 220px;
}

.footer-cta-text .heading-26,
.footer-cta-text h2 {
    color: var(--white);
    font-family: var(--heading);
    font-weight: var(--font-bold);
    text-transform: none;
    margin-bottom: 6px;
}

.footer-cta-text h2 {font-size: var(--heading-26);}
.footer-cta-text h3 {font-size: var(--heading-26);color: var(--white);
    font-family: var(--heading);
    font-weight: var(--font-bold);
    text-transform: none;
    margin-bottom: 6px; }

.footer-cta-text p {
    color: #dadadb;
    font-size: 16px;
    font-weight: var(--font-medium);
    margin-bottom: 0;
}

.footer-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
}

/* middle row: office info + nav + solutions grid */
.footer-middle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(217, 217, 217, 0.1);
    border-bottom: 1px solid rgba(217, 217, 217, 0.1);
}

.footer-office {
    width: 380px;
    flex-shrink: 0;
    border-right: 1px solid rgba(217, 217, 217, 0.1);
}

.footer-heading {
    color: #dadadb;
    font-size: 18px;
    font-weight: var(--font-bold);
    margin-bottom: 20px;
}

.office-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.office-item img {
    flex-shrink: 0;
    margin-top: 4px;
}

.office-item address,
.office-item a {
    color: #dadadb;
    font-size: 15px;
    font-style: normal;
    font-weight: var(--font-medium);
    line-height: 1.45;
}

.office-item a:hover {
    color: var(--orange);
    text-decoration: underline;
}

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

.footer-social a {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--orange);
    border-color: var(--orange);
}

.footer-links {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 975px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 75px;
    margin-bottom: 30px;
    justify-content: space-between;
    & li {
        margin: 0;
    }
}

.footer-nav li a {
    color: #dadadb;
    font-size: 15px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.footer-nav li a:hover {
    color: var(--orange);
}

.footer-solutions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 30px;

    & li {
        max-width: 130px;
        width: 100%;
        & a {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            gap: 15px;
            height: 100%;
            text-decoration: none;
        }
    }
}

.footer-solutions .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-20);
    transition: var(--transition);
}

.footer-solutions li a:hover .icon-box {
    border-color: var(--orange);
}

.footer-solutions li a:hover .solution-label {
    color: var(--orange);
}

.footer-solutions .icon-box img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: filter 0.3s;
}

.footer-solutions li a:hover .icon-box img {
    filter: brightness(0) invert(65%) sepia(48%) saturate(662%)
        hue-rotate(334deg) brightness(87%) contrast(119%);
}

.footer-solutions .solution-label {
    color: #dadadb;
    font-size: 15px;    
    font-weight: var(--font-semibold);
    line-height: 1.3;
}

/* bottom row */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-bottom p {
    color: #a1a1a1;
    font-size: 15px;
    font-weight: var(--font-medium);
    margin-bottom: 0;display: flex;
    & span {color: #a1a1a1;text-decoration: none;display: flex;
           & img {
            margin: 4px 0 0 3px;
            position: relative;
            top: 3px;
        }}
}

.footer-bottom-links a {
    color: #a1a1a1;
    font-size: 15px;
    font-weight: var(--font-medium);
}

.footer-bottom-links a:hover {
    color: var(--orange);
}

.footer-bottom-links a:not(:last-child)::after {
    content: "|";
    margin: 0 10px;
    color: #a1a1a1;
}

@media (max-width: 1440px) {
    .footer-office {
        width: 250px;
    }
    .footer-links {
        padding-left: 30px;
    }
    .footer-solutions {
        column-gap: 10px;
        row-gap: 20px;
    }
    .footer-nav {
        gap: 10px 40px;
    }
}

@media (max-width: 1200px) {
    .footer-solutions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 5px;
    }
}

@media (max-width: 992px) {
    .footer-office {
        width: 100%;
        border-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(217, 217, 217, 0.1);
    }

    .footer-links {
        flex-basis: 100%;
        max-width: 100%;
        padding-left: 0;
    }
    .footer-top {
        padding-top: 80px;
    }
.footer-nav {
    margin: 30px 0;
}
.footer-cta-buttons {
    width: 100%;
}

}

@media (max-width: 768px) {

    .footer-solutions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
        .footer-nav {
        margin: 30px 0;
        display: block;
        column-count: 4;
    }
    .footer-middle {
    padding-bottom: 0;
}

.footer-bottom {gap: 5px;
            & p {
            text-align: center;
            width: 100%;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }
    & .footer-bottom-links {text-align: center; margin: 0 auto;}
}


}
@media (max-width: 576px) {

    .footer-top {
        padding: 70px 15px 30px;
        justify-content: center;
        text-align: center;
        .footer-cta-buttons {justify-content: center;}
    }
    .footer-nav {
        gap: 15px 25px;
    }

        .footer-office {
        width: 100%;
        border-right: 0;
        padding-bottom: 20px;
        max-width: 100%;
        margin: 0 auto;
        border: 0px solid transparent;
    }
        .footer-links {
        border-top: 1px solid rgba(217, 217, 217, 0.1);}

    
}

@media (max-width: 480px) {
    .footer-solutions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-nav {
        column-count: 2;
    }

    .footer-solutions .icon-box {
            max-width: 60px;
        & img {
    width: 50px;
    height: 50px;
}}
}

