/* Variables */
@white: #fff;
@bg-primary: #E3654F;
@bg-secondary: #003087;
@bg-default: #4a9cab;

@turquoise: #34C1D2;

@text-primary: #E3654F;
@text-secondary: #30448D;
@text-default: #4a9cab;

/* Sizes */
//@xsmall: ~"(max-width: 575px)";
@small-down: ~"(max-width: 575px)";
@small: ~"(min-width: 576px) and (max-width: 767px)";
@small-up: ~"(min-width: 576px)";
@medium-down: ~"(max-width: 767px)";
@medium: ~"(min-width: 768px) and (max-width: 991px)";
@medium-up: ~"(min-width: 768px)";
@large: ~"(min-width: 992px) and (max-width: 1199px)";
@large-up: ~"(min-width: 992px)";
@xlarge: ~"(min-width: 1200px)";

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
}

a {
  &:hover,
  &:focus,
  &:active {
    color: @text-primary;
  }
}

.no-padding {
  padding: 0 !important;
}

.link-text-hidden {
  position: absolute;
  z-index: -1;
  color: @white;
}

.main-navigation {
  .main-nav {
    ul {
      li {
        a {
          padding-left: 10px;
          padding-right: 0;
          line-height: 1.5;
        }

        &.btn_outlined {
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 50px;
          font-size: 16px;
          padding: 6px 24px;
          border: 2px solid @text-secondary;
          transition: all 300ms ease 0s;
          margin-left: 10px;
          max-height: 40px;
          max-width: 160px;

          a {
            color: @text-secondary;
            background-color: transparent;
            padding: 0;
          }

          &:hover,
          &:focus {
            background-color: @bg-secondary;

            a {
              color: @white;
              background-color: transparent;
            }
          }
        }
      }
    }
  }

  &.sticky-navigation-transition {
    .navigation-branding img {
      max-width: 230px;
      height: auto;
    }
  }
}

.menu-item-has-children .dropdown-menu-toggle {
  padding-right: 0;
  padding-left: 5px;
}

.front-page .grid-container {
  padding: 50px 10px;

  .row {
    padding-left: 2%;
    padding-right: 2%;
  }
}

.grid-container {
  max-width: 1191px;

  .row {
    max-width: 100%;
    margin: 0;
  }
}

.intro {
  background-image: url("../images/header-wave.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-top: 70px;
  padding-bottom: 199px;
  color: @white;
  margin-top: -60px;

  &::after {
    content: '';
    background-image: url("../images/union2.svg");
    width: 100%;
    height: 215px;
    position: absolute;
    background-size: cover;
  }

  &-bar {
    background: rgba(255,255,255,0.2);
    position: relative;
    font-size: 14px;
    color: @text-secondary;

    @media @small {
      text-align: center;
    }

    &_front {
      .icon-search {
        color: @white;
      }
    }

    &__row {
      position: relative;
      margin-bottom: 12px;
      height: 60px;

      .col {
        padding: 0;

        &:first-child {
          text-align: center;
          flex-grow: 1;

          @media @medium {
            max-width: 70%;
          }

          @media @large {
            max-width: 77%;
          }
        }

        &-btn {
          @media @medium-down {
            width: 100%;
            margin-top: 28px;
          }

          @media @small-down {
            width: 100%;
            margin-top: 14px;
          }
        }
      }
    }

    p {
      font-weight: 600;
      margin: 0;

      a {
        text-decoration: underline;
        color: @text-secondary;

        &:hover,
        &:focus {
          text-decoration: underline;
          color: @text-primary;
        }
      }
    }
  }

  &__heading {
    text-align: center;
  }

  &__text {
    p {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    @media @medium-down {
      text-align: center;
    }
  }

  &__video {
    video {
      width: 100%;
    }
  }

  &__cta {
    padding: 20px 0 0;

    @media @medium-down {
      text-align: center;
    }
  }
}

@media @small-down {
  .intro {
    margin-top: -75px;



    &-bar {
      height: 75px;

      .grid-container {
        padding: 0;
      }

      &__row {
        height: 75px;
        text-align: center;
        padding: 0 !important;
      }
    }
  }
}

.search-item {
  z-index: 99;
  margin: 0 2%;

  &.close-search {
    .icon-search {
      color: @text-secondary;
    }
  }

  .icon-search {
    font-size: 20px;
  }
}

.cta {
  img {
    object-fit: contain;
  }

  &__text {
    color: @text-secondary;
    font-weight: 600;
    font-size: 1.25rem;
  }
}

.about {
  &__text {
    h2,
    h3,
    h4 {
      font-weight: 600;
      margin-bottom: 8px;
    }

    h2 {
      color: @text-secondary;
      font-size: 1.75rem;
    }

    h3 {
      color: @text-primary;
      font-size: 2rem;
    }

    h4 {
      font-size: 1.25rem;
    }
  }


  &__image {
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      background-image: url("../images/wave.png");
      background-repeat: no-repeat;
      background-size: contain;
      background-position: bottom;
      width: 100%;
      height: 100%;
    }

    img {
      width: 480px;
      height: 480px;
      object-fit: cover;

      @media (min-width: 475px) and (max-width: 767px) {
        object-fit: contain;
      }
      @media (min-width: 950px) {
        object-fit: contain;
      }
    }
  }
}

.switch-cols {
  @media @medium-up {
    .col-text {
      order: 1;
    }

    .col-image {
      order: 2;
    }
  }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 164px;
  border-radius: 50px;
  font-size: 16px;
  padding: 8px 24px;
  color: @white;
  transition: all 300ms ease 0s;

  &::after {
    content: '';
    background-image: url("../images/arrow-right.svg");
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-left: 12px;
  }

  &:hover,
  &:focus {
    color: @white;
  }

  &_primary {
    background-color: @bg-primary !important;

    &:hover,
    &:focus {
      background-color: @bg-secondary !important;
    }
  }

  &_secondary {
    background-color: @bg-secondary;

    &:hover,
    &:focus {
      background-color: @bg-primary;
    }
  }

  &_default {
    background-color: @bg-default;

    &:hover,
    &:focus {
      background-color: @bg-primary;
    }
  }
}

.section-heading {
  text-align: center;
  font-weight: 700;

  &__primary {
    color: @text-primary;
    font-size: 2rem;
  }

  &__secondary {
    color: @text-secondary;
    font-size: 1.5rem;
    //text-transform: uppercase;
  }
}

.subsection-heading {
  font-weight: 600;

  &__primary {
    color: @text-primary;
    font-size: 1.75rem;
  }

  &__secondary {
    color: @text-secondary;
    font-size: 1.5rem;
  }

  &__small {
    font-size: 1.25rem;
  }
}

.stretched-link {
  &::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
  }
}

