/*-- -------------------------- -->
<---           Header           -->
<--- -------------------------- -*/

#cs-navigation {
    display: flex;
    justify-content: center;
    /* Centers items horizontally */
    align-items: center;
    /* Centers items vertically */
    /* Optional: Adjust height as needed */
    background-color: #FFFFFF;
    /* Optional: Add background for visibility */
}

.cs-container-header {
    display: flex;
    justify-content: center;
    /* Centers content inside the container */
}

.cs-logo img {
    max-width: 100%;
    /* Ensure responsive scaling */
    height: auto;
    /* Maintain aspect ratio */
}

/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #hero {
        z-index: 1;
        position: relative;
        /* prevents overflow from the lines extending past the screen width */
        overflow: hidden;
        /* changes on tablet */
        padding: 0 1rem;
        padding-bottom: 6.25rem;
        font-family: "Roboto", "Arial", sans-serif;
        /* Centers button */
        text-align: center;
    }

    #hero .cs-picture {
        z-index: -2;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        height: 100%;
        /* Background Image */
        width: 100%;
    }

    #hero .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Makes image act like a background-image */
        object-fit: cover;
    }

    #hero .cs-picture:before {
        z-index: 1;
        position: absolute;
        top: 0;
        left: 0;
        /* Black Color Overlay */
        content: "";
        opacity: 0.7;
        display: block;
        background: #000;
        height: 100%;
        width: 100%;
        /* prevents the cursor from interacting with it */
        pointer-events: none;
    }

    #hero .cs-container {
        position: relative;
        margin: auto;
        max-width: 80em;
        width: 100%;
        /* we put the padding top and bottom on the container instead of #Hero so the pseudo element lines go to the top and bottom of the section */
        /* 144px - 280px - leaving extra space for the navigation */
        /* changes on tablet */
        padding: clamp(9em, 25.95vw, 17.5em) 0;
    }

    #hero .cs-container:before {
        position: absolute;
        top: 0;
        left: 0;
        /* Left Line */
        content: "";
        opacity: 1;
        display: block;
        background: -moz-linear-gradient(top, rgba(250, 251, 252, 0.5) 0%, rgba(250, 251, 252, 0) 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, rgba(250, 251, 252, 0.5) 0%, rgba(250, 251, 252, 0) 100%);
        /* Chrome10-25,Safari5.1-6 */
        height: 100%;
        width: 1px;
    }

    #hero .cs-flex-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        /* 60px - 220px */
        margin-bottom: clamp(3.75em, 15.5vw, 13.75em);
        /* 464px - 562px */
        max-width: clamp(29em, 60vw, 35.125em);
        width: 80vw;
        box-sizing: border-box;
    }

    #hero .cs-topper {
        margin-bottom: 1rem;
        color: var(--primary);
        text-align: center;
    }

    #hero .cs-title {
        width: 100%;
        color: var(--bodyTextColorWhite);
        text-align: center;
    }

    #hero .cs-text {
        /* 32px - 40px */
        margin: 0 auto clamp(2rem, 4vw, 2.5rem) 0;
        /* 40px - 48px */
        margin-bottom: clamp(2.5rem, 4vw, 3rem);
        color: var(--bodyTextColorWhite);
        text-align: center;
    }

    #hero .cs-button-solid {
        margin-bottom: 1rem;
        height: initial;
        line-height: clamp(2.875em, 5.5vw, 3.5em);
    }

    #hero .cs-button-transparent {
        z-index: 1;
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--bodyTextColorWhite);
        margin: 0 0.5rem;
        background-color: transparent;
        /* 46px - 56px */
        height: clamp(2.875em, 5.5vw, 3.5em);
        width: 11.25rem;
        box-sizing: border-box;
        padding: 0;
        text-decoration: none;
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875em, 5.5vw, 3.5em);
        font-weight: 700;
        color: #fff;
    }

    #hero .cs-button-transparent .cs-img {
        display: block;
        margin-right: 0.75rem;
    }

    #hero .cs-button-transparent:before {
        z-index: -1;
        position: absolute;
        /* so it sits on top of the border */
        top: -1px;
        bottom: -1px;
        left: -1px;
        right: -1px;
        content: "";
        opacity: 1;
        /* this is what creates the grow affect on hover */
        transform: scaleX(0);
        display: block;
        background: #000;
        transition: transform 0.3s;
        transform-origin: left;
    }

    #hero .cs-button-transparent:hover:before {
        transform: scaleX(1);
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #hero {
        /* 32px - 40px */
        padding: 0 clamp(2em, 5vw, 2.5em);
    }

    #hero .cs-container {
        padding: clamp(7em, 27.95vw, 17.5em) 0 clamp(9em, 30.95vw, 23.5em) 0;
    }

    #hero .cs-container:after {
        position: absolute;
        top: 0;
        right: 0;
        /* Right Line */
        content: "";
        opacity: 1;
        display: block;
        background: -moz-linear-gradient(top, rgba(250, 251, 252, 0) 0%, rgba(250, 251, 252, 0.5) 100%);
        /* FF3.6-15 */
        background: -webkit-linear-gradient(top, rgba(250, 251, 252, 0) 0%, rgba(250, 251, 252, 0.5) 100%);
        /* Chrome10-25,Safari5.1-6 */
        height: 100%;
        width: 1px;
    }

    #hero .cs-button-solid {
        margin-right: 1.25rem;
        margin-bottom: 0;
    }
}

