/* =========================================================
   EVERLASTING VESSELS
   Footer Component
   ========================================================= */

.site-footer {
    --footer-background: #160d1f;
    --footer-heading: #ffffff;
    --footer-text: #f7f4f8;
    --footer-link: #f1edf3;
    --footer-contact: #ffffff;
    --footer-accent: #c6f135;
    --footer-border: rgb(255 255 255 / 18%);

    position: relative;

    margin-top: auto;

    padding:
        clamp(3.5rem, 6vw, 5.5rem)
        0
        2rem;

    background: var(--footer-background);
    color: var(--footer-text);
}


/* =========================================================
   Footer Grid
   ========================================================= */

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(16rem, 1.35fr)
        minmax(10rem, 0.75fr)
        minmax(16rem, 1fr);

    align-items: start;

    gap: clamp(2.5rem, 6vw, 6rem);
}


/* =========================================================
   Brand
   ========================================================= */

.footer-brand {
    max-width: 34rem;
}

.footer-brand .site-logo {
    display: inline-block;

    margin-bottom: 1.25rem;

    text-decoration: none;
}

.footer-brand .site-logo img {
    display: block;

    width: auto;
    max-width: 11rem;
    max-height: 6rem;
    height: auto;

    object-fit: contain;
}

.footer-brand p {
    max-width: 34rem;

    margin: 0;

    color: var(--footer-text) !important;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   Footer Headings
   ========================================================= */

.site-footer .footer-heading {
    margin: 0 0 1.15rem;

    color: var(--footer-heading) !important;

    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}


/* =========================================================
   Footer Lists
   ========================================================= */

.footer-links {
    display: grid;

    gap: 0.85rem;

    padding: 0;
    margin: 0;

    list-style: none;
}

.footer-links li {
    padding: 0;
    margin: 0;
}


/* =========================================================
   Standard Footer Links
   Force readable light text over global anchor styling
   ========================================================= */

.site-footer .footer-link,
.site-footer .footer-link:link,
.site-footer .footer-link:visited,
.site-footer .footer-link:active {
    color: var(--footer-link) !important;

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;

    text-decoration: none !important;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
    color: var(--footer-accent) !important;
}


/* =========================================================
   Contact & Get Involved
   ========================================================= */

.footer-contact {
    min-width: 0;
}

.footer-contact__details {
    display: flex;

    align-items: flex-start;
    flex-direction: column;

    gap: 0.8rem;

    margin: 0 0 1.35rem;

    font-style: normal;
}


/* =========================================================
   Email / Phone Links
   Explicit specificity prevents global purple anchor styles
   ========================================================= */

.site-footer .footer-contact__item,
.site-footer .footer-contact__item:link,
.site-footer .footer-contact__item:visited,
.site-footer .footer-contact__item:active {
    display: inline-flex;

    max-width: 100%;

    align-items: center;

    gap: 0.65rem;

    color: var(--footer-contact) !important;

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;

    text-decoration: none !important;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


/* =========================================================
   Contact Icons
   ========================================================= */

.site-footer .footer-contact__item i {
    display: grid;

    width: 1.85rem;
    height: 1.85rem;

    flex: 0 0 1.85rem;

    place-items: center;

    border-radius: 50%;

    background: rgb(198 241 53 / 14%);

    color: var(--footer-accent) !important;

    font-size: 0.75rem;
}


/* =========================================================
   Contact Text
   Explicitly force span color as well
   ========================================================= */

.site-footer .footer-contact__item span {
    color: var(--footer-contact) !important;

    overflow-wrap: anywhere;
}


/* =========================================================
   Contact Hover
   ========================================================= */

.site-footer .footer-contact__item:hover,
.site-footer .footer-contact__item:focus-visible {
    color: var(--footer-accent) !important;

    transform: translateX(2px);
}

.site-footer .footer-contact__item:hover span,
.site-footer .footer-contact__item:focus-visible span {
    color: var(--footer-accent) !important;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.footer-contact__links {
    margin-top: 0.5rem;
}


/* =========================================================
   Footer Bottom
   ========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    padding-top: 1.75rem;
    margin-top: clamp(2.75rem, 5vw, 4rem);

    border-top: 1px solid var(--footer-border);
}

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

    color: var(--footer-text) !important;

    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
}

.footer-bottom p:last-child {
    text-align: right;
}


/* =========================================================
   Accessibility / Focus
   ========================================================= */

.site-footer .footer-link:focus-visible,
.site-footer .footer-contact__item:focus-visible,
.site-footer .site-logo:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 63.9375rem) {

    .site-footer {
        padding-top: 4rem;
    }

    .footer-grid {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1fr);

        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;

        max-width: 40rem;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 0.65rem;
    }

    .footer-bottom p:last-child {
        text-align: left;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 35rem) {

    .site-footer {
        padding:
            3rem
            0
            1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand .site-logo img {
        max-width: 9.5rem;
    }

    .footer-brand p {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    .site-footer .footer-heading {
        margin-bottom: 1rem;

        font-size: 1rem;
    }

    .site-footer .footer-link,
    .site-footer .footer-link:link,
    .site-footer .footer-link:visited {
        font-size: 0.92rem;
    }

    .footer-contact__details {
        gap: 0.75rem;
    }

    .site-footer .footer-contact__item,
    .site-footer .footer-contact__item:link,
    .site-footer .footer-contact__item:visited {
        font-size: 0.84rem;
    }

    .site-footer .footer-contact__item i {
        width: 1.7rem;
        height: 1.7rem;

        flex-basis: 1.7rem;
    }

    .footer-bottom {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .site-footer .footer-bottom p {
        font-size: 0.76rem;
    }
}


/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width: 24rem) {

    .site-footer .footer-contact__item {
        align-items: flex-start;

        font-size: 0.78rem;
    }

    .site-footer .footer-contact__item i {
        margin-top: 0.1rem;
    }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-footer .footer-link,
    .site-footer .footer-contact__item {
        transition: none;
    }
}