/*


 //////       ///////       //////      
  ///////    //////     //////////////  
    /////////////     ////////  ////////
      //////////     //////             
       ////////////////////             
     //  ///////     //////        ,,,,,
    /////  ///////    //////// /////////
  ///////    //////     //////////////  
 //////       ///////       /////       
                                       

			METROXC SITE

	- - - - - - - - - - - - - - - -
	T A B L E  O F  C O N T E N T S
	- - - - - - - - - - - - - - - -

	# Layout
	# Header & Footer
	# Typography
	# Links & Buttons
	# Forms
	# Sections
	# Content
	# Responsive Overrides

	- - - - - - - - - - - - - - - -

	Author: Joe Swinn
	Credit: Tea, StackOverflow, Codepen, Mozilla

	- - - - - - - - - - - - - - - -

*/

html {
	scroll-behavior: smooth;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
LAYOUT
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */

body {
	background: #000;
	font-family: 'Work Sans', sans-serif;
	font-weight: 400;
	color: #fff;
	margin: 0;
	width: 100%;
	min-height: 100%;
}
footer, main {
	margin: 0 auto;
}
.container {
	max-width: 1080px;
	padding: 2rem 1rem;
	margin: 0 auto;
}
@media (min-width: 1350px) {
	.container {
		width: 100%;
	}
}
/* Tablet */
@media (max-width: 1350px) {
	.container {
		width: 80%;
	}
}
/* Mobile */
@media (max-width: 768px) {
	.container {
		width: 90%;
	}
	.row {
		display: block;
	}
	br.responsive {
		display: none;
	}
	section:last-child {
		padding-bottom: 4rem;
	}
}
/* Helpers */
.mt-1 {
	margin-top: 1rem;
}
.mt-2 {
	margin-top: 2rem;
}
.mt-4 {
	margin-top: 4rem;
}
.mt-8 {
	margin-top: 8rem;
}
.mb-2 {
	margin-bottom: 2rem;
}
.mb-4 {
	margin-bottom: 4rem;
}
.mb-8 {
	margin-bottom: 8rem;
}
.my-2 {
	margin: 2rem 0;
}
.my-4 {
	margin: 4rem 0;
}
.p-2 {
	padding: 2rem;
}
.p-4 {
	padding: 4rem;
}
.pt-2 {
	padding-top: 2rem;
}
.pt-4 {
	padding-top: 4rem;
}
.pt-8 {
	padding-top: 8rem;
}
.pb-0 {
	padding-bottom: 0;
}
.pb-2 {
	padding-bottom: 2rem;
}
.pb-4 {
	padding-bottom: 4rem;
}
.pb-8 {
	padding-bottom: 8rem;
}
.py-2 {
	padding: 2rem 0;
}
.py-4 {
	padding: 4rem 0;
}
.py-8 {
	padding: 8rem 0;
}

/* Images */
figure {
	margin: 2rem 0;
}
img, svg {
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
HEADER & FOOTER
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	padding: 1.5rem 0;
	z-index: 999;
	background-color: rgba(0,0,0,0);
	transition: all 0.2s;
}
#header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
}

/* Header On Scroll */
#header.sticky {
	background: rgba(0,0,0,0.75);
	padding: 0.5rem 0;
	backdrop-filter: blur(5px);
}
#header.sticky .logo img {
	height: 2rem;
	transition: all 0.2s;
}

/* Logo */
.logo.center {
	display: block;
	margin: 0 auto;
}
.logo img {
	height: 2.5rem;
	transition: all 0.2s;
}

/* Menu */
nav a {
	color: #fff;
	padding: 1.5rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.2rem;
	text-decoration: none;
	transition: all 0.2s;
}
nav a:hover {
	color: #00b0f0;
}
nav a:last-of-type {
	padding-right: 0;
}
.nav-close, .nav-open {
	display: none;
}

/* Mobile Nav Controls */
.trigger {
	color: #fff;
	text-transform: uppercase;
}

