* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Global values
   -------------------------------------------------- */

:root {
  --default-transition: all 0.5s ease;

  --primary-font: 'Roboto', Helvetica, sans-serif;
  --emphasis-font: "BioRhyme", serif;

  --brand-gray: #3D3D3D;
  --brand-blue: #0D6587;
  --brand-orange: #E35007;

  --top-color: #EBF4F9;
  --bottom-color: #EBF4F9;

  --body-bg: #EBF4F9;
  --text-color: var(--brand-gray);
  --font-size-base: 18px;

  --radius-small: 5px;
  --radius-large: 9px;

  body {
    margin: 0;
    line-height: 1.5;
    background-color: var(--body-bg);
  }
}

button, .button {
  display: block;
  background-color: var(--brand-orange);
  font-size: 1.125em;
  font-weight: 500;
  width: 100%;
  text-align: center;
  color: white;
  font-family: var(--primary-font);
  border-radius: 10em;
  padding: .75em 3em;
  text-decoration: none;

  &:hover {
    color: white;
    cursor: pointer;
    background-color: color-mix(in srgb, var(--brand-orange) 95%, black);
  }
}

.hp-base {
  font-family: var(--primary-font);
  font-size: var(--font-size-base);
  color: #4a4a4a;

  h1 {
    font-family: var(--emphasis-font);
    font-size: 4em;
    font-weight: 700;
    margin: .5em 0 0;
    text-align: center;
    line-height: 1.2em;
    color: var(--brand-blue);

    &+h1 {
      margin-top: 0;
    }
  }

  h2 {
    font-family: var(--emphasis-font);
    font-size: 2em;
    font-weight: 500;
    line-height: 1.25em;
    margin: .75em 0 0;
    position: relative;
    color: var(--brand-orange);

    &+h2 {
      margin-top: 0;
    }

    &+h1 {
      margin-top: 0;
    }
  }

  h3 {
    font-size: 2.375em;
    font-weight: 700;
    font-family: var(--emphasis-font);
    color: var(--brand-blue);
    margin: 0;

    &+p {
      margin-top: .5em;
    }
  }

  h4 {
    font-size: 1.125em;
    font-family: var(--emphasis-font);
    color: var(--brand-orange);
    text-transform: uppercase;
    margin: 0;

    &+p {
      margin-top: .5em;
    }
  }

  p {
    font-size: 1em;
    font-weight: 300;
    margin: 1em auto 1em;
    text-align: center;

    &.emphasis {
      color: black;
      font-weight: 700;
      font-family: var(--emphasis-font);
      margin-top: 0;
      font-size: 1.5em;
    }
  }

  section p {
    max-width: 80em;
  }

  a,
  a:link,
  a:visited {
    color: white;
    text-decoration: underline;

    &:hover {
      color: #ff681d;

      &.button {
        color: white;
      }
    }

    &.anchor {
      display: block;
      position: relative;
      top: -100px;
      /* visibility: hidden; */
    }

    &.button {
      text-decoration: none;
    }
  }

  #mainContent {
    padding: 0;
  }
}

.hp-tag {
  h2 {
    color: white;
    margin: 0;
  }

  p {
    margin: 0;
  }
}

.background-color {
  background-image: linear-gradient(to bottom, var(--top-color) 0%, var(--top-color) 50%, var(--bottom-color) 50.1%);
}

