/*====================================
=            Module Parts            =
====================================*/

/* ======= Hero Image ======= */
.hero-image {
  margin: 0;
  margin-top: 0;
  height: 57vw;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

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

  img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 60vw;

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

/* ======= Intro ======= */
.intro-icon {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;

  &.icon-style {
    max-width: 130px;
  }

  &.intro-icon-left {

    /* Desktop Styles */
    @media (width >= 1024px) {
      float: left;
    }
  }

  &.intro-icon-right {

    /* Desktop Styles */
    @media (width >= 1024px) {
      float: right;
    }
  }

  img {
    width: 100%;
    height: auto;
  }
}

/* ======= Read More Button(s) ======= */
.read-more-button {
  display: flex;
  margin: 1em auto 0;
  width: fit-content;

  .icon {
    height: 30px;
    width: auto;
    margin-right: 10px;
  }

  label {
    line-height: 1em;
  }
}

.read-more-left {
  .read-more-button {
    margin-left: 0;
  }

  .read-more-button-container {
    align-items: start;
    justify-content: flex-start;
  }
}

.read-more-right {
  .read-more-button {
    margin-right: 0;
  }

  .read-more-button-container {
    align-items: start;
    justify-content: flex-end;
  }
}

.read-more-button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Tablet Styles */
  @media (width >= 768px) {
    flex-direction: row;
    /* justify-content: flex-start; */
  }

  .read-more-button {
    margin: 1em 0 0;

    /* Tablet Styles */
    @media (width >= 768px) {
      margin-right: 40px;

      &:last-of-type {
        margin-right: 0;
      }
    }
  }
}

/*==============================================
=            General Module Classes            =
==============================================*/

.rm-module {
  padding-top: 40px;
  padding-bottom: 40px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  /* Tablet Styles */
  @media (width >= 768px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Desktop Styles */
  @media (width >= 1024px) {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  p:last-of-type {
    margin-bottom: 0;
  }
}

.mtop {
  @media (width < 1024px) {
    margin-top: 40px !important;
  }
}

.mbottom {
  @media (width < 1024px) {
    margin-bottom: 40px !important;
  }
}

ul.list-margin-bottom {
  li {
    margin-bottom: 1em;
  }
}

.module-heading,
.module-subheading {
  margin-top: 0;
}

/* ======= Overlay ======= */

.color-overlay {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
}

/*===================================
=            Style Guide            =
===================================*/

@keyframes flash {
  0% {
    color: var(--light-color);
  }

  100% {
    color: var(--text-color);
  }

}

/* Colors Module */
.mod-colors {
  padding-top: 0;

  /* Tablet Styles */
  @media (width >= 768px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
  }

  h2 {
    text-align: center;
  }
}

.rm-colors {
  /* display: grid; */
  display: flex;

  .color-box {
    height: 300px;
    border: 1px solid rgb(from var(--dark-color) r g b / 0.1);
  }

  .color-hex {
    text-align: center;
  }

  .color-selection {
    cursor: pointer;
    flex-basis: 0;
    flex-grow: 1;

    &.copied {
      .color-hex {
        animation: flash 1s;
      }
    }
  }
}

/* Background Image Module */
.mod-backgrounds {
  padding-top: 0;

  h2 {
    margin-top: 0;
  }

  h2,
  h3 {
    text-align: center;
  }

  .mod-backgrounds-container {
    display: flex;
    flex-direction: column;
    column-gap: 50px;
    row-gap: 50px;
    /*
@media (width >= 1024px) {
      flex-direction: row;
    } */
  }
}

.rm-bg-images {
  /* display: grid; */
  display: flex;
  flex-direction: column;
  column-gap: 50px;
  row-gap: 50px;

  /* Desktop Styles */
  @media (width >= 1024px) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bg-image-box {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 300px;
    border: 1px solid rgb(from var(--dark-color) r g b / 0.1);
  }

  .bg-image-url {
    text-align: center;
  }

  .bg-image-selection {
    cursor: pointer;
    /* flex-basis: 0; */
    /* flex-grow: 1; */
    width: 100%;

    /* Desktop Styles */
    @media (width >= 1024px) {
      width: calc(25% - 18.75px);
    }

    &.copied {
      .bg-image-url {
        animation: flash 1s;
      }
    }
  }
}

/*=======================================
=            Default Classes            =
=======================================*/

/*===== Light Color Classes =====*/

.text-light-color {
  color: var(--light-color);
}

.heading-light-color {

  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    color: var(--light-color);
  }
}

.preheading-light-color {
  .module-preheading {
    color: var(--light-color);
  }
}

.subheading-light-color {
  .module-subheading {
    color: var(--light-color);
  }
}

.button-light-color {

  .button,
  .buttons a,
  .rm-content-styles .button {
    background-color: var(--light-color);
    color: var(--primary-color);

    &:hover,
    &:active,
    &:focus {
      background-color: oklch(from var(--light-color) calc(l - 0.10) c h);
      color: var(--primary-color);
    }
  }
}

.links-light-color {
  a:not(.button):not(.crumb-go-home) {
    color: var(--light-color);
    text-decoration: underline;

    &:hover,
    &:active,
    &:focus {
      color: var(--light-color);
      text-decoration: none;
    }
  }

  .crumb-go-home {
    color: var(--light-color);
  }
}

.icons-light-color {
  .icon-img {
    svg {
      path {
        fill: var(--light-color);
      }
    }
  }
}

.bullets-light-color {

  li,
  ol {
    &::marker {
      color: var(--light-color);
    }

    &:before {
      background: var(--light-color);
    }
  }
}

.svg-light-color {
  svg {
    path {
      fill: var(--light-color);
    }
  }
}

.dots-light-color {
  .owl-dots {
    .owl-dot {
      border-color: var(--light-color) !important;

      &.active {
        background-color: var(--light-color) !important;
      }
    }
  }
}

/* .landing-text-light {
  color: var(--light-color);
  h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--light-color);
  }
  a {
    color: var(--light-color);
    text-decoration: underline;
    &.button {
      text-decoration: none;
      border-color: var(--light-color);
    }
  }
} */

/*===== Dark Color Classes =====*/

.text-dark-color {
  color: var(--dark-color);
}

.heading-dark-color {

  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    color: var(--dark-color);
  }
}

