/**
 * Footer styles.
 *
 * @package NexioEducation
 */

.site-footer {
	background: #fffefa;
	padding: 120px max(142px, calc((100vw - 1156px) / 2)) 36px;
}

/* Top section: Logo and contact info */
.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 63px;
}

.footer-top .custom-logo-link img,
.footer-top .wp-block-site-logo img,
.footer-logo img {
	height: 48px;
	width: auto;
}

.footer-logo {
	margin: 0;
}

/* Conditional logo display - blue by default (light background) */
.footer-logo-white {
	display: none;
}

.footer-logo-blue {
	display: block;
}

.footer-contact {
	text-align: left;
	margin-right: 83px !important;
}

.footer-phone,
.footer-email {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.4;
	color: #064d8e;
	margin: 0;
}

.footer-phone a,
.footer-email a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.footer-phone a:hover,
.footer-email a:hover {
	opacity: 0.7;
}

/* Divider */
.footer-divider {
	border: none;
	border-top: 1px solid #064d8e;
	margin: 0 0 64px;
	opacity: 1;
}

/* Main section: CTA and nav columns */
.footer-main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 100px;
}

/* CTA section */
.footer-cta {
	max-width: 320px;
}

.footer-cta p {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 24px;
	font-weight: 300;
	line-height: 28.8px;
	color: #064d8e;
	margin: 0 0 36px;
}

.footer-cta .wp-block-button__link {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 16.8px;
	color: #064d8e;
	background: transparent;
	border: 1px solid rgba(6, 77, 142, 0.5);
	border-radius: 33px;
	padding: 8px 32px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.footer-cta .wp-block-button__link:hover {
	background: rgba(6, 77, 142, 0.05);
}

/* Navigation columns */
.footer-menus {
	display: flex;
	gap: 38px;
	align-items: flex-start;
}

.footer-nav-column {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	max-width: 100px;
}

.footer-nav-title {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	color: #064d8e;
	margin: 0;
}

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

.footer-nav-column li {
	margin: 0;
	padding: 0;
}

.footer-nav-column li a {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 14px;
	font-weight: 300;
	line-height: 18px;
	color: #064d8e;
	text-decoration: none;
}

.footer-nav-column li a:hover {
	text-decoration: underline;
}

/* Bottom section: Copyright and back to top */
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copyright {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 14px;
	font-weight: 300;
	line-height: 28.8px;
	color: #064d8e;
	margin: 0;
}

.footer-back-to-top {
	margin: 0;
}

.footer-back-to-top a {
	font-family: var(--wp--preset--font-family--heading, 'Apris Trial', serif);
	font-size: 14px;
	font-weight: 300;
	line-height: 28.8px;
	color: #064d8e;
	text-decoration: none;
}

.footer-back-to-top a:hover {
	text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
	.site-footer {
		padding: 80px 60px 36px;
	}

	.footer-top {
		flex-direction: column;
		gap: 32px;
		margin-bottom: 40px;
	}

	.footer-contact {
		text-align: left;
	}

	.footer-phone,
	.footer-email {
		font-size: 18px;
	}

	.footer-main {
		flex-direction: column;
		gap: 48px;
		margin-bottom: 64px;
	}

	.footer-cta {
		max-width: 100%;
	}

	.footer-menus {
		flex-wrap: wrap;
		gap: 32px;
	}

	.footer-nav-column {
		min-width: 120px;
	}
}

/* Responsive - Mobile */
@media (max-width: 900px) {
	.site-footer {
		padding: 60px 24px 24px;
	}

	.footer-top {
		gap: 24px;
		margin-bottom: 32px;
	}

	.footer-phone,
	.footer-email {
		font-size: 16px;
	}

	.footer-divider {
		margin-bottom: 32px;
	}

	.footer-main {
		gap: 32px;
		margin-bottom: 48px;
	}

	.footer-cta p {
		font-size: 18px;
		line-height: 24px;
		margin-bottom: 24px;
	}

	.footer-menus {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px !important;
		width: 100%;
	}

	.footer-nav-column {
		flex: none;
		min-width: unset;
		gap: 14px;
	}

	.footer-nav-column ul {
		gap: 7px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
	.site-footer {
		padding: 48px 16px 20px;
	}

	.footer-phone,
	.footer-email {
		font-size: 16px;
	}

	.footer-cta p {
		font-size: 16px;
		line-height: 22px;
	}

	.footer-menus {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 20px !important;
	}

	.footer-nav-column {
		min-width: unset;
	}

	.footer-nav-title {
		font-size: 13px;
	}

	.footer-nav-column li a {
		font-size: 13px;
	}
}
