@import url('reset.css');

:root {
    --white: #eee;
    --white-bold: #fff;
    --gray-1: #0001;
    --gray-2: #0002;
    --black: #111;
    --black-bold: #000;
    --blue: #234;
    --blue-light: #345;
    --header-font: garamond, serif;
    --top-bar-height: 0;
}

body {
    background: var(--blue-light);
    color: var(--black)
}

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

h1,
h1:is(a, p) {
    font-size: 2rem
}

h2,
h2:is(a, p) {
    font-size: 1.75rem
}

h3,
h3:is(a, p) {
    font-size: 1.5rem
}

h4,
h4:is(a, p) {
    font-size: 1.25rem
}

h5,
h5:is(a, p) {
    font-size: 1rem
}

h6,
h6:is(a, p) {
    font-size: 0.75rem
}

[aria-role="heading"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    background: var(--blue);
    color: var(--white-bold)
}

p>a {
    color: var(--blue-light);
    text-decoration: underline
}

b {
    font-weight: bold
}

button {
    -webkit-appearance: none;
    appearance: none
}

i {
    font-style: italic
}

address {
    width: fit-content !important;
    margin: 0 auto
}

blockquote {
    padding: 1rem 4rem;
    background-color: var(--gray-1)
}

blockquote p {
    font-size: 1.25rem
}

cite {
    display: block;
    margin-left: auto;
    font-size: 0.9rem;
    text-align: right
}

dl {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

dt {
    text-indent: 1ch;
    font-weight: bold;
    border-bottom: solid 1px #0004
}

dd {
    padding: 0 1rem
}

dd+dt {
    padding-top: 0.5rem
}

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

main {
    display: grid;
    grid-template-columns: [content] minmax(8in, 1fr) [sidebar] 320px;
    gap: 1rem;
}

table {
    width: fit-content;
    border-collapse: collapse;
    margin: 0 auto
}

td {
    padding: 0.25rem;
    text-align: left;
    border: solid 1px var(--gray-2)
}

tr:nth-child(even) {
    background: var(--gray-1)
}

ul {
    list-style: disc outside;
    margin-left: 1rem
}

#accreditations-list {
    display: flex;
    flex-wrap: wrap;
    align-items: bottom;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem;
    background-color: #fff
}

#accreditations-list a {
    color: var(--blue-light);
    text-decoration: underline
}

#accreditations-list div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: fill
}

#accreditations-list img {
    max-height: 180px;
    width: auto
}

#accreditations-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 4rem;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    list-style-position: inside
}

#contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content
}

#contact-info>* {
    width: 320px
}

#content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--white)
}

#customer-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: auto;
    gap: 4rem 3rem;
    justify-content: center;
    align-items: center
}

#customer-logos img {
    width: 100%;
    height: auto
}

#open-positions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0 1rem;
    border: solid 1px var(--gray-2);
    border-style: none solid
}

#open-positions ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem
}

#sidebar {
    width: 320px;
    padding-right: 16px;
    color: var(--white-bold)
}

#sidebar>.container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 5.2rem;
    left: 0
}

#sidebar h3 a {
    font-size: 1.5rem
}

#sidebar nav {
    display: grid;
    justify-content: end;
    text-align: right;
    gap: 0.25rem
}

#sidebar nav>a {
    padding: 0.5rem 1rem 0.5rem 5rem;
    background: var(--blue);
    font-variant: small-caps;
    transition: background-color 0.05s
}

#sidebar nav>a:hover {
    background: var(--blue-light)
}

#showcase {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr [showcase-content] minmax(320px, 90%) 1fr;
    grid-template-rows: auto;
    align-items: center;
    position: relative;
    padding: 4rem 0
}

#showcase video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 25%;
    opacity: 0.5
}

#showcase-items {
    grid-column: showcase-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 320px;
    z-index: 1;
    color: #fff;
    height: auto
}

#showcase-quotes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: clamp(320px, 60ch, 60ch)
}

#showcase-quotes blockquote {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 1rem 0.75rem;
    background: #000d
}

#showcase-quotes p {
    color: #fffd
}

#showcase-slogan {
    color: #fff;
    text-shadow: 0 0 4px #000;
    font-family: serif;
    font-size: 2rem;
    font-weight: bolder;
    margin-left: 1rem
}

#toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem 3rem;
    padding: 1rem
}

#toc:before {
    content: 'Quick Links';
    width: 100%;
    font-weight: bold
}

#top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    position: sticky;
    top: 0;
    left: 0;
    padding: 1rem;
    background-color: var(--blue);
    z-index: 2
}

#top-bar a,
#top-bar a>p {
    color: var(--white-bold);
    white-space: nowrap
}

#top-bar a>p {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: bold
}

#top-bar>a {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%
}

#top-bar img {
    height: 35px
}

#top-bar nav {
    display: flex;
    gap: 1rem;
    height: 1rem
}

#top-bar-nav-btn {
    display: none;
    width: 3rem;
    height: 2rem;
    border-radius: 5px;
    cursor: pointer
}

