/* =========================================================
   JORDANPORTAL FOOTER
   Charcoal and gold footer matching the new public design
   ========================================================= */

.jp-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 86% 8%,
            rgba(245, 173, 18, 0.08),
            transparent 28%
        ),
        #17191d;
    color: rgba(255, 255, 255, 0.66);
}

.jp-footer::before {
    position: absolute;
    top: -230px;
    right: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(245, 173, 18, 0.12);
    border-radius: 50%;
    content: "";
}

.jp-footer::after {
    position: absolute;
    bottom: -330px;
    left: -210px;
    width: 600px;
    height: 600px;
    background: rgba(245, 173, 18, 0.025);
    border-radius: 50%;
    content: "";
}


/* ---------------------------------------------------------
   Main footer layout
   --------------------------------------------------------- */

.jp-footer-inner {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(calc(100% - 64px), 1400px);
    margin: 0 auto;
    padding: 72px 0 52px;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(180px, 0.55fr)
        minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
}


/* ---------------------------------------------------------
   Left column
   --------------------------------------------------------- */

.jp-footer-left h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.jp-footer-left > p {
    max-width: 410px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.95rem;
    line-height: 1.75;
}

.jp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 22px;
}

.jp-footer-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.83rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.17s ease,
        transform 0.17s ease;
}

.jp-footer-nav a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 2px;
    background: #f5ad12;
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition:
        opacity 0.17s ease,
        transform 0.17s ease;
}

.jp-footer-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.jp-footer-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ---------------------------------------------------------
   Centre logo
   --------------------------------------------------------- */

.jp-footer-centre {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    padding: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.jp-footer-centre img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 105px;
    object-fit: contain;
    filter:
        grayscale(1)
        brightness(1.8)
        drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
}


/* ---------------------------------------------------------
   System information
   --------------------------------------------------------- */

.jp-footer-right h3 {
    margin: 0 0 19px;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.jp-footer-table {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    gap: 12px 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
}

.jp-footer-label {
    color: rgba(255, 255, 255, 0.37);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.jp-footer-value {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

.jp-footer-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #f5ad12;
    font-size: 0.78rem;
    font-weight: 850;
}

.jp-footer-status::before {
    width: 8px;
    height: 8px;
    background: #f5ad12;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(245, 173, 18, 0.11);
    content: "";
}


/* ---------------------------------------------------------
   Legal text
   --------------------------------------------------------- */

.jp-footer-legal {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 64px), 1400px);
    margin: 0 auto;
    padding: 28px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.jp-footer-legal p {
    max-width: 1100px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.73rem;
    line-height: 1.65;
}

.jp-footer-legal p:first-child {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.jp-footer-legal p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Bottom ribbon
   --------------------------------------------------------- */

.jp-footer-ribbon {
    position: relative;
    z-index: 2;
    padding: 12px 24px;
    background: #101114;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-align: center;
    text-transform: uppercase;
}

.jp-footer-ribbon::before {
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-right: 10px;
    background: #f5ad12;
    vertical-align: middle;
    content: "";
}


/* ---------------------------------------------------------
   Page height
   --------------------------------------------------------- */

body {
    min-height: 100vh;
}

.site-main {
    min-height: 0;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
    .jp-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .jp-footer-centre {
        min-height: 135px;
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        border-right: 0;
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .jp-footer-inner {
        width: min(calc(100% - 28px), 1400px);
        padding: 52px 0 38px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .jp-footer-centre {
        min-height: auto;
        padding: 30px 0;
        grid-column: auto;
        grid-row: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .jp-footer-centre img {
        max-width: 145px;
        max-height: 88px;
    }

    .jp-footer-legal {
        width: min(calc(100% - 28px), 1400px);
    }
}

@media (max-width: 430px) {
    .jp-footer-left h2 {
        font-size: 1.7rem;
    }

    .jp-footer-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .jp-footer-table {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .jp-footer-value,
    .jp-footer-status {
        margin-bottom: 10px;
    }
}