@font-face {
    font-family: 'Source Sans Pro Regular';
    src: url(assets/fonts/SourceSansPro-Regular.otf) format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro Semibold';
    src: url(assets/fonts/SourceSansPro-Semibold.otf) format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro Bold';
    src: url(assets/fonts/SourceSansPro-Bold.otf) format('opentype');
}

:root {
    --dark: #455159;
    --darkblue: rgb(26, 92, 115);
    --darkblue75: rgb(26, 92, 115, 0.75);
    --lightblue: rgb(222, 234, 238);
    --lightblue75: rgb(222, 234, 238, 0.75);
    --reg: 'Source Sans Pro Regular', sans-serif;
    --semi: 'Source Sans Pro Semibold', sans-serif;
    --bold: 'Source Sans Pro Bold', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
}

body * {
    transition: all 0.25s ease;
}

h1 {
    font-family: var(--semi);
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-size: 3rem;
    letter-spacing: 3px;
    margin: 0 0 0.5rem 0;
}

@media screen and (max-width: 1000px) {
    h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 850px) {
    h1 {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 450px) {
    h1 {
        font-size: 1rem;
    }
}

h2 {
    font-family: var(--reg);
    color: var(--dark);
    text-transform: none;
    font-size: 2rem;
    margin: 0 0 4rem 0;
    text-align: center;
    letter-spacing: 1px;
}

@media screen and (max-width: 1000px) {
    h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 850px) {
    h2 {
        font-size: 1.25rem;
        margin: 0 0 2rem 0;
    }
}

@media screen and (max-width: 450px) {
    h2 {
        font-size: 1rem;
    }
}

h3 {
    position: relative;
    font-family: var(--reg);
    color: var(--darkblue);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin: 0 0 1rem 0;
}

@media screen and (max-width: 850px) {
    h3 {
        font-size: 1.125rem;
        letter-spacing: 2px;
    }
}

@media screen and (max-width: 450px) {
    h3 {
        font-size: 1rem;
    }
}

h4 {
    color: var(--darkblue75);
    font-size: 1.25rem;
    font-family: var(--bold);
    text-transform: none;
}

@media screen and (max-width: 850px) {
    h4 {
        font-size: 1.125rem;
    }
}

h5 {
    color: var(--darkblue75);
    font-size: 1rem;
    font-family: var(--bold);
    text-transform: none;
}

@media screen and (max-width: 450px) {
    h5 {
        font-size: 0.8rem;
    }
}

p,
li,
a {
    color: var(--darkblue75);
    font-size: 1rem;
    font-family: var(--semi);
    text-transform: none;
    margin: 0;
}

@media screen and (max-width: 450px) {
    p,
    li,
    a {
        font-size: 0.8rem;
    }
}

a {
    transition: color 0.3s ease;
}

p a {
    font-size: 1em;
}

a:hover {
    color: var(--darkblue);
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style-type: none;
    padding: 0.3rem 0;
}

strong {
    font-family: var(--bold);
}

nav ul {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
}

nav ul li {
    padding: 0;
}

nav ul li a {
    display: block;
    text-transform: uppercase;
    padding: .5em;
    text-decoration: none;
    letter-spacing: .1em;
    font-size: .875rem;
}

.is--block {
    max-width: 80rem;
    padding: 0 1rem;
    margin: auto;
}

.is--center {
    text-align: center;
}

.button {
    display: block;
    font-family: var(--reg);
    font-size: .875rem;
    padding: .75em 1em;
    color: white;
    background-color: var(--dark);
    border: 1px solid var(--dark);
    border-radius: 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: all ease 0.3s;
    cursor: pointer;
}

.button:hover {
    color: var(--darkblue);
    background-color: var(--lightblue);
}

@media screen and (min-width: 768px) {
    .button {
        font-size: 1rem;
        padding: 1em 1.5em;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

header#site-header {
    overflow: hidden;
    margin-bottom: 4rem;
    position: relative;
}

@media screen and (max-width: 850px) {
    header#site-header {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }
}
@media screen and (max-width: 450px) {
    header#site-header {
        flex-direction: column;
        justify-content: center;
    }
}

header#site-header .topbar {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    min-height: 6rem;
    padding: 0 2rem;
}

@media screen and (max-width: 450px) {
    header#site-header .topbar {
        flex-flow: column wrap;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

header#site-header .top-image {
    position: relative;
    height: 40vw;
}

@media screen and (max-width: 1000px) {
    header#site-header .top-image {
        height: auto;
    }
}

@media screen and (max-width: 600px) {
    header#site-header .top-image {
        position: relative;
        height: max-content;
        overflow: hidden;
    }
}

header#site-header .top-image img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 600px) {
    header#site-header .top-image img {
        margin-bottom: 2rem;
    }
}

