/**
 * G9 Constructs – footer grid layout.
 */

.g9-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #272727;
	border-top: 0;
	color: #999;
}

.g9-footer__network {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.g9-footer__grid {
	position: relative;
	z-index: 1;
	width: 100%;
	border-top: 1px solid rgba(50, 50, 50, 0.85);
}

.g9-footer__top,
.g9-footer__bottom {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-bottom: 1px solid rgba(50, 50, 50, 0.85);
}

.g9-footer__cell {
	padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
	border-right: 1px solid rgba(50, 50, 50, 0.85);
	box-sizing: border-box;
	min-width: 0;
}

.g9-footer__top .g9-footer__cell:last-child,
.g9-footer__bottom .g9-footer__cell:last-child {
	border-right: 0;
}

.g9-footer__company-name {
	margin: 0 0 1.25rem;
	font-family: var(--g9-font-heading, "Oswald", sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.g9-footer__addresses {
	margin: 0;
	padding: 0;
	list-style: none;
}

.g9-footer__addresses li {
	position: relative;
	margin: 0 0 0.85rem;
	padding-left: 1.4rem;
	font-family: var(--g9-font-body, "Averta NM", sans-serif);
	font-size: 16px;
	line-height: 1.65;
	color: #999;
}

.g9-footer__addresses li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 13px;
	height: 15px;
	background-color: var(--g9-color-primary, #bea658);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.g9-footer__addresses li:last-child {
	margin-bottom: 0;
}

.g9-footer__heading {
	margin: 0 0 1.1rem;
	font-family: var(--g9-font-heading, "Oswald", sans-serif);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--g9-color-primary, #bea658);
}

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

.g9-footer__menu li {
	margin: 0 0 0.55rem;
}

.g9-footer__menu li:last-child {
	margin-bottom: 0;
}

.g9-footer__menu a {
	font-family: var(--g9-font-body, "Averta NM", sans-serif);
	font-size: 16px;
	line-height: 1.5;
	color: #999;
	text-decoration: none;
	transition: color 0.2s ease;
}

.g9-footer__menu a:hover,
.g9-footer__menu .current-menu-item > a {
	color: #fff;
}

.g9-footer__contact-block {
	margin-bottom: 1.5rem;
}

.g9-footer__contact-block:last-child {
	margin-bottom: 0;
}

.g9-footer__contact-value {
	display: inline-block;
	font-family: var(--g9-font-body, "Averta NM", sans-serif);
	font-size: 16px;
	line-height: 1.6;
	color: #999;
	text-decoration: none;
	word-break: break-word;
}

.g9-footer__contact-values {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.g9-footer__contact-value:hover {
	color: #fff;
}

.g9-footer__bottom {
	grid-template-columns: 75% 25%;
	align-items: center;
}

.g9-footer__copy-cell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.g9-footer__bottom-spacer {
	pointer-events: none;
}

.g9-footer__copy {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #777;
}

.g9-footer__socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.g9-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #373737;
	border-radius: 100%;
	color: #999;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.g9-footer__socials a:hover {
	color: var(--g9-color-primary, #bea658);
	border-color: var(--g9-color-primary, #bea658);
}

.g9-footer__socials svg,
.g9-footer__socials img {
	display: block;
	width: 16px;
	height: 16px;
}

.g9-footer__socials svg,
.g9-footer__socials svg * {
	fill: currentColor;
	stroke: none;
}

/* Floating contacts + Back to top (separate; dock only for mobile grid) */
.g9-float-dock {
	display: contents;
}

.g9-float {
	position: fixed;
	right: 1.25rem;
	bottom: 100px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.g9-float__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.g9-float__btn,
.g9-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 1px solid #373737;
	border-radius: 100%;
	background: #272727;
	color: #cfcfcf;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.g9-float__btn:hover,
.g9-to-top:hover {
	color: var(--g9-color-primary, #bea658);
	border-color: var(--g9-color-primary, #bea658);
	background: #1f1f1f;
	transform: translateY(-2px);
}

.g9-float__btn svg,
.g9-float__btn img {
	display: block;
	width: 30px;
	height: 30px;
}

.g9-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1000;
	color: #fff;
	border-color: #3a3a3a;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.g9-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.g9-to-top svg {
	display: block;
	width: 22px;
	height: 22px;
}

@media (max-width: 767.98px) {
	.g9-float-dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		align-items: stretch;
		background: #1a1a1a;
		border-top: 1px solid #373737;
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
	}

	.g9-float,
	.g9-float__list,
	.g9-float__list li {
		display: contents;
	}

	.g9-float__btn,
	.g9-to-top {
		position: static;
		width: 100%;
		height: 52px;
		border: 0;
		border-right: 1px solid #373737;
		border-radius: 0;
		box-shadow: none;
		transform: none;
	}

	.g9-float__btn:hover,
	.g9-to-top:hover {
		transform: none;
	}

	.g9-float-dock > .g9-to-top {
		border-right: 0;
	}

	.g9-to-top {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body:has(.g9-float-dock) {
		padding-bottom: 52px;
	}

	.g9-float__btn svg,
	.g9-float__btn img {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 991.98px) {
	.g9-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.g9-footer__top .g9-footer__cell:nth-child(2n) {
		border-right: 0;
	}

	.g9-footer__top .g9-footer__cell:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(50, 50, 50, 0.85);
	}

	.g9-footer__bottom {
		grid-template-columns: 1fr;
	}

	.g9-footer__bottom .g9-footer__cell {
		border-right: 0;
	}

	.g9-footer__bottom-spacer {
		display: none;
	}

	.g9-footer__socials {
		justify-content: flex-start;
	}
}

@media (max-width: 767.98px) {
	.g9-footer__top {
		grid-template-columns: 1fr;
	}

	.g9-footer__top .g9-footer__cell {
		border-right: 0;
		border-bottom: 1px solid rgba(50, 50, 50, 0.85);
	}

	.g9-footer__top .g9-footer__cell:last-child {
		border-bottom: 0;
	}
}
