/*
MARR Large Appliance Recycling (2026) - Layout CSS
LM 2026-12-03 ET
*/

html,
body {
	height: 100%;
	margin: 0;
	position: relative;
	overflow-x: hidden;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
	padding: 0 40px 4rem 40px;
}

form.auth {
	margin-top: 1rem;
}

.adminlink {
	font-size: 0.8rem;
	float: right;
	margin-left: 1em;
	margin-bottom: 0.5em;
	transition: opacity 0.2s;
	opacity: 0;
}

*:hover > .adminlink {
	opacity: 1;
}

.sr-only {
	/* invisible for published pages */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	font-style: default;
	opacity: default;
	border: 0;
}

body > header {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-content: stretch;
	padding: 40px 30px 10px 30px;
}

body > header input[type="checkbox"] {
	display: none;
}

body > header > nav {
	flex: 1 1 auto;
}

body > footer {
	background-color: rgb(19,32,66);
	color: white;
	padding: 54px 30px 30px 30px;
}

body > footer h2,
body > footer h3,
body > footer h4 {
	color: white;
}

body > footer a,
body > footer a:visited {
	color: white;
	text-decoration: none;
}

body > footer a:hover {
	color: rgb(181,229,3);
}

main > header {
	position: relative;
	background-color: rgb(27,48,93);
	background-image: url('../images/marr_bkgd_puddles.svg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto 300px;
	color: white;
	margin: 0 -3rem 4rem;
	padding: 1.5rem 3rem;
}

main > header::after {
	content: '';
	position: absolute;
	bottom: -0.625rem;
	left: 2rem;
	width: calc(100% - 4rem);
	height: 1.25rem;
	background-color: rgb(181,229,3);
	border-bottom-left-radius: 1.25rem;
	border-bottom-right-radius: 1.25rem;
	z-index: -1;
}

main > header h1,
main > header h2 {
	color: white;
	font-weight: normal;
}

main > header h1 > strong,
main > header h2 > strong {
	color: rgb(181,229,3);
	font-weight: normal;
}

main > header a,
main > header a:visited {
	color: white;
}

main > header a:hover {
	color: rgb(181,229,3);
}

header.hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	align-content: flex-start;
	min-height: 26rem;
	background-image: url('../images/marr_bkgd_puddles.svg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: auto 92%;
}

header.hero.recycling {
	background-image: url('../images/marr_grfx_pair-recycling.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 65vw bottom, center center;
	background-size: auto 82%, auto 92%;
}

header.hero.fridge {
	min-height: 30rem;
	background-image: url('../images/marr_grfx_fridge_tan-pants.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 60vw bottom, center center;
	background-size: auto 76%, auto 92%;
}

header.hero.products {
	background-image: url('../images/marr_grfx_products.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: right 4vw bottom, center center;
	background-size: auto 82%, auto 92%;
}

header.hero.refrigeration {
	background-image: url('../images/marr_grfx_fridge_tan-pants.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 66vw bottom, center center;
	background-size: auto 82%, auto 92%;
}

header.hero.climate-control {
	background-image: url('../images/marr_grfx_climate-control.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 66vw bottom, center center;
	background-size: auto 100%, auto 92%;
}

header.hero.laundry-cleaning {
	background-image: url('../images/marr_grfx_laundry-cleaning.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 60vw bottom, center center;
	background-size: auto 100%, auto 92%;
}

header.hero.cooking {
	background-image: url('../images/marr_grfx_cooking.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 60vw bottom, center center;
	background-size: auto 100%, auto 92%;
}

header.hero.ventilation-microwave {
	background-image: url('../images/marr_grfx_ventilation-microwave.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 66vw bottom, center center;
	background-size: auto 100%, auto 92%;
}

header.hero.specialized {
	background-image: url('../images/marr_grfx_specialized.svg'), url('../images/marr_bkgd_puddles.svg');
	background-position: 64vw bottom, center center;
	background-size: auto 100%, auto 92%;
}

header.what-happens-after {
	height: 450px;
	background: url('/images/marr_banner_how-it-works.svg') no-repeat center bottom / 1440px 450px,
		linear-gradient(to bottom, #213661 0%, #213661 64%, #b0d135 64%, #b0d135 100%);
}

header.what-happens-after {
	margin-bottom: 0;
}

header.what-happens-after::after {
	display: none;
}

header.hero h1 {
	width: 46%;
	max-width: 46rem;
}

header.hero p {
	width: 46%;
	max-width: 34rem;
}

table.loginform {
	border-spacing: 0;
	border: none;
}

table.loginform td,
table.loginform th {
	vertical-align: top;
	padding: 0.25rem 1rem 0.25rem 0;
}

nav.adminlinks {
	position: sticky;
	bottom: 0;
	background-color: rgb(237,239,248);
	padding: 0.7rem 2rem;
	border-top: 1px solid white;
	z-index: 11000;
}

nav.adminlinks > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

nav.adminlinks > ul > li {
	display: inline-block;
	padding: 0;
	margin: 0;
}

nav.adminlinks > ul > li::before {
	display: none;
}

nav.adminlinks > ul > li + li {
	margin-left: 1.5em;
}

#mainlogo {
	width: 254px;
	height: 100px;
}

#premenu,
#mainmenu {
	list-style: none;
	line-height: 1.2;
	padding: 0;
	margin: 0;
}

#premenu li,
#mainmenu li {
	padding-left: 0;
}

#premenu li::before,
#mainmenu li::before,
#footersocial li::before,
#sublinks li::before {
	display: none;
}

#premenu a,
#mainmenu a,
#mainmenu label {
	display: block;
	padding: 0.25em 0.5em;
	text-decoration: none;
	cursor: pointer;
}

#mainmenu ul ul {
	display: none;
}

#footerlogo {
	width: 184px;
	height: 70px;
}

#footersearch h3 {
	margin-bottom: 0.5em;
}

#footersearch p {
	font-size: 0.9rem;
	margin: 0.75em 0;
}

#footermenu {
	position: relative;
	overflow: hidden;
	list-style: none;
	font-size: 0.9rem;
	line-height: 1.2;
	padding: 0;
	margin: 0;
}

