@import "fonts.css";
@import "base.css";
@import "header-footer.css";
@import "bricks.css";

/*------------------------*/
/* theme colors
/*------------------------*/

:root {
	--textDarker: #1e282d;
	--textDark: rgba(38, 50, 56, 1);
	--textMedium: rgba(38, 50, 56, 0.7);
	--borderMedium: rgba(38, 50, 56, 0.2);
	--borderLight: rgba(38, 50, 56, 0.075);
	--accent: #b51b00;
	--accentDarker: #b51b00;
	--light: rgba(38, 50, 56, 0.035);
	--scrollDuration: 200s;
	--clientWidth: 220px;
	--clientHeight: 100px;
	/* color-scheme: light dark; */
	/* --textDarker: light-dark(#1e282d, CanvasText); */
	/* --textDark: light-dark(rgba(38, 50, 56, 1), CanvasText); */
	/* --textMedium: light-dark(rgba(38, 50, 56, 0.7), CanvasText); */
	/* --borderMedium: light-dark(rgba(38, 50, 56, 0.2), CanvasText); */
	/* --borderLight: light-dark(rgba(38, 50, 56, 0.075), CanvasText); */
	/* --accent: light-dark(#b51b00, CanvasText); */
	/* --accentDarker: light-dark(#b51b00, CanvasText); */
	/* --light: light-dark(rgba(38, 50, 56, 0.035), Canvas); */
}

/*------------------------*/
/* turn grayscale off
/*------------------------*/

img {
	filter: grayscale(0);
}

/*------------------------*/
/* colorize_image
/*------------------------*/

.colorize_image {
	filter: contrast(1) sepia(1) hue-rotate(160deg) grayscale(0.8) !important;
}

/*------------------------*/
/* black_2_textDark
/*------------------------*/

.map::after,
.black_2_textDark {
	filter: contrast(0.7) sepia(1) hue-rotate(160deg) !important;
}

/*------------------------*/
/* black_2_textMedium
/*------------------------*/

.black_2_textMedium {
	filter: contrast(0.3) sepia(0.3) hue-rotate(160deg) brightness(1.4) !important;
}

/*------------------------*/
/* black_2_accent
/*------------------------*/

.black_2_accent {
	filter: contrast(0.23) sepia(1) hue-rotate(310deg) contrast(11) brightness(0.95) !important;
}

/*------------------------ CSS overrides below ------------------------*/
/* Header customizations */
header a.logo img:hover {
	transform: scale(1.1);
	transition: transform 200ms;
}

/*------------------------*/
/* Used for new two column brick created for inside brick_wide */
/*------------------------*/
.twocols .towcolstop {
	justify-content: flex-start;
}

.brickTwocols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	grid-gap: 3rem clamp(1rem, 3vw, 3rem);
}

section .brickTwocols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	grid-gap: 3rem clamp(1rem, 3vw, 3rem);
	padding: 0;
}

.brickTwocols.alt {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	grid-gap: 3rem clamp(1rem, 3vw, 3rem);
	padding: 0;
	direction: rtl;
}

.brickTwocols div.text {
	direction: ltr;
}

.brickTwocols>div {
	display: flex;
	flex-direction: column;
	justify-content: start;
}

.brickTwocols>.text h3 {
	color: var(--accent);
}

.brickTwocols p,
.brickTwocols>.text>div>ol>li p,
.brickTwocols>.text>div>ol>li a {
	font-size: 1rem !important;
	color: var(--textMedium) !important;
}

/* Columns used for various item lists */
.columnList {
	columns: 10rem 2;
}

/* Table custimization used in FAQ for nutrient listing and in AODA*/
table {
	width: 100%;
	border-collapse: separate;
	border: 1px solid var(--borderMedium);
	border-spacing: 0;
	border-radius: 0.5rem;
	overflow: hidden;
}

th,
td {
	padding: 0.45rem;
	text-align: left;
}

.table-container td {
	text-align: center;
}

th {
	text-align: left;
	background-color: var(--borderMedium);
}

tr:nth-of-type(2n) {
	background-color: var(--light);
}

.table-container {
	max-width: 100%;
	overflow-x: auto;
}

/*------------------------*/
/* bgimage for the front page hero section
/*------------------------*/

