/**
 * Four parts, all confirmed against the approved Figma (Home, Sobre, O que
 * fazemos agree): org info / navigation / social links, each its own column,
 * plus a highlighted contact card — not the previous two-column layout, and
 * the nav and social lists are vertical stacks, not a horizontal row.
 */
:root {
	--move-footer-bg: var(--move-color-dark, #0f2a4a);
	/* text/inverse/label — one colour for all footer body copy, nav links and
	   the contact card; two drifted inverse tokens used to fragment it. */
	--move-footer-text: #f1f4f7;
	--move-footer-text-muted: #f1f4f7;
	/* Legal line is Figma's text/caption, taken as drawn. It measures 3.23:1 on
	   this panel, under AA at 12px; the palette is adopted as drawn and the
	   contrast is the designer's to resolve in Figma (Asana 1218298975248337).
	   Scoped here, not to :root, so it recolours nothing outside the footer. */
	--move-footer-legal: #627995;
	--move-footer-line-body: 1.4; /* Text/Text-14 and -12 both set 1.4; was left at browser default. */
	--move-footer-border: var(--move-color-border-inverse, rgba(227, 231, 236, 0.2));
	/* Distinct fill for the contact card. Uses the darker inverse-surface
	   token as a reasoned placeholder — not yet measured against Figma. */
	--move-footer-card-bg: var(--move-color-dark-alt, #061b33);

	/* Measured off the Figma footer: body/links 14px Light, column headings
	   12px uppercase +5% tracking, legal line 12px. */
	--move-footer-font-body: var(--move-font-size-sm, 0.875rem);     /* 14px */
	--move-footer-font-heading: var(--move-font-size-xs, 0.75rem);   /* 12px */
	--move-footer-font-link: var(--move-font-size-sm, 0.875rem);     /* 14px */
	--move-footer-font-legal: var(--move-font-size-xs, 0.75rem);     /* 12px */
}

/* Figma draws the footer as an inset panel ON the page's beige ground (36px
   visible each side, 20px above, top corners rounded 40px), not a full-bleed
   band — so the outer element is the ground, and the panel is its child. */
.move-footer {
	container-type: inline-size;
	container-name: move-footer;
	width: 100%;
	/* As in move-header.css: holds the footer still through a view transition. */
	view-transition-name: move-footer;
	background: var(--move-color-bg, #faf7f0);
	color: var(--move-footer-text);
	font-family: var(--move-font-base);
	font-size: 1rem;
	font-weight: var(--move-font-weight-light, 300);
	--move-strong-weight: var(--move-font-weight-bold, 700);
	padding: 1.25rem 0 0; /* pt-20px, per Figma. */
}

.move-footer__panel {
	background: var(--move-footer-bg);
	border-start-start-radius: var(--move-radius-lg, 2.5rem);
	border-start-end-radius: var(--move-radius-lg, 2.5rem);
	/* Figma: px-36 on the wrapper; mobile-first has no inset, stepped in below. */
	margin-inline: 0;
	overflow: hidden;
}

.move-footer__container {
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	padding: var(--move-space-xl, 4rem) var(--move-container-gutter, 2rem) var(--move-space-32, 2rem);
	display: grid;
	gap: var(--move-space-lg, 3rem);
	grid-template-columns: 1fr;
}

/* Same 38px height as the header's (header.css), so a logo shared by both
   reads identically. */
.move-footer__logo {
	margin: 0 0 var(--move-space-sm, 1rem);
}
.move-footer__logo img {
	/* Fixed height, not max-height: the panel's height must not change once
	   the file lands. */
	height: 2.375rem;
	width: auto;
	display: block;
}
.move-footer__org-lines,
.move-footer__address {
	margin: 0 0 var(--move-space-xs, 0.5rem);
	font-size: var(--move-footer-font-body);
	font-weight: var(--move-font-weight-light, 300);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-footer-line-body, 1.4);
	color: var(--move-footer-text-muted);
}
.move-footer__address p {
	margin: 0 0 0.5em;
}
.move-footer__address p:last-child {
	margin-bottom: 0;
}

.move-footer__social-heading {
	font-size: var(--move-footer-font-heading);
	font-weight: 700;
	margin: 0 0 var(--move-space-sm, 1rem);
}
/* Vertical stack per approved Figma, not the icon row this replaced —
   Markup::icon()/FontAwesome stay in use elsewhere, just not here. */
.move-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--move-space-xs, 0.5rem);
}
.move-footer__social-link {
	color: var(--move-footer-text);
	font-size: var(--move-footer-font-link);
	text-decoration: none;
	display: inline-block;
	min-height: var(--move-target-min, 24px);
	transition: color var(--move-transition, 150ms ease);
}
.move-footer__social-link:hover,
.move-footer__social-link:focus-visible {
	color: var(--move-color-accent, #689fdf);
}
.move-footer__email {
	font-size: var(--move-footer-font-body);
}
.move-footer__email a {
	color: var(--move-footer-text);
	/* SC 2.5.8: standalone link, no "inline" exception. ::after below grows
	   the target without padding, which would shift the footer columns. */
	position: relative;
	transition: color var(--move-transition, 150ms ease);
}
.move-footer__email a::after {
	content: "";
	position: absolute;
	/* -4px top/bottom: 16.8 + 8 = 24.8px. Horizontal inset 0 so targets never overlap. */
	inset: -4px 0;
}
.move-footer__email a:hover,
.move-footer__email a:focus-visible {
	color: var(--move-color-accent, #689fdf);
}

/* Small uppercase label with +5% tracking, per Figma — not bold title-case. */
.move-footer__nav-heading {
	font-size: var(--move-footer-font-heading);
	font-weight: var(--move-font-weight-regular, 400);
	text-transform: uppercase;
	letter-spacing: var(--move-letter-spacing-loose, 0.05em);
	margin: 0 0 var(--move-space-12, 0.75rem);
}
/* Vertical stack per Figma, not the old prototype's horizontal row. */
.move-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--move-space-xs, 0.5rem);
}
.move-footer__nav-list a {
	color: var(--move-footer-text);
	font-size: var(--move-footer-font-link);
	font-weight: var(--move-font-weight-light, 300);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-footer-line-body, 1.4);
	text-decoration: none;
	display: inline-block;
	min-height: var(--move-target-min, 24px);
	transition: color var(--move-transition, 150ms ease);
}
.move-footer__nav-list a:hover,
.move-footer__nav-list a:focus-visible {
	color: var(--move-color-accent, #689fdf);
}

.move-footer__card {
	background: var(--move-footer-card-bg);
	border-radius: var(--move-radius, 12px);
	padding: var(--move-space-md, 1.5rem);
	align-self: flex-start;
	width: 17.5rem; /* 280px, measured. */
}
/* 14px Regular per Figma, not 12px Bold — this is a label above the address,
   not a column heading, and the bold weight competed with NAVIGATION. */
.move-footer__card-heading {
	margin: 0 0 var(--move-space-12, 0.75rem);
	font-size: var(--move-footer-font-link);
	font-weight: var(--move-font-weight-regular, 400);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	color: var(--move-footer-text);
}
.move-footer__card-email {
	color: var(--move-footer-text);
	font-size: var(--move-footer-font-link);
	font-weight: var(--move-font-weight-light, 300);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-footer-line-body, 1.4);
	text-decoration: none;
	transition: color var(--move-transition, 150ms ease);
}
.move-footer__card-email:hover,
.move-footer__card-email:focus-visible {
	color: var(--move-color-accent, #689fdf);
}

.move-footer a:focus-visible {
	outline: 2px solid var(--move-color-focus, #315179);
	outline-offset: 2px;
}

.move-footer__legal {
	border-top: var(--move-border-width, 1px) solid var(--move-footer-border);
	max-width: var(--move-container-max, 1312px);
	margin-inline: auto;
	/* Matches the container's inline padding so the top rule lines up with
	   the columns, not the full panel width. */
	padding: var(--move-space-md, 1.5rem) var(--move-container-gutter, 2rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--move-space-sm, 1rem);
}
.move-footer__legal p {
	margin: 0;
	font-size: var(--move-footer-font-legal);
	font-weight: var(--move-font-weight-light, 300);
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-footer-line-body, 1.4);
	color: var(--move-footer-legal, #627995);
	text-align: center;
}

@container move-footer (min-width: 768px) {
	.move-footer__panel {
		margin-inline: 2.25rem; /* 36px — Figma's own footer inset. */
	}
	.move-footer__container {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--move-space-lg, 3rem);
	}
	.move-footer__col--org {
		/* Widest, flexible column — org name, address, email. */
		flex: 1 1 auto;
		min-width: 0;
		max-width: 22rem;
	}
	.move-footer__col--nav,
	.move-footer__col--social {
		/* Sized to own content — neither is rightmost any more, the card is. */
		flex: 0 0 auto;
	}
	.move-footer__card {
		flex: 0 0 auto;
		min-width: 14rem;
	}
}
