@import url(https://fonts.googleapis.com/icon?family=Material+Icons&display=swap);


/* -------------------------------- SECTION PRODUCT CATEGORIES ---------------------------------- */

.section-product-categories{
	background-image: linear-gradient(30deg, rgba(180, 180, 180, 1), rgba(255, 255,  255, 1));
	padding: 2em 2em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 5px solid rgba(5,38,89,1.00);
   border-width: 5px 0;
}

.section-product-categories h1{
	color: rgba(133, 0, 3, 1);
	text-align: center;
	font-family: var(--headline-font);
	font-size: clamp(3.5em, 4.4vw, 5em);
	font-weight: 700;
	line-height: 1em;
	margin: 0 0 0.25em 0;
}


.category-container{
	flex: 0 1 20%;
/*	filter: drop-shadow(0 0 1em rgba(0,0,0,0.3));*/
	position: relative;
}
.category {
	display: block;
	width: 100%;
	max-width: 350px;
	text-decoration: none;
	margin: auto;
}
.category-header{
/*	background-image: linear-gradient(0deg, #6588C0, #13499F);
	background-color: #606080;*/
	background-color: #13499F;
	color: white;
	font-family: var(--headline-font);
	font-size: clamp(1.3em, 2vw, 2em);
	padding: 3px 0.5em 0 0.5em;
	position: relative;
	line-height: 1.3em;
	text-align: center;
}
.category-image{
	background-color: white;
}
.category-image img{
	width: 100%;
	aspect-ratio: 1.2/1;
	object-fit: cover;
	object-position: center;
}
.category-image.for-product img{
	object-fit: contain;
}
.category-description{
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: rgba(255,255,255,0.9);
	backdrop-filter: blur(5px);
	color: black;
	font-family: var(--text-font), sans-serif;
	opacity: 0;
	transition: opacity 0.5s;
	font-size: clamp(40%, 1vw, 50%);
	line-height: 1.1em;
	padding: 1em;
	text-align: left;	
}
.category-description > ul {
	text-align: left;
	line-height: 1.3em;
}

.category:hover .category-description{
	opacity: 1;
}


/* ---------------------------------- SECTION FACILITY ---------------------------------- */

.section-facility{
	background-color: rgba(133, 0, 3, 1);
	background-color: rgba(5, 38, 89, 1);
	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: auto minmax(0, 1fr);
}

.facility-banner {
	grid-row: 1;
	grid-column: 1;
	writing-mode: vertical-rl;
	text-align: center;
	color: white;
	font-family: var(--headline-font), sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: clamp(4em, 6vw, 6em);
	transform: rotate(180deg);
	padding: 0.5em 0.2em 0.5em 0.1em;
}

/*
.facility-slideshow-container{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgb(255,255,255);
}
.facility-slideshow-container:before{
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: rgba(5,38,89,1);
	background-image: url('../images/facilities-background.webp'), linear-gradient(30deg, rgba(5,38,89,1), rgb(210,210,210,1) 50%);
	background-blend-mode: luminosity;
	opacity: 0.25;
	z-index: 1;
}
.facility-slideshow {
	position: relative;
	width: calc(100% - 4em);
	height: calc(100% - 4em);
}
.facility-slide {
	position: absolute;
	max-width: 800px;
	width: calc(90% - 10em);
	min-width: 200px;
	height: auto;
	filter: drop-shadow(0 0 1em rgba(0,0,0,0.7));
	transform-origin: bottom right;
	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	z-index: 1;
	margin: 0;
}
.facility-slide img{
	width: 100%;
	height: 100%;
}
.facility-slide:nth-of-type(1) {
	left: calc(50% - 6em);
	top: calc(50% - 3em);
	transition: top 0.25s 0.7s, left 0.25s 0.7s;
	animation-name: move-to-back;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}
@keyframes move-to-back {
	0%		{z-index: 2; transform: translate(calc(-50% + 12em), calc(-50% + 3em)) rotate(0deg); animation-timing-function: ease;}
	50%	{z-index: 2; transform: translate(calc(-50% + 18em), -50%) rotate(80deg) scale(0.75); animation-timing-function: linear;}
	50%	{z-index: 1; transform: translate(calc(-50% + 18em), -50%) rotate(80deg) scale(0.75); animation-timing-function: ease;}
	99%	{z-index: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1);}
	100%	{animation: initial;}
}
.facility-slide:nth-of-type(2) {
	left: calc(50% - 4em);
	top: calc(50% - 2em);
	transition: top 0.25s 0.6s, left 0.25s 0.6s;
}
.facility-slide:nth-of-type(3) {
	left: calc(50% - 2em);
	top: calc(50% - 1em);
	transition: top 0.25s 0.5s, left 0.25s 0.5s;
}
.facility-slide:nth-of-type(4) {
	left: 50%;
	top: 50%;
	transition: top 0.25s 0.4s, left 0.25s 0.4s;
}
.facility-slide:nth-of-type(5) {
	left: calc(50% + 2em);
	top: calc(50% + 1em);
	transition: top 0.25s 0.3s, left 0.25s 0.3s;
}
.facility-slide:nth-of-type(6) {
	left: calc(50% + 4em);
	top: calc(50% + 2em);
	transition: top 0.25s 0.2s, left 0.25s 0.2s;
}
.facility-slide:nth-of-type(7) {
	left: calc(50% + 6em);
	top: calc(50% + 3em);
	transition: top 0.25s 0.1s, left 0.25s 0.1s;
}
*/

.facilities-ssContainer {
	grid-row: 1;
	grid-column: 2;
	background-color: white;
	position: relative;
}
#bgm-ss-enunciator {
	bottom: 0.5em;
	right: 1em;
	font-size: 150%;
}

