/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #hero-493 {
        /* Centers button */
        text-align: center;
        /* 200px - 300px - leaving extra space for the navigation */
        padding: clamp(12.5rem, 25.95vw, 18.75em) 1rem;
        padding-bottom: 12.5rem;
        /* prevents the topper line from causing an overflow */
        overflow: hidden;
        position: relative;
        z-index: 1;
    }
    #hero-493 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -2;
    }
    #hero-493 .cs-background:before {
        /* Overlay */
        content: "";
        width: 100%;
        height: 100%;
        background: #001f3f;
        opacity: 0.7;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        z-index: 1;
        /* prevents the cursor from interacting with it */
        pointer-events: none;
    }
    #hero-493 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    #hero-493 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        /* changes at tablet */
        gap: 3rem;
    }
    #hero-493 .cs-content {
        width: 100%;
        max-width: 39.375rem;
    }
    #hero-493 .cs-topper {
        /* 16px - 20px */
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        line-height: 1.2em;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 1rem;
        color: #fff;
        display: inline-block;
        position: relative;
    }
    #hero-493 .cs-topper:before {
        /* left yellow line */
        content: "";
        /* 70px - 100px */
        width: clamp(4.375rem, 5vw, 6.25rem);
        height: 2px;
        margin-right: 1.75rem;
        background: var(--primary);
        opacity: 1;
        position: absolute;
        display: block;
        top: 50%;
        transform: translateY(-50%);
        right: 100%;
    }
    #hero-493 .cs-topper:after {
        /* right yellow line */
        content: "";
        /* 70px - 100px */
        width: clamp(4.375rem, 5vw, 6.25rem);
        height: 2px;
        margin-left: 1.75rem;
        background: var(--primary);
        opacity: 1;
        position: absolute;
        display: block;
        top: 50%;
        transform: translateY(-50%);
        left: 100%;
    }
    #hero-493 .cs-title {
        /* 39px - 61px */
        font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
        font-weight: 700;
        line-height: 1.2em;
        text-align: center;
        max-width: 51.8125rem;
        /* 16px - 24px */
        margin: 0 auto clamp(1rem, 4vw, 1.5rem) 0;
        color: #fff;
        position: relative;
    }
    #hero-493 .cs-text {
        /* 16px - 20px */
        font-size: clamp(1rem, 1.95vw, 1.25rem);
        line-height: 1.5em;
        text-align: center;
        width: 100%;
        /* 464px - 622px */
        max-width: clamp(29rem, 60vw, 38.785rem);
        margin: 0 auto 0;
        margin-bottom: 2.25rem;
        color: #fff;
    }
    #hero-493 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #1a1a1a;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #hero-493 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #hero-493 .cs-button-solid:hover:before {
        width: 100%;
    }
}

/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #sbsr-99 {
        padding: var(--sectionPadding);
    }
    #sbsr-99 .cs-container {
        width: 100%;
        /* changes to 1280px at tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px, changed clamp at tablet */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #sbsr-99 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        max-width: 33.875rem;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

    #sbsr-99 .cs-title {
        max-width: 17ch;
    }
    #sbsr-99 .cs-text {
        margin-bottom: 1rem;
    }
    #sbsr-99 .cs-text:last-of-type {
        margin-bottom: 2rem;
    }
    #sbsr-99 .cs-ul {
        margin: 0 0 2rem 0;
        /* 16px - 20px */
        padding-left: clamp(1rem, 2vw, 1.25rem);
    }
    #sbsr-99 .cs-li {
        list-style: none;
        /* 14px - 18px */
        font-size: clamp(0.875rem, 1.3vw, 1.125rem);
        line-height: 1.5em;
        /* 8px - 12px */
        margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
        color: var(--bodyTextColor);
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    #sbsr-99 .cs-li:last-of-type {
        margin-bottom: 0;
    }
    #sbsr-99 .cs-number {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.6vw, 1rem);
        /* 24px - 28px */
        width: clamp(1.5rem, 2.9vw, 1.75rem);
        height: clamp(1.5rem, 2.9vw, 1.75rem);
        margin-right: 0.75rem;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        /* we set this element to align to the top of the li, so if there's 
            multiple lines it will stay at the top instead of the center of the text */
        align-self: flex-start;
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #sbsr-99 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #sbsr-99 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #sbsr-99 .cs-button-solid:hover:before {
        width: 100%;
    }
    #sbsr-99 .cs-picture {
        width: 100%;
        margin: 0;
        position: relative;
        display: block;
        /* width divided by height */
        aspect-ratio: 0.78095238;
    }
    #sbsr-99 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #sbsr-99 .cs-container {
        max-width: 80rem;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        /* 60px - 108px */
        gap: clamp(3.75rem, 7.8vw, 6.75rem);
    }
    #sbsr-99 .cs-picture {
        /* 284px - 522px */
        width: clamp(17.75rem, 39.3vw, 32.625rem);
        /* 492px - 740px */
        height: clamp(30.75rem, 60.9vw, 46.25rem);
        /* prevents flexbox from squishing it */
        flex: none;
        /* sends it to the right in the 2nd position */
        order: 2;
    }
}

