/**
 * @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--text-image {
  text-align: left;
  padding: 30px 0;
}

.component--text-image.light-bg {
  background-color: #f9f9f9;
}

.component--text-image .text-image--main-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 30px;
}

.component--text-image .text-image--image {
  margin-bottom: 20px;
}

.component--text-image .text-image--image picture,
.component--text-image .text-image--image img {
  width: 100%;
}

.component--text-image .text-image--image .field--name-field-c-image {
  border-top: 9px solid #e91c24;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image .text-image--image .field--name-image,
.component--text-image .text-image--image img {
  width: 100%;
  max-width: 100%;
}

.component--text-image .text-image--text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.component--text-image .text-image--intro {
  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--text-image .text-image--text {
  font-size: 1rem;
  line-height: 1.5rem;
}

.component--text-image .text-image--text h2 {
  margin-bottom: 20px;
}

.component--text-image .text-image--text p:last-of-type {
  margin-bottom: 0;
}

.component--text-image .text-image--cta {
  display: flex;
  margin-top: 20px;
}

.component--text-image .text-image--cta a {
  font-size: 1rem;
  color: #e81c24;
}

.component--text-image .text-image--cta a:hover {
  color: #fff;
}

.component--text-image.twb-col-8 .text-image--content-wrapper {
  flex: 0 0 auto;
  width: 66.66666667%;
}

.component--text-image.brand--bakers.light-bg {
  background-color: rgba(56, 155, 201, 0.05);
}

.component--text-image.brand--bakers .text-image--image .field--name-field-c-image {
  border-top: 9px solid #389bc9;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--felix.light-bg {
  background-color: rgba(0, 35, 140, 0.05);
}

.component--text-image.brand--felix .text-image--image .field--name-field-c-image {
  border-top: 9px solid #00238c;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--purina-pro-plan.light-bg {
  background-color: rgba(34, 34, 34, 0.05);
}

.component--text-image.brand--purina-pro-plan .text-image--image .field--name-field-c-image {
  border-top: 9px solid #222222;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--adventuros.light-bg {
  background-color: rgba(63, 32, 33, 0.05);
}

.component--text-image.brand--adventuros .text-image--image .field--name-field-c-image {
  border-top: 9px solid #3f2021;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--beta.light-bg {
  background-color: rgba(250, 246, 237, 0.05);
}

.component--text-image.brand--beta .text-image--image .field--name-field-c-image {
  border-top: 9px solid #faf6ed;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--beyond.light-bg {
  background-color: rgba(238, 233, 234, 0.05);
}

.component--text-image.brand--beyond .text-image--image .field--name-field-c-image {
  border-top: 9px solid #eee9ea;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--bonio.light-bg {
  background-color: rgba(233, 28, 36, 0.05);
}

.component--text-image.brand--bonio .text-image--image .field--name-field-c-image {
  border-top: 9px solid #e91c24;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--dentalife.light-bg {
  background-color: rgba(0, 192, 243, 0.05);
}

.component--text-image.brand--dentalife .text-image--image .field--name-field-c-image {
  border-top: 9px solid #00c0f3;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--go-cat.light-bg {
  background-color: rgba(255, 230, 0, 0.05);
}

.component--text-image.brand--go-cat .text-image--image .field--name-field-c-image {
  border-top: 9px solid #ffe600;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--friskies.light-bg {
  background-color: rgba(255, 230, 0, 0.05);
}

.component--text-image.brand--friskies .text-image--image .field--name-field-c-image {
  border-top: 9px solid #ffe600;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--purina-one.light-bg {
  background-color: rgba(23, 28, 143, 0.05);
}

.component--text-image.brand--purina-one .text-image--image .field--name-field-c-image {
  border-top: 9px solid #171c8f;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--proplan-vet-diets.light-bg {
  background-color: rgba(34, 34, 34, 0.05);
}

.component--text-image.brand--proplan-vet-diets .text-image--image .field--name-field-c-image {
  border-top: 9px solid #222222;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--winalot.light-bg {
  background-color: rgba(14, 66, 49, 0.05);
}

.component--text-image.brand--winalot .text-image--image .field--name-field-c-image {
  border-top: 9px solid #0e4231;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--gourmet.light-bg {
  background-color: rgba(132, 117, 78, 0.05);
}

.component--text-image.brand--gourmet .text-image--image .field--name-field-c-image {
  border-top: 9px solid #84754e;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--dog-chow.light-bg {
  background-color: rgba(35, 75, 141, 0.05);
}

.component--text-image.brand--dog-chow .text-image--image .field--name-field-c-image {
  border-top: 9px solid #234b8d;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--catchow.light-bg {
  background-color: rgba(35, 75, 141, 0.05);
}

.component--text-image.brand--catchow .text-image--image .field--name-field-c-image {
  border-top: 9px solid #234b8d;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--beneful.light-bg {
  background-color: rgba(223, 83, 0, 0.05);
}

.component--text-image.brand--beneful .text-image--image .field--name-field-c-image {
  border-top: 9px solid #df5300;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

.component--text-image.brand--friskies-dog.light-bg {
  background-color: rgba(146, 181, 51, 0.05);
}

.component--text-image.brand--friskies-dog .text-image--image .field--name-field-c-image {
  border-top: 9px solid #92b533;
  position: relative;
  overflow: visible;
  /*
  &:before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: 1px;
    background-color: $border-color;
  }
  */
}

@media (min-width: 1140px) {
  .component--text-image {
    padding: 50px 0;
  }

  .component--text-image .text-image--main-title {
    font-size: 2.5rem;
    line-height: 3.25rem;
  }

  .component--text-image .text-image--image {
    margin: 0;
  }

  .component--text-image.wrap-text-around-image .text-image--content-wrapper {
    display: block;
  }

  .component--text-image.wrap-text-around-image .text-image--text-wrapper {
    display: block;
    width: auto;
  }

  .component--text-image.wrap-text-around-image.image-position--right .text-image--image {
    float: right;
    margin-left: 12px;
  }

  .component--text-image.wrap-text-around-image.image-position--left .text-image--image {
    float: left;
    margin-right: 12px;
  }
}