/* ============================================================
   FOOTER — koji-academy-theme/css/footer.css
   Site footer styles
   ============================================================ */

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.85);
    padding-block: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.site-footer__grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 901px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* CTA column */
.site-footer__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Footer buttons */
.site-footer__btn {
    width: 100%;
    justify-content: center;
}

/* Column 1 — brand */
.site-footer p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
    max-width: 36ch;
    margin-bottom: var(--space-xs);
}

/* Logo in footer */
.site-footer .site-logo__text {
    font-size: var(--text-xl);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}
.site-footer .custom-logo-link img {
    height: 100px;
    width: auto;
    margin-bottom: 0.75rem;
}

/* Headings */
.site-footer h3 {
    font-size: var(--text-base);
    color: #fff;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Links */
.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition);
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Nav lists */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}

/* Footer nav — quick links with parent headers */
.site-footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Top level items — styled as section headers, not links */
.site-footer nav > ul > li {
    margin-bottom: 0.75rem;
}
.site-footer nav > ul > li > a {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 0.5rem;
    cursor: default;
    pointer-events: none;
}
.site-footer nav > ul > li > a:hover {
    color: #fff;
    text-decoration: none;
}

/* Child items — regular links, indented */
.site-footer nav ul ul {
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}
.site-footer nav ul ul li {
    margin-bottom: 0.375rem;
}
.site-footer nav ul ul li a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 400;
    pointer-events: all;
    cursor: pointer;
    transition: color var(--transition);
}
.site-footer nav ul ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Bottom bar */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
}

@media (max-width: 900px) {

	.site-footer__grid {
    	grid-template-columns: 1fr 1fr;
        column-gap: var(--space-xl);
        row-gap: var(--space-lg);
    }
    
    .site-footer__cta {
    	grid-column: span 2;
    }

}

@media (max-width: 600px) {

	.site-footer__grid {
    	grid-template-columns: 1fr;
        row-gap: var(--space-lg);
    }
    
    .site-footer__cta {
    	grid-column: span 1;
    }

}