/*-- -------------------------- -->
<---           Steps            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #steps-276 {
        padding: var(--sectionPadding);
    }
    #steps-276 .cs-container {
        width: 100%;
        /* changes to 1280px at tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #steps-276 .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;
    }

    #steps-276 .cs-title {
        max-width: 20ch;
    }
    #steps-276 .cs-card-group {
        padding: 0;
        margin: 0;
        width: 100%;
        /* changes to 1100px at tablet */
        max-width: 25rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        position: relative;
    }
    #steps-276 .cs-card-group:before {
        /* list line connector */
        content: "";
        width: 1px;
        background: #1a1a1a;
        opacity: 1;
        position: absolute;
        display: block;
        /* no height, set it as a top to bottom.  
                It will grow with newly added text in the .cs-item-text */
        top: 1rem;
        bottom: 1.5rem;
        left: 3.5rem;
    }
    #steps-276 .cs-item {
        text-align: left;
        list-style: none;
        margin: 0;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    #steps-276 .cs-number {
        /* 16px - 20px */
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 700;
        margin-right: 2.75rem;
        /* 40px - 52px */
        width: clamp(2.5rem, 5.1vw, 3.25rem);
        height: clamp(2.5rem, 5.1vw, 3.25rem);
        border-radius: 50%;
        color: var(--bodyTextColorWhite);
        background-color: var(--primary);
        display: flex;
        justify-content: center;
        align-items: center;
        /* prevents flexbox from squishing it */
        flex: none;
        position: relative;
    }
    #steps-276 .cs-number:before {
        /* list circle */
        content: "";
        width: 0.5rem;
        height: 0.5rem;
        background: #1a1a1a;
        border-radius: 50%;
        opacity: 1;
        position: absolute;
        display: block;
        top: 50%;
        right: -1.25rem;
        transform: translateY(-50%);
    }
    #steps-276 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 2vw, 1rem);
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
    }
    #steps-276 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #steps-276 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #steps-276 .cs-button-solid:hover:before {
        width: 100%;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #steps-276 .cs-container {
        max-width: 80rem;
    }
    #steps-276 .cs-card-group {
        max-width: 68.75rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        column-gap: 2em;
    }
    #steps-276 .cs-card-group:before {
        /* reset width */
        width: auto;
        height: 1px;
        /* 60px - 76px */
        top: clamp(3.75rem, 7.5vw, 4.75rem);
        /* 80px - 110px */
        left: clamp(5rem, 10.5vw, 6.875rem);
        right: clamp(5rem, 10.5vw, 6.875rem);
    }
    #steps-276 .cs-item {
        text-align: center;
        width: 13.625rem;
        /* remove margin from mobile */
        margin: 0;
        /* orient to vertical spacing */
        flex-direction: column;
        align-items: center;
    }
    #steps-276 .cs-number {
        margin: 0;
        /* 40px - 60px */
        margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
    }
    #steps-276 .cs-number:before {
        top: auto;
        left: 50%;
        /* -24px to -28px */
        /* use calc() to multiply clamp value by -1 to get a negative clamp value */
        bottom: calc(clamp(1.5rem, 2.9vw, 1.75rem) * -1);
        transform: translateX(-50%);
    }
}

