@import url('./variables.css');
@import url('./utility-classes.css');
/* @import url("./about.css"); */

/* vvvvvvvvvv Basics + Resets vvvvvvvvvv */
html {
	scroll-behavior: smooth;
	box-sizing: border-box;
}

body {
	font-size: var(--fluid-rem);
	font-family: var(--body-family);
	color: var(--body-lbg);
	line-height: var(--line-height);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1 {
	font-size: var(--h1-size);
	font-weight: var(--wt700);
}

h2 {
	font-size: var(--h2-size);
	font-weight: var(--wt600);
}

h3 {
	font-size: var(--h3-size);
	font-weight: var(--wt600);
}

h4 {
	font-size: var(--h4-size);
	font-weight: var(--wt500);
}
h5 {
	font-size: var(--h5-size);
	font-weight: var(--wt400);
}

h6 {
	font-size: var(--h6-size);
	font-weight: var(--wt400);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--sec);
	line-height: 1.25;
}

/* ^^^^^^^^^^ Base Styles ^^^^^^^^^^ */

.page-wrapper {
	min-height: 100vh;
}

.main {
	overflow: auto;
	padding: var(--r7) 0;
	background-color: var(--prim);
}

.section-heading {
	margin-bottom: var(--r6);
}

.section {
	padding: 2rem 0rem;
}

.read-more,
.submit {
	margin-left: auto;
	margin-right: auto;

	min-width: max-content;

	background-color: var(--detail);
	border-color: var(--detail);
	border-radius: 0px;
	box-shadow: 2px 3px 0px 1px var(--tert);

	transform: scale(1);
	transition: all 200ms linear;
}

footer {
	min-height: 10vh;
}

/* Scrollbar */

::-webkit-scrollbar {
	background-color: black;
}

::-webkit-scrollbar-track {
	box-sizing: border-box;
	background-color: black;
}

::-webkit-scrollbar-thumb {
	background-color: var(--tert);
}

/* vvvvvvvvvv HEADER vvvvvvvvvv */
.hero-header {
	position: relative;
	min-height: 95vh;
	background: var(--quat);
}

.hero-banner {
	overflow-y: hidden;
	overflow: hidden;
	position: relative;
	display: flex;
	justify-content: center;
	top: calc(var(--contact-strip-ht) + var(--navbar-ht));
	/* top: 15vh; */
	height: var(--hero-banner-ht);

	background: url(../assets/images/patrick-tomass-homehero-unsplash-placeholder.jpg)
		center no-repeat var(--quat);
	background-size: cover;
}

.hero-banner::before {
	position: absolute;
	display: block;
	content: '';
	background-color: var(--quat);

	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 15vh);
	height: 100%;
	opacity: 0.6;
}

.uvp-container {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;

	margin: auto;
	padding: 1rem;
	max-width: 90%;

	background-color: var(--sec-50);

	z-index: 10;
}

.uvp-container > * + * {
	margin-top: var(--r4);
}

.uvp-container * {
	color: var(--prim);

	z-index: 1;
}

.uvp-container h3 {
	padding-left: var(--r2);
	max-width: 30ch;
	line-height: 1.75;
}

.uvp-container::before {
	position: absolute;
	display: block;
	content: '';

	width: 130%;
	height: 165%;
	left: -10px;
	top: -10px;

	border-left: 4px solid var(--prim);
	border-top: 4px solid var(--prim);
}

.uvp-container::after {
	position: absolute;
	display: block;
	content: '';

	width: 130%;
	height: 165%;
	right: -10px;
	bottom: -10px;

	border-right: 4px solid var(--prim);
	border-bottom: 4px solid var(--prim);
}

.uvp-container span {
	display: block;
}

.cta-container button {
	position: relative;

	z-index: 5;
}

.cta-container {
	display: flex;
	flex-wrap: wrap;
}

.cta {
	flex: 1 0 max-content;

	margin: 0;
	margin-top: var(--r4);
	margin-right: var(--r4);
	padding: 0;
	max-width: 20ch;

	text-align: center;
}

.cta.primary a {
	color: var(--detail);
	background-color: transparent;
	border: 0.2rem solid var(--detail);
	border-radius: 2rem;
}

.cta.primary:hover a {
	background-color: var(--detail);
	color: var(--quat);
	border-color: var(--prim);
}

