/**
 * @file
 * Breakpoints
 *
 * With these breakpoints we will define how the page layout works.
 * For reference, below are the grid default breakpoints and max-widths defined by Bootstrap 4.
 * https://getbootstrap.com/docs/4.4/layout/grid/#grid-tiers
 *
 * $grid-breakpoints: (
 *   xs: 0,
 *   sm: 576px,
 *   md: 768px,
 *   lg: 992px,
 *   xl: 1200px
 * );
 *
 * $container-max-widths: (
 *   sm: 540px,
 *   md: 720px,
 *   lg: 960px,
 *   xl: 1140px
 * );
 *
 */

/*
 * Usage:
 * @include breakpoint(md){
 *   background: blue;
 * }
 */

/*
example for $data argument
each breakpoint has a pair of corresponding values
$breakpoints-data: (
  breakpoints: (365px + 20px, 767px, 1023px, 1199px, 1440px - 20px, 1440px + 20px, 1600px),
  values: ((190px, 190px), (400px, 190px), (261px, 194px), (230px, 243px), (266px, 266px), (266px, 266px), (300px, 300px))
);
*/

/*
 * Usage:
 * @include breakpoint(md, 700px){
 *   background: blue;
 * }
 */

/**
* @file
* Colors
*
* Colors variables for the whole project.
*/

/**
* @file
* Common variables
*
* Common variables for the whole project
*/

/**
* @file
* Mixins
*
*/

/*
  example:
  .root-class {
    .element {
      .theme_cat & {
        ...
      }
    }
  }
  will result into
  .theme_cat .root-class .element

  .root-class {
    .element {
      @include insert-into-selector-as-last-but-one(".theme_cat") {
        ...
      }
    }
  }
  will result into
  .root-class .theme_cat .element
*/

/*
  example:
  repeat-last-part-of-selector(".root-class .element", 3);
  returns
  ".root-class .element.element.element"
*/

/*
A simple little SCSS mixin for creating scrim gradients
Inspired by Andreas Larson - https://github.com/larsenwork
https://css-tricks.com/easing-linear-gradients/
https://toward.studio/latest/making-css-gradients-smooth
*/

/*
a W3C Specs compliant way to override legacy CSS while explicitly highlighting the pieces of CSS code where refactoring is needed

example of usage:

.page {
  .container {
    &__item {
      @include increase-specificity-by-repeating(3) {
        ...
      }
    }
  }
}

will be built into

.page .container__item.container__item.container__item {
  ...
}

this method of increasing specificity is allowed by CSS Specifications
quote from https://www.w3.org/TR/selectors-3/#specificity:
> Note: Repeated occurrences of the same simple selector are allowed and do increase specificity.
*/

.component--quicklinks {
  background-color: #f9f9f9;
  width: 100%;
  position: relative;
  z-index: 0;
}

.component--quicklinks .quicklinks--content-wrapper {
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.component--quicklinks .quicklinks--title {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5625rem;
  line-height: 2.1875rem;
  margin-bottom: 20px;
}

.component--quicklinks .quicklinks--links {
  z-index: 1;
  padding: 0 15px 15px;
  margin-bottom: 5px;
  overflow-y: auto;
  /* Track */
  /* Handle */
  scrollbar-face-color: #e91c24;
  /* Firefox 63 compatibility */
  scrollbar-track-color: #c9c5b9;
  /* Firefox 63 compatibility */
  scrollbar-color: #e91c24 #c9c5b9;
  scrollbar-width: thin;
}

.component--quicklinks .quicklinks--links::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #c9c5b9;
  border-radius: 10px;
}

.component--quicklinks .quicklinks--links::-webkit-scrollbar-thumb {
  background: #e91c24;
}

.component--quicklinks .quicklinks--links .field__item:last-child a {
  margin-right: 30px;
}

.component--quicklinks .quicklinks--links .field__item a {
  display: block;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.375rem;
  padding: 12px 22px;
  color: #e91c24;
  background-color: #ffffff;
  border: 1px solid #e91c24;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
  background-image: none;
  margin-right: 20px;
}

.component--quicklinks .quicklinks--links .field__item a:hover {
  color: #ffffff;
  background-color: #e91c24;
  text-decoration: none;
}

.component--quicklinks .quicklinks--links__simple-link {
  position: relative;
  color: #524e4c;
  margin-bottom: 20px;
  transition: color 0.2s ease-in;
  font-weight: 600;
}

.component--quicklinks .quicklinks--links__simple-link:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #e81c24;
  left: 0;
  bottom: 0;
}

.component--quicklinks .quicklinks--links__simple-link:hover {
  color: #e81c24;
}

.component--quicklinks .quicklinks--blur-background {
  position: absolute;
  height: 100%;
  width: 40px;
  top: 0;
  right: 0;
  background-image: linear-gradient(to left, rgb(249, 248, 245), rgba(249, 248, 245, 0));
}

.component--quicklinks .quicklinks--cta-link {
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.component--quicklinks .quicklinks--image {
  display: none;
}

@media (min-width: 1140px) {
  .component--quicklinks .quicklinks--content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
  }

  .component--quicklinks .quicklinks--links {
    /* Hide scrollbar for Chrome, Safari and Opera */
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none;
    flex-wrap: wrap;
    max-width: 810px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
  }

  .component--quicklinks .quicklinks--links:-webkit-scrollbar {
    display: none;
  }

  .component--quicklinks .quicklinks--links .field__items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    align-items: center;
  }

  .component--quicklinks .quicklinks--links .field__item {
    margin-bottom: 16px;
    margin-right: 16px;
  }

  .component--quicklinks .quicklinks--links .field__item:last-child a {
    margin-right: 0;
  }

  .component--quicklinks .quicklinks--blur-background {
    display: none;
  }

  .component--quicklinks .quicklinks--image {
    z-index: -1;
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 325px;
  }

  .component--quicklinks .quicklinks--image .field--name-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    width: 100%;
  }

  .component--quicklinks .quicklinks--image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 100%;
    -webkit-transform: translate3d(-50%, -50%, 0);
            transform: translate3d(-50%, -50%, 0);
  }
}