@font-face {
	font-family: "Px Grotesk";
	src: url('../../font/Px-Grotesk-Regular.ttf');
}

html {
    scroll-padding-top: 64px;
}

body {
	display: flex;
    flex-direction: column;
    min-height: 100vh;
	margin: 0;
	padding: 0;
	font-family: "Px Grotesk", Arial, sans-serif;
	font-weight: lighter;
	background-color: #000;
	color: #fff;
}

p,
ul li {
    font-size: 1.2em;
    line-height: 1.5em;
}

a {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 10%;
    text-underline-position: under;
}

a:not(p a) {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    align-content: center;
}

a:focus,
a:focus-within {
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px #ff0000, 0 0 0 4px #200000;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

a.skip-main {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    min-width: unset;
    min-height: unset;
}

a.skip-main:focus,
a.skip-main:active {
    display: flex;
    justify-self: center;
    color: #000;
    background-color: #fff;
    padding: 10px;
    border-radius: 0 0 4px 4px;
    width: auto;
    height: auto;
    clip: unset;
}

nav {
    position: sticky;
    top: 0;
    display: flex;
    z-index: 1000;
    justify-content: center;
    background-color: #850000;
    transition: background-color 0.3s ease-in-out;
}

nav.light {
    background-color: #ff0000;
}

nav > .wrapper {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

nav.light a {
    color: #000;
}

nav a:hover,
nav a:focus,
nav ul.links li.active a {
    text-decoration: underline;
    text-decoration-thickness: 10%;
    text-underline-position: under;
}

nav img.tfw-logo {
    display: none;
    position: absolute;
    align-self: center;
    width: 44px;
    height: 44px;
}

nav ul.social-links a {
    display: flex;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

nav ul.social-links a:hover {
    opacity: 0.7;
}

nav a img {
    width: 32px;
    height: 32px;
    filter: brightness(1);
    transition: filter 0.3s ease-in-out;
}

nav.light a img {
    filter: brightness(0);
}

body > header {
    display: flex;
    justify-content: center;
	background: url(../images/tfw-logo.jpg) #ff0000;
	min-height: 450px; 
	background-position: top;
	background-repeat: no-repeat;
	background-size: cover;
	justify-items: center;
	align-content: center;
}

body > header > h1 {
	background-color: #fff;
    color: #111;
    padding: 18px 14px;
    font-size: 25px;
    letter-spacing: 4px;
    font-weight: 100;
    align-self: center;
}

main {
    padding: 10px;
    flex-grow: 1;
}

section.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

section.buttons > .button {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
	background-color: #1201ff;
    color: #fff;
    height: 150px;
    padding: 25px;
    font-size: 1.4em;
    text-align: center;
    align-content: end;
}

section.buttons > .button:hover {
	color: #fe0000;
}

section.buttons > .button > span {
    display: block;
    max-height: 50px;
    overflow: hidden;
}

section.buttons > .button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

section.buttons > .button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 90px;
    width: 75px;
    height: 75px;
    margin: 0 auto;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75px 75px;
}

section.buttons > .button.wigan::after {
	width: 100px;
    background-size: 100px;
    background-image: url('../images/TFW_Wigan-logo.png');
}

section.buttons > .button.tfw::after {
	background-size: 75px;
    background-image: url('../images/TFW-logo.png');
}

section.buttons > .button.tfw-icon::after {
	background-size: 75px;
    background-image: url('../images/TFW-logo-icon.png');
}

section.buttons > .button.eye::after {
    background-size: 75px 47px;
    background-image: url('../images/eye.png');
}

section.buttons > .button.cog::after {
    background-image: url('../images/cog.png');
}

section.buttons > .button.spark::after {
    background-size: 75px 72px;
    background-image: url('../images/spark.png');
}

section.buttons > .button.dots::after {
    background-size: 75px 65px;
    background-image: url('../images/dots.png');
}

.external-link:after {
    content: "\e8f1";
    font-family: "icomoon";
    font-size: 1em;
    line-height: 0;
}

body > footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 10px;
	font-size: 0.8em;
    font-weight: 600;
    text-align: center;
}

body > footer p {
    margin: 0;
}

body > footer a {
    color: inherit;
    font-size: 1.2em;
}

body > footer > .footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	body > header {
		background-attachment: fixed;
		background-size: 750px 450px;
	}

    body > header > img {
        height: 450px;
    }

    nav img.tfw-logo.show {
        display: block;
    }

    section.buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
		flex-wrap: wrap;
    }

    section.buttons > .button {
        width: 250px;
    }

    body > footer > .footer-links {
        flex-direction: row;
        gap: 40px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1312px) {
    nav > .wrapper {
        max-width: 1280px;
        box-sizing: border-box;
    }
	
	main {
        width: 1280px;
        align-self: center;
        box-sizing: border-box;
    }
}

/* Cut animations for reduced-motion users */
@media (prefers-reduced-motion: reduce) {}