.cta.secondary a {
	color: var(--prim);
}

.cta.secondary:hover a {
	color: var(--detail);
}

/* Add something a little more eye-catching to this, without overpowering the primary CTA */
.cta.secondary {
}

header .accent-span {
	color: var(--detail);
}

/* ^^^^^^^^^^ HEADER ^^^^^^^^^^ */

/* vvvvvvvvvv NAVIGATION vvvvvvvvvv */

.top-bar {
	overflow: hidden;
	position: fixed;

	display: grid;
	grid-template-columns: 2fr 8fr;
	grid-template-columns: 20% 10% 70%;
	grid-template-rows: 1fr 1fr;

	top: 0;
	left: 0;
	right: 0;

	margin: 0 auto;
	height: 8rem; /* */
	max-width: 130ch;

	z-index: 100;
}

.nav-logo {
	padding: 1rem 0.25rem;
	padding-right: 25%;
	width: 100%;
	height: 100%;

	grid-area: 1/1/3/3;

	background-color: var(--tert);
	clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
}

.nav-logo > img {
	width: 100%;
	height: 100%;
}

.contact-strip {
	display: flex;
	grid-area: 1/2/2/4;

	height: var(--navbar-ht);
	height: 100%;

	background-color: var(--prim);

	opacity: 1;
	transition: visibility 0ms linear 0ms, opacity 150ms ease 5ms;
}

.contact-list {
	display: flex;
	flex-grow: 1;
	justify-content: flex-end;
	align-items: center;
}

.contact-list > li {
	margin-right: 1rem;
}

.contact-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;

	/* margin-right: 1rem; */
	padding: 0.5rem;
	width: 3.5rem;
	height: 3.5rem;

	text-align: center;
}

.contact-link > i {
	/* padding-right: 1rem; */
	font-size: 1.75rem;
}

.contact-strip,
.navbar {
	/* This is a little janky, essentially calculated padding-left to take up the same portion of space as the padding-right from the .nav-logo */
	/* probably a better way to do this, and I mean other than using the calc() function. We'll cross that bridge later as I don't feel the optimization is immediately important until I fully commit to this idea and deploy. */
	padding-left: 10.7142%;
}

.navbar {
	width: 100%;
	height: 100%;

	grid-area: 2/2/2/4;

	justify-content: flex-end;
	align-items: center;
	background-color: var(--quat);
	opacity: 1;

	transition: visibility 0ms linear 0ms, opacity 150ms ease 5ms;
}

.scroll-hide {
	visibility: hidden;
	opacity: 0;

	transition: visibility 0ms linear 155ms, opacity 150ms ease 0ms;
}

.nav-menu {
	position: fixed;
	top: calc(var(--contact-strip-ht) + var(--navbar-ht));
	right: -100%;

	height: 100%;
	width: calc(100% - var(--navbar-ht));

	background-color: var(--quat);
	transition: 100ms;

	/* z-index: 100; */
}

/* Expand the mobile menu */
.expanded {
	right: 0;
}

.navlink {
	position: relative;
	display: block;

	padding: 0.75rem 1rem;
	padding: 1.25rem;
	font-weight: 500;
	letter-spacing: 0.11rem;

	text-align: center;
	text-transform: uppercase;
	color: var(--prim);

	border-bottom: 2px outset hsla(0deg, 0%, 50%, 0.3);

	/* transition: 200ms; */
}

/* Using pseudo elements to capture an underline effect for :hover && :active states*/
.navlink::after {
	position: absolute;
	content: '';
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);

	height: 0.2rem;
	width: 100%;

	opacity: 0;

	background: var(--detail);
	background: linear-gradient(
		90deg,
		rgba(250, 159, 66, 0) 0%,
		rgba(250, 159, 66, 0.2) 30%,
		rgba(250, 159, 66, 1) 50%,
		rgba(250, 159, 66, 0.2) 70%,
		rgba(250, 159, 66, 0) 100%
	);

	transition: opacity 100ms ease-in;
}

.active-link {
	color: var(--detail);
}

.active-link::after {
	opacity: 1;
}

