.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(48px, 5vw, 72px) clamp(20px, 4vw, 56px) 18px;
    background-color: #08182f;
    background-image: url('../images/footer-world.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #d7e1ed;
}

.site-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(5, 16, 34, 0.12);
    content: '';
    pointer-events: none;
}

.site-footer .footer-inner {
    width: 100%;
    max-width: 1400px;
    min-width: 0;
    margin-inline: auto;
}

.footer-brand-mast {
    display: flex;
    justify-content: center;
    margin: 0 auto clamp(34px, 4vw, 52px);
    text-align: center;
}

.footer-brand-copy {
    width: min(100%, 760px);
}

.footer-brand-mast .footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.65rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand-mast .footer-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand-mast .footer-logo-text {
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
}

.footer-brand-copy > p {
    max-width: 660px;
    margin: 0 auto;
    color: #aebed1;
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    line-height: 1.85;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(18px, 2vw, 30px);
    margin: 0;
    padding: 0;
}

.site-footer .footer-grid--five {
    width: min(100%, 1180px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-inline: auto;
}

.site-footer .footer-col {
    min-width: 0;
}

.site-footer .footer-col p.footer-col-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.55rem;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
}

.site-footer .footer-col-title .dashicons {
    width: 1.2rem;
    height: 1.2rem;
    color: #2ed98d;
    font-size: 1.2rem;
    line-height: 1;
}

.footer-link-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.48rem;
}

.site-footer .footer-col a,
.site-footer .footer-col p:not(.footer-col-title),
.site-footer .footer-directory-link {
    margin: 0;
    color: #b9c7d8;
    font-size: 0.8rem;
    line-height: 1.65;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer .footer-col a {
    position: relative;
    transition: color 160ms ease, transform 160ms ease;
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
    color: #5ee6a7;
    transform: translateX(-2px);
}

.site-footer .footer-col a:focus-visible,
.footer-social-link:focus-visible {
    outline: 2px solid #2ed98d;
    outline-offset: 3px;
}

.footer-contact-col .footer-link-stack {
    width: 100%;
    gap: 0.78rem;
}

.footer-contact-col .footer-link-stack > a,
.footer-contact-col .footer-location {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: start;
}

.footer-contact-col .footer-link-stack > a {
    align-items: center;
}

.footer-contact-col .footer-link-stack > a bdi {
    min-width: 0;
    unicode-bidi: isolate;
    direction: ltr;
}

.footer-location-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    text-align: start;
}

.footer-location-copy span + span {
    color: #93a6bb;
    font-size: 0.74rem;
    line-height: 1.45;
}

.footer-hours-time {
    unicode-bidi: isolate;
    direction: rtl;
}

.footer-hours-time bdi {
    unicode-bidi: isolate;
    direction: ltr;
}

.footer-contact-col .dashicons {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    color: #2ed98d;
    font-size: 1rem;
    line-height: 1;
}

.footer-directory-link {
    display: flex;
    width: auto;
    max-width: 100%;
    min-height: 1.55rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
}

.footer-directory-group {
    width: 100%;
}

.footer-directory-group > summary {
    cursor: pointer;
    list-style: none;
}

.footer-directory-group > summary::-webkit-details-marker {
    display: none;
}

.footer-directory-group > summary:focus-visible {
    border-radius: 4px;
    outline: 2px solid #2ed98d;
    outline-offset: 3px;
}

.footer-directory-link__mark {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(46, 217, 141, 0.38);
    border-radius: 50%;
    color: #2ed98d;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.footer-directory-group > summary .footer-directory-link__mark {
    width: 0.72rem;
    height: 0.72rem;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    overflow: hidden;
}

.footer-directory-group > summary .footer-directory-link__mark::before {
    content: "";
    width: 6px;
    height: 6px;
    border-inline-end: 1.5px solid #7ee0b3;
    border-bottom: 1.5px solid #7ee0b3;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.footer-directory-group[open] > summary .footer-directory-link__mark {
    border: 0;
    background: transparent;
    transform: none;
}

.footer-directory-group[open] > summary .footer-directory-link__mark::before {
    transform: rotate(225deg);
}

.footer-directory-panel {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    scrollbar-width: none;
    transition: grid-template-rows 260ms ease, opacity 180ms ease, margin 180ms ease;
}

.footer-directory-group[open] > .footer-directory-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    margin: 0.38rem 0 0.12rem;
}