/*-- -------------------------- -->
<---         Locations          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #locations-1844 {
    padding: var(--sectionPadding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  #locations-1844 .cs-container {
    max-width: none;
    position: relative;
    z-index: 1;
  }
  #locations-1844 .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 16px - 20px */
    gap: clamp(1rem, 2vw, 1.25rem);
  }
  #locations-1844 .cs-item {
    text-align: center;
    list-style: none;
    width: 100%;
    max-width: 28.875rem;
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    /* 32px - 40px top & bottom */
    padding: clamp(2rem, 4vw, 2.5rem) 2rem;
    background-color: #F6EDDF;
    border-radius: 16.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 12;
    gap: 0.75rem;
    transition: background-color 0.3s;
  }
  #locations-1844 .cs-item:hover {
    background-color: #8F5B34;
    cursor: pointer;
  }
  #locations-1844 .cs-item:hover .cs-h3 {
    color: var(--bodyTextColorWhite);
  }
  #locations-1844 .cs-item:hover .cs-item-text {
    color: var(--bodyTextColorWhite);
    opacity: 0.9;
  }
  #locations-1844 .cs-h3 {
    /* 20px - 25px */
    font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2em;
    margin: 0;
    color: var(--headerColor);
  }
  #locations-1844 .cs-item-text {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #locations-1844 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #locations-1844 .cs-background img {
    width: 100%;
    height: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 0;
    left: 0;
  }
  #locations-1844 .cs-background:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #000000;
    pointer-events: none;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #locations-1844 .cs-item {
    grid-column: span 6;
  }
}
/* Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
  #locations-1844 .cs-item {
    grid-column: span 3;
  }
}

/*-- -------------------------- -->
<---           CTA          -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
  #cta-2574 {
    padding: var(--sectionPadding);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #cta-2574 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
  }
  #cta-2574 .cs-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #cta-2574 .cs-button-solid {
    font-size: 1rem;
    font-weight: 700;
    /* 46px - 56px */
    line-height: clamp(2.875em, 5.5vw, 3.5em);
    text-align: center;
    text-decoration: none;
    min-width: 9.375rem;
    margin: 0;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    padding: 0 1.5rem;
    background-color: var(--secondary);
    overflow: hidden;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    display: inline-block;
    order: 3;
    z-index: 1;
    transition: color 0.3s;
    flex: none;
  }
  #cta-2574 .cs-button-solid:before {
    content: "";
    width: 0;
    height: 100%;
    background: #000;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #cta-2574 .cs-button-solid:hover {
    color: #fff;
  }
  #cta-2574 .cs-button-solid:hover:before {
    width: 100%;
  }
  #cta-2574 .cs-title {
    max-width: 36ch;
    margin: 0 0 2rem;
    color: var(--bodyTextColorWhite);
  }
  #cta-2574 .cs-contact-list {
    list-style-type: none;
    width: 100%;
    max-width: 70rem;
    margin: 0;
    padding: 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 232, 232, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }
  #cta-2574 .cs-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
  }
  #cta-2574 .cs-heading {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1em;
    text-transform: uppercase;
    color: var(--bodyTextColorWhite);
    opacity: 0.9;
  }
  #cta-2574 .cs-link {
    font-size: clamp(1rem, 2.4vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2em;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
    color: var(--bodyTextColorWhite);
  }
  #cta-2574 .cs-link:hover {
    text-decoration: underline;
  }
  #cta-2574 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta-2574 .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #cta-2574 .cs-background:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    opacity: 0.9;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #cta-2574 .cs-contact-list {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---- Critchfield Systems brand overrides ---- */

#hero-493 .cs-background:before { background: var(--deep); opacity: 0.35; }
#hero-493 .cs-topper:before, #hero-493 .cs-topper:after { background: var(--primaryLight); }
#hero-493 .cs-text a { color: #fff; font-weight: 700; }

/* story */
#sbsr-99 .cs-picture img { object-fit: cover; }
#sbsr-99 .cs-text + .cs-text { margin-top: 1rem; }
/* how I work */
#steps-276 { background-color: var(--ice); }
/* service area */
#locations-1844 .cs-background:before { background: var(--deep); opacity: .35; }
#locations-1844 .cs-item { background-color: #fff; box-shadow: 0 1rem 2rem -0.75rem rgba(6, 22, 51, .45); }
#locations-1844 .cs-item:hover { background-color: var(--primary); }
#locations-1844 .cs-area-intro { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
#locations-1844 .cs-area-intro .cs-topper { color: var(--primaryLight); }
#locations-1844 .cs-area-intro .cs-title { color: #fff; margin-left: auto; margin-right: auto; }
#locations-1844 .cs-area-intro .cs-text { color: var(--bodyTextColorWhite); margin: 0 auto; }

#cta-2574 .cs-background:before { background: var(--deep); opacity: 0.55; }
#cta-2574 .cs-topper { color: var(--primaryLight); }
#cta-2574 .cs-heading { color: var(--primaryLight); }
