/* Jasikan Diocese — Footer */

/* ==========================================================
   13. SITE FOOTER
   ========================================================== */

.site-footer {
    position: relative;

    padding:
        clamp(54px, 6vw, 78px)
        0
        24px;

    background:
        linear-gradient(
            135deg,
            #052d14 0%,
            var(--diocese-primary-deep) 48%,
            var(--diocese-primary-dark) 100%
        );

    color: rgba(255, 255, 255, 0.86);
}

.site-footer::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--diocese-gold-dark),
            var(--diocese-gold),
            #f2cf55,
            var(--diocese-gold)
        );
}


/* ----------------------------------------------------------
   Main footer grid
   ---------------------------------------------------------- */

.site-footer-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(180px, 0.75fr)
        minmax(220px, 0.9fr);

    gap: clamp(
        36px,
        6vw,
        72px
    );
}


/* ----------------------------------------------------------
   Footer branding
   ---------------------------------------------------------- */

.footer-branding {
    min-width: 0;

    display: flex;
    align-items: flex-start;

    gap: 18px;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo .custom-logo {
    width: auto;
    max-width: 78px;
    max-height: 88px;

    object-fit: contain;
}

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

.footer-title {
    margin: 0 0 5px;

    color: var(--diocese-white);

    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-motto {
    margin: 0 0 14px;

    color: #f1cf57;

    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 700;
}

.footer-description {
    max-width: 400px;

    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.92rem;
}


/* ----------------------------------------------------------
   Footer headings
   ---------------------------------------------------------- */

.footer-heading {
    position: relative;

    margin: 0 0 18px;
    padding-bottom: 10px;

    color: var(--diocese-white);

    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.footer-heading::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;

    width: 35px;
    height: 2px;

    background: var(--diocese-gold);
}


/* ----------------------------------------------------------
   Footer navigation
   ---------------------------------------------------------- */

.footer-menu {
    margin: 0;
    padding: 0;

    display: grid;

    gap: 8px;

    list-style: none;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.84);

    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #f6d96f;

    text-decoration: none;
}


/* ----------------------------------------------------------
   Diocese Online
   ---------------------------------------------------------- */

.footer-website p {
    max-width: 320px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.9rem;
}

.footer-home-link {
    display: inline-flex;
    align-items: center;

    min-height: 40px;

    padding: 7px 13px;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: var(--radius-small);

    color: var(--diocese-white);

    font-size: 0.86rem;
    font-weight: 700;
}

.footer-home-link::after {
    content: "→";

    margin-left: 7px;
}

.footer-home-link:hover {
    border-color: var(--diocese-gold);

    background:
        rgba(255, 255, 255, 0.06);

    color: #f6d96f;

    text-decoration: none;
}


/* ----------------------------------------------------------
   Footer bottom
   ---------------------------------------------------------- */

.site-footer-bottom {
    margin-top: var(--space-7);
    padding-top: var(--space-5);

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

    gap: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.17);

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.82rem;
}

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

.site-footer-bottom__motto {
    color: rgba(241, 207, 87, 0.88);

    font-family: var(--font-heading);
    font-style: italic;
}


/* ==========================================================
   14. RESPONSIVE FOOTER
   ========================================================== */


/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .site-footer {
        padding:
            52px
            0
            22px;
    }

    .site-footer-main {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(220px, 0.75fr);

        gap:
            42px
            48px;
    }

    /*
     * Branding occupies the first column.
     * Footer navigation / Diocese Online can use
     * the remaining responsive grid naturally.
     */
    .footer-branding {
        min-width: 0;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .site-footer-bottom {
        margin-top: 48px;
    }
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .site-footer {
        padding:
            44px
            0
            22px;
    }

    /*
     * Critical mobile correction:
     * remove the desktop multi-column layout.
     */
    .site-footer-main {
        grid-template-columns: 1fr;

        gap: 38px;
    }


    /* ------------------------------------------------------
       Branding
       ------------------------------------------------------ */

    .footer-branding {
        width: 100%;

        display: grid;

        grid-template-columns:
            72px
            minmax(0, 1fr);

        align-items: start;

        gap: 16px;
    }

    .footer-logo {
        width: 72px;
    }

    .footer-logo .custom-logo {
        width: 72px;
        height: auto;

        max-width: 72px;
        max-height: none;
    }

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

    .footer-title {
        margin-bottom: 5px;

        font-size: 1.28rem;
        line-height: 1.2;
    }

    .footer-motto {
        margin-bottom: 12px;

        font-size: 0.92rem;
    }

    .footer-description {
        max-width: 100%;

        font-size: 0.9rem;
        line-height: 1.65;
    }


    /* ------------------------------------------------------
       Footer navigation / Diocese Online
       ------------------------------------------------------ */

    .footer-navigation,
    .footer-website {
        width: 100%;
        min-width: 0;
    }

    .footer-heading {
        margin-bottom: 16px;

        font-size: 1.08rem;
    }

    .footer-website p {
        max-width: 100%;

        margin:
            0
            0
            18px;

        line-height: 1.65;
    }

    .footer-home-link {
        min-height: 42px;

        padding:
            8px
            14px;
    }


    /* ------------------------------------------------------
       Footer bottom
       ------------------------------------------------------ */

    .site-footer-bottom {
        margin-top: 42px;
        padding-top: 22px;

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

        gap: 12px;

        line-height: 1.55;
    }

    .site-footer-bottom__motto {
        align-self: flex-start;
    }
}


/* ----------------------------------------------------------
   Small mobile
   ---------------------------------------------------------- */

@media (max-width: 420px) {

    .site-footer {
        padding-top: 40px;
    }

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

        gap: 14px;
    }

    .footer-logo {
        width: 64px;
    }

    .footer-logo .custom-logo {
        width: 64px;
        max-width: 64px;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .site-footer-main {
        gap: 34px;
    }
}