/* Desktop Parallax Effect - 1300px */
@media only screen and (min-width: 81.25em) {
    #hero {
        background: url("/assets/images/landing.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        /* creates parallax effect on background image */
        background-attachment: fixed;
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #hero .cs-background:before {
        opacity: 0.8;
    }
}

/*-- -------------------------- -->
  <---          Services          -->
  <--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
    .services {
        z-index: 100;
        position: relative;
        border-top: 0.375em solid var(--primary);
        border-radius: 0.3125em;
        margin: auto;
        margin-top: calc(-167 / 16 * 1em);
        margin-bottom: 3.125em;
        background: #fff;
        max-width: 82.5em;
        width: 90%;
        padding: 3.125em 1.25em;
        box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
    }

    .services .card {
        display: block;
        margin: auto;
        margin-bottom: 3.125em;
        max-width: 22.3125em;
        width: 100%;
    }

    .services .card picture {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        margin: auto;
        margin-bottom: 1.4375em;
        background: var(--primary);
        height: 5.5em;
        width: 5.5em;

    }

    .services .card picture img {
        height: 3em;
        width: 3em;
        filter: grayscale(100%) brightness(200%);
    }

    .services .card h2 {
        margin-bottom: 0.65em;
        font-size: 2em;
        line-height: 1.35em;
        font-weight: 700;
        color: #1a1a1a;
        text-align: center;
    }

    .services .card p {
        opacity: 0.7;
        width: 100%;
        line-height: 1.33333333em;
        text-align: center;
    }

    .services .card:last-of-type {
        margin-bottom: 0;
    }
}

/* Inbetween */
@media only screen and (min-width: 768px) {
    .services {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 98%;
        font-size: min(1.8vw, 1em);
    }

    .services .card {
        margin: 0;
        max-width: 20.3125em;
    }
}

/* Large Desktop */
@media only screen and (min-width: 1300px) {
    .services {
        padding: 3.125em 5em;
    }

    .services .card {
        max-width: 22.3125em;
    }
}

