/* =========================================================
   JUPITER BLUE — FOOTER
   Secure Hub register applied site-wide. Uses tokens from brand.css.
   Loaded after Nav.css; sits underneath every page.

   Design intent:
   - Sits on --paper-2 (a half-step lift from page) so the footer
     reads as foundation without resorting to a dark band.
   - Editorial typography throughout. Display wordmark. Tiny ALL-CAPS
     wide-tracked labels for column heads.
   - Hairline grid between columns at desktop. Drops to single column
     on mobile, no fuss.
   - Payment/social icons monochrome at rest, colour-on-group-hover.
     They read as proof, not decoration.
   ========================================================= */

.jb-main-footer {
    background: var(--paper-2);
    color: var(--ink);
    border-top: 1px solid var(--line);
    margin-top: 120px;
    font-feature-settings: "ss01", "tnum";
}

/* =========================================================
   1. CONTAINER + COLUMN GRID
   Hairline dividers between columns at desktop, dropped on mobile.
   ========================================================= */
.jb-footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 40px 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 0;
}

.jb-footer-col {
    padding: 0 40px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.jb-footer-col:first-child {
    padding-left: 0;
    border-left: none;
}
.jb-footer-col:last-child {
    padding-right: 0;
}

/* =========================================================
   2. BRAND COLUMN — wordmark, hours, social, payments
   ========================================================= */
.jb-footer-brand { gap: 40px; }

.jb-footer-logo {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: var(--tracking-tighter);
    color: var(--ink);
    line-height: 0.9;
    margin: 0;
}
.jb-footer-logo span {
    color: var(--jb-blue);
}

/* Opening hours — mini spec table.
   Day on left, time on right. Tabular numerals so the times line up. */
.jb-footer-hours h5,
.jb-footer-social h5,
.jb-footer-payments h5 {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 16px;
}

.jb-footer-hours dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 24px;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums slashed-zero;
    line-height: 1.4;
}
.jb-footer-hours dt {
    color: var(--ink-3);
    font-weight: 500;
}
.jb-footer-hours dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
}
.jb-footer-hours .jb-closed {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
}

/* =========================================================
   3. SOCIAL + PAYMENT ICONS
   Same logic: monochrome at rest, full colour when the group is hovered.
   Reads as "credentials" rather than "decoration".
   ========================================================= */
