:root {
    --brand-red: #ed1c24;
    --brand-gray: #58585a;
    --font-xsmall: 0.875rem;
    --line-height-xsmall: 1.25rem;
    --font-small: 1rem;
    --line-height-small: 1.5rem;
    --font-base: 1.125rem;
    --line-height-base: 1.75rem;
    --font-large: 1.25rem;
    --line-height-large: 1.75rem;
    --font-xlarge: 1.5rem;
    --line-height-xlarge: 2rem;
    --font-2xlarge: 1.875rem;
    --line-height-2xlarge: 2.25rem;
    --font-3xlarge: 2.25rem;
    --line-height-3xlarge: 2.5rem;
    --font-4xlarge: 3rem;
    --line-height-4xlarge: 1;
    --font-5xlarge: 3.75rem;
    --line-height-5xlarge: 1;
    --font-6xlarge: 4.5rem;
    --line-height-6xlarge: 1;
}



.container {
    max-width: 2000px;
    margin: 0 auto;
    color: var(--brand-gray);
}

header .utility,
header .nav-bar,
header .hero,
section,
.upper,
.lower {
    padding-left: 1rem;
    padding-right: 1rem;
}

.button {
    background-color: var(--brand-red);
    border: none;
    margin-top: 1rem;
    padding: .1rem 1.7rem;
    cursor: pointer;
    display: inline-block;
}

.button > a {
    color: white;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--font-large);
    line-height: var(--line-height-large);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 600;
    letter-spacing: .03rem;
}

/** Header **/
/** Utility **/
.utility {
    text-transform: uppercase;
    padding: 1rem 0 2rem 0;
    font-size: var(--font-2xlarge);
    line-height: var(--line-height-2xlarge);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 600;
    letter-spacing: .1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    row-gap: .5rem;
}

.utility img,
.utility div {
    /* max-width: 15rem; */
}

.utility .logo {
    max-width: 24rem;
    padding: 1rem 0 2rem 0;
    order: -9999;
}

.utility a {
    color: var(--brand-red);
    text-decoration: none;
}

.utility a:hover {
    /*text-decoration: underline;*/
}

.utility-link:first-of-type {
    padding-right: 2rem;
}

.search img {
    max-width: 2rem;
    margin-left: .25rem;
}

.utility-link img {
    max-width: 1rem;
    margin-left: .25rem;
}

/** Nav **/
.nav-bar {
    background-color: var(--brand-red);
    padding: 1rem 0;
}

#site-navigation {
    color: white;
    font-family: 'Jost', sans-serif;
}

.menu {
    overflow: hidden;
}

.menu li a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    display: none;
    font-size: var(--font-xlarge);
    line-height: var(--line-height-xlarge);
}

.menu li a.icon {
    float: right;
    display: block;
}

.menu.responsive {
    position: relative;
}

.menu.responsive li a.icon {
    position: absolute;
    right: 0;
    top: 0;
}

.menu.responsive li a {
    float: none;
    display: block;
    text-align: left;
    margin-top: 1rem;
}

.menu.responsive > li:first-of-type > *,
.menu.responsive > li:last-of-type > * {
    margin-top: 0;
}

.menu-item-has-children > ul {
  display: none;
}

.menu-item-has-children:hover > ul {
  display: block;
}

.mega-menu {
    background-color: var(--brand-red);
    font-family: 'Jost', sans-serif;
    z-index: 1;
    margin: 0 auto;
}

.mega-menu-item .subtitle {
    font-size: var(--font-large);
    line-height: var(--line-height-large);
}

.mega-menu-item p {
    font-size: var(--font-small);
    line-height: var(--line-height-small);
    text-transform: none;
}

/** Hero **/
.hero {
    background: url("../images/DataBackground5Red.png") no-repeat center center;
    background-size: cover;
    color: white;
    font-size: var(--font-5xlarge);
    line-height: var(--line-height-5xlarge);
    font-weight: 600;
    letter-spacing: .6rem;
    text-transform: uppercase;
    text-align: center;
    padding: 2rem 0;
    font-family: 'Bebas Neue', sans-serif;
}

.hero p {
    font-size: var(--font-base);
    line-height: var(--line-height-base);
    font-weight: normal;
    letter-spacing: .1rem;
    text-transform: none;
    font-family: 'Jost', sans-serif;
}

.hero.secondary {
    background: url("../images/ManagedServicesBackground1Red.png") no-repeat center center;
    background-size: cover;
}

/** Main **/
section {
    margin-top: 6rem;
}