/* -------------------------------- SECTION COLORS ---------------------------------- */

.instructions {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	font-size: 75%;
	padding: 0.5em;
	color: rgba(5,38,89,1.00);
	font-weight: bold;
	width: 100%;
	text-align: center;
}
.instructions > div {
	filter: drop-shadow(0 0 1px white) drop-shadow(0 0 0.5px white) drop-shadow(0 0 0.5px white);
}
.section-colors{
	display: grid;
	grid-template-rows: auto 1fr;
	grid-template-columns: 1fr;
	background-color: black;
	font-size: clamp(80%, 1vw, 100%);
}
.section-colors:before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../images/steel-panel-colors-background.webp');
	background-position: center;
	background-size: cover;
	opacity: 1;
}
.section-colors > h1 {
	position: relative;
	grid-row: 1;
	grid-column: 1 / span 2;
	background-color: rgba(5,38,89,1.00);
	color: white;
	font-size: clamp(2em, 3vw, 3em);
	padding: 0.333em;
	margin: 0;
	line-height: 1.2em;
}
.section-colors > .bullets-container {
	position: relative;
	padding: 2em;
	grid-row: 2;
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.section-colors .bullets{
	background-color: rgba(255, 255, 255, 0.7);
	padding: 2em;
/*	border-radius: 1em;*/
	font-size: clamp(1em, 2vw, 1.4em);
	backdrop-filter: blur(10px);
}

.bullets h2{
	font-family: var(--headline-font), sans-serif;
	font-weight: 700;
	font-size: 1.6em;
	margin: 1em 0 0em 0;
	color: rgba(133,0,3,1.00);
	line-height: 1em;
}

.section-colors .colors-container {
	position: relative;
	padding: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5em;
}
.colors-container figure{
	flex: 0 0 auto;
	display: inline-table;
	margin: 0.3em;
	padding: 0;
	vertical-align: top;
	text-align: center;
	cursor: pointer;
	position: relative;
	
	height: 80px;
	width: 80px;
	border-radius: 10px;
	background-size: cover;
}
.colors-container figure::after{
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 80px;
	background-image: url('../images/button-overlay.webp');
	background-size: cover;
}
.colors-container figcaption{
	display: table-caption;
	caption-side: bottom;
	color: black;
	font-size: 0.7em;
	line-height: 1.2em;
	text-align: center;
}




.section-colors-3D {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	grid-template-columns: 1fr;
	background-color: white;
	border: 5px solid rgba(5,38,89,1.00);
	border-width: 5px 0;
 }
.section-colors-3D:before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
/*	background-image: url('../images/steel-panel-colors-background.webp');*/
	background-image: radial-gradient(circle at center, white 50%, rgb(150,150,150));
	background-position: center;
	background-size: cover;
}
.colors-3d-header{
	position: relative;
	grid-row: 1;
	text-align: center;
	padding: 0.5em 1em 0 1em;
	font-size: clamp(2em, 4vw, 4em);
	font-family: var(--headline-font), sans-serif;
	font-weight: 700;
	color: rgba(5,38,89,1.00);
	line-height: 1em;
}
.colors-3d-disclaimer {
	position: relative;
	font-size: 90%;
	grid-row: 2;
	text-align: center;
	color: rgba(5, 38, 89, 1.00);
	padding-right: 1em;
	padding-left: 1em;
}
.section-colors-3D-canvas-cell{
	position: relative;
	min-height: 400px;
}
.colors-3d-canvas-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
}