.tile {
  position: relative;
  text-align: center;
  border-radius: 8px;
  font-size: 1rem;

  &__heading {
    @media @small-up {
      text-align: left;
    }
  }

  &-condition {
    img {
      transition: all 300ms ease 0s;
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
      a {
        color: @text-secondary;
      }
    }
  }

  &-product {
    transition: all 300ms ease 0s;

    &:hover {
      background-color: @bg-secondary;

      a {
        color: @white;
      }

      img {
        filter: brightness(200%);
      }
    }

    &__img {
      position: relative;
      width: 100px;

      &::after {
        content: '';
        background: url("../images/wave.svg") no-repeat;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 40px;
        background-size: cover;
      }

      img {
        transform: scale(0.7);
      }
    }
  }
}

.card {
  box-shadow: 1px 1px 5px 2px rgb(215 215 215 / 50%);
  padding: 20px 30px;
  height: 100%;
  border-radius: 8px;

  img {
    max-width: 250px;
  }

  a {
    font-weight: 600;
  }
}

.testimonial {
  &__img {
    text-align: center;

    img {
      border-radius: 50%;
      border: 5px solid @bg-default;
      width: 196px;
      height: 196px;

      @media (min-width: 768px) and (max-width: 880px) {
        width: 150px;
        height: 150px;
      }
    }
  }

  &__author {
    font-size: 1.25rem;
    font-weight: 600;
    color: @text-default;
  }
}

.splide {
  &__pagination__page.is-active {
    background: @bg-default;
  }

  &__inner {
    max-width: 825px;
    border-radius: 8px;
  }

  &__pagination {
    bottom: -1em;
  }

  &__arrow {
    background: transparent;

    svg {
      fill: @text-default;
    }

    &--prev {
      left: -1em;
    }
    &--next {
      right: -1em;
    }
  }
}

.media {
  .splide {
    &__slide {
      justify-content: center;
    }
  }
}

.testimonials {
  .splide {
    &__slide {
      padding: 8px 16px;
      margin: 0 8px;
    }
  }
}

.wave {
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 200px;
}

.cta-bg {
  background-color: @turquoise;

  .grid-container {
    position: relative;
  }

  .grid-container {
    padding-top: 0;
    padding-bottom: 0;
  }

  &__wave {
    background-image: url("../images/wave-turquoise.svg");
    margin-bottom: -1px;
  }

  &__bubble {
    background: url("../images/bubble.png") no-repeat;
    background-size: 100% 100%;
    width: 384px;
    height: 434px;
    text-align: center;
    margin-right: 10px;

    @media @medium-up {
      position: absolute;
      right: 0;
      bottom: 0;
    }

    @media @medium-down {
      order: 3;
    }

    &-text {
      max-width: 245px;
      margin: 0 auto;
      font-size: 1.1rem;
      font-weight: 700;
      color: @text-secondary;
      position: relative;
      top: 90px;
    }
  }
  
  &__button {
    padding: 50px 16px;

    @media @medium-down {
      padding: 20px 16px;
      order: 4;

      .btn {
        position: relative;
        left: 25px;
      }
    }
  }


  .section-heading__primary {
    color: @white;
    font-size: 2rem;
    line-height: 1.5;

    @media @medium-up {
      text-align: left;
      font-size: 2.5rem;
    }

  }

  @media @medium-down {

  }
}

