.p1 {
    padding: 1em;
}
* {
    box-sizing: border-box;
}
.container-lg {
    max-width: 1100px;
    margin: 0 auto;
}
.container-xl {
    max-width: 1400px;
    margin: 0 auto;
}
html {
    scroll-behavior: smooth;
}

/* fonts/text */
body {
    font-family: Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, legend small {
    font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
    font-weight: bold;
}
h1 {
    font-size: 3.5em;
}
h2 {
    font-size: 2.8em;
}
h3 {
    font-size: 2.2em;
}
h4 {
    font-size: 1.8em;
}
h5 {
    font-size: 1.5em;
}
@media screen and (min-width: 850px) {
    h1 {
        font-size: 4.2em;
    }
    h2 {
        font-size: 3.5em;
    }
    h3 {
        font-size: 2.8em;
    }
    h4 {
        font-size: 2.2em;
    }
    h5 {
        font-size: 1.8em;
    }
}
.masthead {
    font-size: 1.4em;
    text-align: center;
}
.section:not(.section1) .masthead {
    background: #223c78;
    color: white;
    padding: 1em;
}
.text-shadow {
    text-shadow: 1px 1px 10px black;
}

/* icon number boxes */
.circle-stack {
    position: relative;
    display: inline-block;
    width: 0.9285714286em;
    height: 1em;
}
.circle-stack .fa-circle,
.circle-stack .circle-text {
    position: absolute;
}
.circle-stack .fa-circle {
    color: #223c78;
}
.circle-stack .circle-text {
    color: white;
    top: 0.6em;
    left: 0.05em;
    width: 1.375em;
    height: 0.75em;
    font-family: sans-serif;
    font-size: 0.5714285714em;
    font-weight: 700;
    line-height: 0.5714285714em;
    text-align: center;
}

/* Header */
header {
    border-top: 15px solid #223c78;
    background: white;
}
.header-inner {
    padding: 1em;
    max-width: 1400px;
    margin: 0 auto;
}
.header-logo img {
    width: 100%;
}
.header-logo1 img {
    max-width: 350px;
}
.header-logo2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header-logo2 img {
    max-width: 200px;
}
header {
    text-align: center;
}
header a {
    color: #333;
}
header a,
header a:focus,
header a:hover {
    color: #333;
}
.header-inner > div {
    margin-bottom: 1em;
}
.header-inner > div:last-child {
    margin-bottom: 0;
}
.header-inner > div:not(:first-child) {
    padding: 0 1em;
}
@media screen and (min-width: 850px) {
    .header-inner {
        padding: 0 2em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-inner > div {
        margin-bottom: 0;
    }
    .header-inner > div:not(:first-child) {
        padding: 0;
    }
    .header-logo2 {
        flex-direction: row;
        align-items: flex-end;
    }
}

/* Footer */
footer {
    border-top: 15px solid #223c78;
    background: white;
    color: #333;
    padding: 1em;
}
@media screen and (min-width: 850px) {
    footer {
        padding: 1em 2em;
    }
}

/* Sections */

/* Global */

#body {
    display: flex;
    flex-direction: column;
}
.section1 { order: 1; }
.section2 { order: 5; }
.section3 { order: 2; }
.section4 { order: 3; }
.section5 { order: 4; }
footer { order: 6; }

/* section1 (Hero) */
.section1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.section1 .section-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section1 .section-top .section-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}
.section1 .masthead {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.section1 .masthead h1,
.section1 .masthead h4 {
    color: white;
    text-shadow: 1px 1px 10px black;
}

/* Boxes (5) */
.section5 {
    background: #223c78;
    padding: 1em;
}
.section5 .section-inner {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 500px;
}
.icon-item {
    padding: 1em;
    flex: 1;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #223c78;
}
.icon-item .circle-stack {
    font-size: 9em;
}
.icon-item h1 {
    font-weight: bold;
    text-align: center;
}
.icon-arrow {
    align-self: center;
    color: white;
}
.icon-arrow .fa-arrow-right {
    display: none;
}
@media screen and (min-width: 850px) {
    .section5 .section-inner {
        font-size: 0.6em;
        max-width: 1400px;
        flex-direction: row;
    }
    .icon-arrow .fa-arrow-right {
        display: inline;
    }
    .icon-arrow .fa-arrow-down {
        display: none;
    }
}
@media screen and (min-width: 1150px) {
    .section5 .section-inner {
        font-size: 1em;
    }
}

/* Login/Contact (2) */
.section2 .section-inner > * {
    margin: 5px;
}
.section2 .section-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(auto, 200px) minmax(auto, 200px) minmax(0, auto);
    grid-template-areas:
        'l l l l'
        '. L L .'
        'o o o o'
        'c c c c'
        'C C C C';
}
.login-label {
    grid-area: l;
}
.login-section {
    grid-area: L;
}
.login-or {
    grid-area: o;
}
.contact-label {
    grid-area: c;
}
.contact-section {
    grid-area: C;
}
.login-section {
    padding: 1em;
}
.login-inner {
    padding: 1em 2em;
    border: 1px solid #ccc;
}
.contact-section {
    padding: 1em;
}
.contact-inner {
    padding: 1em 2em;
    border: 1px solid #ccc;
}
@media screen and (min-width: 850px) {
    .section2 .section-inner {
        display: grid;
        grid-template-columns: 400px auto auto 1fr;
        grid-template-areas:
            'l o o c'
            'L L C C';
    }
}

