/**
 * Footer: branding + link columns, widget row, bottom bar.
 */

.tg-colophon {
	background-color: var(--tg-dark-blue);
	color: var(--tg-white);
}

.tg-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--tg-space-lg);
	padding-top: var(--tg-space-2xl);
	padding-bottom: var(--tg-space-xl);
}

.tg-footer-col--brand .tg-logo__text-primary {
	color: var(--tg-white);
}

.tg-footer-col--brand .tg-logo__text-secondary {
	color: var(--tg-white);
}

.tg-footer-col--brand .tg-logo img {
	max-height: 48px;
	background-color: var(--tg-white);
	border-radius: var(--tg-radius-sm);
	padding: 4px;
}

.tg-footer-tagline {
	margin-top: var(--tg-space-sm);
	color: var(--tg-white);
	font-size: var(--tg-text-sm);
}

.tg-footer-social {
	display: flex;
	gap: 12px;
	margin-top: var(--tg-space-md);
}

.tg-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--tg-white);
}

.tg-footer-social a:hover,
.tg-footer-social a:focus-visible {
	background-color: var(--tg-green);
	color: var(--tg-white);
}

.tg-colophon .tg-footer-heading {
	color: var(--tg-white);
	font-size: var(--tg-text-lg);
	margin-bottom: var(--tg-space-md);
}

.tg-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tg-footer-links a {
	color: var(--tg-white);
	font-size: var(--tg-text-sm);
}

.tg-footer-links a:hover,
.tg-footer-links a:focus-visible {
	color: var(--tg-orange);
}

.tg-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: var(--tg-text-sm);
}

.tg-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tg-footer-contact a {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--tg-white);
}

.tg-footer-contact a:hover,
.tg-footer-contact a:focus-visible {
	color: var(--tg-orange);
}

.tg-footer-contact .tg-icon {
	flex-shrink: 0;
	color: var(--tg-white);
	font-size: 16px;
	margin-top: 2px;
}

.tg-footer-widgets {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: var(--tg-space-lg);
}

.tg-footer-widget-title {
	color: var(--tg-white);
	font-size: var(--tg-text-lg);
}

.tg-footer-bottom {
	background-color: rgba(0, 0, 0, 0.2);
	padding-block: var(--tg-space-sm);
}

.tg-footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tg-space-md);
	flex-wrap: wrap;
}

.tg-footer-copyright {
	margin: 0;
	font-size: var(--tg-text-xs);
	color: var(--tg-white);
}

.tg-footer-legal {
	display: flex;
	gap: var(--tg-space-md);
	font-size: var(--tg-text-xs);
}

.tg-footer-legal a {
	color: var(--tg-white);
}

.tg-footer-legal a:hover,
.tg-footer-legal a:focus-visible {
	color: var(--tg-orange);
}

.tg-footer-credit {
	color: var(--tg-white);
	opacity: 0.75;
}

@media (max-width: 1024px) {
	.tg-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.tg-footer-grid {
		grid-template-columns: 1fr;
		gap: var(--tg-space-lg);
	}

	.tg-footer-bottom__inner {
		flex-direction: column;
		text-align: center;
	}
}

/* ------------------------------------------------------------------ */
/* Pre-footer "Our Promise" band                                        */
/* ------------------------------------------------------------------ */

.tg-promise-band {
	background-color: var(--tg-background);
	padding-top: var(--tg-space-2xl);
	padding-bottom: var(--tg-space-xl);
	position: relative;
	overflow: hidden;
}

.tg-promise-band--has-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.tg-promise-band__heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto var(--tg-space-xl);
}

.tg-promise-band__title {
	color: var(--tg-dark-blue);
	font-size: var(--tg-text-3xl);
	margin: 0;
}

.tg-promise-band__title-highlight {
	color: var(--tg-color-secondary);
}

.tg-promise-band__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--tg-space-md);
	position: relative;
	z-index: 1;
}