.colors-3d-selector-container{
	grid-row: 4;
	position: relative;
	width: 100%;
	overflow-x: hidden;
	background-color: rgba(96,96,128,1.00);
}

.colors-3d-selector{
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 40px;
	overflow-x: hidden;
	padding: 2.5em 0 1.5em 0;
	width: calc(100% - 2em);
	margin: 0 auto 1em auto;
}
.colors-3d-selector > figure{
	flex: 0 0 auto;
	display: inline-table;
	padding: 0;
	vertical-align: top;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: transform 0.25s;
	height: 60px;
	width: 60px;
	background-size: cover;
}
.colors-3d-selector > figure > div {
	width: 100%;
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
	background-size: cover;
	transition: all 0.25s;
}
.colors-3d-selector figure > div::after{
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 60px;
	background-image: url('../images/button-overlay.webp');
	background-size: cover;
}

.colors-3d-selector > figure:hover > div{
	transform: scale(1.5) translateY(-1em);
}
.colors-3d-selector > figure:hover + figure > div,
.colors-3d-selector figure:has(+ figure:hover) > div{
	transform: scale(1.1) translateY(-0.25em);
}
.colors-3d-selector figcaption{
	text-align: center;
	line-height: 1.2em;
	color: white;
	font-family: var(--headline-font), sans-serif;
	font-size: 1.2em;
	font-weight: 300;
	letter-spacing: 0.05em;
	white-space: nowrap;
	padding: 0 0.25em;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
}
.arrow {
	display: inline-flex;
	align-items: center;
	position: sticky;
	background-color: rgba(5,38,89,1.00);
	z-index: 2;
	padding: 0.5em;
	border-radius: 0 0.3em 0.3em 0;
	-webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
	-webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
	-webkit-user-select: none; 	
}
.left.arrow{
	left: 0;
	z-index: 2;
	padding: 0.5em;
	border-radius: 0.3em 0 0 0.3em;
}
.left.arrow:before{
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-width: 2em 12px 2em 0px;
	border-color: transparent white transparent transparent;
	border-style: solid;
}
.right.arrow{
	right: 0;
}
.right.arrow:before{
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-width: 2em 0px 2em 12px;
	border-color: transparent transparent transparent white;
	border-style: solid;
}

#viewer {
	position: relative;
	width: 100%;
	height: 100%;
	filter: drop-shadow(20px 30px 20px rgba(0,0,0,0.5));
	background-color: transparent;
}



/* -------------------------------- SECTION FOOTER ---------------------------------- */

.section-footer {
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 1fr 2fr;
	background-color: white;
	font-size: clamp(70%, 1.3vw, 100%);
}