#footermenu > li {
	padding: 0;
	margin: 2.25rem 3rem 0 0;
}

#footermenu > li::before {
	display: none;
}

#footermenu > li > a,
#footermenu > li > a:visited {
	color: rgb(181,229,3);
	font-family: "Ubuntu", "Lato", sans-serif;
	font-weight: 500;
	font-size: 1.125rem;
}

#footermenu > li > a:hover {
	color: white;
}

#footermenu ul {
	list-style: none;
	line-height: 1.2;
	padding: 0;
	margin: 2rem 0 0 0;
}

#footermenu ul > li {
	margin: 0.375rem 0;
}

#footersocial {
	position: relative;
	top: -1.5rem;
	list-style: none;
	text-align: right;
	padding: 0;
	margin: 0;
}

#footersocial svg {
	fill: currentColor;
}

#footersocial > li {
	display: inline-block;
	padding: 0;
	margin: 0 0 0 1rem;
}

#subfooter {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-size: 0.75rem;
	border-top: 1px solid rgba(255,255,255,0.6);
	padding: 30px 0 0 6px;
	margin: 0 -16px;
}

#sublinks {
	list-style: none;
	font-size: 0.75rem;
	text-align: right;
	padding: 0;
	margin: 0;
}

#sublinks > li {
	padding: 0;
	margin: 0 0.5rem 0 1.5rem;
}


@media (min-width: 1340px) {

	/* target 1280px */

	body > header,
	main,
	body > footer,
	nav.adminlinks {
		padding-left: calc(50vw - 640px);
		padding-right: calc(50vw - 640px);
	}

	blockquote,
	main > header,
	main > section.panel,
	h2.intro {
		padding-left: calc(50vw - 640px);
		padding-right: calc(50vw - 640px);
		margin-left: calc(-50vw + 640px);
		margin-right: calc(-50vw + 640px);
	}

	main > header::after {
		left: 50%;
		transform: translateX(-50%);
		width: calc(1280px + 2rem);
	}

	ol.howitworks > li {
		padding-left: calc((50vw - 640px) + 6.875rem);
		padding-right: calc(50vw - 640px);
		margin-left: calc(-50vw + 640px);
		margin-right: calc(-50vw + 640px);
	}

	ol.howitworks > li::before,
	ol.howitworks > li::after {
		left: calc(50vw - 640px);
	}

}

@media (min-width: 1280px) {

	#footersearch {
		float: right;
	}
	
}

