/* Elements */

:root {
    --centered-width: 80rem;
    --header-height: 4rem;
    --highlight-blue: #0072ce;
    --header-background-dark: #101214A0;
    --header-shadow: #101214e6;
    --background-dark: #202224;
    --background-dark-transparent: #202224a0;
    --background-dark-lighter: #283036;
    --background-darker: #121518;
    --text-light: #ffffffd8;
    --text-lightest: white;
    --text-light-darker: #ffffff90;
    --main-font-family: 'Segoe UI', sans-serif;
    --header-font-family: Montserrat, sans-serif;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    color: var(--text-light);
    background-color: var(--background-dark);
    font-family: var(--main-font-family);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font-family);
}

p, ul, ol {
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

/* Multiple Classes  */

.description-highlight-paragraph, .expertise-card-paragraph {
    margin: 0;
    font-size: 1.2em;
}

.company-link:hover, .nav-link:hover, .machine-link:hover, .software-link:hover {
    filter: brightness(1.1);
}

/* Single Classes */

.centered-width {
    max-width: var(--centered-width);
    margin: 0 auto;
}

@media(max-width: 82rem) {
    .centered-width {
        margin: 0 1rem;
    }
}

.company-logo {
    margin: 2rem 0;
    text-align: center;
}

.company-logo-image {
    height: 6.375rem;
}

.company-logo-caption {
    font-size: 1.5em;
    margin: auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.contact-info-paragraph {
    margin: 0;
}

.description-highlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 16rem;
    padding: 0 13%;
    text-align: center;
    color: var(--text-lightest);
    background-color: var(--background-dark-lighter);
}

@media(max-width: 82rem) {
    .description-highlight {
        padding: 0 2rem;
    }
}

@media(max-width: 42rem) {
    .description-highlight {
        padding: 0 1rem;
    }
}

.description-highlight-title {
    font-size: 1.8em;
}

.expertise-card {
    flex: 1;
    text-align: center;
}

.expertise-card-icon {
    width: 15rem;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1;
}

.expertise-card-paragraph {
    text-align: center;
}

.expertise-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
}

@media(max-width: 56rem) {
    .expertise-cards {
        flex-direction: column;
    }
}

.grid-cell-wide-3 {
    grid-column-end: span 3;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40rem;
    padding-top: var(--header-height);
    background: linear-gradient(var(--background-dark-transparent), var(--background-dark-transparent)),
    url("../img/LogoBackground.jpg") no-repeat center/cover;
}

@media(max-width: 42rem) {
    .hero {
        aspect-ratio: 1.05;
        width: 100%;
        height: auto;
    }
}

.hero-logo {
    max-height: 16rem;
    margin: 2rem;
}

.list-item-spaced:not(:last-child) {
    margin-bottom: 1rem;
}

.machine-image {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.machine-figure-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 1rem;
    color: black;
    font-family: var(--header-font-family);
    font-size: 1.125em;
}

.machine-image-left {
    width: 35%;
    object-fit: contain;
}

.machine-image-right {
    width: 65%;
    object-fit: cover;
}

.machine-image-short {
    max-height: 16rem;
}

.machine-short {
    height: 16rem;
}

.machine-figure {
    display: flex;
    justify-content: center;
    position: relative;
    height: 16rem;
    margin: 0;
    background-color: white;
}

.machines {
    display: grid;
    grid-template: max-content max-content / 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
}

@media(max-width: 64rem) {
    .machines {
        grid-template: max-content max-content max-content / 1fr 1fr 1fr;
    }
}

.mastermind-background {
    background-color: #2f3037;
}

.mastermind-logo {
    background-color: #16161a;
}

.nav-bar {
    width: 100%;
    height: 100%;
}

.nav-logo {
    height: 80%;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #00000020;
}

.nav-links-group {
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    justify-content: space-between;
}

.nav-text {
    padding: 0 1rem;
}

.page-footer {
    padding: 4rem 0;
    color: var(--text-light-darker);
    background-color: var(--background-darker);
}

.page-header {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-background-dark);
    box-shadow: 0 1px var(--highlight-blue), 0 0 2rem var(--header-shadow);
}

.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.plain-list {
    list-style-type: none;
}

.section-header {
    text-align: center;
    font-size: 3em;
}

.social-media-icon-link {
    padding: 0.5rem;
    margin: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.social-media-icon-link:hover {
    color: #ed1a3b;
}

.social-media-icon-links {
    margin: 1rem 0;
    font-size: 1.25em;
    text-align: center;
}

.software-image {
    display: block;
    width: 100%;
    aspect-ratio: 2;
    object-fit: cover;
    object-position: top;
}

.software-link {
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.software-links {
    display: grid;
    grid-template: max-content / 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media(max-width: 82rem) {
    .software-links {
        grid-template: max-content max-content / 1fr 1fr;
    }
}

@media(max-width: 42rem) {
    .software-links {
        grid-template: max-content max-content max-content max-content / 1fr;
    }
}

.software-logo {
    display: block;
    width: 100%;
    height: 8rem;
    object-fit: contain;
}

.software-paragraph {
    padding: 0 1.25rem;
    font-size: 1.25em;
}

.titled-section {
    padding: 4rem 0;
}

.two-capture-background {
    background-color: #623824;
}

.two-capture-logo {
    background-color: #f36e31;
}

.two-design-background {
    background-color: #47344e;
}

.two-design-logo {
    background-color: #866494;
}

.two-tetrix-background {
    background-color: #1d402c;
}

.two-tetrix-logo {
    background-color: #377853;
}