.preheading-dark-color {
  .module-preheading {
    color: var(--dark-color);
  }
}

.subheading-dark-color {
  .module-subheading {
    color: var(--dark-color);
  }
}

.button-dark-color {
  .button {
    background-color: var(--dark-color);

    &:hover,
    &:active,
    &:focus {
      background-color: oklch(from var(--dark-color) calc(l + 0.10) c h);
    }
  }
}

.links-dark-color {
  a:not(.button):not(.crumb-go-home) {
    color: var(--dark-color);
    text-decoration: underline;

    &:hover,
    &:active,
    &:focus {
      color: var(--dark-color);
      text-decoration: none;
    }
  }

  .crumb-go-home {
    color: var(--dark-color);
  }
}

.icons-dark-color {
  .icon-img {
    svg {
      path {
        fill: var(--dark-color);
      }
    }
  }
}

.bullets-dark-color {

  li,
  ol {
    &::marker {
      color: var(--dark-color);
    }

    &:before {
      color: var(--dark-color);
    }
  }
}

.svg-dark-color {
  svg {
    path {
      fill: var(--dark-color);
    }
  }
}

/*===== Primary Color Classes =====*/

.text-primary-color {
  color: var(--primary-color);
}

.heading-primary-color {

  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    color: var(--primary-color);
  }
}

.preheading-primary-color {
  .module-preheading {
    color: var(--primary-color);
  }
}

.subheading-primary-color {
  .module-subheading {
    color: var(--primary-color);
  }
}

/* .button-primary-color {
  @extend .button;
} */

.links-primary-color {
  a:not(.button):not(.crumb-go-home) {
    color: var(--primary-color);
    text-decoration: underline;

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

  .crumb-go-home {
    color: var(--primary-color);
  }
}

.icons-primary-color {
  .icon-img {
    svg {
      path {
        fill: var(--primary-color);
      }
    }
  }
}

.bullets-primary-color {

  li,
  ol {
    &::marker {
      color: var(--primary-color);
    }

    &:before {
      background: var(--light-color);
    }
  }
}

.svg-primary-color {
  svg {
    path {
      fill: var(--primary-color);
    }
  }
}

.dots-primary-color {
  .owl-dots {
    .owl-dot {
      border-color: var(--primary-color) !important;

      &.active {
        background-color: var(--primary-color) !important;
      }
    }
  }
}

/*===== Background Classes =====*/

.has-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*===== Heading Classes =====*/

.heading-center {

  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    text-align: center;
  }

  .module-preheading {
    text-align: center;
  }

  .module-subheading {
    text-align: center;
  }
}

.intro-center {
  .section-intro {
    text-align: center;
  }
}

.outro-center {
  .section-outro {
    text-align: center;
  }
}

/*===== Elite Classes =====*/

.elite-3 {
  padding-top: 0;

  /* Desktop Styles */
  @media (width >= 1024px) {
    padding-bottom: 0;
    margin-top: 200px;
    margin-bottom: 200px;
  }

  /* Desktop Styles */
  @media (width >= 1024px) {
    padding-left: 0;
    padding-right: 0;
  }

  &.has-outro {
    .lpb-column:not(.has-background) .lpb-column-content {
      padding-bottom: 0;
    }

    .section-outro-container {
      padding-top: 20px;
      padding-bottom: 20px;

      /* Tablet Styles */
      @media (width >= 768px) {
        padding-bottom: 40px;
      }

      /* Desktop Styles */
      @media (width >= 1024px) {
        padding-bottom: 60px;
        padding-left: 50%;
      }
    }
  }

  .lpb-column.has-background {
    min-height: 50vw;

    /* Desktop Styles */
    @media (width >= 1024px) {
      margin-top: -100px;
      margin-bottom: -100px;
      min-height: 0;
    }
  }
}

.heading-top-0 {

  h1,
  .h1,
  h2,
  .h2,
  h3,
  .h3,
  h4,
  .h4,
  h5,
  .h5,
  h6,
  .h6 {
    margin-top: 0;
  }
}

.text-center {
  text-align: center;
}

.dr-quote {
  blockquote {
    line-height: 1.8em;
  }

  footer {
    font-size: 21px;
    line-height: 1em;
    font-weight: var(--fw-light);
    display: flex;
    align-items: center;
    font-family: var(--primary-font);

    img {
      margin: 0 20px 0 0;
    }
  }
}

.bg-mobile-none {
  @media (width < 768px) {
    background-image: none !important;
  }
}

.short-p {
  p {

    /* Tablet Styles */
    @media (width >= 768px) {
      max-width: 60%;
      margin: 1em auto;
    }
  }
}

.bg-left {
  background-position: left center !important;
}