:root {
	--gutter-width: 50px;
}
@media (width<640px) {
	:root {
		--gutter-width: 20px;
	}
}

@font-face { 
	font-family: "DelaGothicOne-Regular"; /* Open Font License, from Google */
	src: url('fonts/DelaGothicOne-Regular.ttf');
}

html {
	min-height: 100vh;
}

body { 
	background-color: #000000;
	color: #C4C4C4;
	display: grid;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 1rem;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

h1, h2, h3, h4 {
	font-weight: 700;
}

a, a:hover, a:active, a:visited {
	color: #C4C4C4;
	text-decoration: underline;
}
a:hover {
	text-decoration-style: double;
}

#next, #previous {
	align-items: center;
	background-color: white;
	border-color:rgba(0, 0, 0, 0);
	font-size: xxx-large;
	font-weight: 900;
	display: flex;
	height: 1em;
	justify-content: center;
	opacity: 25%;
	outline-color: transparent;
	position: absolute;
	top: 50%;
	width: 1em;
	z-index: 3;
}

#previous {
	grid-area: 5 / 1;
}

#next {
	grid-area: 5 / 2;
}

/**********************************************************\
	HEADER
\**********************************************************/
header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding-inline: var(--gutter-width);
}
header.no-menu {
	justify-content: right;
}

.hamburger {
	appearance: none;
	background-color: transparent;
	border: none;
	color: #C4C4C4;
	cursor: pointer;
	display: inline-block;
	font-size: 3.5rem;
	z-index: 11;
}

header.main {
	padding-block: 10px;
}

header.main nav {
	background-color: #000;
	height: 100%;
	left: 0px;
	overflow-x: hidden;
	position: fixed;
	top: 0px;
	transition: 0.2s;
	width: 0;
	z-index: 10;
}

header.main .hamburger[aria-pressed="true"] + nav {
	width: 100%;
}

header.main nav > ul {
	list-style: none;
	margin-left: 50px;
	position: relative;
	top: 100px;
	width: 100%;
}

header.main nav a {
	color: #C4C4C4;
	display: block;
	font-size: 2.25rem;
	padding-bottom: 20px;
	padding-left: 20px;
	text-decoration: none;
	transition: 0.3s;
}

header.main nav a:is(:hover, :focus-visible) { 
	color: #FFFFFF;
	text-decoration-color: red;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/*should size be 3.5rem?*/
header.main nav .close_button {
	cursor: pointer;
	left: 3.125rem;
	font-size: 3.125rem;
	position: absolute;
	top: 3.125rem;
}	

/**********************************************************\
	LOGO
\**********************************************************/
.logo {
	align-items: center;
	display: flex;
	font-family: DelaGothicOne-Regular, Helvetica, Arial, sans-serif;
	font-size: 2rem;
	justify-content: flex-end;
}

.logo img {
	height: 75px;
	margin-right: 10px;
	width: auto;
}

/**********************************************************\
	FOOTER
\**********************************************************/
footer {
	padding: 20px var(--gutter-width);
	
	.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
		padding: 0;
		margin: 0;
		
		a,
		.wpml-ls-sub-menu a,
		.wpml-ls-sub-menu a:link,
		li:not(.wpml-ls-current-language) .wpml-ls-link,
		li:not(.wpml-ls-current-language) .wpml-ls-link:link {
			align-items: baseline;
			background-color: #000000;
			color: #C4C4C4;
			display: grid;
			grid-template-columns: auto auto;
			text-decoration: underline;
			
			span {
				vertical-align: initial;
			}
		}
	}
	
}

/**********************************************************\
	IMAGES
\**********************************************************/
img:is(.picture-a, .picture-b) {
	height: auto;
	object-fit: cover;
	position: relative;
	width: 100%;
}

/*Flip image*/
img:is(.flip) {
	float: left;
	transform: scaleX(-1);
}

.picture-a {
	grid-column: 2;
	grid-row: 2 / 4;
}

.picture-b {
	width: 75%;
}

.arrow {
	width: 1.5em;
}

.pad-arrow {
	margin-left: 0;
	margin-top: 50px;
}

p:has(img.arrow:first-child:last-child) {
	margin: 0;
}

p:has(img.arrow:first-child:last-child) + :is(h1,h2,h3,h4,h5,h6),
img.arrow + :is(h1,h2,h3,h4,h5,h6) {
	margin-block-start: 2px;
}

/**********************************************************\
	SVG and LINE art
\**********************************************************/
.disk {
	border-radius: 50%;
	height: 0;
	overflow: clip;
	padding-bottom: 50%;
	width: 50%;
}

.disk-svg {
	background-image: linear-gradient(to bottom, rgb(255, 0, 0) 1%, rgb(104, 0, 0) 80%);
}

.disk-svg::before {
	background-color: rgba(0, 0, 0, 0.3);
	content: '';
	display: block;
	height: 100%;
	width: 100%;
}

.disk.disk-svg.bottom.crop-left {
	bottom: -300px;
	left: -150px;
	position: absolute;
}

.container-right .disk {
	position: absolute;
	right: -0.8%;
	top: 0;
}

.circle-b {
	left: -3em;
	position: absolute;
	z-index: -1;
}

.circle-c {
	grid-row: 2;
	opacity: 0.50;
	position: absolute;
	right: -15em;
	z-index: -1;
}

