/* ======= Procedures Module ======= */

:root {
  --area-heading-height: 60px;
}

.mod-procedures {
  padding-left: 20px;
  padding-right: 20px;
  @media (width >= 768px) {
    padding: 60px 40px 100px;
  }
  @media (width >= 1024px) {
		padding: 115px 40px 175px;
	}
  @media (width >= 1280px) {
		padding: 115px calc(80px + (50vw - (var(--full) / 2))) 175px;
	}
  .areas-list {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding-bottom: 10px;
    row-gap: 10px;
    grid-area: services-list;

    /* Tablet Styles */
    @media (width >= 768px) {
      column-gap: 17px;
    }

    /* Desktop Styles */
    @media (width >= 1024px) {
      grid-template-columns: 1fr 1fr;
      /* grid-template-columns: 1fr 1fr 1fr 1fr; */
      column-gap: 28px;
      row-gap: 28px;
    }

    >li {
      background-repeat: no-repeat;
      background-size: cover;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      position: relative;
      aspect-ratio: 345 / 160;
      /* pointer-events: auto;
      cursor: pointer !important; */


      /* Tablet Styles */
      @media (width >= 768px) {
        min-height: 42vw;
      }

      /* Desktop Styles */
      @media (width >= 1024px) {
        aspect-ratio: unset;
        .not--device & {
          min-height: 360px;
        }
      }
    }
  }

  .area-wrap {
    transition: all 0.3s;
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateY(100%);

    .area-heading {
      font-size: 22px;
      line-height: 1em;
      font-weight: var(--fw-regular);
      letter-spacing: 0.03em;
      color: var(--light-color);
      text-decoration: none;

      /* padding-bottom: 20px; */

      /* New */
      position: absolute;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0 0 0 25px;
      transform: translateY(-100%);
      display: flex;
      align-items: flex-end;
      @media (width >= 768px) {
        padding-left: 45px;
      }

      h3,
      .h3 {
        color: var(--light-color);
        font-size: 22px;
        text-align: center;
        /* background-color: var(--primary-color); */
        text-decoration: none;
        font-weight: var(--fw-regular);
        letter-spacing: 0.03em;
        padding-left: 20px;
        width: 100%;
        padding: 10px 10px 10px 20px;
        position: relative;
        margin: 0 0 15px;
        transition: all 0.3s;
        width: fit-content;
        @media (width >= 768px) {
          font-size: 36px;
          padding-left: 43px;
          margin-bottom: 30px;
        }
        @media (width >= 1024px) {
          margin-bottom: 40px;
        }
        &:before {
          content: '';
          background-color: var(--tertiary-alt);
          width: 13px;
          height: 3px;
          margin-right: 7px;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          @media (width >= 768px) {
            width: 26px;
            height: 5px;
            margin-right: 17px;
          }
        }
      }
    }
  }

  .overlay,
  .underlay {
    background-color: rgb(from var(--dark-alt) r g b / 0.0);
    transition: all 0.3s;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* mix-blend-mode: multiply; */
  }

  .underlay {
    background: linear-gradient(rgb(from var(--dark-alt) r g b / 0.0), rgb(from var(--dark-alt) r g b / 0.75));
  }

  .bg-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all .3s;
    }
  }

  .home-procedures {
    /* transform: translateY(0); */
    transition: all 0.3s;
    padding-top: 20px;
    margin-left: 20px;
    list-style: none;
    /* display: none; */
  }

  .procedure-each {
    margin-bottom: 0.63em;

    a {
      font-size: 19px;
      line-height: 1em;
      font-weight: var(--fw-regular);
      text-decoration: none;
      color: var(--light-color);

      &:hover,
      &:active,
      &:focus {
        color: var(--primary-color);
      }
    }
  }

  /* .section-outro-container {
    text-align: center;
  } */
}

/* Hover State for areas with procedures. Not to be used on Express Build */

.mod-procedures {
  .areas-list {
    >.has-procedures, > .no-procedures {

      /* Desktop Styles */
      @media (width >= 1024px) {

        &:hover,
        &:active,
        &:focus {
          /* .area-wrap {
            transform: translateY(var(--area-heading-height));
          } */

          .overlay {
            /* background-color: rgb(from var(--dark-alt) r g b / 0.7); */
            background-color: rgb(from var(--dark-alt) r g b / 0.7);
          }

          /* .bg-photo {
            img {
              transform: scale(1.1);
            }
          } */

          /* .home-procedures {
            transform: translateY(-60px);
            display: block;
          } */
          .proc-list-skin {

            /* Desktop Styles */
            @media (width >= 1024px) {
              column-count: 2;
            }
          }

          /* .area-heading {
            h3, .h3 {
              border-bottom: 1px solid var(--light-alt);
            }
          } */
        }
      }
    }

    /* For areas without procedures ONLY */

    /* >.no-procedures {

      Desktop Styles
      @media (width >= 1024px) {

        &:hover,
        &:active,
        &:focus {

          h3,
          .h3 {
            transform: translateY(-50%);
          }
        }
      }
    } */
  }
}


/* ======= End Procedures Module ======= */