/* =============================== */
/*  ESTILOS DEL FOOTER PRINCIPAL   */
/* =============================== */
.site-footer {
    --footer-bg: #fe3f01;
    --footer-ink: #c8aa64;
    --footer-deep: #881300;
    background: var(--footer-bg);
    color: var(--footer-ink);
    margin-top: 5.8rem;
    padding: clamp(8rem, 10vw, 10.8rem) 2rem 3.2rem;
    position: relative;
    overflow: visible;
}

.site-footer__crest {
    width: clamp(20rem, 17vw, 20.5rem);
    position: absolute;
    top: clamp(-5.6rem, -3.2vw, -4.4rem);
    left: 67%;
    z-index: 3;
    transform: translate(-50%, -1.45rem);
}

.site-footer__inner {
    width: min(100%, 112rem);
    min-height: clamp(19rem, 25vw, 26rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.site-footer__columns {
    display: grid;
    grid-template-columns: minmax(22rem, 0.95fr) minmax(18rem, 0.85fr) minmax(32rem, 1.25fr);
    gap: clamp(2.4rem, 5vw, 7.5rem);
    align-items: start;
    padding-right: clamp(4rem, 6vw, 7rem);
    position: relative;
    z-index: 1;
    transform: translateY(-1.45rem);
}

.site-footer h2,
.site-footer h3,
.site-footer p {
    margin: 0;
}

.site-footer__columns h2 {
    margin-bottom: 1.25rem;
    font-family: var(--font-family-calgary);
    font-size: clamp(2rem, 2.28vw, 2.85rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-footer__menu ul {
    width: max-content;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 0.72rem 2rem;
    list-style: none;
}

.site-footer__menu a,
.site-footer__contact a,
.site-footer__locations h3 {
    font-family: var(--font-family-bd-supper-bold);
    font-weight: 900;
    letter-spacing: 0;
}

.site-footer__bar {
    font-family: var(--font-family-base);
    font-weight: 400;
    letter-spacing: 0;
}

.site-footer__menu a,
.site-footer__contact a,
.site-footer__locations h3 {
    font-size: clamp(1rem, 1.08vw, 1.3rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.site-footer__contact {
    display: grid;
    gap: 0.72rem;
}

.site-footer__locations > div {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 0.72rem 2rem;
}

.site-footer__locations h3 {
    margin-bottom: 0.8rem;
}

.site-footer__locations p {
    font-family: var(--font-family-base);
    font-size: clamp(1.04rem, 1.2vw, 1.38rem);
    font-weight: 400;
    line-height: 1.35;
}

.site-footer__socials {
    width: min(100%, 30.5rem);
    min-height: 3.85rem;
    margin-top: clamp(2.8rem, 3.7vw, 3.9rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0.18rem solid var(--footer-ink);
    position: relative;
    z-index: 1;
    transform: translateY(-3rem);
}

.site-footer__socials a {
    display: grid;
    place-items: center;
    border-right: 0.18rem solid var(--footer-ink);
}

.site-footer__socials a:last-child {
    border-right: 0;
}

.site-footer__socials img {
    width: clamp(1.1rem, 1.3vw, 1.35rem);
    height: clamp(1.1rem, 1.3vw, 1.35rem);
}

.site-footer__bar {
    display: grid;
    grid-template-columns: minmax(22rem, 26rem) minmax(19rem, 1fr);
    gap: 0.7rem;
    align-items: start;
    border-top: 0.18rem solid var(--footer-ink);
    margin-top: -0.18rem;
    padding-top: 0.72rem;
    margin-bottom: 2%;
    font-size: clamp(0.84rem, 1vw, 1.12rem);
    line-height: 1.35;
    position: relative;
    z-index: 2;
    transform: translateY(-2.94rem);
}

.site-footer__legal {
    display: grid;
    gap: 0.55rem;
}

.site-footer__credit {
    justify-self: start;
}

.site-footer__wordmark {
    width: min(42vw, 48rem);
    position: absolute;
    right: 0.0rem;
    bottom: -0.4rem;
    opacity: 1;
    z-index: 0;
}

.site-footer__state {
    position: absolute;
    right: 0.25rem;
    top: clamp(-3.8rem, -2.9vw, -2.4rem);
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    z-index: 1;
    transform: translateY(-1.45rem);
}

.site-footer__state span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: clamp(1rem, 1.35vw, 1.55rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.12em;
}

.site-footer__state img {
    width: clamp(2.25rem, 3vw, 3rem);
}

@media (min-width: 1800px) {
    .site-footer {
        padding-bottom: 4.4rem;
    }

    .site-footer__wordmark {
        bottom: -1.65rem;
    }
}

@media (max-width: 1120px) {
    .site-footer {
        margin-top: 5rem;
        padding-top: 8.5rem;
        padding-inline: 1.5rem;
    }

    .site-footer__crest {
        top: -5.8rem;
        transform: translate(-50%, -1rem);
    }

    .site-footer__inner {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 0;
        transform: translateY(-1rem);
    }

    .site-footer__locations {
        grid-column: 1 / -1;
    }

    .site-footer__state {
        right: 0;
        top: auto;
        bottom: 0.8rem;
        transform: translateY(-1rem);
    }

    .site-footer__state span {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    .site-footer__wordmark {
        width: min(62vw, 34rem);
        bottom: -2rem;
    }
}

@media (max-width: 820px) {
    .site-footer {
        width: 100%;
        margin-top: 3.8rem;
        padding: 6.8rem 1rem 3rem;
        overflow: visible;
    }

    .site-footer__crest {
        width: min(13.5rem, 76vw);
        top: -2.9rem;
    }

    .site-footer__columns,
    .site-footer__locations > div,
    .site-footer__bar {
        grid-template-columns: 1fr;
    }

    .site-footer__columns {
        gap: 2.25rem;
        transform: translateY(-0.75rem);
    }

    .site-footer h2 {
        margin-bottom: 1.25rem;
    }

    .site-footer__menu ul {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .site-footer__socials {
        min-height: 3.8rem;
        margin-top: 2.35rem;
        transform: translateY(-1.4rem);
    }

    .site-footer__bar {
        transform: translateY(-1.4rem);
        padding-bottom: 6.2rem;
    }

    .site-footer__credit {
        justify-self: start;
    }

    .site-footer__wordmark {
        width: min(20rem, 92vw);
        max-width: none;
        right: 0;
        bottom: 0rem;
    }

    .site-footer__state {
        display: none;
    }
}