@media (min-width: 1001px) {

	/* Desktop Header Menu */

	#nav-open,
	#nav-close {
		display: none;
	}

	#premenu,
	#mainmenu {
		text-align: right;
	}

	#premenu {
		font-size: 0.75rem;
		padding-right: 0.5rem;
		margin-top: 0.5625rem;
	}
	
	#mainmenu {
		font-size: 1rem;
		line-height: 1.2;
		margin-left: 1.5rem;
	}
	
	#premenu > li,
	#mainmenu > li {
		display: inline-block;
		padding: 0;
	}
	
	#premenu > li {
		margin: 0.375rem 0.5625rem;
	}
	
	#mainmenu > li {
		margin: 0.75rem 0.5rem;
	}
	
	#mainmenu > #findloc {
		margin-left: 1rem;
	}
	
	#mainmenu > #findloc a,
	#mainmenu > #findloc a:visited {
		font-size: 0.875rem;
	}
	
	#premenu > li > a,
	#mainmenu > li > a:not(.button),
	#mainmenu label {
		font-weight: bold;
	}

	#mainmenu label {
		color: rgb(27,48,93);
	}
	
	#premenu > li > a:hover,
	#mainmenu > li > a:hover,
	#mainmenu > li > label:hover,
	#mainmenu > li:hover > label,
	#mainmenu input[type="checkbox"]:checked + label {
		text-shadow: 0.2px 0 currentColor, -0.2px 0 currentColor;
	}
	
	#mainmenu > li:has(ul) > label {
		background-image: url('../images/marr_icon_down-arrow_navy.svg');
		background-repeat: no-repeat;
		background-position: right 12px;
		background-size: 12px 8px;
		padding-right: 20px;
	}
	
	#mainmenu > li:has(ul):hover > label {
		background-image: url('../images/marr_icon_down-arrow_lime.svg');
	}

	#mainmenu > li > div {
		display: none;
		position: absolute;
		z-index: 100;
	}
	
	#mainmenu > li > div > label,
	#mainmenu > li > div > a.button {
		display: none;
	}
	
	#mainmenu ul {
		width: 20rem;
		list-style: none;
		background-color: rgb(233,249,255);
		font-weight: normal;
		text-align: left;
		padding: 0.5rem 1rem;
		border-bottom-right-radius: 1rem;
		box-shadow: rgba(0,0,0,0.25) 3px 3px 6px;
		margin-top: 2rem;
	}
	
	#mainmenu ul a,
	#mainmenu ul a:visited {
		font-weight: normal;
		padding: 0.675rem 0;
		border-left: 0 solid rgb(181,229,3);
		border-bottom: 1px solid rgba(27,48,93,0.5);
		transition: all 0.2s;
	}
	
	#mainmenu ul a:hover {
		font-weight: bold;
		padding-left: 0.375rem;
		padding-right: 1rem;
		border-left: 0.625rem solid rgb(181,229,3);
	}
	
	#mainmenu ul li:last-child a,
	#mainmenu ul li:last-child a:visited {
		border-bottom: none;
	}
	
	#mainmenu > li:hover > div {
		display: block;
	}

	#footermenu > li {
		float: left;
	}

}

@media (min-width: 1001px) and (max-width: 1280px) {

	body > header {
		padding-top: 30px;
	}
	
	#premenu {
		padding-right: 0.125rem;
		margin-top: 0;
	}

	#premenu > li,
	#mainmenu > li {
		margin-left: 0.5rem;
		margin-right: 0.5rem;
	}

	#mainmenu > #findloc {
		margin-left: 1rem;
	}
	
	#mainmenu > li {
		margin-top: 0;
	}

	#mainmenu ul {
		margin-top: 4.75rem;
	}

	#mainmenu > #areas div {
		left: 50%;
		transform: translateX(-40%);
	}
	
	#mainmenu > #findloc {
		display: block;
		width: fit-content;
		margin-left: auto;
		margin-right: 0;
	}

}

@media (max-width: 1280px) {

	#footersearch {
		margin-top: 1.5rem;
	}
	
	#footermenu > li {
		margin-top: 1.5rem;
	}

}


@media (max-width: 1000px) {

	#footermenu {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: 2rem;
	}
	
	#footermenu > li {
		display: block;
		width: calc(50% - 2rem);
		margin-right: 0;
	}

}

header.what-happens-after + div.flexrow {
	margin-top: 0;
}