/* Dark mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #services {
        background: var(--medium);
    }

    body.dark-mode #services picture {
        background: var(--primaryDark);
    }

    body.dark-mode #services h2 {
        font-weight: bold;
        color: #fff;
    }
}

/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #services-448 {
        padding: var(--sectionPadding);
    }

    #services-448 .cs-container {
        width: 100%;
        /* changes at 1280px at tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }

    #services-448 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }

    #services-448 .cs-card-group {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* 16px - 20px */
        column-gap: clamp(1rem, 1.5vw, 1.25rem);
        /* 24px - 60px */
        row-gap: clamp(1.5rem, 5vw, 3.75rem);
    }

    #services-448 .cs-item {
        list-style: none;
        width: 100%;
        max-width: 22.5rem;
        /* changes at desktop */
        padding-top: 9rem;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #services-448 .cs-item:hover .cs-picture img {
        transform: scale(1.2);
        opacity: 0.4;
    }

    #services-448 .cs-item:hover .cs-flex:before {
        opacity: 1;
    }

    #services-448 .cs-picture {
        width: 100%;
        /* changes at desktop */
        height: 25.625rem;
        border-radius: 0.5rem;
        /* clips the corners of the image */
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    #services-448 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* makes it behave like a background image */
        object-fit: cover;
        /* positions top of image to the top of the container */
        transition: transform 0.9s, opacity 0.5s;
        bottom: 25;
    }

    #services-448 .cs-flex {
        text-align: center;
        width: 88%;
        padding: 0 1.5rem 1.5rem 1.5rem;
        margin-top: 175px;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        border: 1px solid #dad9e3;
        border-radius: 0.75rem;
        background-color: #fff;
        box-shadow: 0px 24px 54px rgba(87, 107, 147, 0.12);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    #services-448 .cs-flex:before {
        /* hover border box */
        content: "";
        background: transparent;
        /* prevents the mouse from interacting with it */
        pointer-events: none;
        border: 4px solid var(--primary);
        border-radius: 0.75rem;
        /* prevents border from affecting height and width */
        box-sizing: border-box;
        opacity: 0;
        position: absolute;
        display: block;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        transition: opacity 0.5s;
    }

    #services-448 .cs-wrapper {
        /* 80px - 120px */
        width: clamp(5rem, 9.2vw, 7.5rem);
        height: clamp(5rem, 9.2vw, 7.5rem);
        /* 20px - 24px */
        margin: 0 0 clamp(1.25rem, 1.5vw, 1.5rem);
        /* we use the same clamp value for height & width, but multiple by -.5 so it will be a negative value, and be half of the height.  Negative margins pull things toward the element so they overlap them, in this case we want the .cs-wrapper to overlap .cs-flex by half its height, so we use the same clamp for height and half it for the margin top value */
        margin-top: calc(clamp(5rem, 9.2vw, 7.5rem)*-.5);
        border-radius: 50%;
        border: 4px solid var(--primary);
        background-color: #fff;
        /* prevents border from affecting height and width */
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 10;
    }

    #services-448 .cs-icon {
        /* 48px - 64px */
        width: clamp(3rem, 4.3vw, 4rem);
        height: auto;
        display: block;
    }

    #services-448 .cs-h3 {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 1.9vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        margin: 15px 0 0.5rem 0;
        color: var(--headerColor);
    }

    #services-448 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        font-weight: 400;
        /* 20px - 24px */
        margin: 0 0 clamp(1.25rem, 1.5vw, 1.5rem);
        color: var(--bodyTextColor);
    }

    #services-448 .cs-link {
        /* 16px - 20px */
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        line-height: 1.5em;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        margin: 0;
        color: var(--primary);
        display: inline-block;
        position: relative;
    }

    #services-448 .cs-link:hover:before {
        width: 100%;
    }

    #services-448 .cs-link:before {
        /* animated underline */
        content: "";
        width: 0%;
        height: 3px;
        background: currentColor;
        opacity: 1;
        position: absolute;
        display: block;
        bottom: -0.125rem;
        left: 0;
        transition: width 0.3s;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #services-448 .cs-container {
        max-width: 80rem;
    }

    #services-448 .cs-card-group {
        flex-direction: row;
    }

    #services-448 .cs-item {
        width: 47%;
    }
}

/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #services-448 .cs-card-group {
        flex-wrap: nowrap;
    }

    #services-448 .cs-item {
        width: 100%;
        /* 144px - 274px */
        padding-top: clamp(9rem, 17.5vw, 17.125rem);
    }

    #services-448 .cs-picture {
        /* 224px - 428px */
        height: clamp(14rem, 28vw, 26.75rem);
    }
}