.notch {
  position: relative;

  &:after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    bottom: -1.4142em;
    left: 50%;
    transform: translateX(-50%);
    width: 3em;
    height: 1.4142em;
    background-color: var(--bottom-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}

.left {
  text-align: left;

  p {
    text-align: left;
  }
}

.right {
  text-align: right;

  p {
    text-align: right;
  }
}

.center {
  text-align: center;

  p {
    text-align: center;
  }
}

header.nav {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vw;
  background-color: #156586;
  overflow: visible;
  z-index: 10;

  img {
    width: 100%;
    height: auto;
    max-width: 12vw;
    position: absolute;
    top: 1em;
    left: 2em;
  }

  nav,
  div.hp-tag {
    display: none;
  }

  .get-started {
    position: fixed;
    bottom: -5em;
    width: 100vw;
    left: 0;
    z-index: 10;

    h4 {
      background-color: #ff681d;
      font-family: var(--primary-font);
      font-size: 1em;
      color: white;
      text-transform: uppercase;
      display: none;
      align-content: center;
      justify-content: center;
      align-items: center;
      height: 10em;
      padding: 0 1.5em;
      margin: 0;
      z-index: 999;
      position: relative;
      cursor: pointer;

      &:after {
        display: none;
      }
    }

    ul {
      margin: 0;
      padding: 8px;
      background-color: #e35108;
      color: white;
      list-style-type: none;
      text-align: left;
      position: relative;
      top: -5em;
      z-index: 998;
      display: flex;
      flex-direction: row;
      justify-content: center;

      li {

        a,
        a:link,
        a:visited {
          color: white;
          text-decoration: none;
          text-transform: uppercase;
          font-size: 16px;
          background-position: left center;
          background-repeat: no-repeat;
          padding-left: 56px;
          min-height: 48px;
          display: flex;
          justify-content: left;
          align-content: center;
          align-items: center;

          &:hover {
            text-decoration: underline;
            color: white;
          }

          &.demo {
            background-image: url('/assets/img/orange-conversation.svg');
          }
        }
      }
    }
  }
}

.image-set {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2em 2em 2em 4em;
  margin: 0;

  &>img {
    width: 100%;
    height: auto;
    margin: 0;
  }
}


.hp-base {
  section:has(> :last-child.notch) + section > :first-child {
    padding-top: 3em;
  }

  section {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    &:first-child {
      margin-top: 4em;
    }

    &.meet {
      margin-top: 8em;
    }

    &.happiness {}

    .image-icon-list-wrapper {
      width: 100%;
      padding: 2em;

      &.dark {
        .image-icon-list {
          aside.callouts {
            div.callout {
              h3 {
                font-family: var(--primary-font);
              }
            }
          }
        }
      }

      &.light {
        .image-icon-list {
          &>img {
            order: 1;
          }

          aside.callouts {
            order: 0;
            margin-right: 1.5em;

            div.callout {
              h3 {
                font-family: var(--emphasis-font);
                color: var(--brand-orange);
                font-size: 1.75rem;
              }

              &>img {
                height: 120px;
                width: 120px;
                margin-left: 0;
              }
            }
          }
        }
      }

      h2 {
        text-align: center;
      }

      .image-icon-list {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
        margin-top: 2em;

        &>img {
          width: 100%;
          height: auto;
          max-width: 510px;
          margin-bottom: 5em;
          margin-left: 2em;
        }

        aside.callouts {
          display: flex;
          flex-direction: column;
          margin-top: 1em;

          div.callout {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 1em;

            &>img {
              width: 70px;
              height: 70px;
              margin: 0 1.5em 1em 2.5em;
            }

            &>div {
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: flex-start;
              max-width: 35em;

              h3 {
                margin-bottom: 0;
                font-weight: 700;
                color: var(--brand-gray);
                font-size: 1em;
                text-align: left;
              }

              p {
                font-size: 1em;
                text-align: left;
                margin-top: 0;
                line-height: 1.66667em;
              }
            }
          }
        }
      }
    }

    .color-block {
      width: 100%;
      padding: 0 calc((100vw - 80em) / 2);
      min-height: 2em;

      a {
        &.button {
          display: inline-block;
          width: auto;
        }
      }
    }

    .icon-list-set-wrapper {
      width: 100%;

      .icon-list-item {
        display: flex;
        flex-direction: row;
        padding-top: 2em;
        margin: 0 auto 2em;
        width: 90vw;
        max-width: 80em;

        aside {
          width: 15em;
          padding-right: 2em;
          margin-right: 3em;
          border-right: solid .5px var(--brand-blue);
          flex-shrink: 0;

          h3 {
            font-size: 1rem;
            text-transform: uppercase;
            color: var(--brand-blue);
            font-family: var(--primary-font);
            margin-top: 1em;
          }
        }

        div {
          text-align: left;
          h4 {
            font-size: 1.333333rem;
            margin: 0;
            color: var(--brand-orange);
            font-family: var(--primary-font);
            text-transform: none;
          }

          p {
            text-align: left;
            font-size: 1rem;
            margin: 0;

            a {
              &.button {
                display: inline-block;
                width: auto;
              }
            }
          }
        }
      }
    }

    .callout-cta-set {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-top: 4em;

      &.light {
        .callout-cta {
          background-color: transparent;

          h2, h3, h4, p {
            color: white;
          }

          h2, h3, h4 {
            font-family: var(--primary-font);
          }
          
          h4 {
            &+p {
              border-color: white;
            }
          }
        }
      }

      .callout-cta {
        background-color: var(--body-bg);
        padding: 4em 3em 3em;
        text-align: center;
        margin: 2em 1.5em;
        position: relative;

        &:first-child {
          margin-left: 0;
        }

        &:last-child {
          margin-right: 0;
        }

        img {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%) translateY(-50%);
          height: 110px;
          width: 110px;
        }

        h2 {
          font-size: 2.5rem;
          color: var(--brand-orange);
          margin: 0;
          font-weight: 700;
        }

        h3 {
          font-size: 1.875rem;
          color: var(--brand-gray);
          margin: 0 0 1em 0;
          font-weight: 700;
        }

        h4 {
          text-transform: uppercase;
          color: var(--brand-blue);
          font-family: var(--primary-font);

          &+p {
            padding-top: 1em;
            margin-top: .5em;
            border-top: solid .25px var(--brand-gray);
          }
        }
      }
    }


    .bullets-2-col {
      display: flex;
      flex-direction: column;
      justify-content: center;

      ul {
        li {
          max-width: 22em;
          font-size: 1.75em;
          font-weight: 300;
          text-align: left;
          margin-bottom: 1em;
        }
      }
    }

    &.start {
      max-width: 1080px;
    }

    .responsive-image {
      display: flex;
      width: 100%;
      justify-content: center;

      img {
        width: 100%;
        height: auto;
        margin-top: 4em;

        &.small-screen-image {
          display: block;
          max-width: 185px;
        }

        &.large-screen-image {
          display: none;
        }
      }
    }

    &.contact {
      #lead-form-container {
        text-align: center;
      }

      .multi-column {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: stretch;
        align-items: stretch;
      }

      input[type='email'] {
        border-radius: 5px;
        background-color: #f4f4f2;
        box-shadow: inset 1px 1px 4px 0 rgba(166, 166, 166, 0.5);
        padding: 1.33333em;
        color: #565758;
        border-width: 0;
        font-size: 1.25em;

        &:focus {
          box-shadow: inset 1px 1px 4px 0 rgba(166, 166, 166, 0.5),
            0px 0px 5px 2px rgba(151, 197, 67, 0.6);
        }
      }

      input[type='button'],
      input[type='submit'] {
        border-radius: 5px;
        background-color: #97c543;
        padding: 1.3333em;
        margin: 1em;
        color: white;
        border-width: 0;
        text-transform: uppercase;
        text-align: center;
        cursor: pointer;
        font-size: 1.25em;
      }

      .success-message {
        font-size: .7em;
        margin-top: 2em;
      }
    }
  }
}