.anchor {
    display: flex;
    justify-content: space-between;
    scroll-margin-top: 5rem
}

:is(.article-list, #contact-info, #open-positions) a {
    color: var(--blue-light);
    text-decoration: underline
}

.article-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white)
}

.back-btn {
    padding: 0.5rem;
    border-radius: 5px;
    background: var(--blue);
    color: var(--white-bold);
    cursor: pointer
}

.back-btn:hover {
    background: var(--blue-light)
}

.cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem !important;
    border: solid 1px var(--gray-2)
}

.cell h5 {
    text-align: center
}

.cell:is(ul, ol) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem
}

.centered {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto
}

.centered:is(ul, ol) {
    text-align: left;
    margin: 0 auto
}

.centered table {
    margin: 0 auto
}

.col {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.footnote {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: left;
    border: solid 1px var(--black);
    border-style: solid none
}

.gap {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: auto 1fr;
    gap: 0.5rem;
    text-transform: uppercase
}

.grid.info {
    grid-auto-rows: auto;
    text-transform: unset;
    gap: 0
}

.grid.info .cell {
    gap: 0.5rem;
    min-width: min-content;
    border: none
}

.grid h4 {
    grid-column: 1 / -1;
    padding: 0.25rem 0;
    text-align: center;
    border-top: solid 1px var(--black);
    border-bottom: double 3px var(--black)
}

.grid .cell:nth-child(odd) {
    background: var(--gray-1)
}

.home-content {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem
}

.home-content p {
    padding: 0 1rem
}

.info {
    display: grid;
    grid-template-rows: repeat(auto-fill, 1fr);
    gap: 1rem
}

.info article header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--black);
    margin-bottom: 0.5rem;
    padding: 0.25rem 1rem
}

.info section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem
}

.info section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 2rem
}

.mobile-only {
    display: none
}

.page-link {
    font-size: 0.8rem;
    text-decoration: underline
}

.page-link:before {
    content: '\1f517'
}

.slides {
    display: flex;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative
}

.slide-images {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    gap: 0;
    transition: left 0.2s ease-in-out
}

.left-button,
.right-button {
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 2.5rem;
    height: 5rem;
    background: #fffc;
    box-shadow: 0 0 4px #0005;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease
}

:is(.left-button, .right-button).inactive {
    background-color: #ccca;
    color: #555;
    cursor: default
}

.left-button {
    left: 0
}

.left-button:before {
    content: "<"
}

.right-button:before {
    content: ">"
}

.right-button {
    right: 0
}

.sublist {
    padding-left: 2ch;
    list-style: square
}

.sublist li {
    font-size: 0.9rem
}

.text-block {
    display: grid;
    grid-template-columns: 1fr [text-block-content] minmax(320px, 80ch) 1fr;
    gap: 1rem
}

.text-block * {
    grid-column: text-block-content;
    margin: 0
}

.text-block li {
    margin: 0 2rem
}

.three-column-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, auto));
    grid-auto-rows: auto;
    align-items: center;
    justify-content: center;
    background: var(--gray-2)
}

.three-column-images img {
    height: 100%;
    overflow: hidden
}

.top-link {
    font-size: 0.8rem;
    cursor: pointer
}

.two-column {
    display: grid;
    grid-template-columns: min-content auto;
    gap: 0.5rem
}

.two-column span:nth-child(odd) {
    text-align: right
}

.yt-embed {
    width: 100%;
    aspect-ratio: 16 / 9
}

@media screen and (max-width: 12in) {
    main {
        grid-template-columns: 1fr
    }

    #sidebar {
        display: none
    }

    .col p {
        margin: 0 auto
    }

    .home-content {
        grid-template-columns: 1fr
    }

    .mobile-only {
        display: block
    }
}

@media screen and (max-width: 840px) {
    #top-bar {
        gap: 0
    }

    #top-bar nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: fixed;
        top: 67px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background: var(--blue-light);
        transition: height 0.2s ease-in-out, padding 0.2s ease-in-out
    }

    #top-bar nav a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        background: var(--blue);
        transition: background-color 0.1s
    }

    #top-bar nav a:hover {
        background-color: var(--blue-light)
    }

    #top-bar-nav-btn {
        display: block
    }
}

@media screen and (max-width: 560px) {
    main {
        margin: 0
    }

    #content {
        padding: 0
    }

    #showcase {
        height: auto;
        padding: 1rem 0;
        background: unset
    }

    #showcase video {
        display: none
    }

    .text-block {
        display: flex;
        flex-direction: column;
        gap: 1rem
    }

    .info section {
        padding: 0.5rem;
        max-width: 100vw
    }
}

@media screen and (max-width: 415px) {
    #top-bar img+p {
        display: none
    }
}

@supports not (aspect-ratio: 16 / 9) {
    .yt-container {
        position: relative
    }

    .yt-container::before {
        float: left;
        padding-top: 56.25%;
        content: ""
    }

    .yt-container::after {
        display: block;
        content: "";
        clear: both
    }

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