/**
 * Footer (FSE template part) — Figma Make Landing
 * Spec: bg #f9fafb, border-t #f3f4f6, inner max 1440 / py 80 px 48, cols gap 64,
 * label 15/22.5 bold #101828, links 14/21 #4a5565, social 40px white + shadow,
 * bottom border-t #e5e7eb pt 32 gap 24, copy 13/19.5 #6a7282
 */

.gm-footer {
	background: #f9fafb;
	border-top: 1px solid #f3f4f6;
	box-sizing: border-box;
}

.gm-footer *,
.gm-footer *::before,
.gm-footer *::after {
	box-sizing: border-box;
}

.gm-footer .gm-footer__inner,
.gm-footer__inner.has-global-padding {
	width: 100%;
	max-width: var(--gm-max, 1440px);
	margin-inline: auto;
	padding: 48px 16px 32px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: stretch;
}

/* Gutenberg bakes contentSize:1440px on constrained children — keep the inner column fluid. */
.gm-footer .gm-footer__inner.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.gm-footer .gm-footer__inner > .alignwide {
	max-width: var(--gm-max, 1440px);
}

/* Kill WP layout block-gap so Figma spacing wins */
.gm-footer .gm-footer__inner,
.gm-footer .gm-footer__cols,
.gm-footer .gm-footer__col,
.gm-footer .gm-footer__bottom,
.gm-footer .gm-footer__contact,
.gm-footer .gm-footer__meta,
.gm-footer .gm-footer__legal {
	--wp--style--block-gap: 0;
}

/* ── Nav columns ─────────────────────────────────────────── */

.gm-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	width: 100%;
	margin: 0;
}

.gm-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin: 0;
	min-width: 0;
}

.gm-footer__col--social {
	padding-bottom: 0;
}

.gm-footer__label {
	margin: 0;
	padding: 0;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 22.5px;
	color: #101828;
}

.gm-footer .gm-footer__label a {
	color: #101828;
	font: inherit;
	text-decoration: none;
}

.gm-footer .gm-footer__label a:hover {
	color: #e94e1b;
}

.gm-footer__list,
.gm-footer__list.wp-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.gm-footer__list li,
.gm-footer__list .wp-block-list-item {
	margin: 0;
	padding: 1.5px 0;
	width: 100%;
}

.gm-footer__list a,
.gm-footer a {
	color: #4a5565;
	text-decoration: none;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	transition: color 0.15s ease;
}

.gm-footer__list a:hover,
.gm-footer a:hover {
	color: #e94e1b;
}

/* DigiEd credit — beat generic `.gm-footer a` (higher specificity) */
.gm-footer a.gm-footer__credit-link {
	color: #e94e1b;
	font-size: inherit;
	line-height: inherit;
	text-decoration: none;
}

.gm-footer a.gm-footer__credit-link:hover {
	color: #9f3110;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Social icons — Figma: 40px white circles, soft shadow ─ */

.gm-footer__social.wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 8px 0 0;
	list-style: none;
}

.gm-footer__social .wp-block-social-link,
.gm-footer__social .wp-social-link {
	margin: 0 !important;
	padding: 0;
	background: transparent !important;
	color: #4a5565 !important;
}

.gm-footer__social .wp-block-social-link .wp-block-social-link-anchor {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 9999px;
	background: #fff !important;
	box-shadow:
		0 1px 3px 0 rgba(0, 0, 0, 0.1),
		0 1px 2px -1px rgba(0, 0, 0, 0.1);
	color: #4a5565 !important;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}

.gm-footer__social .wp-block-social-link .wp-block-social-link-anchor:hover,
.gm-footer__social .wp-block-social-link .wp-block-social-link-anchor:focus-visible {
	color: #e94e1b !important;
	background: #fff !important;
	box-shadow:
		0 1px 3px 0 rgba(0, 0, 0, 0.12),
		0 1px 2px -1px rgba(0, 0, 0, 0.12);
}

.gm-footer__social .wp-block-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor !important;
	color: inherit;
}

.gm-footer__social .wp-block-social-link svg path {
	fill: currentColor !important;
}

.gm-footer .wp-block-social-links .wp-block-social-link:hover {
	transform: none;
}

/* ── Bottom meta / legal / copyright ─────────────────────── */

.gm-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 32px 0 0;
	border-top: 1px solid #e5e7eb;
}

.gm-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
}

.gm-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	max-width: 366px;
}

.gm-footer__org {
	margin: 0;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 22.5px;
	color: #101828;
}

.gm-footer__line {
	margin: 0;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #4a5565;
	white-space: normal;
}

.gm-footer__line a {
	color: inherit;
}

/* Stacked legal column — same row rhythm as contact; right edge aligns with DigiEd credit */
.gm-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
}

/* Match contact rows: kill WP paragraph 20/30 defaults on these <p> tags */
.gm-footer .gm-footer__legal-link,
.gm-footer p.gm-footer__legal-link {
	margin: 0;
	padding: 0;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	min-height: 0;
}

.gm-footer .gm-footer__legal-link:first-child,
.gm-footer p.gm-footer__legal-link:first-child {
	font-size: 15px;
	line-height: 22.5px;
}

.gm-footer .gm-footer__legal-link a {
	color: #4a5565;
	font-size: inherit;
	line-height: inherit;
	white-space: nowrap;
}

.gm-footer__copy-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
}

.gm-footer__copy {
	margin: 0;
	order: 2;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 19.5px;
	color: #6a7282;
}

.gm-footer__credit {
	margin: 0;
	order: 1;
	font-family: "Open Sans", "Open Sans Hebrew", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 19.5px;
	color: #6a7282;
	text-align: left;
}

/* ── Breakpoints (Figma desktop ≥ 1024) ──────────────────── */

@media (min-width: 40rem) {
	.gm-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 48px;
	}
}

@media (min-width: 64rem) {
	.gm-footer .gm-footer__inner,
	.gm-footer__inner.has-global-padding {
		padding: 80px 48px;
		gap: 48px;
	}

	.gm-footer__cols {
		grid-template-columns: repeat(var(--gm-footer-cols, 5), minmax(0, 1fr));
		gap: 64px;
	}

	.gm-footer__col--social {
		padding-bottom: 36px;
	}

	.gm-footer__line {
		white-space: nowrap;
	}

	.gm-footer__legal {
		align-items: flex-end;
		margin-left: auto;
		text-align: right;
	}

	.gm-footer__copy-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px 24px;
	}

	.gm-footer__copy {
		order: 0;
	}

	.gm-footer__credit {
		order: 0;
		margin-left: auto;
		text-align: right;
	}
}

/* Figma Make zooms the 1920 canvas — grow the 1440 footer column with --gm-max. */
@media (min-width: 1921px) {
	.gm-footer .gm-footer__inner,
	.gm-footer__inner.has-global-padding {
		max-width: var(--gm-max) !important;
		padding: calc(100vw * 80 / 1920) calc(100vw * 48 / 1920);
		gap: calc(100vw * 48 / 1920);
	}

	.gm-footer .gm-footer__inner.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
	.gm-footer .gm-footer__inner > .alignwide {
		max-width: var(--gm-max) !important;
	}

	.gm-footer__cols {
		gap: calc(100vw * 64 / 1920);
	}
}