footer#main {
  background-color: #156586;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 34vw;

  &>a {
    line-height: 0;
    margin: 2em 0 1em;

    &>img {
      width: 6em;
      height: 6em;
    }
  }

  &>div {
    p {
      color: white;
      font-size: 1.125em;
      text-align: center;
      margin: 0;

      &:nth-of-type(1) {
        font-weight: 700;
      }
    }
  }
}

footer#pathIllustration {
  position: fixed;
  left: 0;
  bottom: -21.5vw;
  /* width: 100%; */
  width: 180vw;
  height: 800px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;

  #bc,
  #wc {
    position: absolute;
    width: 100%;
    left: -250px;
    opacity: 0.75;
  }

  #bc {
    height: auto;
    bottom: 25vw;
  }

  #wc {
    height: auto;
    bottom: 27vw;
  }

  #path {
    width: 100%;
    position: absolute;
    bottom: 0;
    /* z-index: 5; */
  }
}

@media (max-width: 719px) {
  .hp-base {
    .sm-screen {
      display: initial !important;
    }

    .md-screen,
    .lg-screen {
      display: none;
    }
  }
}

@media (min-width: 720px) {
  .hp-base {
    font-size: 16px;
    background-position: initial;

    #mainContent {
      padding: 0;
    }

    section {
      &:first-child {
        margin-top: 10em;
      }
    }
  }


  @media (max-width: 1079px) {
    .hp-base {
      .md-screen {
        display: initial !important;
      }

      .sm-screen,
      .lg-screen {
        display: none;
      }
    }
  }

  header.nav {
    position: fixed;
    width: 100%;
    overflow: visible;
    border-top: solid 2px white;
    display: flex;
    justify-content: space-between;
    align-content: center;
    z-index: 2;

    nav {
      width: 100%;
      display: flex;
      align-items: flex-start;
      justify-content: flex-end;
      margin-top: 1.5em;
      font-size: 0.75em;
      text-transform: uppercase;

      ul {
        margin: 0;
        padding: 0;
        list-style-type: none;

        li {
          display: inline-block;

          &.active {
            a,
            a:link,
            a:visited,
            a:active {
              border-color: white;
            }
          }

          a,
          a:link,
          a:visited,
          a:active {
            color: white;
            text-decoration: none;
            padding: .7em 0;
            margin: 0 .7em;
            min-height: 4em;
            border-bottom: solid transparent 1px;

            &:hover {
              text-decoration: underline;
            }
          }
        }
      }
    }

    .get-started {
      margin-right: 2em;
      margin-left: 1em;
      position: relative;
      width: auto;
      bottom: auto;
      left: auto;

      &.active {
        ul {
          top: 0;
        }
      }

      h4 {
        display: flex;
        font-size: 1.25em;
        height: 7.8vw;
        cursor: auto;
        min-width: 10.5em;
      }

      ul {
        padding: 1.08vw;
        display: block;
        top: 0;

        li {
          &:first-child {

            a,
            a:link,
            a:visited {
              border-width: 0;
              padding-right: inherit;
              margin-right: inherit;
            }
          }

          a,
          a:link,
          a:visited {
            font-size: 0.75em;
            padding-left: 4em;
            height: 4em;
          }
        }
      }
    }
  }

  .image-set {
    flex-wrap: nowrap;

    img {
      max-width: 30em;
    }
  }

  .content-tabs {
    display: flex;
    flex-direction: row;
    padding: 2em calc((100vw - 80em) / 2) 4em;

    .tabs {
      list-style-type: none;
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      overflow: visible;

      li {
        list-style-type: none;
        padding: 0 1.5em;
        --tab-height: 5em;
        height: var(--tab-height);
        position: relative;
        top: 0;
        left: 0;
        width: 24em;
        margin-right: 2em;
        font-weight: 700;
        text-align: left;
        border-bottom: solid .5px var(--brand-gray);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out, color 0.3s ease-in-out, width 0.3s ease-in-out, margin-right 0.3s ease-in-out, left 0.3s ease-in-out, padding-left 0.3s ease-in-out, top 0.3s ease-in-out;

        &:after {
          content: '';
          position: absolute;
          right: calc(var(--tab-height) * -.1);
          top: 50%;
          transform: translateY(-50%);
          width: 0;
          height: 0;
          transition: all 0.3s ease-in-out;
          border-top: calc(var(--tab-height) * .5) solid transparent;
          border-bottom: calc(var(--tab-height) * .5) solid transparent;
          border-left: calc(var(--tab-height) * .1) solid transparent;
        }

        &:hover {
          cursor: pointer;
        }

        &:last-child {
          border-bottom-width: 0;
        }

        &.active, &:hover {
          top: -1px;
          padding-top: 1px;
          left: -1em;
          width: 26em;
          margin-right: 0;
          padding-left: 2.5em;
          background-color: var(--brand-blue);
          color: white;
          position: relative;
          
          &::after {
            border-left-color: var(--brand-blue);
          }
        }
      }
    }

    .tab-content {
      display: grid;
      grid-template-columns: 1fr;

      .tab-pane {
        display: flex;
        grid-area: 1 / 1 / 2 / 2;
        opacity: 0;
        flex-direction: row;
        align-items: flex-start;
        padding-left: 2em;
        transition: opacity 0.3s ease-in-out;

        &.active {
          opacity: 1;
        }

        img {
          width: 50%;
          height: auto;
          flex-shrink: 0;
          margin: 0 2em 0 1em;
          transform: rotate(5deg);
        }

        .text-content {
          margin-top: 7em;

          h4, h5, h6 {
            margin-top: 0;
          }

          h4 {
            font-weight: 700;
            font-family: var(--base-font);
            text-transform: none;
            font-size: 1.5rem;
          }

          h5 {
            text-transform: uppercase;
            color: var(--brand-blue);
            margin-bottom: 0;
          }
        }
      }
    }
  }

  .hp-base section {
    &.meet {
      margin-top: 8em;
    }

    .image-icon-list-wrapper {
      &.dark {
        .image-icon-list {
          aside.callouts {
            div.callout {
              &>img {
                height: 80px;
                width: 80px;
              }
            }
          }
        }
      }

      &.light {
        .image-icon-list {
          aside.callouts {
            div.callout {
              &>img {
                height: 150px;
                width: 150px;
                margin-left: 0;
              }
            }
          }
        }
      }

      .image-icon-list {
        aside.callouts {
          div.callout {
            flex-direction: row;
            align-items: flex-start;

            &>div {
              align-items: flex-start;
              justify-content: flex-start;
              max-width: 30em;

              p {
                font-size: 1.125em;
              }
            }
          }
        }
      }
    }

    .callout-cta-set {
      flex-direction: row;
      padding: 4em calc((100vw - 80em) / 2) 0;
    }

    .bullets-2-col {
      flex-direction: row;
      justify-content: space-between;

      ul {
        &:nth-of-type(1) {
          margin-right: 2em;
        }

        li {
          max-width: 500px;
          font-size: 1.125em;
        }
      }
    }

    .responsive-image {
      max-width: 1080px;
      margin: auto;
      justify-content: flex-end;

      img {
        align-self: flex-end;

        &.small-screen-image {
          display: none;
        }

        &.large-screen-image {
          display: initial;
          max-width: 915px;
        }
      }

      &.contact {
        .multi-column {
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-content: stretch;
          align-items: stretch;
        }

        input[type='email'] {
          border-radius: 5px;
          background-color: #f4f4f2;
          box-shadow: inset 1px 1px 4px 0 rgba(166, 166, 166, 0.5);
          padding: 1.33333em;
          color: #565758;
          border-width: 0;

          &:focus {
            box-shadow: inset 1px 1px 4px 0 rgba(166, 166, 166, 0.5),
              0px 0px 5px 2px rgba(151, 197, 67, 0.6);
          }
        }

        input[type='button'],
        input[type='submit'] {
          border-radius: 5px;
          background-color: #97c543;
          padding: 1.3333em;
          margin: 1em;
          color: white;
          border-width: 0;
          text-transform: uppercase;
          text-align: center;
          cursor: pointer;
        }
      }
    }
  }
  
  footer#pathIllustration {
    bottom: calc(-370px - (400px - 100vh) * 0.25);
  }
}