.banner{
	text-align: center;
	background-color: rgba(63,102,167,1.00);
	font-family: var(--headline-font), sans-serif;
	font-weight: 700;
	letter-spacing: 0.1em;
	position: relative;
   grid-row: 1;
   grid-column: 1 / span 2;
   color: white;
   font-size: clamp(2em, 3vw, 3em);
   padding: 0.333em;
   margin: 0;
   line-height: 1.2em;
}
.section-footer .contact-info{
	grid-row: 2;
	grid-column: 1;
	background-color: rgba(214,211,211,1.00);
	color: rgb(80,80,80,1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2em 1em;
}

.section-footer .contact-form{
	grid-row: 2;
	grid-column: 2;
/*
	background-color: rgba(250,184,164,1.00);
*/
	background-image: linear-gradient(30deg, rgba(5,38,89,0.5), rgb(210,210,210,1) 50%);
	align-items: center;
	justify-content: center;
	padding: clamp(1em, 4vw, 4em);
}
.BGM-contact-form > div > div {
	margin: 0;
}

.footer{
	grid-row: 3;
	grid-column: 1 / span 2;
	background-color: rgba(5,38,89,1.00);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2em 3em;
	padding: 2em;
	position: relative;
	color: white;
	margin-top: 15em;
}
.footer::before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(5,38,89,1.00);
	background-image: url('../images/footer-back.webp');
	background-position: center right;
	background-size: contain;
	background-repeat: no-repeat;
	background-blend-mode: luminosity;
	opacity: 0.3;
}
.footer .footer-contact{
	position: relative;
}
.footer .logo{
	height: 150px;
	max-width: 100%;
	text-align: center;
	padding: 0;
	position: relative;
}
.footer .company{
	font-size: 2em;
	line-height: 1em;
}
.footer .phone {
	font-size: clamp(3.4em, 5vw, 5em);
	font-family: var(--headline-font);
	font-weight: 500;
	line-height: 1em;
}
.footer .address{
	padding: 0.5em 0 0 0;
}

.subfooter{
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: white;
	background-color: rgba(255,187,0,1);
	background-image: linear-gradient(180deg, #6588C0, #13499F);
	font-size: 75%;
	line-height: 1.2em;
	text-align: center;
	padding: 1em;
	gap: 1em;
	position: relative;
}
.subfooter a{
	display: block;
	color: white;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}
.subfooter .copyright {
	padding: 0 2em;
}
.sublinks {
	text-align: left;
}
.site-design {
	text-align: right;
}


/* ----------------------- BGM DEFAULT OVERRIDES ---------------------------------- */

.BGM-CMS-form h1 {
	font-family: arial;
	text-align: initial;
	vertical-align: text-top;
}
.BGM-CMS-form-icon {
	vertical-align: text-top;
}

/* ------------------------------------ MEDIA QUERIES ------------------------------- */


@media screen and (max-aspect-ratio: 1), 
screen and (orientation: portrait),
screen and (max-width: 800px) {
	
	html{
		scroll-padding-top: 35px;
	}
	
	.scroll-anchor:not([name="top"]){
		top: -33px;
	}

	.category-container{
		flex: 1 1 150px;
	}
	.categories-container{
		gap: 1em;
	}

	
	
	.section-footer{
		grid-template-rows: auto auto 1fr;
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.section-footer .banner{
		grid-row: 1;
		grid-column: 1;
		padding: 0.5em;
	}
	.section-footer .contact-info{
		grid-row: 2;
		grid-column: 1;
	}
	.section-footer .contact-form{
		grid-row: 3;
		grid-column: 1;
	}
	.section-footer .footer{
		grid-row: 4;
		grid-column: 1;
		justify-content: center;
	}
	.footer {
		display: block;
		text-align: center;
		margin-top: 0;
	}
	.footer::before{
		background-size: cover;
	}
	.footer figure {
		display: block;
		margin: 0;
		padding: 1em 0 0 0;
	}
	.footer figure figcaption{
		display: table-caption;
		caption-side: bottom;
		text-align: center;
	}
	
	.subfooter{
		flex-wrap: wrap;
		gap: 0.2em;
		font-size: 60%
	}
	.subfooter .copyright {
		width: 100%;
		order: 1;
	}
	.subfooter .sublinks {
		order: 2;
	}
	.subfooter .site-design {
		order: 3;
	}
	

	.section-facility{
		grid-template-rows: auto 1fr;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		aspect-ratio: 6/4;
		min-height: 500px;
	}

	.facility-banner {
		grid-row: 1;
		grid-column: 1;
		writing-mode: horizontal-tb;
		transform: none;
		line-height: 1em;
		padding: 0.4em 0.2em 0.3em 0.2em;
		font-size: clamp(2.4em, 10.4vw, 3.5em);
	}
	.facility-slideshow-container{
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: rgb(255,255,255);
	}
	.facilities-ssContainer {
		grid-row: 2;
		grid-column: 1;
	}
	
}