.tg-promise-card {
	background-color: var(--tg-white);
	border-radius: var(--tg-radius-lg);
	box-shadow: var(--tg-shadow);
	padding: var(--tg-space-lg) var(--tg-space-md) var(--tg-space-md);
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: transform var(--tg-transition), box-shadow var(--tg-transition);
}

.tg-promise-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tg-shadow-lg);
}

.tg-promise-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin-bottom: var(--tg-space-sm);
	font-size: 28px;
}

.tg-promise-card--green .tg-promise-card__icon {
	background-color: rgba(0, 155, 85, 0.12);
	color: var(--tg-color-secondary);
}

.tg-promise-card--blue .tg-promise-card__icon {
	background-color: rgba(22, 120, 184, 0.12);
	color: var(--tg-color-primary);
}

.tg-promise-card--orange .tg-promise-card__icon {
	background-color: rgba(245, 166, 35, 0.14);
	color: var(--tg-color-accent);
}

.tg-promise-card--teal .tg-promise-card__icon {
	background-color: rgba(22, 184, 170, 0.14);
	color: #0f9c92;
}

.tg-promise-card__title {
	color: var(--tg-dark-blue);
	font-size: var(--tg-text-base);
	line-height: 1.3;
	margin: 0 0 12px;
}

.tg-promise-card__rule {
	display: block;
	width: 32px;
	height: 3px;
	border-radius: 2px;
	margin: 0 auto 12px;
}

.tg-promise-card--green .tg-promise-card__rule {
	background-color: var(--tg-color-secondary);
}

.tg-promise-card--blue .tg-promise-card__rule {
	background-color: var(--tg-color-primary);
}

.tg-promise-card--orange .tg-promise-card__rule {
	background-color: var(--tg-color-accent);
}

.tg-promise-card--teal .tg-promise-card__rule {
	background-color: #0f9c92;
}

.tg-promise-card__desc {
	color: var(--tg-muted);
	font-size: var(--tg-text-sm);
	line-height: 1.5;
	margin: 0;
}

.tg-promise-card__accent {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
}

.tg-promise-card--green .tg-promise-card__accent {
	background-color: var(--tg-color-secondary);
}

.tg-promise-card--blue .tg-promise-card__accent {
	background-color: var(--tg-color-primary);
}

.tg-promise-card--orange .tg-promise-card__accent {
	background-color: var(--tg-color-accent);
}

.tg-promise-card--teal .tg-promise-card__accent {
	background-color: #0f9c92;
}

.tg-promise-band__tagline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tg-space-md);
	margin-top: var(--tg-space-xl);
	padding-inline: var(--tg-gutter);
}

.tg-promise-band__tagline-rule {
	flex: 1 1 auto;
	max-width: 120px;
	height: 1px;
	background-color: var(--tg-border);
}

.tg-promise-band__tagline-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--tg-color-secondary);
	color: var(--tg-white);
	font-size: 18px;
	flex-shrink: 0;
}

.tg-promise-band__tagline p {
	margin: 0;
	font-weight: 700;
	font-size: var(--tg-text-lg);
	color: var(--tg-dark-blue);
	white-space: nowrap;
}

.tg-promise-band__tagline strong {
	color: var(--tg-color-secondary);
}

@media (max-width: 1100px) {
	.tg-promise-band__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 700px) {
	.tg-promise-band__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/*
	 * Five cards over two columns leaves one on its own in the last row.
	 * Spanning it across both keeps the block square-edged instead of
	 * trailing an orphan against the left margin.
	 */
	.tg-promise-card:last-child {
		grid-column: 1 / -1;
	}

	.tg-promise-band__tagline p {
		white-space: normal;
		font-size: var(--tg-text-base);
	}

	.tg-promise-band__tagline-rule {
		display: none;
	}
}

@media (max-width: 460px) {
	.tg-promise-band__grid {
		grid-template-columns: 1fr;
	}
}