.two-column h2,
.two-column-secondary h2,
.two-column-tall h2 {
    font-size: var(--font-5xlarge);
    line-height: var(--line-height-5xlarge);
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 600;
    letter-spacing: .05rem;
}

.two-column p,
.two-column-secondary li,
.two-column-tall p {
    font-size: var(--font-large);
    line-height: var(--line-height-xlarge);
    font-family: 'Jost', sans-serif;
    letter-spacing: .05rem;
}

.two-column img {
    max-width: 18rem;
}

.two-column h2 img {
    max-width: 8rem;
    position: absolute;
    margin: -11px 0 0 -86px;
}

.feature h2 img,
.two-column-feature h2 img {
    max-width: 11rem;
    max-height: none;
    position: absolute;
}

.feature h2 img {
    margin: -85px 0 0px 460px;
}

.two-column-feature h2 img {
    margin: -8px 0 0 -81px;
}

.two-column .two-column-flex {
    max-width: 45rem;
}

.two-column .two-column-flex:not(:first-of-type),
.three-column .two-column-flex:not(:first-of-type) {
    margin-top: 3rem;
}

.two-column h2,
.two-column-secondary h2,
.two-column-tall h2 {
    margin-top: 1rem;
}

.two-column-secondary h2 img,
.two-column-tall h2 img {
    max-width: 6rem;
    position: absolute;
    margin: -7px 0 0 -70px;
}

.two-column-secondary,
.two-column-tall {
    margin-left: auto;
    margin-right: auto;
    max-width: 70rem;
}

.two-column-secondary ul {
    list-style: disc;
    color: var(--brand-red);
    padding-left: 1rem;
}

.two-column-secondary .two-column-flex {
    max-width: 40rem;
}

.two-column-secondary .two-column-flex {
    margin-top: 3rem;
}

.two-column-secondary .two-column-flex:first-of-type {
    margin-top: 0;
}

.two-column-secondary img {
    max-height: 12rem;
}

.two-column-tall h3 {
    font-size: var(--font-large);
    line-height: var(--line-height-large);
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    margin-top: 1rem;
    color: var(--brand-red);
}

.two-column-tall img {
    max-width: 13rem;
}

.three-column h2 {
    font-size: var(--font-4xlarge);
    line-height: var(--line-height-4xlarge);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 600;
    letter-spacing: .05rem;
}

.three-column p {
    font-size: var(--font-base);
    line-height: var(--line-height-large);
    font-family: 'Jost', sans-serif;
    letter-spacing: .05rem;
}

.three-column .two-column-flex {
    max-width: 33rem;
}

.callout {
    padding: 0;
}

.callout > div {
    display: grid;
    align-items: center;
    justify-items: center;
}

.callout ul {
    border: 1px var(--brand-red) solid;
    padding: 1rem;
    justify-self: center;
    max-width: fit-content;
    background: white;
}

.callout li {
    padding: 1rem;
    font-size: var(--font-3xlarge);
    line-height: var(--line-height-3xlarge);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-red);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1rem;
}

.callout hr {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1px solid var(--brand-red);
    z-index: -1;
    position: absolute;
}

.dot-divider {
    margin-top: 2rem;
    padding: 0;
}

.dot-divider img {
    width: 100%;
}

.feature {
    background: url("../images/DataBackground9Red.jpg") no-repeat center center;
    background-size: cover;
    margin-top: 0;
    padding: 1rem;
    align-items: center;
}

.feature .button {
    background-color: white;
}

.feature .button > a {
    color: var(--brand-red);
}

.feature h2,
.two-column-feature h2 {
    font-size: var(--font-6xlarge);
    line-height: var(--line-height-6xlarge);
    font-weight: 600;
    letter-spacing: .1rem;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
}

.feature p,
.two-column-feature p {
    font-size: var(--font-large);
    line-height: var(--line-height-large);
    color: white;
    font-family: 'Jost', sans-serif;
}

.feature p:not(:first-of-type) {
    margin-top: 1rem;
}

.feature img {
    max-height: 38rem;
    margin: 0 auto;
    display: block;
}

.feature div {
    padding: 2rem 0;
}

.two-column-feature {
    margin-top: 0;
    padding: 0;
    color: white;
    background-color: var(--brand-red);
    display: block;
}

.two-column-feature img {
    width: 100%;
}

.two-column-feature p {
    max-width: 45rem;
    font-size: var(--font-base);
    line-height: var(--line-height-base);
}

.two-column-feature div {
    padding: 1rem;
}

