/* Warriors Academy footer — ink surface, widescreen contour map, animated
   accent rule, glowing social pills and a subtle rise-in on scroll.
   Layered over the base .footer rules in index-style.css. */

.footer {
    --footer-accent: var(--color-orange, #e87722);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: clamp(48px, 6vw, 80px);
    padding-right: var(--section-edge-pad, clamp(20px, 6vw, 90px));
    padding-left: var(--section-edge-pad, clamp(20px, 6vw, 90px));
    position: relative;
    display: block;
    overflow: hidden;
    background-color: transparent;
    isolation: isolate;
}

.footer * {
    box-sizing: border-box;
}

.footer_nowapp {
    padding-right: var(--section-edge-pad, clamp(20px, 6vw, 90px)) !important;
    padding-left: var(--section-edge-pad, clamp(20px, 6vw, 90px)) !important;
    padding-top: clamp(48px, 6vw, 80px) !important;
    padding-bottom: clamp(48px, 6vw, 80px) !important;
}

/* Widescreen contour map with vertical grid — same asset as icon boxes band */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-ink, #121820);
    background-image: url("../images/contour-map-widescreen-v3.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    z-index: -1;
}

@media screen and (max-width: 767px) {
    .footer::before {
        background-size: 100% 100%;
        background-position: center;
    }
}

@media screen and (max-width: 560px) {
    .footer_addresses {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer_addresses > .footer_address_holder,
    .footer_addresses > .footer_address_holder:first-child,
    .footer_sitemap {
        text-align: center;
    }

    .footer_addresses .footer_address_header,
    .footer_addresses > .footer_address_holder:first-child .footer_address_header,
    .footer_sitemap .footer_address_header {
        padding: 14px 0 5px;
        text-align: center;
    }

    .footer_addresses .footer_address_header::before,
    .footer_addresses > .footer_address_holder:first-child .footer_address_header::before,
    .footer_sitemap .footer_address_header::before {
        left: 50%;
        right: auto;
        top: 0;
        margin-left: -3px;
        margin-top: 0;
    }

    .footer_sitemap_list {
        align-items: center;
    }

    .footer_sitemap_summary {
        justify-content: center;
    }

    .footer_sitemap_sublist {
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media screen and (max-width: 560px) {
    .footer_addresses {
        grid-template-columns: 1fr;
    }

    .footer_addresses > .footer_address_holder,
    .footer_addresses .footer_logo_holder {
        grid-column: 1;
    }
}

/* Orange glow bleeding down from the top edge */
.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--footer-accent) 22%,
        var(--color-orange-bright, #f08832) 50%,
        var(--footer-accent) 78%,
        transparent 100%);
    background-size: 200% 100%;
    animation: footerAccentSlide 6s ease-in-out infinite;
    z-index: 1;
}

.footer > * {
    position: relative;
    z-index: 1;
}

/* ---- Social row ---- */
.footer_socials {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 0 clamp(24px, 4vw, 36px);
    white-space: normal;
}

.footer_socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer_socials i,
.footer_socials .mc-svg,
.footer_socials svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--color-text-inverse, #fff);
    background-color: rgba(255, 255, 255, 0.03);
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.footer_socials a:hover i,
.footer_socials a:focus-visible i,
.footer_socials a:hover .mc-svg,
.footer_socials a:hover svg,
.footer_socials a:focus-visible .mc-svg,
.footer_socials a:focus-visible svg {
    color: var(--color-text-inverse, #fff);
    background-color: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(var(--color-orange-rgb, 232, 119, 34), 0.4);
    outline: none;
}

@media screen and (max-width: 767px) {
    .footer_socials i,
    .footer_socials .mc-svg,
    .footer_socials svg {
        width: 38px;
        height: 38px;
        padding: 9px;
    }
}

/* ---- Address / branding block ---- */
.footer_addresses {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: start;
    gap: clamp(24px, 5vw, 56px);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(24px, 4vw, 40px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer_addresses .footer_logo_holder {
    align-self: center;
}

@media screen and (max-width: 1080px) {
    .footer_addresses {
        grid-template-columns: 1fr 1fr;
    }

    .footer_addresses .footer_logo_holder {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer_sitemap {
        text-align: left;
    }

    .footer_sitemap_list {
        align-items: flex-start;
    }

    .footer_sitemap_summary {
        justify-content: flex-start;
    }

    .footer_sitemap_sublist {
        align-items: flex-start;
        padding-left: 14px;
        padding-right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        border-right: 0;
    }

    .footer_sitemap .footer_address_header {
        position: relative;
        margin-bottom: 2px;
        padding: 0 0 0 14px;
    }

    .footer_sitemap .footer_address_header::before {
        left: 0;
        right: auto;
        top: 50%;
        margin-top: -3px;
    }
}

.footer_address_holder {
    display: block;
    width: auto;
    color: var(--color-text-inverse-muted, #d1d1d1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer_address_header {
    position: relative;
    margin-bottom: 8px;
    padding-left: 16px;
    color: var(--color-text-inverse, #fff);
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer_address_header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background-color: var(--footer-accent);
    box-shadow: 0 0 10px rgba(var(--color-orange-rgb, 232, 119, 34), 0.8);
    animation: footerDotPulse 2.6s ease-in-out infinite;
}

.footer_address_info {
    display: block;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
    font-size: 0.95rem;
}

/* ---- Sitemap column ---- */
.footer_sitemap_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer_sitemap_link {
    display: inline-block;
    color: var(--color-text-inverse-muted, #d1d1d1);
    font-size: 0.95rem;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.25s ease;
}

a.footer_sitemap_link:hover,
a.footer_sitemap_link:focus-visible {
    color: var(--color-text-inverse, #fff);
    outline: none;
}

.footer_sitemap_details {
    display: block;
}

.footer_sitemap_summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    cursor: pointer;
    list-style: none;
}

.footer_sitemap_summary::-webkit-details-marker {
    display: none;
}

.footer_sitemap_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-text-inverse-muted, #d1d1d1);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.footer_sitemap_toggle_icon {
    width: 10px !important;
    height: 10px !important;
}

.footer_sitemap_details[open] .footer_sitemap_toggle {
    transform: rotate(180deg);
    background-color: var(--footer-accent);
    border-color: var(--footer-accent);
    color: var(--color-text-inverse, #fff);
}

.footer_sitemap_sublist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer_sitemap_child_link {
    font-size: 0.88rem;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .footer_sitemap_toggle {
        transition: none;
    }
}

/* Branded footer logo — same concept as header, static and sized for the column */
.footer_logo_holder {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer_logo {
    display: inline-flex;
    text-decoration: none;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}

.footer_logo_branded {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer_logo_mark {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.footer_logo_mark_ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    transform: scale(1.24);
    transform-origin: center;
    z-index: 0;
}

.footer_logo_mark_ring circle {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.footer_logo_mark_inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .footer_address_holder .footer_logo_mark_image {
    width: 160px;
    height: 160px;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    float: none;
    display: block;
    object-fit: contain;
    filter: none;
}

.footer_logo_text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.footer_logo_warriors,
.footer_logo_academy {
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer_logo_warriors {
    color: var(--color-text-inverse, #fff);
    font-size: 2rem;
}

.footer_logo_academy {
    color: var(--footer-accent);
    font-size: 1.5rem;
    margin-top: 4px;
}

@media screen and (max-width: 767px) {
    .footer_addresses {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer_address_holder {
        width: 100%;
    }

    .footer_address_header {
        padding-left: 0;
        padding-top: 14px;
    }

    .footer_address_header::before {
        left: 50%;
        top: 0;
        margin-left: -3px;
        margin-top: 0;
    }

    .footer_logo_holder {
        justify-content: center;
    }

    .footer_logo {
        margin: 0 auto;
    }

    .footer_logo_mark {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
    }

    .footer .footer_address_holder .footer_logo_mark_image {
        width: 120px;
        height: 120px;
    }

    .footer_logo_warriors {
        font-size: 1.6rem;
    }

    .footer_logo_academy {
        font-size: 1.2rem;
    }

    .footer_sitemap_list {
        align-items: center;
    }

    .footer_sitemap_summary {
        justify-content: center;
        gap: 6px;
    }

    .footer_sitemap_sublist {
        align-items: center;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 8px;
    }
}

/* ---- Privacy / credentials / credits ---- */
.footer .privacy_policy {
    display: block;
    width: 100%;
    padding: clamp(20px, 3vw, 28px) 0 14px;
    text-align: center;
}

.footer .privacy_policy a,
.footer .privacy_policy a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--color-text-inverse-muted, #d1d1d1);
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.footer .privacy_policy a svg,
.footer .credits svg,
.footer .credentials svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px;
    display: inline-block;
    vertical-align: -2px;
}

.footer .privacy_policy a:hover,
.footer .privacy_policy a:visited:hover {
    color: var(--color-text-inverse, #fff);
    background-color: rgba(var(--color-orange-rgb, 232, 119, 34), 0.14);
    border-color: var(--footer-accent);
}

.footer .credentials {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--color-text-inverse-muted, #d1d1d1);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer .credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    text-align: center;
    color: var(--color-text-inverse-muted, #d1d1d1);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer .credentials {
    padding-bottom: 6px;
}

.footer .credits {
    padding-bottom: clamp(16px, 3vw, 24px);
}

.footer .credits a,
.footer .credits a:visited {
    color: var(--footer-accent);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer .credits a:hover,
.footer .credits a:visited:hover {
    color: var(--color-orange-bright, #f08832);
    text-decoration: underline;
}

/* ---- Animations ---- */
@keyframes footerAccentSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes footerDotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .footer::after,
    .footer_address_header::before {
        animation: none;
    }

    .footer_socials a:hover i {
        transform: none;
    }
}

@media screen and (max-width: 1080px) {
    .footer_addresses {
        grid-template-columns: 1fr 1fr;
    }

    .footer_addresses .footer_logo_holder {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer_sitemap {
        text-align: left;
    }

    .footer_sitemap_list {
        align-items: flex-start;
    }

    .footer_sitemap_summary {
        justify-content: flex-start;
    }

    .footer_sitemap_sublist {
        align-items: flex-start;
        padding-left: 14px;
        padding-right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        border-right: 0;
    }

    .footer_sitemap .footer_address_header {
        padding: 0 0 0 14px;
    }

    .footer_sitemap .footer_address_header::before {
        left: 0;
        right: auto;
    }
}

@media screen and (max-width: 767px) {
    .footer_addresses > .footer_address_holder:first-child {
        text-align: left;
    }

    .footer_addresses > .footer_address_holder:first-child .footer_address_header {
        padding: 0 0 0 16px;
        text-align: left;
    }

    .footer_addresses > .footer_address_holder:first-child .footer_address_header::before {
        left: 0;
        top: 50%;
        margin-top: -3px;
    }
}

@media screen and (max-width: 560px) {
    .footer_addresses {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {
    .footer_addresses,
    .footer_addresses > .footer_address_holder,
    .footer_addresses > .footer_address_holder:first-child,
    .footer_sitemap {
        text-align: center;
    }

    .footer_addresses .footer_address_header,
    .footer_addresses > .footer_address_holder:first-child .footer_address_header,
    .footer_sitemap .footer_address_header {
        padding: 14px 0 5px;
        text-align: center;
    }

    .footer_addresses .footer_address_header::before,
    .footer_addresses > .footer_address_holder:first-child .footer_address_header::before,
    .footer_sitemap .footer_address_header::before {
        left: 50%;
        right: auto;
        top: 0;
        margin-left: -3px;
        margin-top: 0;
    }

    .footer_sitemap_list {
        align-items: center;
    }

    .footer_sitemap_summary {
        justify-content: center;
    }

    .footer_sitemap_sublist {
        align-items: center;
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}
