/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #services-1304 {
        padding: var(--sectionPadding);
        position: relative;
        z-index: 10;
    }
    #services-1304 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #services-1304 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

    #services-1304 .cs-title {
        max-width: 20ch;
    }
    #services-1304 .cs-card-group {
        width: 100%;
        max-width: 80rem;
        margin: 0;
        padding: 0 1rem;
        /* prevents padding and border from affecting height and width */
        background-color: #fff;
        box-shadow: 0px 4px 35px 0px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        position: relative;
        z-index: 15;
    }
    #services-1304 .cs-item {
        text-align: left;
        list-style: none;
        width: 100%;
        border-bottom: 1px solid #e8e8e8;
        box-sizing: border-box;
        grid-column: span 12;
        transition:
            background-color 0.3s,
            border-color 0.3s;
    }
    #services-1304 .cs-item:last-of-type {
        border-bottom: none;
    }
    #services-1304 .cs-link {
        text-decoration: none;
        /* 24px - 60px top & Bottom */
        /* 24px - 16px top & Bottom */
        padding: clamp(1.5rem, 5.3vw, 3.75rem) clamp(1rem, 2.7vw, 2.5rem);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
    }
    #services-1304 .cs-icon {
        /* 32px - 40px */
        height: clamp(2rem, 4vw, 2.5rem);
        width: auto;
        margin: 0 0 1rem 0;

    }
    #services-1304 .cs-h3 {
        /* 20px - 25px */
        font-size: clamp(1.25rem, 2vw, 1.5625rem);
        font-weight: 700;
        text-align: inherit;
        line-height: 1.2em;
        margin: 0 0 0.75rem 0;
        color: var(--headerColor);
        transition: color 0.3s;
    }
    #services-1304 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        text-align: inherit;
        line-height: 1.5em;
        margin: 0;
        color: var(--bodyTextColor);
        transition:
            color 0.3s,
            opacity 0.3s;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #services-1304 .cs-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }
    #services-1304 .cs-title {
        margin: 0;
    }
    #services-1304 .cs-flex-group {
        width: 50%;
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #services-1304 .cs-item {
        grid-column: span 6;
    }
    #services-1304 .cs-item:nth-of-type(4),
    #services-1304 .cs-item:nth-of-type(8) {
        border-right: none;
    }
    #services-1304 .cs-item:nth-of-type(7),
    #services-1304 .cs-item:nth-of-type(8) {
        border-bottom: none;
    }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #services-1304 .cs-card-group {
        padding: 0;
    }
    #services-1304 .cs-item {
        grid-column: span 3;
        border-right: 1px solid #e8e8e8;
    }
    #services-1304 .cs-item:hover {
        background-color: var(--secondary);
        border-color: var(--secondary);
    }
    #services-1304 .cs-item:hover .cs-h3,
    #services-1304 .cs-item:hover .cs-item-text {
        color: var(--bodyTextColorWhite);
    }
    #services-1304 .cs-item:hover .cs-item-text {
        opacity: 0.8;
    }
    #services-1304 .cs-item:nth-of-type(5),
    #services-1304 .cs-item:nth-of-type(6),
    #services-1304 .cs-item:nth-of-type(7),
    #services-1304 .cs-item:nth-of-type(8) {
        border-bottom: none;
    }
}

 #services-502 {
    margin: 4rem 0;
    padding: 0 1rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  #services-502:before {
    content: "";
    width: 100%;
    height: 100%;
    background: var(--primary);
    position: absolute;
    display: block;
    top: 0; left: 0;
    z-index: -1;
  }

  #services-502 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    padding: clamp(3.75em, 6.82vw, 5em) 0;
    margin-top: 56vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 10;
  }

  #services-502 .cs-container:before {
    content: "";
    width: 62.5rem;
    height: 125rem;
    background: var(--primary);
    position: absolute;
    z-index: -1;
    top: -28.75rem;
    left: 50%;
    transform: translateX(-50%) rotate(-65deg);
  }

  #services-502 .cs-background {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    display: block;
    position: absolute;
    top: 0; left: 0;
  }

  #services-502 .cs-background img {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    object-fit: cover;
  }

  #services-502 .cs-content { width: 100%; }

  #services-502 .cs-topper {
    color: var(--accent);
    font-size: var(--topperFontSize);
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
  }

  #services-502 .cs-title {
    width: 95%;
    max-width: 32.125rem;
    color: var(--bodyTextColorWhite);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  #services-502 .cs-intro-text {
    color: rgba(255,255,255,0.75);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.7;
    max-width: 30rem;
  }

  /* ── Card Group ── */
  #services-502 .cs-card-group {
    width: 100%;
    max-width: 35.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ── Step Item ── */
  #services-502 .cs-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
  }

  /* vertical connector */
  #services-502 .cs-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 1.125rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.2);
  }

  /* ── Step Number ── */
  #services-502 .cs-step-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 0.1rem;
  }

  /* ── Step Text ── */
  #services-502 .cs-flex-group {
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
    flex: 1;
  }

  #services-502 .cs-h3 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.5rem 0;
    color: var(--bodyTextColorWhite);
  }

  #services-502 .cs-item-text {
    font-size: clamp(0.875rem, 1vw, 0.95rem);
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
  }

  /* spec tags */
  #services-502 .cs-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
  }

  #services-502 .cs-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(232,160,32,0.15);
    border: 1px solid rgba(232,160,32,0.45);
    color: var(--accent);
    padding: 0.2rem 0.55rem;
    border-radius: 0.2rem;
  }

  /* email link */
  #services-502 .cs-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
  }
  #services-502 .cs-email-link:hover {
    border-color: var(--accent);
  }

  /* ── Button ── */
  #services-502 .cs-button-solid {
    font-size: 1rem;
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    color: #000;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--accent);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    letter-spacing: 0.04em;
  }

  #services-502 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%; width: 0%;
    background: #fff;
    top: 0; left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }
  #services-502 .cs-button-solid:hover:before { width: 100%; }

  /* ── Tablet ── */
  @media only screen and (min-width: 48rem) {
    #services-502:before { display: none; }

    #services-502 .cs-background {
      height: auto;
      aspect-ratio: initial;
      position: absolute;
      top: 3.75rem;
      bottom: 0;
    }

    #services-502 .cs-background img {
      width: 60%;
      left: auto; right: 0;
      object-position: 80% top;
    }

    #services-502 .cs-container {
      margin-top: 0;
    }

    #services-502 .cs-container:before {
      height: 250rem;
      width: 250rem;
      margin-right: -68.75rem;
      pointer-events: none;
      top: 50%;
      left: auto; right: 50%;
      transform: rotate(-35deg) translateY(-50%);
      
    }

    #services-502 .cs-title { width: 45%; }

    #services-502 .cs-card-group {
      width: 52%;
      padding-left: clamp(1.5rem, 3vw, 2rem);
      box-sizing: border-box;
    }
  }