header#site-header .image-wrapper {
    width: max-content;
    height: max-content;
    padding: 2rem 0;
    height: 6rem;
}

@media screen and (max-width: 1000px) {
    header#site-header .image-wrapper {
        height: 4rem;
    }
}

@media screen and (max-width: 850px) {
    header#site-header .image-wrapper {
        height: 3.5rem;
    }
}

@media screen and (max-width: 450px) {
    header#site-header .image-wrapper {
        padding: 2rem;
    }
}

header#site-header .image-wrapper img {
    width: auto;
    max-height: 100%;
}

header#site-header a {
    opacity: 1;
    transition: all ease 0.3s;
}

header#site-header .title-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
}

@media screen and (max-width: 600px) {
    header#site-header .title-section {
        position: initial;
        top: initial;
        left: initial;
        transform: initial;
    }
}

@media screen and (max-width: 850px) {
    header#site-header .title-section {
        height: auto;
    }
}

header#site-header .title-section > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap;
    background-color: var(--darkblue);
    border-radius: 16px;
    padding: 1.5em 2.5em;
}

@media screen and (max-width: 450px) {
    header#site-header .title-section div {
        padding: 1rem;
    }
}

header#site-header .title-section div p {
    text-align: center;
    font-size: 2rem;
}

@media screen and (max-width: 1000px) {
    header#site-header .title-section div p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 850px) {
    header#site-header .title-section div p {
        font-size: 1rem;
    }
}

header#site-header p {
    font-family: var(--reg);
    color: white;
    opacity: 1;
    font-size: 1.5rem;
}

header#site-header p span:not(:last-child)::after {
    content: '\00B7';
    position: relative;
    margin: 0.5rem;
}

main {
    overflow: hidden;
}

section {
    position: relative;
}

section::before {
    content: "";
    display: block;
    position: absolute;
    width: 100vw;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: -1;
    left: 50%;
    transform: translate(-50%,0);
    background: inherit;
}

section#services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10rem;
}

@media screen and (max-width: 850px) {
    section#services {
        display: block;
        padding: 0 2rem;
        margin-bottom: 2rem;
    }
}

section#services h2 {
    grid-column: span 2;
}

section#services article {
    margin: 0 0 4rem 0;
}

@media screen and (max-width: 850px) {
    section#services article {
        margin-bottom: 2rem;
    }
}

section#services article:last-child {
    margin: 0;
}

section#services h3 {
    display: inline-block;
}

section#services div article h3::after {
    content: '';
    position: absolute;
    background-color: var(--lightblue);
    height: 12px;
    width: calc(100% + 1rem);
    left: 0;
    bottom: 0;
    z-index: -1;
}

section#services ul {
    color: var(--darkblue);
}

section#services .image-wrapper {
    padding-right: 4rem;
}

@media screen and (max-width: 850px) {
    section#services .image-wrapper {
        display: flex;
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

section#services img {
    border-radius: 20px;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    margin: auto;
}

section#portrait {
    position: relative;
}

@media screen and (max-width: 850px) {
    section#portrait {
        margin-bottom: 2rem;
    }
}

section#portrait .image-wrapper {
    height: 40vw;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

@media screen and (max-width: 1000px) {
    section#portrait .image-wrapper {
        height: 60vw;
    }
}

@media screen and (max-width: 850px) {
    section#portrait .image-wrapper {
        display: block;
        height: initial;
        width: initial;
    }
}

section#portrait .image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 850px) {
    section#portrait .image-wrapper img {
        max-width: 100%;
        height: auto;
    }
}

section#portrait .box {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    position: absolute;
    z-index: 2;
    padding: 3rem;
}

@media screen and (max-width: 850px) {
    section#portrait .box {
        position: initial;
        margin: 1rem 2rem;
    }
}

section#portrait .dark {
    background-color: var(--darkblue);
    top: -4rem;
    right: 50%;
    max-width: 20rem;
    transform: translateX(-4rem);
}

section#portrait .dark h3 {
    color: white;
}

section#portrait .dark li {
    color: var(--lightblue75);
}

section#portrait .light {
    background-color: var(--lightblue);
    bottom: -8rem;
    left: 50%;
    max-width: 18rem;
}

@media screen and (min-width: 768px) {
    section#portrait .light {
        background-color: white;
    }
}

section#portrait .light h3 {
    color: var(--darkblue);
}

section#portrait .light ul {
    color: var(--darkblue);
}

@media screen and (max-width: 850px) {
    section#portrait .dark,
    section#portrait .light {
        max-width: initial;
        transform: initial;
    }
}

section#contact {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

@media screen and (max-width: 850px) {
    section#contact {
        padding: 0 2rem;
        margin-bottom: 2rem;
    }
}