.hamburger {
	position: relative;
	margin-right: 1rem;
	padding: 0.25rem;
	justify-content: space-around;

	width: 4rem;
	height: 3.5rem;

	border: 0.1rem solid var(--prim);
	border-radius: 2px;
	background-color: var(--quat);
}

.hamburger > span {
	position: relative;
	display: block;

	width: 100%;
	width: 3.4rem;
	height: 0.3rem;

	border-radius: 1px;
	color: var(--prim);
	background-color: var(--prim);
	opacity: 1;

	transition: all 150ms linear;
}

/* Hamburger Open/Close state + transition */
.hamburger.open > span {
	position: absolute;
	background-color: var(--detail);
}

.hamburger.open > span:nth-child(1) {
	transform: rotate(45deg);
	transform-origin: center center;
}

.hamburger.open > span:nth-child(2) {
	opacity: 0;
}

.hamburger.open > span:nth-child(3) {
	transform: rotate(-45deg);
	transform-origin: center center;
}

/* Hamburger Open/Close state + transition */
.hamburger.open > span {
	position: absolute;
}

.hamburger.open > span:nth-child(1) {
	transform: rotate(45deg);
	transform-origin: center center;
}

.hamburger.open > span:nth-child(2) {
	opacity: 0;
}

.hamburger.open > span:nth-child(3) {
	transform: rotate(-45deg);
	transform-origin: center center;
}

/* ^^^^^^^^^^ NAVIGATION ^^^^^^^^^^ */

/* vvvvvvvvvv HOME--FEATURED SERVICES vvvvvvvvvv */

.features {
	--watermark: 'Feature Sevices';
}

.features.page-intro {
	flex-direction: column;
	flex-wrap: nowrap;
}

.features .head-body-wrap {
	flex: unset;
	justify-content: center;
	width: 100%;
}

.tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 18ch);
	grid-auto-rows: 18ch;
	gap: 1ch;
	justify-content: center;
	align-items: center;

	width: 100%;
}

.service-card {
	grid-area: span 1 / span 1;
	padding: var(--r4) var(--r2);

	width: 100%;
	height: 100%;

	border: 0.4rem solid var(--tert);
	border-radius: 3px;

	transform: rotate3d(0, 0, 1, 0deg);
	box-shadow: 3px 3px 8px 2px hsla(0deg, 0%, 50%, 0.25);
}

.service-card {
	align-items: center;
	text-align: center;
}

.service-card > img {
	margin: auto;
	max-width: 40%;
}


.service-card:hover img {
	transform: rotate3d(0, 1, 0, 360deg);
}

.service-card h6 {
	margin: auto;
	font-weight: 600;
}

.cert-card h4 {
	font-size: var(--h6-size);
}

/* .credentials {
	display: none;
} */


/* ^^^^^^^^^^ HOME--FEATURED SERVICES ^^^^^^^^^^ */

/* vvvvvvvvvv HOME--ABOUT US vvvvvvvvvv */

.about {
	position: relative;
	--watermark: 'Sky Electric';

	flex-direction: column;
	align-items: center;

	background-color: var(--quat);
	color: var(--body-dbg);
}

.about > * {
	z-index: 1;
}

.about::after {
	position: absolute;
	content: '';
	display: block;

	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	width: 100%;
	height: 100%;

	/* need to get a better sized image file for this */
	background-image: url('../assets/images/gallery/skygallery-w1000-6.jpg');
	background-repeat: no-repeat;
	background-position: 50% 0;
	background-size: cover;
	opacity: 0.1;

	z-index: 0;
}

/* Try this as a sort of utility??? */
.bg-img-underlay::after {
	position: absolute;
	content: '';
	display: block;

	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background-image: var(--underlay-url);
	background-repeat: no-repeat;
	background-position: 50% 0;
	background-size: cover;
	opacity: 0.1;

	z-index: 0;
}
/*  */

.about.watermarked::before {
	color: var(--body-dbg);
}

.about header h2 {
	color: var(--body-dbg);
}

.about .heading-subscript {
	color: var(--body-dbg);
}

/* .about ul, */
.custom-ul {
	padding-left: 1rem;
}

/* .about li, */
.custom-ul li {
	display: flex;
	align-items: center;
	padding: 1rem 0;
	line-height: 1;
}

