/**
 * Moyo Footer — v2.1.0
 *
 * File: masterstudy-child/assets/css/moyo-footer.css
 * Styles the global footer rendered by masterstudy-child/footer.php.
 * Exact match to docs/preview/hero-preview.html footer design.
 *
 * All values use moyo-brand.css variables — zero hardcoded colors/sizes.
 */


/* ===================================================
   1. FOOTER WRAPPER — full-width dark navy
   =================================================== */
.moyo-footer {
	position: relative;
	background: var(--moyo-hero-bg, #0c2340) !important;
	padding: 72px 0 0;
	overflow: hidden;
	width: 100%;
}


/* ===================================================
   2. INNER GRID — 4-column layout
   =================================================== */
.moyo-footer__inner {
	max-width: var(--moyo-container-max, 1200px);
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 48px;
}


/* ===================================================
   3. COLUMN 1 — Brand
   =================================================== */
.moyo-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.moyo-footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
}
.moyo-footer__logo-icon {
	color: var(--moyo-primary, #2563eb);
	transition: transform 0.3s ease;
}
.moyo-footer__logo:hover .moyo-footer__logo-icon {
	transform: scale(1.08);
}
.moyo-footer__logo-img {
	max-height: 70px;
	width: auto;
	display: block;
}
.moyo-footer__logo-text {
	font-family: var(--moyo-font-heading, 'DM Serif Display', serif) !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	color: var(--moyo-on-primary, #ffffff) !important;
	line-height: 1 !important;
}
.moyo-footer__brand-desc {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.65) !important;
	margin: 0;
}


/* ===================================================
   4. SOCIAL ICONS — circular with hover lift + glow
   =================================================== */
.moyo-footer__socials {
	display: flex;
	gap: 10px;
}
.moyo-footer__social {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: all 0.3s ease;
}
.moyo-footer__social:hover {
	border-color: var(--moyo-primary, #2563eb);
	color: var(--moyo-primary, #2563eb);
	background: rgba(var(--moyo-primary-rgb, 37, 99, 235), 0.1);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(var(--moyo-primary-rgb, 37, 99, 235), 0.2);
}
.moyo-footer__social svg {
	width: 16px;
	height: 16px;
}


/* ===================================================
   5. COLUMN HEADINGS
   =================================================== */
.moyo-footer__heading {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 1.5px !important;
	color: var(--moyo-on-primary, #ffffff) !important;
	margin: 0 0 24px 0 !important;
}


/* ===================================================
   6. LINK LISTS — Quick Links & Programs (Col 2 & 3)
   wp_nav_menu() outputs: <ul class="moyo-footer__links"><li><a>
   =================================================== */
.moyo-footer__links {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.moyo-footer__links li {
	margin-bottom: 12px !important;
	padding: 0 !important;
	list-style: none !important;
}
.moyo-footer__links li::before {
	display: none !important;
}
.moyo-footer__links li a {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.65) !important;
	text-decoration: none !important;
	transition: color 0.25s ease, padding-left 0.25s ease !important;
	display: inline-block !important;
	padding: 0 !important;
}
.moyo-footer__links li a:hover {
	color: var(--moyo-primary, #2563eb) !important;
	padding-left: 4px !important;
	text-decoration: none !important;
}
/* Flatten any sub-menus */
.moyo-footer__links .sub-menu {
	padding-left: 0 !important;
	margin-left: 0 !important;
	list-style: none !important;
}


/* ===================================================
   7. COLUMN 4 — Contact
   =================================================== */
.moyo-footer__contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.moyo-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	font-family: var(--moyo-font-body, 'Poppins', sans-serif);
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.65) !important;
	line-height: 1.6;
}
.moyo-footer__contact-item a {
	color: rgba(255, 255, 255, 0.65) !important;
	text-decoration: none;
	transition: color 0.25s ease;
}
.moyo-footer__contact-item a:hover {
	color: var(--moyo-primary, #2563eb) !important;
}
.moyo-footer__contact-icon {
	min-width: 18px;
	color: var(--moyo-primary, #2563eb);
	margin-top: 2px;
	transition: transform 0.25s ease;
}
.moyo-footer__contact-icon svg {
	width: 18px;
	height: 18px;
}
.moyo-footer__contact-item:hover .moyo-footer__contact-icon {
	transform: scale(1.15);
}


/* ===================================================
   8. COPYRIGHT BAR
   =================================================== */
.moyo-footer__bottom {
	margin-top: 56px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px 0;
}
.moyo-footer__bottom-inner {
	max-width: var(--moyo-container-max, 1200px);
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.moyo-footer__copyright {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif);
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6) !important;
	margin: 0;
}

/* Legal links — wp_nav_menu outputs <ul class="moyo-footer__legal-list"> */
.moyo-footer__legal {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.moyo-footer__legal-list {
	display: flex !important;
	gap: 8px !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.moyo-footer__legal-list li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.moyo-footer__legal-list li::before {
	display: none !important;
}
/* Dot separator between legal links */
.moyo-footer__legal-list li + li::before {
	content: "\00B7" !important;
	display: inline !important;
	color: rgba(255, 255, 255, 0.15) !important;
	font-size: 13px !important;
	margin-right: 8px !important;
}
.moyo-footer__legal-list li a {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.6) !important;
	text-decoration: none !important;
	transition: color 0.25s ease !important;
	padding: 0 !important;
}
.moyo-footer__legal-list li a:hover {
	color: var(--moyo-primary, #2563eb) !important;
}
.moyo-footer__powered {
	font-family: var(--moyo-font-body, 'Poppins', sans-serif);
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
}


/* ===================================================
   9. FOCUS STYLES — keyboard accessibility (WCAG 2.1)
   =================================================== */
.moyo-footer__links li a:focus-visible,
.moyo-footer__contact-item a:focus-visible,
.moyo-footer__legal-list li a:focus-visible {
	outline: 2px solid var(--moyo-primary, #2563eb) !important;
	outline-offset: 2px;
	border-radius: 2px;
}
.moyo-footer__social:focus-visible {
	outline: 2px solid var(--moyo-primary, #2563eb) !important;
	outline-offset: 2px;
}


/* ===================================================
   10. MICRO-ANIMATIONS — staggered column fade-in
   =================================================== */
.moyo-footer__fade {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.moyo-footer__fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* Stagger: each column fades in 120ms after the previous */
.moyo-footer__fade:nth-child(2) { transition-delay: 0.12s; }
.moyo-footer__fade:nth-child(3) { transition-delay: 0.24s; }
.moyo-footer__fade:nth-child(4) { transition-delay: 0.36s; }


/* ===================================================
   10. RESPONSIVE
   =================================================== */
@media (max-width: 960px) {
	.moyo-footer__logo-img {
		max-height: 60px;
	}
	.moyo-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	/* Reset stagger for 2-col */
	.moyo-footer__fade:nth-child(3) { transition-delay: 0s; }
	.moyo-footer__fade:nth-child(4) { transition-delay: 0.12s; }
}

@media (max-width: 640px) {
	.moyo-footer {
		padding: 48px 0 0;
	}
	.moyo-footer__inner {
		grid-template-columns: 1fr;
		padding: 0 20px;
		gap: 36px;
	}
	/* No stagger on single column */
	.moyo-footer__fade:nth-child(n) { transition-delay: 0s; }

	.moyo-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
		padding: 0 20px;
	}
	.moyo-footer__legal-list {
		justify-content: center !important;
	}
}
