/**
 * footer.css — Full-width, high-density authority portal footer layout.
 *
 * Full bleed edge-to-edge styling, rich pre-footer community ribbon,
 * 6-column comprehensive navigation grid, search keyword cloud,
 * trust disclaimer, and full-width legal bottom bar.
 */

.site-footer {
	flex: none;
	width: 100%;
	max-width: 100%;
	margin-top: 3rem;
	padding-block: 0 !important;
	background-color: var(--ifja-surface, #f8fafc);
	border-top: 1px solid var(--ifja-border, #e2e8f0);
	color: var(--ifja-text-muted, #64748b);
	box-sizing: border-box;
}

/* 1. Full-Width Pre-Footer Alert & Community Ribbon -------------------- */

.site-footer__ribbon {
	width: 100%;
	background: linear-gradient(135deg, #0b192c 0%, #0f1e36 50%, #172a46 100%);
	color: #ffffff;
	padding: 1.5rem clamp(1rem, 3vw, 3.5rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-sizing: border-box;
	overflow: hidden;
}

.site-footer__ribbon-inner {
	width: 100%;
	max-width: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem clamp(1rem, 2vw, 2.5rem);
	box-sizing: border-box;
}

.site-footer__ribbon-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 8px 18px;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
	justify-self: start;
	box-sizing: border-box;
}

.site-footer__ribbon-logo-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.site-footer__ribbon-logo {
	height: auto;
	max-height: 90px;
	width: auto;
	aspect-ratio: 1024 / 341;
	object-fit: contain;
	display: block;
}

.site-footer__ribbon-text {
	text-align: center;
	margin-inline: auto;
	padding-inline: 0.5rem;
	min-width: 0;
}

.site-footer__ribbon-badge {
	display: inline-block;
	background: rgba(234, 179, 8, 0.18);
	border: 1px solid rgba(234, 179, 8, 0.4);
	color: #fef08a;
	padding: 0.18rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.site-footer__ribbon-heading {
	display: block;
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.site-footer__ribbon-desc {
	margin: 0.35rem auto 0;
	font-size: 0.8125rem;
	color: #94a3b8;
	line-height: 1.45;
	max-width: 540px;
}

.site-footer__ribbon-actions {
	display: flex;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: flex-end;
	justify-self: end;
	gap: 0.55rem;
	width: max-content;
	max-width: none;
	flex-shrink: 0;
}

.site-footer__ribbon-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.95rem;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
	white-space: nowrap;
	flex-shrink: 0;
	box-sizing: border-box;
}

@media (max-width: 1023px) {
	.site-footer__ribbon {
		padding: 1.25rem 1rem;
	}

	.site-footer__ribbon-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1rem;
		width: 100%;
		max-width: 100%;
	}

	.site-footer__ribbon-logo-link {
		justify-self: center;
		max-width: 90%;
		padding: 6px 14px;
	}

	.site-footer__ribbon-logo {
		max-height: 54px;
		max-width: 100%;
		width: auto;
		aspect-ratio: 1024 / 341;
	}

	.site-footer__ribbon-text {
		max-width: 100%;
		padding-inline: 0;
	}

	.site-footer__ribbon-actions {
		display: flex;
		flex-wrap: nowrap !important;
		justify-content: center;
		justify-self: center;
		align-items: center;
		gap: 0.35rem;
		width: 100%;
		max-width: 100%;
	}

	.site-footer__ribbon-btn {
		flex: 1 1 0;
		padding: 0.45rem 0.35rem;
		font-size: 0.72rem;
		gap: 0.25rem;
		justify-content: center;
		min-width: 0;
	}

	.site-footer__ribbon-svg {
		width: 16px;
		height: 16px;
	}
}

.site-footer__ribbon-btn--wa {
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(37, 211, 102, 0.45);
	animation: ifja-pulse-wa 2.4s infinite ease-in-out;
}

.site-footer__ribbon-btn--wa:hover {
	background: #1ebd5a;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.65);
	animation: none;
}

.site-footer__ribbon-btn--tg {
	background: #0088cc;
	color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 136, 204, 0.45);
	animation: ifja-pulse-tg 2.4s infinite ease-in-out;
	animation-delay: 1.2s;
}

.site-footer__ribbon-btn--tg:hover {
	background: #0077b5;
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 4px 16px rgba(0, 136, 204, 0.65);
	animation: none;
}

.site-footer__ribbon-btn--pwa {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.site-footer__ribbon-btn--pwa:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: #ffffff;
	transform: translateY(-1px);
}

.site-footer__ribbon-icon,
.site-footer__ribbon-svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	fill: currentColor;
	display: block;
}

/* 2. Main Full-Width Container & Grid ---------------------------------- */

.site-footer__container {
	width: 100% !important;
	max-width: 100% !important;
	padding-inline: clamp(1.25rem, 4vw, 4rem) !important;
	padding-block: 2.25rem 1.75rem !important;
	box-sizing: border-box;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
	.site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem 1.5rem;
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1360px) {
	.site-footer__grid {
		grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
		gap: 2rem 1.75rem;
	}
}

/* Brand Column */
.site-footer__col--brand {
	min-width: 0;
}

@media (max-width: 1359px) {
	.site-footer__col--brand {
		grid-column: 1 / -1;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--ifja-border, #e2e8f0);
	}
}

.site-footer__brand-title {
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ifja-text, #0f172a);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.site-footer__brand-title:hover {
	color: var(--ifja-accent, #2563eb);
}

.site-footer__brand-logo-link {
	display: inline-block;
	margin-bottom: 0.6rem;
	text-decoration: none;
}

.site-footer__logo-img {
	height: auto;
	max-height: 60px;
	width: auto;
	max-width: 260px;
	object-fit: contain;
	display: block;
}

.site-footer__brand-desc {
	margin: 0.4rem 0 1rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--ifja-text-muted, #64748b);
	max-width: 44ch;
}

.site-footer__subgroup {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--ifja-border, #e2e8f0);
}

.site-footer__subheading {
	margin: 0 0 0.45rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ifja-text, #0f172a);
}

/* Column Elements */
.site-footer__col {
	min-width: 0;
}

.site-footer__heading {
	margin: 0 0 0.75rem;
	color: var(--ifja-text, #0f172a);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	position: relative;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--ifja-border, #e2e8f0);
	display: inline-block;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.site-footer__list li {
	margin: 0;
	padding: 0;
}

.site-footer__list a {
	color: var(--ifja-text-muted, #64748b);
	font-size: 0.8125rem;
	line-height: 1.35;
	text-decoration: none;
	transition: all 0.15s ease;
	display: inline-block;
}

.site-footer__list a:hover,
.site-footer__list a:focus {
	color: var(--ifja-accent, #2563eb);
	transform: translateX(2px);
	text-decoration: underline;
}

.site-footer__all-states-link,
.site-footer__more-link {
	font-weight: 700 !important;
	font-size: 0.8125rem !important;
	color: var(--ifja-accent, #2563eb) !important;
	margin-top: 0.35rem;
	display: inline-block;
}

.site-footer__all-states-link:hover,
.site-footer__more-link:hover {
	text-decoration: underline !important;
	color: var(--ifja-accent-hover, #1d4ed8) !important;
}

/* 3. Popular Recruitment Searches Keyword Cloud ------------------------ */

.site-footer__keywords {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ifja-border, #e2e8f0);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.site-footer__keywords-title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ifja-text, #0f172a);
}

.site-footer__keyword-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.site-footer__keyword-chip {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	background: #ffffff;
	border: 1px solid var(--ifja-border, #e2e8f0);
	border-radius: 4px;
	font-size: 0.75rem;
	color: var(--ifja-text-muted, #64748b);
	text-decoration: none;
	transition: all 0.15s ease;
}

.site-footer__keyword-chip:hover {
	background: var(--ifja-accent-soft, #eff6ff);
	border-color: var(--ifja-accent, #2563eb);
	color: var(--ifja-accent, #2563eb);
	transform: translateY(-1px);
}

/* 4. Full-Width Disclaimer & Trust Strip ------------------------------- */

.site-footer__disclaimer {
	margin-top: 1.75rem;
	padding: 0.85rem 1.15rem;
	border-radius: 8px;
	border: 1px solid var(--ifja-border, #e2e8f0);
	background: #ffffff;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--ifja-text-muted, #64748b);
}

.site-footer__disclaimer p {
	margin: 0;
}

.site-footer__disclaimer strong {
	color: var(--ifja-text, #0f172a);
	font-weight: 700;
}

/* 5. Full-Width Legal Bottom Bar --------------------------------------- */

.site-footer__bottom {
	width: 100%;
	border-top: 1px solid var(--ifja-border, #e2e8f0);
	padding-inline: clamp(1.25rem, 4vw, 4rem);
	padding-block: 0.85rem;
	background: #ffffff;
	box-sizing: border-box;
}

.site-footer__bottom-inner {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.site-footer__copyright-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.75rem;
	color: var(--ifja-text-muted, #64748b);
}

.site-footer__badge-pill {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #15803d;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 0.1rem 0.55rem;
	border-radius: 9999px;
}

.site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	font-size: 0.75rem;
}

.site-footer__legal li {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.site-footer__legal li + li::before {
	content: "•";
	margin-right: 0.75rem;
	color: var(--ifja-border, #cbd5e1);
}

.site-footer__legal a {
	color: var(--ifja-text-muted, #64748b);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer__legal a:hover {
	color: var(--ifja-accent, #2563eb);
	text-decoration: underline;
}

@media (max-width: 767px) {
	.site-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 0.5rem;
	}
	.site-footer__copyright-group {
		justify-content: center;
	}
	.site-footer__legal {
		justify-content: center;
	}
}