/* .about li::before, */
.custom-ul li::before {
	content: '';
	display: inline-block;

	margin-right: 0.5rem;
	height: 2rem;
	width: 2rem;

	background-image: url('../assets/svg/bolt.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

/* ^^^^^^^^^^ HOME--ABOUT US ^^^^^^^^^^ */

/* vvvvvvvvvv HOME--PROJECTS vvvvvvvvvv */

.projects {
	--watermark: 'Our Work';
}

.page-intro.projects {
	padding-left: 0;
	padding-right: 0;
}

.projects-gallery {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	justify-content: center;

	width: 100%;
	min-height: 60vh;
}

.projects-gallery > .bg-quadrant {
	display: block;
	flex-basis: calc((40ch - 100%) * 999);
	flex-grow: 1;

	min-width: 30ch;
	min-height: 10rem;

	background: var(--bg-image);
	background-size: cover;
	background-position: center;
	background-color: var(--detail-l);
	background-blend-mode: luminosity;
}

.bg-quadrant:nth-child(1) {
	--bg-image: url('../assets/images/gallery/skygallery-w1000-1.jpg');
}

.bg-quadrant:nth-child(2) {
	--bg-image: url('../assets/images/gallery/skygallery-w1000-7.jpg');
}

.bg-quadrant:nth-child(3) {
	--bg-image: url('../assets/images/gallery/skygallery-w1000-11.jpg');
}

.bg-quadrant:nth-child(4) {
	--bg-image: url('../assets/images/gallery/skygallery-w1000-12.jpg');
}

/* Read-more needs to be treated quite differently here, because it's being position in the center and requires different colors */
.projects .read-more {
	position: absolute;
	top: 50%;
	transform: scale(1) translate(0%, -50%);

	margin: 0;

	background-color: var(--quat);
	color: var(--detail);

	z-index: 1;
}


/* ^^^^^^^^^^ HOME--PROJECTS ^^^^^^^^^^ */

/* vvvvvvvvvv HOME--CONTACT vvvvvvvvvv */

.contact {
	--watermark: 'Contact Us';
}

.contact > * + * {
	margin-top: 2.5rem;
}

.contact-process {
	display: none;
	padding: var(--r4) 0;
	height: min-content;
}

.form-map-container {
	padding: var(--r4) 0;
}

.process-cards p {
	font-size: var(--h1-size);
	font-weight: var(--wt900);
}

.contact-form-ul {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.contact-form-ul li + * {
	margin-top: var(--r4);
}

.contact-form-ul span {
	text-transform: capitalize;
	font-weight: 700;
}

.contact-form-ul > li {
	display: grid;
	grid-template-columns: 5rem 1fr;
	grid-template-rows: 1fr 1fr;
	justify-content: center;
	align-items: center;
	gap: 0.25rem 1rem;

	margin-right: var(--r4);
	margin-left: var(--r4);
	padding: var(--r3) 0;
}

.contact-form-ul li:last-child {
	margin-bottom: var(--r4);
	padding: 0;
	grid-template-columns: 5rem 1fr;
	justify-content: stretch;
}

.contact-form-ul i {
	grid-area: 1/1/3/2;

	text-align: right;
	font-size: var(--h1-size);
	color: var(--detail);
}

.map {
	grid-area: 1/1/-1/-1;
	padding: 0;

	width: 100%;
}

.contact-form {
	padding: var(--r5);

	text-align: center;
	background-color: var(--quat);
}

.form-heading {
	color: var(--detail);
}

.contact-form .label-input-wrap:nth-of-type(2) {
	margin: 0;
	height: 0;
	visibility: hidden;
}

.form-label {
	color: var(--body-dbg);
}

.form-input {
	display: block;
	/* temp stuff */
	padding: var(--r3);
	width: 100%;
	/* temp stuff */

	text-align: left;
	color: var(--quat);
	background-color: var(--detail-l);

	border: 2px solid transparent;
}

.form-input:focus {
	border: 2px solid var(--body-dbg);
	background: no-repeat
			linear-gradient(135deg, var(--body-dbg) 0rem 0.5rem, transparent 0.5rem),
		no-repeat
			linear-gradient(45deg, var(--body-dbg) 0rem 0.5rem, transparent 0.5rem),
		no-repeat
			linear-gradient(225deg, var(--body-dbg) 0rem 0.5rem, transparent 0.5rem),
		no-repeat
			linear-gradient(315deg, var(--body-dbg) 0rem 0.5rem, transparent 0.5rem),
		linear-gradient(to right, var(--detail-l) 0%, var(--detail-l) 100%);
}

.captcha-shell {
	display: flex;
	justify-content: center;
}

.submit {
	padding: var(--r3) var(--r4);
}


.label-input-wrap {
	position: relative;
	overflow-x: hidden;
}

/* ^^^^^^^^^^ HOME--CONTACT ^^^^^^^^^^ */

/* vvvvvvvvvv HOME--FOOTER vvvvvvvvvv */

footer {
	display: flex;
	justify-content: center;
	align-items: center;

	text-align: center;
	color: var(--prim);
	background-color: var(--quat);
}

/* ^^^^^^^^^^ HOME--FOOTER ^^^^^^^^^^ */

/* vvvvvvvvvv Small Tablet Styles vvvvvvvvvv */

@media screen and (min-width: 48rem) {
	.cta a {
		transition: all 200ms linear;
	}

	.service-card:hover img {
		transition: all 500ms linear;
	}

	.read-more:hover,
	.submit:hover,
	.read-more:focus, 
	.submit:focus {
		box-shadow: 10px 10px 0px 1px var(--tert);
		transform: scale(1.05) translate(-2px, -2px);
	}

	.projects .read-more:hover,
	.projects .read-more:focus {
		transform: scale(1.05) translate(-2px, calc(-50% - 2px));
	}

	/* ABOUT */

	.section {
		padding: 2rem 0rem;
	}

	.section.about {
		display: grid;
		grid-template-columns: 1fr 1fr;

		padding: var(--r6);
	}

	.section.about p {
		grid-column: 1/2;
	}

	.about p {
		padding: 0 var(--r4) 0 0;
	}

	.about header {
		grid-area: 1/1/2/-1;
	}

	.section.about button {
		grid-column: 1/-1;
	}

	/*  CONTACT */

	.form-map-container {
		display: flex;
	}

	.contact-form-ul {
		flex-grow: 1;
		line-height: 1.5;
	}

	.contact-form-ul li:last-child {
		margin-bottom: 0;
	}

	.contact-form {
		flex-grow: 2;
	}
}

/* ^^^^^^^^^^ Small Tablet Styles ^^^^^^^^^^ */

/* vvvvvvvvvv Large Tablet Styles || Laptop MDPI Display vvvvvvvvvv */

@media screen and (min-width: 64rem) {
	.contact-link:hover,
	.contact-link:focus {
		color: var(--detail);
	}

	.navbar {
		overflow: hidden;
	}

	.nav-menu {
		position: static;
		display: flex;
		justify-content: flex-end;
		align-items: center;

		width: 100%;

		transition: 100ms;
		z-index: unset;
	}

	.hamburger {
		display: none;
	}

	.navlink {
		display: inline-block;

		padding: var(--r2) var(--r4);
		width: 13ch;

		text-align: center;
		font-weight: 400;
		letter-spacing: unset;

		border-bottom: 0;

		transition: all 200ms linear;
	}

	.navlink:hover,
	.navlink:focus {
		position: relative;
	}

	.navlink:hover::after,
	.navlink:focus::after {
		opacity: 1;
	}

	/* ABOUT */

	.about {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr auto;
		justify-content: center;

		padding: var(--r6);
	}

	.about header {
		grid-area: 1/1/2/2;
	}

	.about p {
		grid-area: 2/1/3/2;
	}

	.about .image-wrapper {
		grid-area: 1/2/3/3;
		margin: 0 var(--r4);
	}

	/* CONTACT */

	.form-map-container {
		justify-content: space-around;
	}

	.contact-form-ul {
		flex-grow: 1;
		max-width: 700px;
	}

	.contact-form-ul li:last-child {
		display: flex;
		flex-direction: column;
		flex-grow: 1;
	}

	iframe.map {
		margin: 0 auto;
		height: 100%;
		width: 85%;
	}

	.contact-form {
		margin: 0 auto;
		flex-grow: 1;
		/* max-width: 800px; */
	}

	.label-input-wrap {
		margin-left: auto;
		margin-right: auto;
		max-width: 70%;
	}
}
