/* Body background shows through the transparent curve in footer.png. */

#page-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

#et-boc {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	width: 100%;
}

#et-main-area {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	width: 100%;
}

#main-content {
	flex: 1 0 auto;
}
.et_pb_section:has(.agribex-footer),
.et_pb_row:has(.agribex-footer),
.et_pb_column:has(.agribex-footer),
.et_pb_code:has(.agribex-footer),
.et_pb_code_inner:has(.agribex-footer),
.et-l--footer:has(.agribex-footer) {
	width: 100% !important;
	max-width: none !important;
	background: transparent !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	overflow-x: clip !important;
}

.agribex-footer {
	width: 100%;
	background: transparent;
	color: var(--agribex-green-dark);
}

.agribex-footer__edge {
	position: relative;
	height: 64px;
}

.agribex-footer__edge::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 0;
	left: max(0px, calc(50% - (var(--agribex-frame) / 2)));
	width: 3000px;
	height: 64px;
	background: url("../assets/images/footer.png") left top / 3000px 64px no-repeat;
	pointer-events: none;
	margin-left: 48px;
}

.agribex-footer__edge::after {
	content: "";
	position: absolute;
	top: 0;
	left: calc(max(0px, 50% - (var(--agribex-frame) / 2)) + 3000px);
	right: 0;
	height: 64px;
	background: var(--agribex-gray);
}

.agribex-footer__body {
	position: relative;
	z-index: 2;
	display: flow-root;
	background: var(--agribex-gray);
}

.agribex-footer__inner {
	display: grid;
	grid-template-columns: minmax(16rem, 1fr) auto minmax(2rem, 1fr) auto;
	column-gap: clamp(1.5rem, 3vw, 3rem);
	row-gap: clamp(2.5rem, 5vw, 3rem);
	align-items: start;
	margin-top: -32px;
	padding-top: 0;
	padding-bottom: clamp(1.75rem, 3vw, 3rem);
}

.agribex-footer__logo {
	display: block;
	grid-column: 1;
	grid-row: 1;
	max-width: 266px;
}

.agribex-footer__logo img {
	display: block;
	width: 100%;
	max-width: 266px;
	height: auto;
}

.agribex-footer__menus {
	display: flex;
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 4.5rem);
	grid-column: 2 / 5;
	grid-row: 1;
	margin-left: clamp(2.5rem, 5vw, 5rem);
}

.agribex-footer__legal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	grid-column: 2;
	grid-row: 2;
}

.agribex-footer__socials {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	grid-column: 4;
	grid-row: 2;
}

.agribex-footer ul,
.agribex-footer li {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.agribex-footer a {
	color: var(--agribex-green-darker);
	text-decoration: none;
}

.agribex-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.agribex-footer__menu a {
	font-size: var(--agribex-font-sm);
	font-weight: 300;
	line-height: 1.35;
}

.agribex-footer__menu--dots a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.agribex-footer__menu--dots a::before {
	content: "";
	flex: 0 0 1rem;
	width: 1rem;
	height: 1rem;
	background-color: var(--agribex-green-light);
	-webkit-mask: url("../assets/images/bg_arrow.svg?v=1") center / contain no-repeat;
	mask: url("../assets/images/bg_arrow.svg?v=1") center / contain no-repeat;
}

.agribex-footer__copy,
.agribex-footer__menu--legal {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 300;
	line-height: 1.3;
}

.agribex-footer__menu--legal {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.agribex-footer__menu--legal a {
	font-size: 0.8125rem;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.agribex-footer a.agribex-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--agribex-green-dark);
	color: #fff;
}

.agribex-footer__social img {
	display: block;
	width: 1.65rem;
	height: 1.65rem;
	max-width: none;
	object-fit: contain;
}

.agribex-footer__missing {
	margin: 0;
	color: var(--agribex-green-dark);
	font-size: 0.8125rem;
	font-weight: 600;
}

@media (max-width: 56rem) {
	.agribex-footer__inner {
		grid-template-columns: 1fr;
		row-gap: var(--agribex-space-lg);
	}

	.agribex-footer__logo,
	.agribex-footer__menus,
	.agribex-footer__legal,
	.agribex-footer__socials {
		grid-column: 1;
		grid-row: auto;
	}

	.agribex-footer__menus {
		margin-left: 0;
	}
}