@media (min-width: 640px) {

	.wide-split {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-content: start;
		gap: 2rem;
		/* border: 1px dashed blue; */
	}

	.wide-split > * {
		/* border: 1px dashed red; */
	}
	
	.wide-split > *:nth-child(2) {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.wide-split figure img {
		max-width: 48vw;
	}

	.wide-split.third-left > *:nth-child(1) {
		align-self: end;
	}

	.wide-split.third-left > *:nth-child(2) {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
	
	.wide-split.third-left > *:nth-child(3) {
		grid-column: 1;
		grid-row: 2;
	}

}

@media (max-width: 1000px) {

	body > header {
		padding: 32px 120px 14px 40px;
	}
	
	body > footer {
		padding: 32px;
	}

	main {
		padding: 0 26px 40px;
	}

	main > header {
		background-size: auto 225px;
		padding: 2.25rem;
		margin: 0 -2.25rem 4rem;
	}

	header.hero {
		min-height: 18rem;
	}

	header.hero p {
		max-width: 50vw;
		font-size: 1rem;
	}
	
	header.hero.fridge {
		min-height: 0;
		background-position: right 4vw bottom, center center;
		background-size: auto 65%, auto 92%;
	}
	
	header.hero.products {
		background-position: right 4vw bottom, center center;
		background-size: auto 70%, auto 92%;
	}
	
	header.hero.recycling {
		background-position: right 6vw bottom, center center;
		background-size: auto 70%, auto 92%;
	}

	header.hero.refrigeration {
		background-position: right 4vw bottom, center center;
		background-size: auto 70%, auto 92%;
	}
	
	/* Mobile Header Menu */

	body > header > nav {
		position: fixed;
		overflow-y: auto;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column-reverse;
		justify-content: space-between;
		background-color: rgb(27,48,93);
		background-image: url('../images/marr_logo_large-appliance-recycling_reverse_2026.svg');
		background-repeat: no-repeat;
		background-position: 40px 40px;
		background-size: 128px 50px;
		padding: 100px 40px 40px 40px;
		z-index: 2000;
		margin-left: 100%;
	}

	#cb-nav:checked ~ nav {
		margin-left: 0;
		transition: margin 0.3s;
	}

	#nav-open,
	#nav-close {
		cursor: pointer;
	}

	#nav-open {
		position: absolute;
		top: 50px;
		right: 20px;
		color: rgb(27,48,93);
		font-weight: bold;
	}

	#nav-close {
		position: absolute;
		top: 30px;
		right: 30px;
		width: 30px;
		height: 30px;
		color: white;
		padding: 6px;
	}

	#nav-open:hover,
	#nav-open:active,
	#nav-close:hover,
	#nav-close:active {
		color: rgb(181,229,3);
	}

	#nav-open svg,	
	#nav-close svg {
		fill: currentColor;
	}
	
	#nav-open svg {
		width: 30px;
		height: 22px;
		display: inline-block;
		margin-left: 10px;
	}

	#premenu,
	#mainmenu {
		font-size: 1.375rem;
		line-height: 1.2;
		position: relative;
	}

	#premenu a,
	#premenu a:visited,
	#mainmenu a,
	#mainmenu a:visited,
	#mainmenu label {
		color: white;
		font-weight: normal;
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
	}

	#premenu a:hover,
	#mainmenu a:hover,
	#mainmenu label:hover {
		color: rgb(181,229,3);
	}

	#mainmenu a.button {
		background-color: rgb(181,229,3);
		color: rgb(27,48,93);
		text-align: center;
		margin-top: 1rem;
		margin-left: 0.5rem;
	}
	
	#mainmenu a.button:hover {
		background-color: white;
	}

	#mainmenu a.button.locations {
		font-size: 1.375rem !important;
		margin-right: 0.5rem;
	}

	#mainmenu a.button.locations::after {
		background-image: url('../images/marr_icon_location_navy.svg');
	}

	#premenu > li,
	#mainmenu > li {
		position: static;
		border-top: 1px solid rgba(255,255,255,0.5);
	}

	#premenu > li:first-child,
	#mainmenu > li:first-child,
	#mainmenu > #findloc {
		border-top: none;
	}

	#mainmenu > li:has(ul) > label {
		background-image: url('../images/marr_icon_right-arrow_lime.svg');
		background-repeat: no-repeat;
		background-position: right center;
		background-size: 7px 10px;
		padding-right: 26px;
	}

	#mainmenu > li > a:not(.button),
	#mainmenu > li > label {
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	#mainmenu > li > div {
		position: absolute;
		top: 0;
		width: 100vw;
		height: calc(100vh - 100px); 
		background-color: rgb(27,48,93);
		padding: 0 40px 40px 40px;
		margin-left: 100%;
		transition: margin 0.3s;
		z-index: 2001;
	}
	
	#mainmenu input[type="checkbox"]:checked ~ div {
		margin-left: -40px;
	}

	#mainmenu > li > div > label {
		background-image: url('../images/marr_icon_left-arrow_lime.svg');
		background-repeat: no-repeat;
		background-position: left center;
		background-size: 7px 10px;
		padding-left: 26px;'
	}

	#mainmenu > li > div > a.button {
		margin-bottom: 2rem;
	}

	#mainmenu ul {
		list-style: none;
		padding: 0;
		margin: 1rem 0 2rem 0;
	}

	#mainmenu ul a,
	#mainmenu ul a:visited {
		padding-top: 0.875rem;
		padding-bottom: 0.875rem;
	}

	#mainmenu ul > li:not(:first-child) {
		border-top: 1px solid rgba(255,255,255,0.5);
	}

	#mainmenu ul > li:has(ul) > a {
		background-image: url('../images/marr_icon_right-arrow_lime.svg');
		background-repeat: no-repeat;
		background-position: right center;
		background-size: 7px 10px;
		padding-right: 26px;'
	}

	/* #mainmenu ul > li:has(ul) > a:hover, */
	#mainmenu ul > li:has(ul).active > a {
		background-image: url('../images/marr_icon_down-arrow_lime.svg');
		background-repeat: no-repeat;
		background-position: right center;
		background-size: 10px 7px;
		padding-right: 26px;
	}

	/* #mainmenu ul > li:hover > ul, */
	#mainmenu ul > li.active > ul {
		display: block;
		padding-top: 0.5rem;
		margin-top: 0;
		border-top: 1px solid rgba(255,255,255,0.5);
	}
	
	#mainmenu ul ul li {
		border: none !important;
	}

	#mainmenu ul ul li a,
	#mainmenu ul ul li a:visited {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	#mainmenu a.button.secondary,
	#mainmenu a.button.secondary:visited {
		display: inline-block;
		background-color: transparent;
		color: white;
		border-color: white;
	}

	#mainmenu a.button.secondary:hover {
		color: rgb(181,229,3);
		border-color: rgb(181,229,3);
	}

	#mainlogo,
	#footerlogo {
		width: 142px;
		height: 56px;
	}
	
	#footersearch {
		margin-top: 1.5rem;
	}

	#footermenu {
		font-size: 1rem;
	}

	#footermenu > li {
		margin: 0.75rem 0;
	}

	#footermenu > li > a,
	#footermenu > li > a:visited {
		font-size: 1.375rem;
	}

	#footermenu ul {
		margin: 1.25rem 0;
	}
	
	#footermenu ul > li {
		margin: 0.5rem 0;
	}

	#footersocial {
		top: -1.25rem;
	}
	
	#footersocial svg {
		max-height: 16px;
		width: auto;
	}

	#subfooter {
		font-size: 0.875rem;
		padding: 1rem 16px 0;
	}

}