.footer-directory-panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0.45rem 0.55rem 0.35rem;
    border-inline-start: 2px solid #2ed98d;
    background: rgba(8, 28, 48, 0.55);
    border-radius: 8px;
}

.footer-directory-overview {
    display: inline-flex;
    margin-bottom: 0.35rem !important;
    color: #5ee6a7 !important;
    font-size: 0.73rem !important;
    font-weight: 700;
}

.footer-sitemap-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-sitemap-list .footer-sitemap-list {
    margin: 0.12rem 0 0.3rem;
    padding-inline-start: 0.55rem;
    border-inline-start: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-sitemap-item > a,
.footer-sitemap-label {
    display: block;
    padding: 0.22rem 0;
    color: #c2d0e0;
    font-size: 0.78rem;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-directory-link--pending {
    color: #667991;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    margin: clamp(30px, 4vw, 46px) 0 0;
}

.footer-social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 199, 219, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    color: #dce7f3;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-social-link:hover {
    border-color: #2ed98d;
    background: #2ed98d;
    color: #062316;
    transform: translateY(-2px);
}

.footer-social-link img {
    display: block;
    width: auto;
    max-width: 19px;
    height: 18px;
    object-fit: contain;
}

.site-footer .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 'legal credit copyright';
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: clamp(24px, 3vw, 34px);
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #8fa2b8;
    font-size: 0.72rem;
    direction: ltr;
}

.site-footer .footer-bottom p {
    margin: 0;
}

.site-footer .footer-bottom > p:first-child {
    grid-area: copyright;
    justify-self: end;
    direction: rtl;
    text-align: right;
}

.site-footer .footer-legal {
    display: flex;
    grid-area: legal;
    width: calc(100% - 72px);
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 1.25rem;
    direction: rtl;
}

.site-footer .footer-bottom a {
    color: #aebed1;
    text-decoration: none;
}

.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible {
    color: #2ed98d;
}

.site-footer .footer-credit {
    grid-area: credit;
    width: auto;
    justify-self: center;
    padding: 0;
    border: 0;
    direction: rtl;
    text-align: center;
}

.site-footer .footer-credit-label {
    color: #2ed98d;
    font-weight: 700;
}

.site-footer .footer-bottom .footer-credit a,
.site-footer .footer-bottom .footer-credit a.footer-credit-brand,
.site-footer .footer-credit-brand {
    color: #4DAFE3;
    font-weight: 700;
}

.site-footer .footer-bottom .footer-credit a:hover,
.site-footer .footer-bottom .footer-credit a:focus-visible,
.site-footer .footer-bottom .footer-credit a.footer-credit-brand:hover,
.site-footer .footer-bottom .footer-credit a.footer-credit-brand:focus-visible,
.site-footer .footer-credit-brand:hover,
.site-footer .footer-credit-brand:focus-visible {
    color: #79c8ef;
}

@media (max-width: 1200px) {
    .site-footer .footer-grid--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap-block: 2.2rem;
    }
}

@media (max-width: 820px) {
    .site-footer {
        background-position: 68% center;
    }

    .site-footer::before {
        background: rgba(5, 16, 34, 0.36);
    }

    .site-footer .footer-grid,
    .site-footer .footer-grid--five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .footer-bottom {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'copyright'
            'credit'
            'legal';
        justify-items: center;
        text-align: center;
    }

    .site-footer .footer-credit {
        grid-column: auto;
        width: auto;
        text-align: center;
    }

    .site-footer .footer-legal {
        width: auto;
        justify-content: center;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 38px 20px 18px;
        background-position: 62% center;
    }

    .footer-brand-mast {
        margin-bottom: 2.25rem;
    }

    .footer-brand-mast .footer-logo-img {
        width: 46px;
        height: 46px;
    }

    .site-footer .footer-grid,
    .site-footer .footer-grid--five,
    .site-footer .footer-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer .footer-grid {
        gap: 1.8rem;
    }

    .site-footer .footer-col p.footer-col-title {
        margin-bottom: 1.2rem;
    }

    .footer-link-stack {
        gap: 0.4rem;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .site-footer .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.65rem 1rem;
    }

    .site-footer .footer-credit {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer a {
        transition: none !important;
    }

    .footer-directory-panel,
    .footer-directory-group > summary .footer-directory-link__mark::before {
        transition: none;
    }
}