/* Services (3) */
.section3 .masthead {
    margin-top: 1em;
}
.section3 .section-inner {
    padding: 2em 0;
    display: grid;
    grid-gap: 2em;
    grid-template-columns:
        1fr
        minmax(auto, 350px)
        1fr;
    grid-template-areas:
        '. d .'
        '. t .'
        '. m .'
        '. p .'
        '. b .';
}
.service {
    padding: 1em;
    height: 350px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: black;
    cursor: pointer;
}
.service-image {
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    opacity: 0.5;
    background-size: cover;
    background-position: center;
}
.service h1 {
    z-index: 10;
}
.service:hover {
    background: #223c78;
}
.service:hover .service-image {
    opacity: 0.3;
}
.service.selected {
    background: black;
    border: 15px solid #223c78;
}
.service.selected .service-image {
    opacity: 0.5;
}
.service-data {
    grid-area: d;
}
.service-turnkey {
    grid-area: t;
}
.service-mail {
    grid-area: m;
}
.service-purls {
    grid-area: p;
}
.service-boost {
    grid-area: b;
}
@media screen and (min-width: 850px) {
    .section3 .section-inner {
        grid-template-columns:
            1fr
            repeat(4, minmax(auto, 175px))
            1fr;
        grid-template-areas:
            '. d d t t .'
            '. m m p p .'
            '. . b b . .';
    }
}
@media screen and (min-width: 1250px) {
    .section3 .section-inner {
        grid-template-columns:
            1fr
            repeat(6, minmax(auto, 175px))
            1fr;
        grid-template-areas:
            '. d d t t m m .'
            '. . p p b b . .';
    }
}

/* Pricing (4) */
.section4 .section-inner {
    padding: 2em;
}
.pricing-table {
    display: none;
}
.pricing-none {
    display: block;
}
.pricing-table-inner {
    border: 5px solid #223c78;
    margin-top: 1.5em;
}
.pricing-blurb {
    padding: 1em 2em;
}
.table {
    font-size: 1.3em;
    margin-bottom: 0;
}
.table th {
    background: #223c78;
    color: white;
    font-size: 1.2em;
}
.table th.options {
    background: #fff2cc;
    color: black;
}
.pricing-purls .pricing-mockups {
    padding: 2em 0;
    display: grid;
    grid-gap: 2em;
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
}
.pricing-purls img {
    width: 100%;
}
.pricing-mockups > * {
    border-top: 2em solid rgba(230, 230, 230, 0.7);
    box-shadow: 0 0.1em 1em 0 rgba(0, 0, 0, 0.4);
    position: relative;
    border-radius: 3px 3px 0 0
}
.pricing-mockups > *:before {
    display: block;
    position: absolute;
    content: '';
    top: -1.25em;
    left: 1em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: #f44;
    box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5;
}
@media screen and (min-width: 850px) {
    .pricing-mail tr > th:first-child,
    .pricing-mail tr > td:first-child {
        min-width: 40vw;
    }
    .pricing-purls .pricing-mockups {
        max-width: none;
        grid-template-columns: repeat(4, 1fr);
    }
    .pricing-purls .pricing-mockups > div {
        grid-column: span 2;
    }
    .pricing-purls .pricing-mockups > div:last-child {
        grid-column: 2 / 4;
    }
}
@media screen and (min-width: 1050px) {
    .pricing-purls .pricing-mockups {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .pricing-purls .pricing-mockups > div
    {
        grid-column: span 1 !important;
    }
}