@media (max-width: 640px) {

	.wide-split > *:nth-child(2) {
		margin-top: 2rem !important;
	}

	.wide-split.third-left > *:nth-child(3) {
		text-align: center;
		margin-top: 2rem !important;
	}

	header.hero.fridge {
		background-position: right bottom, center center;
	}
	
	header.hero.refrigeration p,
	header.hero.climate-control p,
	header.hero.laundry-cleaning p,
	header.hero.cooking p,
	header.hero.ventilation-microwave p,
	header.hero.specialized p {
		display: none;
	}

	header.hero.recycling,
	header.hero.climate-control,
	header.hero.ventilation-microwave,
	header.hero.specialized {
		background-position: right 6vw bottom, center center;
	}
	
	header.hero.products,
	header.hero.refrigeration {
		background-position: right 4vw bottom, center center;
	}

	header.hero.laundry-cleaning,
	header.hero.cooking {
		background-position: right 1vw bottom, center center;
	}

}

@media (min-width: 561px) and (max-width: 1280px) {

	header.what-happens-after {
		height: 31.25vw;
		background: url('/images/marr_banner_how-it-works.svg') no-repeat left bottom / 98vw 30vw,
			linear-gradient(to bottom, #213661 0%, #213661 64%, #b0d135 64%, #b0d135 100%);
	}

}

@media (max-width: 560px) {

	header.what-happens-after {
		height: 158px;
		background: url('/images/marr_banner_how-it-works.svg') no-repeat left bottom / 504px 158px,
			linear-gradient(to bottom, #213661 0%, #213661 64%, #b0d135 64%, #b0d135 100%);
	}
	
}

@media (max-width: 479px) {

	header.hero {
		/* background-size: 50% auto, auto 92% !important; */
		background-position: right -4vw bottom, center center !important;
	}

	header.hero.fridge h1 {
		width: 100%;
	}

	header.hero p {
		width: 100%;
	}

}


