/* ==========================================================================
   Site footer — includes/components/site-footer.php
   Loaded on the homepage (landing.css) and inner pages (style.css), so it is
   self-contained: everything is scoped to .jnm-foot with its own tokens, and
   it resets the global p / a rules (colour, 44px min-height) that leak in.
   ========================================================================== */
.jnm-foot {
    --jf-bg:       #032A1E;   /* deep forest (2026 design) */
    --jf-ink:      #FFFFFF;
    --jf-text:     #B9D3C4;
    --jf-muted:    #9DBFAE;
    --jf-line:     rgba(245, 241, 232, .10);
    --jf-accent:   #FFB627;   /* sun yellow */
    --jf-glow:     #F2C14E;
    --jf-wa:       #25D366;
    position: relative;
    background: var(--jf-bg);
    color: var(--jf-text);
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;         /* style.css centres footer text on phones */
    overflow: hidden;
}
.jnm-foot h4, .jnm-foot p, .jnm-foot__grid, .jnm-foot__contact { text-align: left; }
.jnm-foot *, .jnm-foot *::before, .jnm-foot *::after { box-sizing: border-box; }
/* Reset the site-wide p / a rules inside the footer */
.jnm-foot p { margin: 0; color: inherit; font-size: 14px; line-height: 1.7; font-family: inherit; }
.jnm-foot a { color: inherit; text-decoration: none; min-height: 0; font-size: inherit; font-weight: inherit; line-height: inherit; font-family: inherit; }

/* ---------- Jungle silhouette behind the content ----------
   A low treeline anchored to the bottom of the footer, a few shades lighter than
   the background so it reads as depth without fighting the text. */
.jnm-foot__scene {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 300px;
    z-index: 0;
    pointer-events: none;
}
.jnm-foot__scene::after {      /* fade the treeline tops into the footer colour */
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 45%;
    background: linear-gradient(180deg, var(--jf-bg) 0%, rgba(3, 42, 30, 0) 100%);
}
.jnm-foot__jungle { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* fireflies drifting among the trees */
.jnm-foot__fly {
    position: absolute; z-index: 1;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--jf-glow);
    box-shadow: 0 0 8px 3px rgba(242, 193, 78, .5);
    opacity: 0;
    animation: jf-glow 5s ease-in-out infinite;
}
.jnm-foot__fly:nth-of-type(1) { left: 8%;  top: 62%; animation-delay: 0s; }
.jnm-foot__fly:nth-of-type(2) { left: 24%; top: 74%; animation-delay: 1.4s; }
.jnm-foot__fly:nth-of-type(3) { left: 43%; top: 58%; animation-delay: 2.6s; }
.jnm-foot__fly:nth-of-type(4) { left: 61%; top: 70%; animation-delay: .8s; }
.jnm-foot__fly:nth-of-type(5) { left: 78%; top: 55%; animation-delay: 3.2s; }
.jnm-foot__fly:nth-of-type(6) { left: 92%; top: 66%; animation-delay: 2s; }

@keyframes jf-glow {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    40%      { opacity: .9; }
    60%      { opacity: .55; transform: translate(6px, -8px); }
}

/* ---------- Content ---------- */
.jnm-foot__in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 72px 16px 0; }

.jnm-foot__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}
.jnm-foot h4 {
    color: var(--jf-ink);
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-variation-settings: "opsz" 48;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.2px;
    line-height: 1.2;
    margin: 0 0 18px;
    padding: 0;
    text-transform: none;
    position: relative;
}
.jnm-foot h4::after {     /* small marigold rule under each heading */
    content: '';
    display: block;
    width: 28px; height: 2px;
    margin-top: 10px;
    background: var(--jf-accent);
    border-radius: 2px;
}

/* Brand column */
.jnm-foot__logo { height: 44px; width: auto; display: block; margin-bottom: 18px; }
.jnm-foot .jnm-foot__blurb { color: var(--jf-text); max-width: 34ch; margin-bottom: 22px; }
.jnm-foot__social { display: flex; gap: 10px; flex-wrap: wrap; }
.jnm-foot__social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(245, 241, 232, .07);
    border: 1px solid rgba(245, 241, 232, .14);
    color: var(--jf-ink); font-size: 15px;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.jnm-foot__social a:hover { background: var(--jf-accent); border-color: var(--jf-accent); color: #fff; transform: translateY(-2px); }

/* Link lists */
.jnm-foot__links { display: flex; flex-direction: column; gap: 4px; }
.jnm-foot__links a {
    display: inline-flex; align-items: center;
    padding: 5px 0;
    color: var(--jf-text);
    transition: color .2s, transform .2s;
}
.jnm-foot__links a:hover { color: var(--jf-accent); transform: translateX(4px); }

/* Contact — any number of phones / emails */
.jnm-foot__contact { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.jnm-foot__contact li { display: flex; align-items: flex-start; gap: 12px; }
.jnm-foot__contact i { color: var(--jf-accent); font-size: 14px; width: 18px; margin-top: 4px; flex: none; text-align: center; }
.jnm-foot__contact span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; color: var(--jf-text); line-height: 1.55; }
.jnm-foot__contact a { color: var(--jf-ink); transition: color .2s; }
.jnm-foot__contact a:hover { color: var(--jf-accent); }
.jnm-foot__contact small { color: var(--jf-muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }

.jnm-foot__wa {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px;
    background: var(--jf-wa); color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .6);
    transition: background .25s, transform .25s;
}
.jnm-foot__wa:hover { background: #1ebe57; transform: translateY(-2px); }

/* Bottom bar */
.jnm-foot__base {
    border-top: 1px solid var(--jf-line);
    padding: 22px 0 26px;
    position: relative;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.jnm-foot__base p { color: var(--jf-muted); font-size: 13px; }
.jnm-foot__base a { color: var(--jf-ink); font-weight: 600; }
.jnm-foot__base a:hover { color: var(--jf-accent); }
.jnm-foot .jnm-foot__note { max-width: 60ch; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .jnm-foot__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
}
@media (max-width: 575.98px) {
    .jnm-foot__scene { height: 200px; }
    .jnm-foot__in { padding-top: 52px; }
    .jnm-foot__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-bottom: 36px; }
    .jnm-foot__col--brand, .jnm-foot__col:last-child { grid-column: 1 / -1; }   /* link lists sit side by side */
    .jnm-foot h4 { font-size: 18px; }
    .jnm-foot__base { flex-direction: column; align-items: flex-start; gap: 10px; }
    .jnm-foot .jnm-foot__note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .jnm-foot__fly { animation: none; }
    .jnm-foot__fly { opacity: .6; }
}

/* 2026: sun-yellow stripe across the top, as in the design */
.jnm-foot { border-top: 6px solid var(--jf-accent); }
.jnm-foot h4 { font-family: var(--font-display, 'Poppins', sans-serif); }