/** Footer **/
footer {
    text-transform: uppercase; 
}

.upper > *,
.lower > * {
    padding: 1rem 0;
}

.upper {
    font-family: 'Jost', sans-serif;
}

.upper img {
    max-width: 22rem;
}

.navigation a {
    color: var(--brand-red);
    text-decoration: none;
    font-size: var(--font-2xlarge);
    line-height: var(--line-height-2xlarge);
}

.navigation a:hover {
    text-decoration: underline;
}

.navigation li {
    padding: .3rem;
}

.services {
    font-size: var(--font-xlarge);
}

.services li {
    line-height: 3rem;
}

.social-icons {
    display: grid;
}

.social-icons img {
    max-width: 5rem;
    margin-top: .5rem;
}

.lower {
    background: var(--brand-red);
    color: white;
}

.lower a {
    color: white;
    text-decoration: none;
}

.lower a:hover {
    text-decoration: underline;
}

.lower li {
    padding: .25rem;
}

.divider {
    display: none;
}

.contact {
    max-width: 75rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: var(--font-3xlarge);
    line-height: var(--line-height-3xlarge);
    font-weight: 600;
    letter-spacing: .3rem;
}

.legal {
    font-size: var(--font-xsmall);
    line-height: var(--line-height-xsmall);
    max-width: 30rem;
    font-family: 'Jost', sans-serif;
}

@media (min-width: 640px) {
    .utility {
        flex-direction: row;
        justify-content: space-between;
    }

    .utility .logo {
        order: initial;
        padding: 1rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .two-column-flex {
        display: flex;
    }

    .two-column h2,
    .two-column-secondary h2,
    .two-column-tall h2 {
        margin-top: 0;
    }

    .two-column-flex > div {
        flex: 0 1 auto;
    }

    .two-column-flex > div:first-of-type {
        padding-right: 2rem;
    }

    .feature {
        padding: 2rem;
    }
    
    .lower {
        padding: 0;
    }

    .lower ul {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0 auto;
    }

    .contact {
        padding: 2rem 0 1rem 0;
    }

    .legal {
        padding: 0 0 1rem 0;
    }

    .divider {
        display: inherit;
    }
}

@media (min-width: 768px) {
    .menu {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }

    .menu li a {
        display: block;
    }

    .menu li a.icon {
        display: none;
    }

    .sub-menu a {
        margin-top: 1rem;
    }

    .menu-item-has-children:hover > ul.mega-menu {
        width: 100%;
        position: absolute;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        padding: 3rem;
    }

    .mega-menu-item {
        max-width: 16rem;
    }

    .services li {
        display: inline;
        white-space: nowrap;
    }

    .services li:nth-child(odd):after {
        content: "|";
        padding: 0 1em;
    }

    .services li:nth-child(even):after {
        content: "\a";
        white-space: pre;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 7rem 5rem;
    }

    header .nav-bar {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .two-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        place-items: center;
        padding: 0 5rem;
    }

    .two-column .two-column-flex:not(:first-of-type),
    .three-column .two-column-flex:not(:first-of-type) {
        margin-top: 0;
    }

    .three-column {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 1rem;
        place-items: center;
        padding: 0 5rem;
    }

    .callout li {
        padding: 0;
        display: inline;
    }

    .feature {
        display: flex;
        column-gap: 3rem;
        justify-content: center;
    }

    .feature img {
        margin: 0;
    }

    .feature div {
        max-width: 37rem;
    }

    .two-column-feature {
        display: flex;
        flex-direction: row;
    }

    .two-column-feature img {
        width: 35%;
    }
    
    .two-column-feature div {
        width: 65%;
    }

    .upper {
        display: grid;
        color: var(--brand-gray);
        grid-template-columns: repeat(2, auto);
        column-gap: 3rem;
        padding: 2rem 1rem;
        align-items: center;
    }
}

@media (min-width: 1280px) {
    .upper {
        grid-template-columns: repeat(4, auto);
    }
}

@media (min-width: 1536px) {
    .upper {
        padding: 2rem 9rem 2rem 12rem;
    }

    .utility {
        height: 11rem;
    }

    .utility .logo {
        position: absolute;
        top: 30px;
        left: 41%;
    }

    header .utility {
        padding-left: 12rem;
        padding-right: 12rem;
    }
}

@media (min-width: 2000px) {
    header .utility, header .nav-bar, header .hero, section, .upper, .lower {
        padding-left: 0;
        padding-right: 0;
    }
}