/* Footer */
footer {
	background: #0c0c0c;
}
footer .container {
	padding: 2rem 0.75rem;
}
footer a img {
	max-width: 18rem;
	filter: opacity(0.5);
	transition: filter 0.2s;
	margin-bottom: 1rem;
	display: inline-block;
}
footer a:hover img {
	filter: opacity(1);
}
footer p {
	margin: 0;
	color: #828282;
}
footer p.credits {
	font-size: 1rem;
	display: flex;
	width: 100%;
	justify-content: space-between;
}
footer p.credits span a {
	text-decoration: none;
	color: #828282;
	transition: all 0.2s;
}
footer p.credits span a:hover {
	text-decoration: none;
	color: #00b0f0;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
TYPOGRAPHY
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Standard */
body {
	font-size: 1.3rem;
	line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6, p.subheading, .stat span {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	line-height: 1.1;
	margin: 0.5rem 0 2rem 0;
}
h1 {
	font-size: 4rem;
}
h2 {
	font-size: 3rem;
}
h3 {
	font-size: 2.25rem;
}
h4 {
	font-size: 1.5rem;
	color: #999;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
p.subheading {
	font-size: 1.75rem;
	margin: 0.5rem auto;
	padding: 0;
	line-height: 1.3;
}
p.superheading {
	color: #4f94cc;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
}
/* Highlight */
mark {
	background: none;
	color: #00b0f0;
}
/* Blue Dot */
mark.dot {
	font-family: Arial,'Helvetica Neue',Helvetica,sans-serif;
	margin-left: -2px;
}
/* Alignment */
.text-center {
	text-align: center;
}
.text-left, ul {
	text-align: left;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
LINKS AND BUTTONS
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */
a {
	color: #00b0f0;
	transition: all 0.2s;
}
a:hover {
	color: #00597f;
}
.button {
	background: #00b0f0;
	border: 2px solid #00b0f0;
	border-radius: 10px;
	color: #fff;
	display: inline-block;
	padding: 0.75rem 2rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	letter-spacing: 4px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.2s;
}
.button:hover {
	background-color: #00597f;
	box-shadow: 0px 0px 25px 0px #00776b;
	color: #fff;
}
.button.ghost {
	background: none;
	color: #00b0f0;
	border-color: #00b0f0;
}
.button.ghost:hover {
	color: #fff;
	background: rgba(0,89,127,0.5);
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
TABLES
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */
table {    
	border: 1px solid #00b0f0;
	border-radius: 10px;
	border-spacing: 0;
	display: inline-block;
	max-width: 100%;
	overflow-x: auto;
	padding: 0;
	white-space: nowrap;
}
table td,
table th,
table tr {
	padding: 1rem 2rem;
}
table thead {
	background-color: #00b0f0;
	border-collapse: collapse;
	border-radius: 10px;
	color: #000;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
FORMS
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.input {
	box-sizing: border-box;
	position: relative;
	display: inline-block;
	background: rgba(0,0,0,0.3);
	border: 1px solid rgba(0,0,0,0.4);
	border-radius: 0.4em;
	padding: 1rem;
	font-size: 1.5rem;
	color: #949494;
	transition: all 0.2s;
	margin: 0 0 1rem 0;
	width: 100%;
	outline: 0;
	font-family: 'Work Sans', sans-serif;
}
.input:focus {
    background: #f8f8f8;
    border: 1px solid #949494;
    box-shadow: 0px 0px 25px 0px #7db1c3;
    color: #00b0f0;
}
.input:focus::placeholder {
	color: #00b0f0;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
SECTIONS
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */

section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
section.full-height {
	min-height: 100vh !important;
}
section.hero {
	background-size: cover;
	background: url("img/concept-bg.png");
	text-align: left;
	min-height: 80vh;
}
.webp section.crossconnects {
	background: url("img/map-bg-pattern.webp") no-repeat;
	background-size: contain;
	position: relative;
}
.no-webp section.crossconnects {
	background: url("img/map-bg-pattern.jpg") no-repeat;
	background-size: contain;
	position: relative;
}

/* Background colours*/
.black {
	background: #000;
}
.black-to-mid {
	background: linear-gradient(to bottom, #000, #1c1d22);
}
.black-to-footer {
	background: linear-gradient(to bottom, #000, #0c0c0c);
}
.mid-to-black {
	background: linear-gradient(to bottom, #1c1d22, #000);
}
.mid-to-footer {
	background: linear-gradient(to bottom, #1c1d22, #0c0c0c);
}
.to-footer {
	background: linear-gradient(180deg, transparent, #0c0c0c);
}
.grey, .mid {
	background: #1c1d22;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
CONTENT
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */
details {
	margin-top: 2rem;
}
h2.unintrusive {
	font-size: 1.75rem;
	text-transform: uppercase;
	color: #999;
}

/* Tube-style Crossconnect */
.crossconnect {
	position: relative;
	display: flex;
	padding: 0;
}
.crossconnect li {
	list-style: none;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 50%;
}
.crossconnect li:last-child {
	text-align: right;
}
.crossconnect li:last-child::before {
	align-self: flex-end;
}
.crossconnect li::before {
	content: "";
	width: 25px;
	height: 25px;
	border: 4px solid #00b0f0;
	border-radius: 50%;
	display: block;
	background: #000;
	position: relative;
	z-index: 2;
}
.crossconnect li::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 4px;
	background: #00b0f0;
	top: 15px;
	left: 0%;
	z-index: 1;
}
.crossconnect h3 {
	font-size: 1.75rem;
	margin: 1rem 0 0 0;
}
.crossconnect span {
	color: #999;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	margin: 0;
}
/* Legal Terms */
#terms .box {
	border: 1px solid #272727;
	background: #1c1d22;
	box-shadow: 20px 20px 40px #111114, -20px -20px 40px #22242d;
	border-radius: 10px;
	margin: 0.5rem;
	padding: 4rem 2rem;
	flex: 1;
	text-align: center;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
RESPONSIVE OVERRIDES
 - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Desktop Only */
@media (min-width: 64em) {
	picture img {
		opacity: 0.75;
		transition: opacity 0.2s;
	}
	picture:hover img {
		opacity: 1;
	}
}

/* Tablet */
@media (max-width: 64em) {
	h1 {
		font-size: 3rem;
	}
	.logo img {
		height: 2rem;
	}
	.sm-mt-4 {
		margin-top: 4rem;
	}
}

/* Mobile */
@media (max-width: 48em) {
	h1 {
		font-size: 2.25rem;
	}
	h2 {
		font-size: 2rem;
	}
	/* Mobile Menu */
	#header .container {
		justify-content: center;
	}
	#header {
		position: absolute;
	}
	/* Header On Scroll */
	#header.sticky {
		padding: 1rem 0;
		background-color: rgba(0,0,0,0);
		border-bottom: none;
		backdrop-filter: none;
		box-shadow: none;
	}
	nav {
		position: fixed;
		top:0;
		left: 0;
		background: rgba(0,0,0,0.9);
		width: 100vw;
		height: calc(100% - 3.5rem); /* Rem should match .nav-[open|close] height */
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		justify-content: flex-end;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.5s;
	}
	nav.active {
		opacity: 1;
		visibility: visible;
		z-index: 1;
	}
	nav a {
		font-size: 1.5rem !important;
		padding: 1rem;
		display: block;
		width: 80%;
		opacity: 0;
		transition: none;
	}
	nav a:last-of-type {
		padding-right: 1rem; /* Overwrites desktop rightmost alignment*/
		margin-bottom: 1rem;
	}
	nav.active a {
		opacity: 1;
		transition: opacity 0.5s;
		transition-timing-function: ease-in-out;
		transition-delay: calc(0.1s * var(--index));
	}
	body.active {
		overflow: hidden;
	}
	.nav-open, .nav-close {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100vw;
		height: 3.5rem;
		display: flex;
		align-items: center;
		justify-content: center;
		text-transform: uppercase;
		font-size: 1rem;
		letter-spacing:0.4rem;
		z-index: 1;
		border: 1px solid #333;
	}
	.nav-open img, .nav-close img {
		margin: 0;
	}
	.nav-close {
		background: rgba(0,0,0,1);
		z-index: 2;
	}
	.nav-open {
		background: linear-gradient(0deg, rgb(0,0,0), rgba(0,0,0,0.9));
	}
	section.hero {
		text-align: center;
	}
	footer .container {
		padding: 2rem 0.75rem 5rem 0.75rem;
	}
	/* Mobile fonts */
	p.subheading {
		font-size: 1.25rem;
	}
	p, li {
		font-size: 1.2rem;
	}
	.button {
		font-size: 1rem;
	}
	.brands a img {
		opacity: 1;
	}
	/* Mobile Crossconnect */
	.crossconnect h3 {
		font-size: 1.5rem;
	}
	.crossconnect li::before {
		content: "";
		width: 15px;
		height: 15px;
		border: 2px solid #00b0f0;
		border-radius: 50%;
		display: block;
		background: #000;
		position: relative;
		z-index: 2;
	}
	.crossconnect li::after {
		content: "";
		position: absolute;
		width: 100%;
		height: 2px;
		background: #00b0f0;
		top: 8px;
		left: 0%;
		z-index: 1;
	}
}