.jb-social-icons,
.jb-payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.jb-social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--ink-3);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.jb-social-icons a:hover,
.jb-social-icons a:focus-visible {
    color: #fff;
    background: var(--jb-navy-hover);
    border-color: var(--jb-navy-hover);
    outline: none;
}
body[data-theme="customer"] .jb-social-icons a:hover,
body[data-theme="customer"] .jb-social-icons a:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.jb-footer-reviews{margin-top:20px;}
.jb-footer-rev{display:inline-flex;align-items:baseline;gap:8px;text-decoration:none;color:inherit;}
.jb-footer-rev__stars{color:var(--jb-accent);letter-spacing:1px;font-size:.9rem;}
.jb-footer-rev__score{font-weight:800;font-variant-numeric:tabular-nums;}
.jb-footer-rev__count{color:var(--ink-3,#888);font-size:.82rem;}
.jb-footer-rev__by{display:block;margin-top:6px;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-4,#999);}
/* Payment icons — coloured SVGs greyscaled at rest.
   Hover the whole group and the colours flush back in. */
.jb-payment-icons img {
    height: 22px;
    width: auto;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 240ms ease, filter 240ms ease;
}
.jb-footer-payments:hover .jb-payment-icons img,
.jb-footer-payments:focus-within .jb-payment-icons img {
    opacity: 1;
    filter: grayscale(0);
}

/* In trade (dark) theme, the greyscale SVGs need a small lift
   so they remain visible at rest. */
body[data-theme="trade"] .jb-payment-icons img {
    filter: grayscale(1) invert(0.85) brightness(1.1);
    opacity: 0.6;
}
body[data-theme="trade"] .jb-footer-payments:hover .jb-payment-icons img,
body[data-theme="trade"] .jb-footer-payments:focus-within .jb-payment-icons img {
    filter: grayscale(0) invert(0) brightness(1);
    opacity: 1;
}

/* =========================================================
   4. LINK COLUMNS — Customer Info / Our Company / Legal & Support
   ========================================================= */
.jb-footer-col h4 {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 24px;
}

.jb-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jb-footer-col ul a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: var(--tracking-tight);
    line-height: 1.3;
    transition: color 180ms ease;
    position: relative;
    display: inline-block;
}
.jb-footer-col ul a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--jb-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms var(--ease-out);
}
.jb-footer-col ul a:hover,
.jb-footer-col ul a:focus-visible {
    color: var(--jb-blue);
    outline: none;
}
.jb-footer-col ul a:hover::after,
.jb-footer-col ul a:focus-visible::after {
    transform: scaleX(1);
}

/* =========================================================
   5. BOTTOM STRIP — copyright, registered office
   Almost a colophon. Tiny, wide-tracked, quiet.
   ========================================================= */
.jb-footer-bottom {
    border-top: 1px solid var(--line);
    background: var(--paper-2);
}
.jb-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    font-size: 0.66rem;
    color: var(--ink-3);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    font-weight: 500;
}
.jb-copyright {
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
    font-weight: 600;
    white-space: nowrap;
}
.jb-reg-details {
    text-align: right;
    line-height: 1.7;
    font-size: 0.62rem;
    text-transform: none;
    letter-spacing: var(--tracking-tight);
    font-weight: 400;
}

/* =========================================================
   6. BACK-TO-TOP BUTTON
   Square, thin border, sits bottom-right. Same hover commit as
   the matrix buttons (navy fill, white text).
   ========================================================= */
#backToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font-size: 0.78rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 240ms var(--ease-out),
        transform 240ms var(--ease-out),
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
    z-index: 100;
}
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#backToTop:hover,
#backToTop:focus-visible {
    background: var(--jb-navy-hover);
    border-color: var(--jb-navy-hover);
    color: #fff;
    outline: none;
}
body[data-theme="customer"] #backToTop:hover,
body[data-theme="customer"] #backToTop:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
/* Rotated arrow rather than chevron — same family as matrix table arrows */
#backToTop .fa-arrow-up {
    transition: transform 240ms var(--ease-out);
}
#backToTop:hover .fa-arrow-up,
#backToTop:focus-visible .fa-arrow-up {
    transform: translateY(-2px);
}
.Jupiter_Spot{
	position: relative;
	top: -26px;
	right: 8px;
}
.Jupiter_Spot img{
	width: 36px;
}
/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .jb-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 56px 0;
        padding: 64px 32px 48px;
    }
    .jb-footer-col {
        padding: 0 24px;
    }
    .jb-footer-col:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }
    .jb-footer-col:nth-child(even) {
        padding-right: 0;
    }
    .jb-footer-brand {
        grid-column: 1 / -1;
        border-left: none;
        padding: 0 0 48px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 8px;
    }
	.Jupiter_Spot{
	position: relative;
	top: -24px;
	right: 10px;
}
.Jupiter_Spot img{
	width: 30px;
}
}

@media (max-width: 700px) {
    .jb-main-footer { margin-top: 80px; }
    .jb-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 24px 40px;
    }
    .jb-footer-col {
        padding: 0;
        border-left: none;
    }
    .jb-footer-brand {
        gap: 32px;
        padding: 0 0 40px;
    }
    .jb-bottom-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
        text-align: left;
    }
    .jb-reg-details { text-align: left; }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   8. MOTION-REDUCED USERS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .jb-footer-col ul a,
    .jb-footer-col ul a::after,
    .jb-social-icons a,
    .jb-payment-icons img,
    #backToTop,
    #backToTop .fa-arrow-up {
        transition: none !important;
    }
}