.featured {
  &-article {
    max-width: 370px;

    &__item {
      border-radius: 8px;
      box-shadow: 1px 1px 5px 2px rgb(215 215 215 / 40%);
      height: 100%;

      img {
        object-fit: cover;
        width: 370px;
        height: 225px;
        object-position: top center;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-top-right-radius: 8px;
      }
    }

    &__content {
      padding: 10px 20px 30px;
      height: 100%;
      font-size: 1rem;

      h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        font-weight: 500;
      }
    }
  }
  
  &-product .product {
    position: relative;
    height: 100%;
    text-align: center;

    img {
      border-radius: 8px;
    }

    &__title {
      font-weight: 600;
    }
  }
}

.single-article {
  background-color: #FBFBFB;

  &__wave {
    background-image: url("../images/gray-union-blue.svg");
  }

  h3 {
    text-align: center;
  }
}

.newsletter {
  &__heading {
    margin-bottom: 0;

    &::before {
      content: '';
      background-image: url("../images/ico_email_subscribe.svg");
      background-repeat: no-repeat;
      background-size: contain;
      width: 80px;
      height: 80px;
      margin-right: 20px;
    }
  }

  &__form {
    .wpcf7 {
      max-width: 100%;
    }

    form {
      position: relative;

      p {
        margin-bottom: 0;
        max-width: 100%;
      }
    }

    input[type="email"] {
      border-radius: 50px;
      //max-width: 375px;
    }

    input[type="submit"] {
      position: absolute;
      min-width: auto;
      right: 3px;
      top: 3px;
    }
  }
}

.footer-widgets {
  ul {
    li {
      a {
        color: @white;
        font-weight: 600;

        &:hover,
        &:focus {
          color: @text-primary;
        }
      }
    }
  }

  .footer-widget {
    &-1, &-2, &-3, &-4, &-5 {
      display: flex;
      justify-content: center;
      align-items: center;
      max-width: 100%;
    }

    &-1, &-5 {
      flex-basis: 100%;
      margin-top: 2rem;
    }

    &-1 {
      margin-bottom: 2rem;
      
      .widget-title {
        color: @white;
        font-size: 1.5rem;
        text-align: center;
      }
    }

    &-2 {
      img {
        width: 250px;
      }
    }

    @media @medium-down {
      &-5 {
        ul {
          flex-direction: column;
          text-align: center;
        }
      }
    }

  }
}

.inside-footer-widgets {
  flex-wrap: wrap;
  position: relative;

  .wp-caption-text {
    display: none;
  }
}

.site-footer {
  background-image: url("../images/footer-wave.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  padding-top: 50px;

  &::before {
    content: '';
    background-image: url("../images/union3.svg");
    background-position: center;
    width: 100%;
    height: 215px;
    position: absolute;
    background-size: cover;
    top: -25px;
  }
}

.widget {
  ul {
    display: flex;

    li {
      margin: 0 15px;
    }
  }

  &-side {
    @media @medium-up {
      background-color: rgba(255, 255, 255, 0.8);
      box-shadow: 0px 0px 8px rgb(0 0 0 / 10%);
      border-radius: 0px 8px 8px 0px;
      transition: all 300ms ease 0s;
      top: 50%;
      left: 0px;
      z-index: 50;
      position: fixed;
      width: auto;

      ul {
        flex-direction: column;
        padding: 16px 0;
        justify-content: space-between;

        li {
          margin-top: 12px;
          margin-bottom: 12px;
        }
      }

      &__button {
        width: 20px;
        height: 142px;
        background-image: url("../images/chevron-right.svg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 20px 20px;
        cursor: pointer;
        margin-right: 2px;
      }

      &.inactive {
        background-color: @bg-default;

        .social-widget__content {
          display: none;
        }

        .widget-side__button {
          background-image: url("../images/chevron-right-white.svg");
          transform: rotate(180deg);
        }
      }
    }

    @media @medium-down {
      ul li img {
        //filter: brightness(600%);
        transform: scale(0.8);
      }
    }
  }

  &-footer {
    display: flex;

    &__card {
      border-radius: 8px;
      box-shadow: 0px 0px 8px rgb(0 0 0 / 10%);
      background-color: @white;
      padding: 30px 50px;
      position: relative;
      bottom: 50px;
    }

    &__item {
      display: flex;
      align-items: center;

      .navigation-search {
        top: unset;
      }
    }

    &__item,
    ul li {
      margin: 0 15px;

      img {
        filter: brightness(600%);
      }
    }

    .icon-search {
      color: @white;
    }
  }
}

.copyright-bar {
  ul {
    display: flex;
    list-style-type: none;
    margin: 0;

    @media @small-down {
      flex-direction: column;
    }

    li {
      padding: 10px;

      a {
        color: @text-primary;

        &::before {
          content: '|';
          margin-right: 10px;
          color: @white;
        }
      }
    }
  }
}