section.bgimage .hero {
	position: relative;
	/* display: flex; */
	/* flex-direction: column; */
	/* justify-content: center; */
	/* Set a specific height */
	/* min-height: 1000px; */
	/* max-height: 800px; */

	/* Create the parallax scrolling effect */
	background-attachment: fixed;
	background-position: top left;
	background-repeat: no-repeat;
	background-size: inherit;
	transform: none;
}

section.bgimage .container {
	position: relative;
	z-index: 2;
	color: white;
	padding-top: 5.5rem;
	padding-bottom: 6rem;
}

section.bgimage .container h1,
section.bgimage .container h2 {
	color: white;
}

section.bgimage h1+p {
	padding-top: 0;
}

body.transparent_header header:not(.sticky) .logo,
header:not(.sticky) .lightLogo,
header.dark.sticky .lightLogo,
footer.dark img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(19%) saturate(2%) hue-rotate(217deg) brightness(109%) contrast(101%);
}

/*------------------------*/
/* cta2 brick css
/*------------------------*/

section.cta2 .twocols {
	display: flex;
	padding: 0;
	overflow: clip;
}

section.cta2 .twocols .text {
	flex: 3;
	padding: 3.5rem 1rem 3.5rem clamp(2rem, 5vw, 5rem);
}

section.cta2 .twocols .image {
	flex: 2;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

section.cta2 .twocols .image img {
	display: inline-block;
	width: 20rem;
}

section.cta2 .twocols .image img.is_svg {
	margin: 0 !important;
}

@media (max-width: 600px) {
	section.cta2 .twocols {
		flex-direction: column;
	}

	section.cta2 .twocols .text {
		text-align: center;
	}

	section.cta2 .twocols .image {
		text-align: left;
		display: none;
	}
}

/*------------------------*/
/* typewriter effect for front page hero section
/*------------------------*/
.hero {
	position: relative;
	/* height: 100vh; */
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--textMedium);
	text-align: center;
}

.hero h1 {
	font-size: 5rem;
}

.hero-content {
	position: relative;
	white-space: nowrap;
	font-size: 4rem;
	padding-bottom: 1rem;
}

