/* ==========================
   FOOTER
========================== */

.site-footer {
    margin-top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.footer-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 auto;
    padding: 16px 22px 15px;
    background:
        linear-gradient(135deg, rgba(47, 137, 199, 0.35), transparent 54%),
        #0a578f;
    border-top: 4px solid #111;
    color: #fff3ca;
}

/* Large angled halftone field covers only the upper-right portion. */
.footer-inner::before {
    content: "";
    position: absolute;
    top: -42%;
    right: -8%;
    z-index: -2;
    width: 72%;
    height: 145%;
    background:
        radial-gradient(circle, rgba(2, 29, 61, 0.58) 2.4px, transparent 2.7px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 65%);
    background-size: 13px 13px, 100% 100%;
    transform: rotate(-8deg);
}

/* A quieter diagonal screen gives the opposite corner extra depth. */
.footer-inner::after {
    content: "";
    position: absolute;
    bottom: -56%;
    left: -9%;
    z-index: -1;
    width: 58%;
    height: 112%;
    background:
        radial-gradient(circle, rgba(246, 209, 61, 0.18) 1.8px, transparent 2.1px),
        rgba(3, 45, 82, 0.46);
    background-size: 10px 10px, 100% 100%;
    border-top: 3px solid rgba(17, 17, 17, 0.42);
    transform: rotate(7deg);
}

.footer-nav {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    max-width: 1050px;
    margin: 0 auto 7px;
}

.footer-nav-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px 10px;
}

.footer-nav-group-left {
    justify-content: flex-end;
}

.footer-nav-group-right {
    justify-content: flex-start;
}

.footer-nav a {
    padding: 5px 1px;
    border-bottom: 2px solid transparent;
    color: #f6d13d;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #fff;
    border-bottom-color: #d92d1f;
}

.footer-doobie {
    display: block;
    width: 174px;
    height: auto;
    margin: 0;
    filter: drop-shadow(3px 3px 0 rgba(17, 17, 17, 0.52));
}

.footer-copy {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-main {
    margin: 0;
    color: #fff3ca;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.footer-sub {
    margin: 4px 0 0;
    color: rgba(255, 243, 202, 0.84);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
}

.footer-x-link {
    color: rgba(255, 243, 202, 0.7);
    text-decoration: none;
}

.footer-x-link:hover,
.footer-x-link:focus-visible {
    color: #f6d13d;
    text-decoration: underline;
}

.heart {
    color: #d92d1f;
    display: inline-block;
    font-size: 2.2em;
    line-height: 0;
    vertical-align: -0.14em;
}

@media (max-width: 1100px) {
    .footer-nav {
        gap: 12px;
    }

    .footer-nav-group {
        gap: 5px 8px;
    }

    .footer-nav a {
        font-size: 0.72rem;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 760px) {
    .footer-inner {
        padding: 12px 8px 11px;
    }

    .footer-inner::before {
        top: -18%;
        right: -28%;
        width: 105%;
        height: 105%;
        background-size: 11px 11px, 100% 100%;
    }

    .footer-nav {
        grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
        gap: 7px;
        margin-bottom: 6px;
    }

    .footer-nav-group {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
    }

    .footer-nav-group-left {
        align-items: flex-end;
    }

    .footer-nav-group-right {
        align-items: flex-start;
    }

    .footer-nav a {
        padding: 3px 0;
        font-size: clamp(0.53rem, 2.4vw, 0.66rem);
        text-align: center;
    }

    .footer-doobie {
        width: 132px;
    }

    .footer-main {
        font-size: 0.7rem;
    }

    .footer-sub {
        margin-top: 3px;
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }
}
