* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.75rem;
}

:root {
    --background: #0e0f13;
    --text: #ffffff;
    --accent: #1e56ee;
    --transition-time: 150ms;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    color: var(--text);
    background: var(--background);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    line-height: 2.5rem;
    font-weight: 700;
}

h1.big {
    font-size: 4rem;
    line-height: 4.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label {
    margin-bottom: 0.75rem;
}

p,
a,
label {
    font-size: 1rem;
}

p.big {
    font-size: 1.3rem;
}

.container {
    padding: 0 2rem;
    width: min(70rem, 100%);
    margin: 0 auto;
}

.overlay {
    position: fixed;
    z-index: 25;
    background: none;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: background 800ms;
}

.overlay.show {
    background: var(--background);
}

.center {
    text-align: center !important;
}

/*
##########################
####    NAVIGATION    ####
##########################
*/

.header-placeholder {
    height: 4rem;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: none;
    display: flex;
    justify-content: center;
    z-index: 70;
    transition: background var(--transition-time);
}

header.scrolled {
    background: var(--background);
}

header nav {
    display: flex;
    align-items: stretch;
    vertical-align: middle;
}

nav .nav-title {
    font-weight: 700;
}

nav .nav-items {
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 1rem 0;
    font-weight: 300;
}

nav a:first-child {
    margin-left: 0;
}

nav a:last-child {
    margin-right: 0;
}

nav .nav-items a {
    transition: color 100ms cubic-bezier(0, 0, 0, 1);
}

nav .nav-items a.active {
    font-weight: 700;
}

nav .nav-items a:hover {
    color: var(--accent);
}

.nav-empty {
    flex: 1 0 auto;
}

nav .menu-icon {
    display: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

nav .menu-icon > div {
    width: 1.5rem;
    height: 0.15rem;
    background: var(--text);
    margin: 0.2rem 0;
}

@media only screen and (max-width: 640px) {
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 60;
        display: none;
    }

    .menu-overlay.open {
        display: block;
    }

    nav .nav-items {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        padding: 1rem;
        flex-direction: column;
        width: min(20rem, 100%);
        background: var(--background);
        z-index: 70;
        /* display: none; */
        transition: transform 100ms cubic-bezier(0, 0, 0, 1),
            opacity 100ms cubic-bezier(0, 0, 0, 1);
        transform: translateX(100%);
        opacity: 0;
    }

    nav .nav-items.open {
        /* display: flex; */
        transform: none;
        opacity: 100%;
    }

    nav .nav-items a {
        margin: 0;
        padding: 1rem;
        line-height: 1rem;
    }

    nav .nav-items a.active {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
    }

    nav .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/*
##########################
####      TITLE       ####
##########################
*/

.title {
    padding: 0;
    aspect-ratio: 25 / 8;
    z-index: 40;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(50rem, 80%);
}

.title > div {
    width: 100%;
    height: 100%;
    background: url(../assets/signature.png);
    background-size: cover;
    z-index: 40;
    position: absolute;
}

/*
##########################
####      BANNER      ####
##########################
*/

.banner {
    position: relative;
    height: 40rem;
    overflow: hidden;
}

.banner.home-banner {
    height: 100vh;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 0, 0);
    opacity: 50%;
    z-index: 20;
}

.banner img {
    position: absolute;
    top: 0;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    left: 0rem;
    height: 100%;
}

.banner .banner-text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.banner .banner-text-wrapper * {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/*
##########################
####  MAIN CONTAINER  ####
##########################
*/

main {
    background: var(--background);
    position: relative;
    z-index: 50;
    margin-bottom: auto;
}

main.fill {
    margin: auto 0;
}

main .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: justify;
}

main .container h1,
main .container h2,
main .container h3,
main .container h4,
main .container h5,
main .container h6 {
    text-align: center;
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: justify;
    margin: 1rem 0;
}

.gradient-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(var(--background), transparent);
    z-index: 20;
}

.gradient-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(0deg, var(--background), transparent);
    z-index: 20;
}

/*
##########################
####      FOOTER      ####
##########################
*/

footer {
    width: 100%;
    /* background: var(--background-secondary); */
    color: var(--text);
    padding: 2rem 0;
    text-align: center;
}

footer .divider {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

footer .text-wrapper {
    padding: 2rem 0;
}

footer .social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

footer .social > a {
    margin: 0.6rem;
    height: 3.1rem;
    width: 3.1rem;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem;
    transition: background 250ms;
    box-shadow: var(--box-shadow);
}

@media only screen and (max-width: 640px) {
    footer .social > a {
        height: 2.7rem;
        width: 2.7rem;
        margin: 0.4rem;
    }
}

footer .social > a:hover {
    background: rgba(255, 255, 255, 0.09);
}

footer .social > a > img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

footer .copy {
    color: white;
    text-decoration: none;
}

/*
##########################
####      FORMS       ####
##########################
*/

input,
textarea {
    display: block;
    box-shadow: var(--box-shadow);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="submit"],
.button,
textarea {
    font-family: "Montserrat", sans-serif;
    padding: 1rem 1.5rem;
    outline: none;
    border: none;
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    line-height: normal;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 3.2rem;
    background: rgba(255, 255, 255, 0.05);
}

input[type="submit"],
.button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: filter 100ms cubic-bezier(0, 0, 0, 1);
}

.button {
    background: var(--text);
    color: var(--background);
}

.button:hover {
    filter: brightness(0.8);
}

input[type="submit"] {
    background: var(--accent);
    color: var(--text);
}

input[type="submit"]:hover {
    filter: brightness(1.2);
}

.error {
    color: red;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

ul li {
    margin-bottom: 1rem;
}

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

/*
##########################
####      OTHER       ####
##########################
*/

.yt-wrapper {
    max-width: 800px;
    margin: 2rem auto;
}

.yt-embed {
    position: relative;
    padding-bottom: 56.25%; /* - 16:9 aspect ratio (most common) */
    /* padding-bottom: 62.5%; - 16:10 aspect ratio */
    /* padding-bottom: 75%; - 4:3 aspect ratio */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.yt-embed iframe,
.yt-embed embed,
.yt-embed object {
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