@media (min-width: 1080px) {
  .hp-base {

    .sm-screen,
    .md-screen {
      display: none;
    }

    .lg-screen {
      display: initial !important;
    }
  }

  header.nav {
    height: 5.43em;

    nav {
      ul {
        margin-top: 1.1em;
      }
    }

    img {
      max-width: 8.125em;
      margin-top: 0;
      margin-left: 1em;
    }

    div.hp-tag {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: left;
      margin-left: 10.75em;
      color: white;
      position: absolute;

      p {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 0;
      }
    }

    .get-started {
      h4 {
        height: 4.25em;
      }

      ul {
        padding: 1em;
      }
    }
  }

  .image-set {
    flex-wrap: nowrap;
  }

  .hp-base section {
    &.meet {
      margin-top: 8em;
    }
  }

  footer#main {
    height: 7.5em;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 18vw;
    padding: 0 0 0 2em;
    position: relative;
    z-index: 10;

    &>a {
      margin: 1em;

      &>img {
        width: 4.25em;
        height: 4.25em;
      }
    }

    &>div {
      p {
        text-align: left;
      }
    }
  }
  
  footer#pathIllustration {
    bottom: calc(-370px - (900px - 100vh) * 0.25);
  }
}

@media (min-width: 1440px) {
  footer#pathIllustration {
    bottom: calc(-370px - (1100px - 100vh) * 0.25);
    width: 2600px;

    #bc {
      bottom: 360px;
    }

    #wc {
      bottom: 400px;
    }
  }
}