/* =========================================================
   CODEX DESIGNS FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    margin: 0;
    background: #ffffff;
    color: #24252a;
}

.site-footer__accent {
    width: 100%;
    height: 6px;
    background:
        linear-gradient(
            90deg,
            #7b1119 0%,
            #b3272b 45%,
            #e14549 100%
        );
}

.site-footer__container {
    width: min(92%, 1580px);
    margin: 0 auto;
}

/* Main footer */

.site-footer__main {
    position: relative;
    padding: clamp(75px, 8vw, 125px) 0 45px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(179, 39, 43, 0.045),
            transparent 24%
        ),
        radial-gradient(
            circle at 95% 85%,
            rgba(179, 39, 43, 0.04),
            transparent 23%
        ),
        #ffffff;
}

.site-footer__main::before,
.site-footer__main::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(
            circle,
            #b3272b 2px,
            transparent 2.5px
        );
    background-size: 15px 15px;
}

.site-footer__main::before {
    top: 45px;
    left: -105px;
}

.site-footer__main::after {
    right: -80px;
    bottom: 10px;
}

.site-footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(270px, 1.45fr)
        repeat(4, minmax(150px, 0.75fr));
    gap: clamp(35px, 5vw, 80px);
}

/* Brand */

.site-footer__brand {
    padding-right: clamp(0px, 2vw, 35px);
}

.site-footer__logo {
    display: inline-flex;
    margin-bottom: 28px;
}

.site-footer__logo img {
    display: block;
    width: auto;
    max-width: 235px;
    height: auto;
    max-height: 105px;
    object-fit: contain;
}

.site-footer__description {
    max-width: 390px;
    margin: 0 0 28px;
    color: #6e7077;
    font-size: 0.96rem;
    line-height: 1.8;
}

.site-footer__quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 52px;
    margin-bottom: 35px;
    padding: 13px 23px;
    border: 1px solid #b3272b;
    border-radius: 6px;
    background: #b3272b;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        gap 220ms ease,
        color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.site-footer__quote-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__quote-button:hover {
    gap: 20px;
    color: #ffffff;
    background: #8e171b;
    box-shadow: 0 16px 35px rgba(179, 39, 43, 0.22);
    transform: translateY(-3px);
}

.site-footer__contact {
    display: grid;
    gap: 16px;
}

.site-footer__contact > a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: #28292e;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__contact small {
    display: block;
    margin-bottom: 2px;
    color: #97999f;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__contact-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: #f5e9ea;
    color: #b3272b;
    font-size: 1.15rem;
    transition:
        color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease;
}

.site-footer__contact > a:hover .site-footer__contact-icon {
    color: #ffffff;
    background: #b3272b;
    transform: translateY(-3px);
}

/* Link columns */

.site-footer__column {
    min-width: 0;
}

.site-footer__column h2 {
    position: relative;
    margin: 0 0 29px;
    padding-bottom: 17px;
    color: #27282d;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.site-footer__column h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 2px;
    background: #b3272b;
}

.site-footer__column ul {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__column li {
    margin: 0;
}

.site-footer__column a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #64666d;
    font-size: 0.88rem;
    line-height: 1.45;
    text-decoration: none;
    transition:
        gap 220ms ease,
        color 220ms ease;
}

.site-footer__column a > span {
    display: block;
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-top: 1.5px solid #b3272b;
    border-right: 1.5px solid #b3272b;
    transform: rotate(45deg);
}

.site-footer__column a:hover {
    gap: 14px;
    color: #b3272b;
}

/* Social row */

.site-footer__social-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: clamp(55px, 7vw, 90px);
    padding-top: 38px;
    border-top: 1px solid #e4e4e6;
}

