.agrind-header,
.agrind-header * {
	box-sizing: border-box;
}

.agrind-header {
	--agrind-mobile-menu-bg: #004036;
	--agrind-mobile-padding: 14px 20px 22px;
	--agrind-menu-columns: 3;
	position: relative;
	width: 100%;
	border-style: solid;
	border-width: 1px 0 0;
	border-color: #006052 transparent transparent;
	background-color: #004036;
}

.agrind-header--full-width {
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
}

.agrind-header--sticky {
	position: sticky;
}

.agrind-header--lines {
	overflow: visible;
}

.agrind-header--lines::before,
.agrind-header--lines::after {
	position: absolute;
	z-index: 0;
	left: -10px;
	width: 220px;
	height: 2px;
	content: "";
	pointer-events: none;
	transform: rotate(7deg);
	transform-origin: left center;
	background-color: rgba(0, 119, 101, .25);
}

.agrind-header--lines::before {
	top: 38px;
}

.agrind-header--lines::after {
	top: 61px;
	left: 22px;
	width: 170px;
	opacity: .6;
}

.agrind-header__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 980px;
	min-height: 110px;
	margin: 0 auto;
	padding: 10px 24px;
	column-gap: 80px;
}

.agrind-header__logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: transparent !important;
}

.agrind-header__logo-image {
	display: block;
	width: 100px;
	max-width: 100%;
	max-height: 76px;
	object-fit: contain;
}

.agrind-header__nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.agrind-header__menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 26px;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.agrind-header__menu-item {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.agrind-header__menu-button,
.agrind-header__menu-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-radius: 999px;
	color: #dce7e4 !important;
	background-color: transparent !important;
	box-shadow: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.agrind-header__menu-button:hover,
.agrind-header__menu-button:focus,
.agrind-header__menu-button:active {
	color: #fff !important;
	background-color: rgba(0, 119, 101, .28) !important;
	text-decoration: none;
}

.agrind-header__menu-button:active {
	transform: translateY(1px);
}

.agrind-header__menu-button:focus {
	outline: none;
}

.agrind-header__menu-button:focus-visible,
.agrind-header__toggle:focus-visible,
.agrind-header__logo:focus-visible {
	outline: 2px solid #00c577;
	outline-offset: 3px;
}

.agrind-header__menu-button--highlight,
.agrind-header__menu-button--highlight:visited {
	padding: 10px 24px;
	color: #fff !important;
	background-color: #00ba39 !important;
}

.agrind-header__menu-button--highlight:hover,
.agrind-header__menu-button--highlight:focus,
.agrind-header__menu-button--highlight:active {
	color: #fff !important;
	background-color: #00c846 !important;
}

.agrind-header__toggle {
	display: none;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	color: #fff;
	background-color: rgba(255, 255, 255, .08);
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.agrind-header__toggle:hover,
.agrind-header__toggle:focus,
.agrind-header__toggle:active {
	border: 0;
	color: #fff;
	background-color: rgba(255, 255, 255, .13);
	box-shadow: none;
}

.agrind-header__toggle-line {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background-color: #fff;
	transition: transform .25s ease, opacity .2s ease;
}

.agrind-header.is-menu-open .agrind-header__toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.agrind-header.is-menu-open .agrind-header__toggle-line:nth-child(2) {
	opacity: 0;
}

.agrind-header.is-menu-open .agrind-header__toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.agrind-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		align-items: center;
		width: 100%;
		max-width: 100%;
		min-height: 90px;
		padding: 10px 24px;
		column-gap: 30px !important;
		row-gap: 0;
	}

	.agrind-header__logo {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		min-width: 0;
	}

	.agrind-header__logo-image {
		width: 90px;
		max-height: 64px;
	}

	.agrind-header__toggle {
		display: flex;
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	.agrind-header__nav {
		position: relative;
		z-index: 2;
		grid-column: 1 / -1;
		grid-row: 2;
		top: auto;
		right: auto;
		left: auto;
		display: block;
		width: 100%;
		min-width: 0;
		overflow: hidden;
		max-height: 0;
		margin: 0;
		padding: 0;
		visibility: hidden;
		opacity: 0;
		background-color: var(--agrind-mobile-menu-bg);
		box-shadow: none;
		transform: translateY(-6px);
		transition: max-height .35s ease, padding .3s ease, opacity .25s ease, transform .3s ease, visibility .3s ease;
	}

	.agrind-header.is-menu-open .agrind-header__nav {
		max-height: min(80vh, 680px);
		padding: var(--agrind-mobile-padding);
		overflow-y: auto;
		visibility: visible;
		opacity: 1;
		border-top: 1px solid rgba(255, 255, 255, .12);
		transform: translateY(0);
	}

	.agrind-header__menu {
		display: grid;
		grid-template-columns: repeat(var(--agrind-menu-columns), minmax(0, 1fr));
		grid-auto-flow: row;
		align-items: stretch;
		justify-content: stretch;
		gap: 10px !important;
		width: 100%;
		min-width: 0;
	}

	.agrind-header__menu-item {
		display: flex;
		width: 100%;
		min-width: 0;
	}

	.agrind-header__menu-item--highlight {
		grid-column: 1 / -1;
	}

	.agrind-header__menu-button,
	.agrind-header__menu-button:visited {
		justify-content: center;
		width: 100%;
		height: 100%;
		min-width: 0;
		padding: 12px 16px !important;
		text-align: center;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.agrind-header__menu-button--highlight,
	.agrind-header__menu-button--highlight:visited {
		justify-content: center;
		margin-top: 2px;
		text-align: center;
	}
}

@media (max-width: 767px) {
	.agrind-header {
		--agrind-menu-columns: 2;
	}

	.agrind-header__inner {
		min-height: 76px;
		padding: 8px 18px;
		column-gap: 18px !important;
	}

	.agrind-header__logo-image {
		width: 78px;
		max-height: 54px;
	}

	.agrind-header--lines::before,
	.agrind-header--lines::after {
		width: 125px;
	}

	.agrind-header.is-menu-open .agrind-header__nav {
		max-height: min(76vh, 620px);
	}

	.agrind-header__menu {
		gap: 8px !important;
	}

	.agrind-header__menu-button,
	.agrind-header__menu-button:visited {
		padding: 11px 10px !important;
	}
}

@media (max-width: 360px) {
	.agrind-header {
		--agrind-menu-columns: 1;
	}

	.agrind-header__inner {
		padding-right: 14px;
		padding-left: 14px;
	}

	.agrind-header__menu {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.agrind-header__menu-button,
	.agrind-header__toggle-line,
	.agrind-header__nav {
		transition: none;
	}
}
