/** GamiGadgets footer components. */

.gghf-footer {
	box-sizing: border-box;
	inline-size: 100%;
	border-block-start: var(--gghf-footer-border);
	background: var(--gghf-footer-bg);
	color: var(--gghf-footer-color);
	font-family: var(--gghf-font);
	font-size: 15px;
	line-height: var(--gghf-line-height);
}

.gghf-footer *,
.gghf-footer *::before,
.gghf-footer *::after {
	box-sizing: inherit;
}

.gghf-footer__inner {
	inline-size: min(100%, var(--gghf-footer-max));
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 32px);
}

.gghf-footer--full .gghf-footer__inner {
	max-inline-size: none;
}

.gghf-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 64px);
}

.gghf-footer--ratio-brand-wide.gghf-footer--columns-4 .gghf-footer__grid {
	grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(150px, 1fr));
}

.gghf-footer--columns-3 .gghf-footer__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gghf-footer--columns-2 .gghf-footer__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gghf-footer--columns-1 .gghf-footer__grid {
	grid-template-columns: minmax(0, 1fr);
}

.gghf-footer__column {
	min-inline-size: 0;
}

.gghf-footer .gghf-branding__link {
	display: inline-flex;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .94);
}

.gghf-footer .gghf-logo__image {
	inline-size: min(var(--gghf-footer-logo), 100%);
	max-block-size: 60px;
}

.gghf-footer__description {
	max-inline-size: 38ch;
	margin: 20px 0 0;
	color: var(--gghf-footer-color);
}

.gghf-footer__heading {
	margin: 0 0 18px;
	color: var(--gghf-footer-heading);
	font-size: 16px;
	font-weight: 750;
	letter-spacing: .01em;
	line-height: 1.3;
}

.gghf-footer-menu,
.gghf-footer-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gghf-footer-menu .gghf-menu__item {
	margin: 0;
}

.gghf-footer-menu .gghf-menu__link {
	display: inline-flex;
	min-block-size: 38px;
	align-items: center;
	color: var(--gghf-footer-link);
	font: inherit;
	text-decoration: none;
	transition: color 160ms ease, transform 160ms ease;
}

.gghf-footer-menu .gghf-menu__link:hover,
.gghf-footer-menu .gghf-menu__link:focus-visible {
	color: var(--gghf-footer-hover);
	transform: translateX(3px);
}

.gghf-footer-menu .gghf-submenu-toggle {
	display: none;
}

.gghf-footer-menu .gghf-sub-menu {
	position: static;
	padding-inline-start: 14px;
	border: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gghf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-block-start: 22px;
}

.gghf-social__link {
	display: inline-grid;
	place-items: center;
	inline-size: 42px;
	block-size: 42px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: var(--gghf-footer-link);
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gghf-social__link:hover,
.gghf-social__link:focus-visible {
	border-color: var(--gghf-footer-hover);
	background: color-mix(in srgb, var(--gghf-footer-hover) 16%, transparent);
	color: var(--gghf-footer-hover);
	transform: translateY(-2px);
}

.gghf-social__link .gghf-icon {
	inline-size: 20px;
	block-size: 20px;
}

.gghf-footer__bottom {
	background: var(--gghf-footer-bottom-bg);
	color: var(--gghf-footer-bottom-color);
}

.gghf-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: var(--gghf-footer-bottom-align);
	gap: 16px 32px;
	min-block-size: 70px;
}

.gghf-footer__copyright,
.gghf-footer__credit {
	margin: 0;
	color: inherit;
	font-size: 13px;
}

.gghf-footer__credit a {
	color: var(--gghf-footer-hover);
	text-decoration: none;
}

.gghf-footer__credit a:hover,
.gghf-footer__credit a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gghf-footer a:focus-visible {
	outline: 3px solid var(--gghf-footer-hover);
	outline-offset: 3px;
}

html[dir="rtl"] .gghf-footer-menu .gghf-menu__link:hover,
html[dir="rtl"] .gghf-footer-menu .gghf-menu__link:focus-visible {
	transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.gghf-footer *,
	.gghf-footer *::before,
	.gghf-footer *::after {
		transition-duration: .01ms;
	}
}

