/* ==========================================================================
   JA Canada Footer — Frontend styles
   Direct port of the original Elementor HTML embed's <style> block.
   ========================================================================== */

.ja-footer,
.ja-footer *,
.ja-footer *::before,
.ja-footer *::after {
	box-sizing: border-box;
}

.ja-footer {
	background-color: #F5F5F0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
	color: #1B3C4F;
	padding: 0;
}

.ja-footer a {
	text-decoration: none;
	color: inherit;
}

.ja-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---- Main content area ------------------------------------------------ */
.ja-footer-main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 40px 40px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr auto;
	gap: 32px;
	align-items: start;
}

/* ---- Link columns ----------------------------------------------------- */
.ja-footer-col h4 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 16px;
	letter-spacing: 0.01em;
	color: #1B3C4F;
}
.ja-footer-col h4 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}
.ja-footer-col h4 a:hover {
	color: #2A7C7B;
}
.ja-footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ja-footer-col ul a {
	font-size: 0.85rem;
	font-weight: 400;
	color: #1B3C4F;
	transition: color 0.2s, padding-left 0.2s;
	display: inline-block;
	position: relative;
}
.ja-footer-col ul a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 0;
	height: 1px;
	background: #2A7C7B;
	transition: width 0.25s ease;
}
.ja-footer-col ul a:hover {
	color: #2A7C7B;
	padding-left: 3px;
}
.ja-footer-col ul a:hover::after {
	width: 100%;
}

/* ---- Social icons ----------------------------------------------------- */
.ja-footer-social {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 2px;
}
.ja-footer-social a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1B3C4F;
	transition: transform 0.2s, color 0.2s;
}
.ja-footer-social a:hover {
	transform: translateY(-2px);
	color: #2A7C7B;
}
.ja-footer-social svg {
	width: 22px;
	height: 22px;
}

/* ---- Bottom bar ------------------------------------------------------- */
.ja-footer-bottom-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px 36px;
}
.ja-footer-divider {
	height: 1px;
	background: rgba(27, 60, 79, 0.15);
	margin-bottom: 20px;
}
.ja-footer-bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.ja-footer-copy {
	font-size: 0.78rem;
	font-weight: 400;
	color: rgba(27, 60, 79, 0.7);
	line-height: 1.6;
}
.ja-footer-legal {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.ja-footer-legal a {
	font-size: 0.82rem;
	font-weight: 700;
	color: #1B3C4F;
	transition: color 0.2s;
	position: relative;
}
.ja-footer-legal a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1.5px;
	background: #2A7C7B;
	transition: width 0.25s ease;
}
.ja-footer-legal a:hover {
	color: #2A7C7B;
}
.ja-footer-legal a:hover::after {
	width: 100%;
}

/* ---- Responsive: Tablet ---------------------------------------------- */
@media (max-width: 960px) {
	.ja-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 36px 48px;
		padding: 48px 24px 36px;
	}
	.ja-footer-social {
		justify-content: flex-start;
		grid-column: 1 / -1;
		order: -1;
	}
}

/* ---- Responsive: Mobile ---------------------------------------------- */
@media (max-width: 580px) {
	.ja-footer-main {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 40px 24px 28px;
	}
	.ja-footer-social {
		justify-content: center;
		gap: 16px;
	}
	.ja-footer-col {
		text-align: center;
	}
	.ja-footer-col ul {
		align-items: center;
	}
	.ja-footer-col ul a:hover {
		padding-left: 0;
	}
	.ja-footer-bottom-wrap {
		padding: 0 24px 28px;
	}
	.ja-footer-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 20px;
	}
	.ja-footer-legal {
		justify-content: center;
		gap: 16px;
	}
}
