/**
 * Site Footer Styles
 *
 * @package Aspirion_Blocks
 */

.site-footer {
	background-color: var(--wp--preset--color--stats-eyebrow-blue);
	border-top: 8px solid var(--wp--preset--color--accent);
	color: #fff;
}

.site-footer__inner {
	max-width: 1248px;
	margin: 0 auto;
	padding: 3.5rem 1.5rem 2rem;
}

/* ==========================================================================
   Row 1: Navigation Columns
   ========================================================================== */

.site-footer__nav {
	display: grid;
	grid-template-columns: repeat(7, auto);
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.site-footer__col {
	min-width: 0;
}

.site-footer__heading {
	margin: 0;
	padding-bottom: 0.75rem;
	font-size: 1.1rem;
	line-height: 2.1rem;
	font-weight: 700;
	color: #fff;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li {
	line-height: 1.25;
	margin-bottom: 0.35rem;
}

.site-footer__menu a {
	color: #fff;
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 400;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
	text-decoration-color: transparent;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
	color: var(--wp--preset--color--background);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--background);
}

/* Contact Column */
.site-footer__col--contact {
	min-width: 160px;
}

.site-footer__contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin-bottom: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 400;
}

.site-footer__icon {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: #fff;
}

.site-footer__contact-list a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
	text-decoration-color: transparent;
}

.site-footer__contact-list a:hover,
.site-footer__contact-list a:focus {
	color: var(--wp--preset--color--background);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--background);
}

/* ==========================================================================
   Row 2: CTA + Badges
   ========================================================================== */

.site-footer__cta-row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.site-footer__cta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-footer__cta-text {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	font-style: italic;
	line-height: 1.1;
	max-width: 300px;
	text-wrap: balance;
}

.site-footer__cta-button {
	display: inline-block;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}

.site-footer__cta-button:hover,
.site-footer__cta-button:focus {
	opacity: 0.7;
}

.site-footer__badges {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
}

.site-footer__badge {
	height: 80px;
	width: auto;
	object-fit: contain;
}

.cif_icon {
	width: auto;
	height: auto;
	max-width: 23px;
}

.site-footer__badge--klas-2025 {
	max-height: 100px;
	margin-right: 0.5rem;
	width: auto;
	height: auto;
	aspect-ratio: 55 / 53;
}

.site-footer__badge--klas-2024 {
	width: 112px;
	max-height: 100px;
	margin-right: 0.5rem;
	height: 100%;
}

.site-footer__badge--klas-2022 {
	max-height: 112px;
	width: auto;
	height: 100%;
}

.site-footer__badge--hitrust {
	max-width: 116px;
	margin-left: 1rem;
	margin-top: 0.25rem;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.site-footer__divider {
	border: none;
	border-bottom: 1px solid #fff;
	margin: 0 0 1.5rem;
}

/* ==========================================================================
   Copyright & Legal
   ========================================================================== */

.site-footer__legal {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.875rem;
	font-weight: 400;
	justify-content: center;
	text-align: center;
    text-wrap: balance;
}

.site-footer__copyright {
	margin: 0;
}

.site-footer__legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Inline flow (not flex) so long items wrap mid-text like prose */
.site-footer__legal-menu li {
	display: inline;
}

.site-footer__legal-menu li::after {
	content: "|";
	margin-left: 0.25rem;
}
.site-footer__legal-menu li:last-child::after {
	display: none;
}

.site-footer__legal-menu a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__legal-menu a:hover {
	/* color: var(--wp--preset--color--primary); */
	text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.site-footer__nav {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem 1.5rem;
		text-align:center;
	}
	.site-footer__contact-list {
		display: inline-block;
	}

	.site-footer__col--contact {
		grid-column: span 2;
	}

	.site-footer__cta-row {
		grid-template-columns: 1fr;
		gap: 2rem;
		justify-items: center;
	}

	.site-footer__cta {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.site-footer__cta-text {
		max-width: 100%;
		text-align: center;
	}

	.site-footer__badges {
		justify-content: flex-start;
	}
}

@media (width < 864px) {
	.site-footer__copyright {
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.site-footer__nav {
		grid-template-columns: 1fr 1fr;

		h4.site-footer__heading {
			padding-bottom: 0.25rem;
		}
	}

	.site-footer__col--contact {
		grid-column: span 2;
        display: flex;
        flex-direction: column;
		align-items: center;
	}

	.site-footer__badge--klas-2025 {
		margin-right: 0;
	}

	.site-footer__badge--klas-2024 {
		margin-right: 0;
	}

	.site-footer__badge--hitrust {
		margin-left: 0;
	}
	.site-footer__contact-list {
		display: inline-grid;
    	margin: auto;
	}

	.site-footer__badges {
		display: grid;
		grid-template-columns: repeat(2, 50%);
		grid-template-rows: repeat(2, auto);
		justify-content: center;
	}

	.site-footer__badges a {
		display: flex;
	}

	.site-footer__badge {
		margin: auto;
	}

	.site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.site-footer__legal-menu li:first-child::before {
		display: none;
	}
}

@media (max-width: 400px) {
	.site-footer__nav {
		display: block;
	}
	h4.site-footer__heading {
		text-align: center;
		padding-bottom: 0.25rem;
	}
	.site-footer__menu {
		display: flex;
		flex-direction: column;
		text-align: center;
	}
	.site-footer__col {
		margin-bottom: 1.25rem;
	}
}