section#contact h2 {
    color: var(--darkblue);
    text-transform: uppercase;
    font-family: var(--semi);
}

section#contact form {
    display: flex;
    flex-direction: row;
    gap: 2em;
}

@media screen and (max-width: 850px) {
    section#contact form {
        flex-direction: column;
        gap: 0;
    }
}

section#contact form .form-group {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

section#contact form * :not(button) {
    font-family: var(--reg);
    font-size: 1rem;
    border: none;
    color: var(--dark);
}

@media screen and (max-width: 450px) {
    section#contact form * {
        font-size: 0.8rem;
    }
}

section#contact form label a:hover {
    transition: color 0.3s ease;
    color: var(--darkblue);
}

section#contact form input[type='text'],
section#contact form input[type='email'],
section#contact form select,
section#contact form textarea {
    margin: 0 0 1em 0;
    padding: 1em;
    background-color: var(--lightblue);
    border-radius: 0.5em;
}

section#contact form div.check {
    margin: 0 0 1em 0;
}

section#contact form input[type='text']::placeholder,
section#contact form input[type='email']::placeholder,
section#contact form select::placeholder,
section#contact form textarea::placeholder {
    font-family: var(--reg);
    font-size: 1rem;
    color: var(--dark);
}

section#contact form input[type='text']:focus,
section#contact form input[type='email']:focus,
section#contact form select:focus,
section#contact form textarea:focus {
    outline: 1px solid var(--darkblue75);
}

@media screen and (max-width: 450px) {
    section#contact form input[type='text']::placeholder,
    section#contact form input[type='email']::placeholder,
    section#contact form select::placeholder,
    section#contact form textarea::placeholder {
        font-size: 0.8rem;
    }
}

section#contact form textarea {
    resize: vertical;
}

section#contact form select * {
    font-family: var(--reg);
    font-size: 1rem;
    color: var(--dark);
}

section#thankyou {
    margin-top: 6rem;
}

section#thankyou h2 {
    margin-bottom: 2rem;
}

section#thankyou p {
    color: var(--dark);
    margin-bottom: 1rem;
}

section#masthead,
section#data {
    margin-bottom: 6rem;
}

@media screen and (max-width: 800px) {
    section#masthead,
    section#data {
        margin-bottom: 2rem;
    }
}

section#masthead h3,
section#data h3 {
    display: inline-block;
}

section#masthead h3::after,
section#data h3::after {
    content: '';
    position: absolute;
    background-color: var(--lightblue);
    height: 12px;
    width: calc(100% + 1rem);
    left: 0;
    bottom: 0;
    z-index: -1;
}

@media screen and (max-width: 650px) {
    section#masthead h3:nth-of-type(4)::after,
    section#masthead h3:nth-of-type(5)::after,
    section#data h3::after {
        width: 100%;
    }
}

section#masthead p,
section#data p {
    margin-bottom: 2rem;
}

section#automation {
    padding-top: 6rem;
    background: var(--lightblue);
}

section#automation h2 {
    text-align: left;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

section#automation > img {
    max-width: 24em;
    display: block;
    margin: 0 auto;
    width: 100%;
}

section#automation .text-wrapper {
    padding: 4rem 0;
}

section#automation .text-wrapper img {
    margin: 0 auto 2rem 0;
    max-width: 12rem;
}

@media screen and (min-width: 768px) {
    section#automation {
        display: flex;
        align-items: flex-end;
        gap: 6rem;
    }

    section#automation > img {
        flex: 0 1 40%;
        z-index: 2;
        position: relative;
        margin: 0;
        max-width: unset;
    }

    section#automation .text-wrapper {
        flex: 1 1 60%;
        max-width: 32rem;
        margin-left: auto;
    }

    section#automation .text-wrapper img {
        max-width: 16rem;
        margin-left: auto;
        margin-right: 0;
    }

    section#automation * {
        text-align: right !important;
    }
}

footer#site-footer {
    margin: 0;
    padding: 2rem 6rem;
    background-color: var(--darkblue);
}

@media screen and (max-width: 850px) {
    footer#site-footer {
        padding: 2rem 1rem;
    }
}

footer#site-footer div.is--block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8rem;
    color: white;
}

@media screen and (max-width: 850px) {
    footer#site-footer div.is--block {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

footer#site-footer div.is--block p {
    color: var(--lightblue);
    width: 15rem;
    text-align: left;
}

@media screen and (max-width: 850px) {
    footer#site-footer div.is--block p {
        text-align: center;
        width: 15rem;
    }
}

footer#site-footer p,
footer#site-footer a {
    color: var(--lightblue);
    opacity: 1;
}

footer#site-footer a:hover {
    color: white;
}

footer#site-footer strong {
    text-transform: uppercase;
    color: white;
}