/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
    #footer {
        background: #121212;
        padding: 5.25rem 0 calc(20 / 16 * 1rem);
        font-size: min(4vw, 1.2em);
    }

    #footer .left-section {
        margin: auto;
        margin-bottom: 3.125rem;
        text-align: center;
    }

    #footer .left-section .logo {
        margin: auto;
        margin-bottom: 1.875em;
        text-align: center;
    }

    #footer .left-section .logo img {
        height: 100%;
    }

    #footer .left-section p {
        opacity: 0.9;
        margin: auto;
        width: 100%;
        font-size: 0.875rem;
        line-height: 1.92857143rem;
        color: #fff;
        text-align: center;
    }

    #footer .right-section {
        margin: auto;
        max-width: 25.4375rem;
        width: 96%;
    }

    #footer .right-section .lists {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: auto;
        max-width: 19.1875rem;
        width: 96%;
    }

    #footer .right-section .lists ul {
        margin-top: 25px;
        margin-bottom: 0;
        padding: 0;
    }

    #footer .right-section .lists ul li {
        opacity: 0.9;
        margin-bottom: 0.75rem;
        list-style: none;
        font-size: 1.125rem;
        color: #fff;
    }

    #footer .right-section .lists ul li a {
        text-decoration: none;
        line-height: 1.16666667em;
        color: #fff;
        transition: color 0.3s;
    }

    #footer .right-section .lists ul li a:hover {
        color: var(--primary);
    }

    #footer .right-section .lists ul h2 {
        position: relative;
        margin-bottom: 2.3125rem;
        text-transform: uppercase;
        font-size: 1.125rem;
        line-height: 1.16666667em;
        font-weight: bold;
        color: #fff;
    }

    #footer .right-section .lists ul h2:before {
        position: absolute;
        bottom: calc(-16 / 16 * 1rem);
        left: 0;
        content: "";
        opacity: 1;
        display: block;
        background: var(--primary);
        height: 0.125rem;
        width: 6.0625rem;
    }

    #footer .right-section .lists ul:nth-of-type(3) {
        margin-top: 3.125rem;
    }

    #footer .right-section .lists ul:nth-of-type(3) li {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 1rem;
    }

    #footer .right-section .lists ul:nth-of-type(3) li:last-of-type {
        margin-bottom: 0;
    }

    #footer .right-section .buttons {
        display: flex;
        justify-content: center;
    }

    #footer .right-section .cs-button-solid {
        margin: 0;
        height: 3.3125rem;
        width: 15.625rem;
        padding-top: 0.1875rem;
    }

    #footer .credit {
        margin: auto;
        margin-top: 6.25rem;
        width: 96%;
        font-size: 1rem;
        line-height: 2.25rem;
        color: #fff;
        text-align: center;
    }

    #footer .credit a {
        text-decoration: none;
        font-size: 1rem;
        color: var(--primary);
    }

    #footer .credit a:hover {
        text-decoration: underline;
    }

    #footer .credit .copyright {
        display: block;
        font-size: 1rem;
    }
}

/* Small Desktop */
@media only screen and (min-width: 64rem) {
    #footer {
        font-size: min(1.2vw, 1em);
    }

    #footer .container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        margin: auto;
        max-width: 82.5rem;
        width: 96%;
        padding: 0;
    }

    #footer .left-section {
        margin: 0;
        width: 25.5625rem;
        text-align: left;
    }

    #footer .left-section .logo {
        margin-left: 0;
        height: 2.5rem;
        text-align: left;
    }

    #footer .left-section p {
        margin-left: 0;
        text-align: left;
    }

    #footer .right-section {
        margin: 0;
        max-width: none;
        width: 38.0625rem;
    }

    #footer .right-section .lists {
        margin: 0;
        max-width: 48.0625rem;
        width: 96%;
    }

    #footer .right-section .lists ul li a {
        position: relative;
    }

    #footer .right-section .lists ul li a:before {
        position: absolute;
        bottom: calc(-3 / 16 * 1rem);
        left: 0;
        content: "";
        opacity: 1;
        display: block;
        background: var(--primary);
        height: 0.125rem;
        width: 0%;
        transition: width 0.3s;
    }

    #footer .right-section .lists ul li a:hover:before {
        width: 100%;
    }

    #footer .right-section .lists ul:nth-of-type(3) {
        margin-top: 0;
    }

    #footer .right-section .lists ul:nth-of-type(3) li:first-of-type {
        margin-bottom: 0;
    }

    #footer .right-section .buttons {
        justify-content: flex-start;
    }

    #footer .credit .copyright {
        display: inline-block;
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #footer {
        background: #061623;
    }
}

