/* BOOSTRAP VARS  */
:root {
  --bs-container-margin: 100%;
  --bs-container-max: calc(100% - 30px);
}

/* -30px from the actual container width; correcting for margins */
@media (min-width: 576px) {
  :root {
    --bs-container-margin: 540px;
    --bs-container-max: 510px;
  }
}
@media (min-width: 768px) {
  :root {
    --bs-container-margin: 720px;
    --bs-container-max: 690px;
  }
}
@media (min-width: 992px) {
  :root {
    --bs-container-margin: 970px;
    --bs-container-max: 930px;
  }
}
@media (min-width: 1200px) {
  :root {
    --bs-container-margin: 1140px;
    --bs-container-max: 1110px;
  }
}

/* BODY LINES */

:root {
  --bs-col-width: calc(var(--bs-container-max) / 12);
}

.wp-site-blocks {
    position: relative;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      padding-right: 1px; /* to display the right-most line */
      transform: translateX(-50%); /* center on container */
      width: var(--bs-container-max);
      max-width: var(--bs-container-max);
      pointer-events: none;
      z-index: -1;

      background-image:
          repeating-linear-gradient(
              to bottom,
              transparent 0,
              transparent 6px,
              rgba(0,0,0,0.15) 6px,
              rgba(0,0,0,0.15) 12px
          ),
          repeating-linear-gradient(
              to bottom,
              transparent 0,
              transparent 6px,
              rgba(0,0,0,0.15) 6px,
              rgba(0,0,0,0.15) 12px
          ),
          repeating-linear-gradient(
              to bottom,
              transparent 0,
              transparent 6px,
              rgba(0,0,0,0.15) 6px,
              rgba(0,0,0,0.15) 12px
          ),
          repeating-linear-gradient(
              to bottom,
              transparent 0,
              transparent 6px,
              rgba(0,0,0,0.15) 6px,
              rgba(0,0,0,0.15) 12px
          );
      background-position:
          left calc(var(--bs-col-width) * 0) top,
          left calc(var(--bs-col-width) * 4) top,
          left calc(var(--bs-col-width) * 8) top,
          left calc(var(--bs-col-width) * 12) top;
      background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%;
      background-repeat: no-repeat;
  }

}


@media (max-width: 992px) {
  .wp-site-blocks {
    &:before {
      background-position:
          left calc(var(--bs-col-width) * 0) top,
          -10px,
          -10px,
          left calc(var(--bs-col-width) * 12) top;
    }
  }
}

@media (max-width: 576px) {
  .wp-site-blocks {
    &:before {
      background-position:
          left calc(var(--bs-col-width) * 0) top,
          -10px,
          -10px,
          left var(--bs-container-margin) top;
    }
  }
}

/* NAVIGATION */
/* Base nav container */
/* Every secondary nav item should have secondary-link class assigned via WordPress Navigation Editor */
.bhs-nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 0px;
    align-items: flex-start;
}

.bhs-nav > .wp-block-navigation-item > a {
    font-weight: 900;
    color: var(--wp--preset--color--primary-base) !important;
}

.bhs-nav > .secondary-link {
    display: inline-flex;
}

.bhs-nav > .secondary-link > a {
    font-weight: 400;
}

.bhs-nav .nav-spacer {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 576px) {
  .bhs-nav .nav-spacer {
      padding-top: 20px;
  }

  .bhs-nav > .wp-block-navigation-item > a {
    font-size: 1.5rem;
  }
}

/* BUSINESS AREAS BLOCK */

.business-area-list {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.business-area-list ul {
  list-style: none;
  padding: 0;
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 576px) {
    .business-area-list {
      padding-top: 3rem;
      padding-bottom: 3rem;
        ul {
          font-size: 3rem;
      }
    }
}

@media (min-width: 768px) {
    .business-area-list {
      padding-top: 4rem;
      padding-bottom: 4rem;
        ul {
          font-size: 3.5rem;
      }
    }
}

@media(min-width: 992px) {
    .business-area-list {
      padding-top: 6rem;
      padding-bottom: 6rem;
        ul {
          font-size: 4rem;
      }
    }
}

@media(min-width: 1200px) {
    .business-area-list {
      padding-top: 8rem;
      padding-bottom: 8rem;
        ul {
          font-size: 4.8rem;
      }
    }
}

.business-area-list a {
  position: relative;
  text-decoration: none;
}

.business-area-list a:hover {
  color: var(--wp--preset--color--primary-400);
}

.business-area-list a:hover:after {
  content: '→';
  font-weight: 200;
}

/* + DIVIER */

hr.plus-divider {
  position: relative;
  left: -14px;
  width: 28px;
  height: 28px;
  margin: 18px 0;
  border: none;

    &:before {
      content:'';
      position: absolute;
      width: 2px;
      height: 28px;
      top: 0;
      left: 13px;
      background-color: var(--wp--preset--color--primary-600);
    }
    
    &:after{
      content:'';
      position: absolute;
      height: 2px;
      width: 28px;
      left: 0;
      top: 13px;
      background-color: var(--wp--preset--color--primary-600);
    }
}


/* HERO IMAGE */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.hero-anchor {
    height: 350px;
}

/* Start offset-4 alignment at md breakpoint */
@media (min-width: 992px) {
  .hero-bg {
    left: calc(
      (100% - var(--bs-container-max)) / 2
      + (var(--bs-container-max) * 4 / 12)
    );
    width: calc(100% - (
      (100% - var(--bs-container-max)) / 2
      + (var(--bs-container-max) * 4 / 12)
    ));
    background-position: top left;
  }

  .hero-anchor {
    height: 500px;
  }

  .hero-wrapper {
    margin-bottom: 2rem;
  }
}

/** enforcing grid */
main.wp-block-group {
  width: 100%;
}