.site-footer__social-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #b3272b;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__social-row h2 {
    margin: 0;
    color: #292a2f;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-footer__social-link {
    position: relative;
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e2e3e5;
    border-radius: 50%;
    background: #ffffff;
    color: #4e5056;
    font-size: 1.08rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(25, 26, 29, 0.07);
    transition:
        color 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.site-footer__social-link:hover {
    color: #ffffff;
    border-color: #b3272b;
    background: #b3272b;
    box-shadow: 0 14px 28px rgba(179, 39, 43, 0.2);
    transform: translateY(-5px);
}

/* Trust section */

.site-footer__trust {
    padding: 31px 0;
    border-top: 1px solid #e7e7e9;
    border-bottom: 1px solid #e2e2e5;
    background: #f6f6f7;
}

.site-footer__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer__trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 10px clamp(18px, 2.4vw, 36px);
    border-right: 1px solid #dddddf;
}

.site-footer__trust-item:first-child {
    padding-left: 0;
}

.site-footer__trust-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.site-footer__trust-item > span {
    display: grid;
    width: 53px;
    height: 53px;
    flex: 0 0 53px;
    place-items: center;
    border: 1px solid #ead1d3;
    border-radius: 50%;
    background: #ffffff;
    color: #b3272b;
    font-size: 1.42rem;
}

.site-footer__trust-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2d2e33;
    font-size: 0.88rem;
    font-weight: 800;
}

.site-footer__trust-item small {
    display: block;
    color: #82848b;
    font-size: 0.76rem;
    line-height: 1.5;
}

/* Bottom */

.site-footer__bottom {
    padding: 22px 0;
    background: #202126;
    color: #a9abb1;
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer__bottom p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.6;
}

.site-footer__bottom strong {
    color: #ffffff;
    font-weight: 700;
}

.site-footer__bottom a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: #e06064;
}

/* Back to top */

.site-footer__back-to-top {
    position: absolute;
    right: 24px;
    bottom: 74px;
    z-index: 5;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: #b3272b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 20, 22, 0.2);
    transition:
        background-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.site-footer__back-to-top svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__back-to-top:hover {
    background: #8f171b;
    box-shadow: 0 17px 34px rgba(20, 20, 22, 0.28);
    transform: translateY(-5px);
}

/* Responsive */

@media (max-width: 1250px) {
    .site-footer__grid {
        grid-template-columns: minmax(300px, 1.25fr) repeat(3, 1fr);
    }

    .site-footer__column:last-child {
        grid-column: 2;
    }
}

@media (max-width: 980px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .site-footer__column:last-child {
        grid-column: auto;
    }

    .site-footer__trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__trust-item:nth-child(2) {
        border-right: 0;
    }

    .site-footer__trust-item:nth-child(-n + 2) {
        padding-bottom: 25px;
        border-bottom: 1px solid #dddddf;
    }

    .site-footer__trust-item:nth-child(n + 3) {
        padding-top: 25px;
    }

    .site-footer__trust-item:nth-child(3) {
        padding-left: 0;
    }
}

@media (max-width: 720px) {
    .site-footer__main {
        padding: 65px 0 38px;
    }

    .site-footer__container {
        width: calc(100% - 30px);
    }

    .site-footer__grid {
        gap: 45px 28px;
    }

    .site-footer__social-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__socials {
        justify-content: flex-start;
    }

    .site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .site-footer__back-to-top {
        right: 15px;
        bottom: 105px;
    }
}

@media (max-width: 520px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__logo img {
        max-width: 205px;
    }

    .site-footer__social-link {
        width: 45px;
        height: 45px;
    }

    .site-footer__trust-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__trust-item,
    .site-footer__trust-item:first-child,
    .site-footer__trust-item:last-child,
    .site-footer__trust-item:nth-child(3) {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid #dddddf;
    }

    .site-footer__trust-item:last-child {
        border-bottom: 0;
    }

    .site-footer__bottom {
        padding: 23px 0 80px;
    }

    .site-footer__back-to-top {
        right: 15px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__quote-button,
    .site-footer__contact-icon,
    .site-footer__column a,
    .site-footer__social-link,
    .site-footer__back-to-top {
        transition: none;
    }
}