/*-- -------------------------- -->
<---        Core Styles         -->
<--- -------------------------- -*/
/* CodeStitch Root and Helpers */
@media only screen and (min-width: 0rem) {
    :root {
        --primary: #0066B2;
        --primaryLight: #ffd675;
        --secondary: #001f3f;
        --secondaryLight: #001f3f;
        --headerColor: #1a1a1a;
        --bodyTextColor: #4e4b66;
        --bodyTextColorWhite: #fafbfc;
        /* 13px - 16px */
        --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
        /* 31px - 49px */
        --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem);
        --bodyFontSize: 1rem;
        /* 60px - 100px top and bottom */
        --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
    }

    .cs-topper {
        display: block;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: var(--topperFontSize);
        line-height: 1.2em;
        font-weight: 700;
        color: var(--primary);
        text-align: inherit;
    }

    .cs-title {
        position: relative;
        margin: 0 0 1rem 0;
        max-width: 43.75rem;
        font-size: var(--headerFontSize);
        line-height: 1.2em;
        font-weight: 900;
        color: var(--headerColor);
        text-align: inherit;
    }

    .cs-text {
        margin: 0;
        max-width: 40.625rem;
        width: 100%;
        font-size: var(--bodyFontSize);
        line-height: 1.5em;
        color: var(--bodyTextColor);
        text-align: inherit;
    }

    .cs-button-solid {
        z-index: 1;
        position: relative;
        display: inline-block;
        background-color: var(--primary);
        width: auto;
        padding: 0 1.875rem;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 1rem;
        line-height: 3.125em;
        font-weight: bold;
        color: #000;
        transition: color 0.3s;
        transition-delay: 0.1s;
        text-align: center;
    }

    .cs-button-solid:hover {
        color: #fff;
    }

    .cs-button-solid:hover:before {
        width: 100%;
    }

    .cs-button-solid:before {
        z-index: -1;
        position: absolute;
        top: 0;
        left: 0;
        content: "";
        opacity: 1;
        display: block;
        background-color: #000;
        height: 100%;
        width: 0;
        transition: width 0.3s;
    }

    .cs-hide-on-mobile {
        display: none;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    .cs-hide-on-mobile {
        display: block;
    }

    .cs-hide-on-desktop {
        display: none;
    }
}

/* Fonts and general styles */
@media only screen and (min-width: 0rem) {

    body,
    html {
        margin: 0;
        overflow-x: hidden;
        padding: 0;
        font-family: "Roboto", Arial, sans-serif;
        font-size: 100%;
        color: var(--bodyTextColor);
    }

    *,
    *:before,
    *:after {
        margin: 0;
        box-sizing: border-box;
        padding: 0;
    }

    body {
        transition: background-color 0.3s;
    }

    .container {
        position: relative;
        margin: auto;
        width: 92%;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 0;
        color: var(--headerColor);
    }

    p,
    li,
    a {
        margin: 0;
        font-size: 1rem;
        line-height: 1.5em;
    }

    p,
    li {
        color: #353535;
    }

    a:hover,
    button:hover {
        cursor: pointer;
    }

    .skip {
        z-index: -1111111;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }
}

/* Reset Margins */
@media only screen and (min-width: 1024px) {

    body,
    html {
        margin: 0;
        padding: 0;
    }
}

/* Scale full website with the viewport width */
@media only screen and (min-width: 3000px) {

    body,
    html {
        font-size: 0.55vw;
    }
}