.dynamic-text {
	display: inline-block;
	color: transparent;
	transition: opacity 0.5s ease-in-out;
	background-image: linear-gradient(to left,
			hsl(0deg 100% 41%) 0%,
			hsl(20deg 100% 44%) 9%,
			hsl(30deg 100% 47%) 18%,
			hsl(38deg 100% 49%) 27%,
			hsl(46deg 100% 48%) 36%,
			hsl(59deg 100% 41%) 45%,
			hsl(77deg 100% 44%) 55%,
			hsl(112deg 85% 58%) 64%,
			hsl(85deg 100% 42%) 73%,
			hsl(54deg 100% 35%) 82%,
			hsl(30deg 100% 41%) 91%,
			hsl(0deg 100% 41%) 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	animation: 8s linear infinite gradientMove;
}

.suffix-text {
	display: inline-block;
	padding-left: 0.5ch;
}

.hidden {
	opacity: 0;
}

@keyframes slide {
	100% {
		top: -360px;
	}
}

.dynamic-text::after {
	content: "";
	animation:
		1s cubic-bezier(1, 0, 0, 1) infinite blink-caret,
		0.8s ease-out fade-in;
	border-right: 4px solid transparent;
}

@keyframes blink-caret {

	0%,
	49% {
		border-right: 4px solid var(--textMedium);
	}

	50%,
	100% {
		border-right: none;
	}
}

@keyframes gradientMove {
	0% {
		background-position: 0%
	}

	to {
		background-position: -200%
	}
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/*------------------------*/
/* carousel for client logos
/*------------------------*/
.scroller {
	width: 100%;
	min-height: 120px;
	padding-block: 10px;
	/* border: 2px solid var(--borderLight); */
	overflow: auto;

	mask-image: linear-gradient(to right,
			transparent,
			#000 10% 90%,
			transparent);
}

.scroller .scrollList {
	width: calc(var(--clientWidth) * 22);
	position: relative;
	display: flex;
	gap: 1rem;
}

/* formala for delay below */
/* calc(duration / total divs * (total divs - position of div) * -1) */
.clientBox {
	width: var(--clientWidth);
	height: var(--clientHeight);
	/* position: absolute; */
	border-radius: 0.5rem;
	left: 0%;
	/* background-color: hsl(0, 100%, calc((var(--fileCount) - var(--i))/var(--fileCount)*100%)); */
	display: flex;
	justify-content: center;
	align-items: center;
}

.clientBox img {
	width: 100%;
	max-height: 100%;
}

/* Note: --fileCount is found in the client_scroller.html shortcode. */
@media (prefers-reduced-motion: no-preference) {
	.clientBox {
		position: absolute;
		animation: logo-scroll var(--scrollDuration) linear infinite;
		transition: filter 0.25s;
		animation-delay: calc(var(--scrollDuration) / var(--fileCount) * (var(--fileCount) - var(--i)) * -1);
		left: 100%;
	}

	.scroller {
		overflow: clip;
	}
}

@keyframes logo-scroll {
	100% {
		left: calc(var(--clientWidth) * -1);
	}
}

.scroller:hover .clientBox {
	animation-play-state: paused !important;
}

.scroller .clientBox:hover {
	filter: brightness(0) saturate(100%) invert(17%) sepia(27%) saturate(6442%) hue-rotate(335deg) brightness(96%) contrast(116%);
}

/*------------------------*/
/* override for reviews (I'm using the brick for nutrients and MECP stuff)
/*------------------------*/
ul.grid.reviews {
	display: grid;
	grid-template-columns: repeat(2, minmax(20rem, 1fr));
	grid-gap: 1.55rem 1.5rem;
	margin: 0;
	padding-bottom: 1rem;
}

ul.reviews li div.box {
	display: flex;
	flex-direction: column;
	padding: 2.25rem 2rem;
	height: 100%;
	justify-content: flex-start;
	gap: 2rem;
}

ul.reviews li div.box .function {
	color: var(--accent);
	line-height: 1.45;
}

/*------------------------*/
/* Footer customized for privacy policy, and terms and conditions
/*------------------------*/

footer .footer-content {
	display: flex;
	justify-content: space-between;
}

footer div.footer-content div.footer-text {
	text-align: left;
}

footer div.footer-content div.footer-links ul {
	justify-content: right;
	font-size: .8rem;
	gap: 1rem;
}

footer .footer-content div.footer-links>ul>li>a {
	padding: 0;
}

/*------------------------*/
/* Timeline and TimelineItem
/*------------------------*/
.timeLine {
	border-left: 2px var(--accent) solid;
	list-style-type: none;
	margin-left: 0;
}

ol.timeLine>li>div {
	display: flex;
	margin-left: -1rem;
}

ol.timeLine>li>div .timeLineIcon {
	display: flex;
	margin-top: 1.25rem;
	margin-left: 0rem;
	justify-content: center;
	align-items: center;
	border-radius: 100%;
	height: 2rem;
	font-size: 1.5rem;
	line-height: 1.5rem;
	background-color: var(--accent);
	min-width: 30px;
}

ol.timeLine>li>div .timeLineItem {
	background: var(--light);
	border: 0.1rem solid var(--borderLight);
	padding: 3.5rem clamp(2rem, 5vw, 5rem);
	border-radius: 1rem;
	position: relative;
	display: block;
	/* padding: 1.5rem; */
	margin-left: 1.5rem;
	/* margin-bottom: 2.5rem; */
	/* border-radius: 0.5rem; */
	/* min-width: 100%; */
	overflow-wrap: break-word;
	/* box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.25); */
}

ol.timeLine>li:not(:last-child)>div .timeLineItem {
	margin-bottom: 1.7em;
}

.timeLineItem h3 {
	color: var(--accent);

	& .timeLineBadge {
		padding-left: 0.25rem;
		padding-right: 0.25rem;
		border-radius: 0.375rem;
		border: 1px var(--accent) solid;
		font-size: 0.75rem;
		line-height: 1rem;
		font-weight: 400;
	}
}


/*------------------------*/
/* Random stuff
/*------------------------*/
/* changes the colors when you select text */
::selection {
	background-color: var(--accent);
	color: white;
}

/* changes the definition listing in the AODA to line up beside each other. */
dl {
	display: grid;
	grid-gap: 4px 16px;
	grid-template-columns: minmax(min-content, auto) minmax(60%, auto);
}

dt {
	font-weight: bold;
	padding-block: 1rem;
}

dd {
	margin: 0;
	grid-column-start: 2;
	padding-block: 1rem;
}

/* add an icon for external links - wasn't working 100%*/

/* a[href^="https://"]:not([href^="8080"]):not([href*="wessuc.com"]):not(.button)::after { */
/* 	position: absolute; */
/* 	content: ' '; */
/* 	display: inline-block; */
/* 	width: 0.75em; */
/* 	height: 0.75em; */
/* 	margin-left: 0.25em; */
/* 	background-size: 100%; */
/* 	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewbox='0 0 12.2 12.2' width='14' height='14'%3E%3Cpath fill='currentColor' d='M5.7 0v1.5h4L4.5 6.7l1 1.1 5.3-5.2v3.9h1.4V0z'/%3E%3Cpath fill='none' d='M3.4 6.7l3-2.9H1.5v7h7V5.9l-3 2.9z'/%3E%3Cpath fill='currentColor' d='M8.5 5.9v4.9h-7v-7h4.9l1.5-1.6H0v10h10V4.4z'/%3E%3C/svg%3E"); */
/* 	transform: translateY(0.35em); */
/* } */

/* Indent the bullet list on "wide" bricks that does not already have a class with formatting*/
.wide ul:not([class]) {
	margin-left: 2rem;
}

/* Changes the outline on forms */
textarea:focus,
input:focus,
input[type]:focus,
.uneditable-input:focus {
	border-color: rgba(229, 103, 23, 0.8);
	/* box-shadow: 0 1px 1px rgba(229, 103, 23, 0.075) inset, 0 0 8px rgba(229, 103, 23, 0.6); */
	outline: 0 none;
}

/* changes the first font letter for the reviews class for the nutrients */
.grid.reviews.nutrients li:first-child h3::first-letter {
	color: green;
	font-size: 2rem;
}

.grid.reviews.nutrients li:nth-child(2) h3::first-letter {
	color: red;
	font-size: 2rem;
}

.grid.reviews.nutrients li:nth-child(3) h3::first-line {
	color: orange;
	font-size: 1rem;
}

/* change the gallery behaviour to transform the image similar to when hovering over the Services */
a.lightbox-image[href] img {
	transform: scale(1);
	transition: transform 0.35s ease-in-out;
}

a.lightbox-image[href]:hover img {
	transform: scale(1.075);
}

.image-gallery li {
	overflow: clip;
}

/* purpose statement on the about us page*/
.purpose {
	font-size: 4rem;
	font-weight: 300;
	line-height: 1.1em;
}

#the-wessuc-adventure {
	font-size: 3.5rem;
}


/* increase the image size for the default call to action form*/
section.cta .twocols .image {
	flex: 1;
	scale: 130%;
}

/*------------------------*/
/* Tool tip for on the digester cleaning page
/*------------------------*/

.tooltip {
	display: none;
	position: absolute;
	background-color: #333;
	color: #fff;
	padding: 5px 10px 5px;
	border-radius: 5px;
	z-index: 100;
}

li {
	position: relative;
	cursor: pointer;
}

li:hover .tooltip {
	display: block;
	top: 100%;
	left: 0;
	margin-top: 5px;
}

/*------------------------*/
/* Custom styling of the contact us tabs for Main Office, Sales, and HR
/*------------------------*/
#tab_sales li::first-letter,
#tab_main-office li::first-letter,
#tab_human-resources li::first-letter {
	color: var(--accent);
}

#tab_sales li,
#tab_main-office li,
#tab_human-resources li {
	padding: 0;
	margin: 0 0 0 -1rem;
	list-style: none;
}

#tab_main-office li:first-child {
	font-size: 1.75rem;
}

/*------------------------*/
/* dynamic changes for different wcreen sizes
/*------------------------*/
@media (max-width: 640px) {
	.dynamic-text {
		border-right-width: 2px;
	}

	.hero h1 {
		font-size: 3rem;
	}

	.purpose {
		font-size: 3rem;
	}

	#the-wessuc-adventure {
		font-size: 2.6rem;
	}

	.scroller {
		min-height: 80px;
	}

	.clientBox {
		height: calc(var(--clientHeight) - 30px);
	}

	ul.grid.reviews {
		grid-template-columns: 1fr;
	}
}