.circle-c1 {
	grid-row: 3;
	opacity: .75;
	position: absolute;
	right: -6em;
	top: -10em;
	background-image: linear-gradient(180deg, #ff00009e, black);
	z-index: -1;
}
.circle-d {
	grid-row: 2 / 4;
	left: -10em;
	opacity: 0.125;
	position: absolute;
	transform: scale(0.5);
	z-index: -1;
}

.circle-e {
	grid-area: 4 / 1 / 5 / 1;
	opacity: 0.25;
	position: absolute;
	right: -2em;
	top: 10em;
	transform: scale(0.75);
	z-index: -1;
}

.line {
	animation: draw-right-to-left 2s ease-in;
	background-color: rgb(104, 0, 0);
	height: 2px;
	position: relative;
	margin-bottom: 1em;
}

/**********************************************************\
	CONTAINER
\**********************************************************/
.right-align {
	text-align: right;
	justify-content: end;
}

.extra-bottom-padding {
	padding-bottom: 50px;
}

.container {
	box-sizing: border-box;
	background-color: #000;
	display: grid;
	column-gap: var(--gutter-width);
	row-gap: 20px;
	grid-template-areas: 
		"heading heading"
		"left right";
	grid-template-columns: minmax(280px, 750px) minmax(750px, 1fr);
	grid-template-rows: auto 1fr;
	overflow-x: hidden;
	position: relative;
	padding-block: 50px;
	padding-inline: var(--gutter-width);
}

.container-right {
	display: grid;
	grid-area: right;
	min-height: 400px;
	overflow: clip;
	position: relative;
}

.container-right .full-contain {
	grid-row: 1/-1;
}

.container-right > :is(img, .carousel, .flexslider) {
	background-color: transparent;
	border: none;
	border-radius: 0;
	margin-block: 0 25px;
	padding-top: 18.75%;
	z-index: 1;
}

.flexslider.home .slides img {
	aspect-ratio: 800 / 400;
	object-fit: cover;
	object-position: left top;
}

.container-heading {
	grid-area: heading;
	position: relative;
}

.container-left {
	grid-area: left;
	position: relative;
}

.container-heading h1 {
	text-transform: uppercase;
	width: 75%;
}

.container-heading.right-align h1 {
	margin-inline-start: auto;
}

@media (width<1400px) {
	.container {
		grid-template-areas: 
			"heading"
			"left"
			"right";
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
	}
}

/**********************************************************\
	CLIENT LIST template
\**********************************************************/
.client-list {
	display: grid;
	gap: 50px;
	grid-column: 1/-1;
	margin-block-end: 50px;
	margin-inline: calc(var(--gutter-width)* -1);
}

.client-list .client {
	align-items: start;
	display: grid;
	gap: 50px;
	grid-template-columns: repeat(2, minmax(0,1fr));
	grid-template-areas: "left right";
}

.client-list .client > .client-text {
	isolation: isolate;
	position: relative;
}

.client-list .client:nth-child(2n + 1) > .client-text {
	margin-inline-end: var(--gutter-width);
}

.client-list .client:nth-child(2n) > .client-text {
	margin-inline-start: var(--gutter-width);
}

.client-list .client > img {
	width: 100%;
	z-index: 1;
}

.client-list .client:nth-child(2n) > img {
	grid-area: right;
}

.client-list .client:nth-child(2n) > .client-text {
	grid-area: left;
}

.client-list .arrow-and-descr {
	display: grid;
	gap: 25px;
	grid-template-areas: "img text";
	grid-template-columns: 48px minmax(0,1fr);
}

.client-list .client:nth-child(2n) .arrow-and-descr {
	grid-template-areas: "text img";
	grid-template-columns: minmax(0,1fr) 48px;
}

.client-list .arrow-and-descr img {
	grid-area: img;
}

.client-list .arrow-and-descr .descr {
	grid-area: text;
}

.client-list .client:nth-child(2n) .line {
	animation: draw-left-to-right 2s ease-in;
}

.client-list .client:nth-child(2n + 1) .line {
	animation: draw-right-to-left 2s ease-in;
}

.client-list .client:nth-child(2n + 1) .arrow-and-descr .arrow {
	transform: scaleX(-1);
}

/**********************************************************\
	CAROUSEL
\**********************************************************/
.carousel {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column: 1 / 3;
	justify-items: left;
}

.viewport {
	height: auto;
	overflow: hidden;
	position: relative;
	width: 1500px;
}
.container-images {
	display: flex;
	gap: 50px;
	justify-content: flex-start;
	flex-direction: row;
	width: fit-content;
}

.card {
	height: 400px;
	width: 700px;
}

@keyframes draw-right-to-left {
	0% {
		left: 100%;
		opacity: 0.4;
		right: 100%;
		width: 0%;
	} 100% {
		left: 0;
		opacity: 1;
		right: 100%;
		width: 100%;
	}
}

@keyframes draw-left-to-right {
	0% {
		left: 0;
		opacity: 0.4;
		right: 100%;
		width: 0;
	} 100% {
		left: 0;
		opacity: 1;
		right: 0;
		width: 100%;
	}
}

@media screen and (max-width: 1103px) {
	.circle-a {
		top: -28em;
	}
}

@media screen and (max-width: 1053px) {
	.circle-a {
		top: -30em;
	}
}

@media screen and (max-width: 949px) {
	.circle-a {
		top: -29em;
	}
	.container-width {
		width: 90%;
	}
	img:is(.picture-a) {
		grid-area: 2 / 2 / 3 / 2;
	}
}

@media screen and (max-width: 900px) {
	.circle-a {
		top: -29em;
	}
	.container-width {
		width: 100%;
	}
	img:is(.picture-a) {
		grid-area: 3 / 1 / 4 / 2;
		grid-column-end: none;
	}
}