/**
 * @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--hero-small .hero-small--content-area-wrapper {
  box-shadow: 0 4px 12px 0 rgba(88, 79, 76, 0.16);
  background-color: #ffffff;
  position: relative;
  text-align: center;
  padding: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: -30px 0 0 15px;
}

.component--hero-small .hero-small--content-area {
  padding: 30px;
}

.component--hero-small .hero-small--content-area .button-secondary {
  display: inline-block;
}

.component--hero-small .hero-small--breed {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-column-gap: 20px;
     -moz-column-gap: 20px;
          column-gap: 20px;
}

.component--hero-small .hero-small--breed:before {
  content: "";
  width: 48px;
  height: 48px;
  background-color: #fff;
}

.component--hero-small .hero-small--breed__dog:before {
  background: url("../images/icons/icon-dog.svg") center center/35px 35px no-repeat #ffffff;
}

.component--hero-small .hero-small--breed__cat:before {
  background: url("../images/icons/icon-cat.svg") center center/35px 35px no-repeat #ffffff;
}

.component--hero-small .hero-small--contents {
  flex: 1;
}

.component--hero-small .hero-small--content-area-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 10px;
}

.component--hero-small .hero-small--content-area-intro {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5rem;
}

.component--hero-small .hero-small--content-area-intro a {
  display: inline;
  border-bottom: none;
  background-color: transparent;
  background-repeat: no-repeat;
  /*
  based on styles from docroot/themes/custom/trim_the_tail_th/new_src/sass/01_base/header/_header-navigation-composite.scss, class 'regular'
  TODO: make more reusable code
  */
  background-image: linear-gradient(rgba(255, 255, 255, 0) calc(100% - 1px), #e91c24 1px);
  background-position-x: 0;
  background-position-y: 100%;
  background-size: 0% 100%;
  transition: background-size 0.75s;
}

.component--hero-small .hero-small--content-area-intro a:hover {
  background-size: 100% 100%;
}

.component--hero-small .brand--logo {
  max-width: 95px;
}

.component--hero-small .hero-small--content-area-icon {
  width: 65px;
  margin: 0 auto 20px;
}

.component--hero-small .hero-small--content-area-icon.catndog,
.component--hero-small .hero-small--content-area-icon.dog,
.component--hero-small .hero-small--content-area-icon.cat {
  height: 48px;
  border-bottom: 1px solid #e91c24;
}

.component--hero-small .hero-small--content-area-icon.dog {
  background: url("../../../images/hero-small/animated-dog.png") 8px -4px/55px 55px no-repeat;
}

.component--hero-small .hero-small--content-area-icon.cat {
  background: url("../../../images/hero-small/animated-cat.png") 0 -12px/64px 64px no-repeat;
}

.component--hero-small .hero-small--content-area-icon.catndog {
  background: url("../../../images/hero-small/animated-cat-and-dog.png") 0 -12px/64px 64px no-repeat;
}

.component--hero-small .hero-small--image {
  width: 100%;
}

.component--hero-small .hero-small--image .field--type-image {
  width: 100%;
}

.component--hero-small .hero-small--image img {
  display: block;
  margin-left: auto;
}

/**
 * Time to create the template with attributes modified
 * when this component have a brand.
 */

.component--hero-small.brand--bakers .purina-border-top {
  background-color: #389bc9;
}

.component--hero-small.brand--felix .purina-border-top {
  background-color: #00238c;
}

.component--hero-small.brand--purina-pro-plan .purina-border-top {
  background-color: #222222;
}

.component--hero-small.brand--adventuros .purina-border-top {
  background-color: #3f2021;
}

.component--hero-small.brand--beta .purina-border-top {
  background-color: #faf6ed;
}

.component--hero-small.brand--beyond .purina-border-top {
  background-color: #eee9ea;
}

.component--hero-small.brand--bonio .purina-border-top {
  background-color: #e91c24;
}

.component--hero-small.brand--dentalife .purina-border-top {
  background-color: #00c0f3;
}

.component--hero-small.brand--go-cat .purina-border-top {
  background-color: #ffe600;
}

.component--hero-small.brand--friskies .purina-border-top {
  background-color: #ffe600;
}

.component--hero-small.brand--purina-one .purina-border-top {
  background-color: #171c8f;
}

.component--hero-small.brand--proplan-vet-diets .purina-border-top {
  background-color: #222222;
}

.component--hero-small.brand--winalot .purina-border-top {
  background-color: #0e4231;
}

.component--hero-small.brand--gourmet .purina-border-top {
  background-color: #84754e;
}

.component--hero-small.brand--dog-chow .purina-border-top {
  background-color: #234b8d;
}

.component--hero-small.brand--catchow .purina-border-top {
  background-color: #234b8d;
}

.component--hero-small.brand--beneful .purina-border-top {
  background-color: #df5300;
}

.component--hero-small.brand--friskies-dog .purina-border-top {
  background-color: #92b533;
}

@media (min-width: 992px) {
  .component--hero-small .hero-small--content-wrapper {
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .component--hero-small .hero-small--content-area-wrapper {
    margin: 0 -100% 0 0;
    text-align: left;
  }

  .component--hero-small .hero-small--content-area {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .component--hero-small .hero-small--content-area-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .component--hero-small .hero-small--content-area-icon {
    margin: 0 auto 10px 0;
  }

  .component--hero-small .hero-small--content-area-icon.dog {
    background-position-x: -5px;
  }

  .component--hero-small .hero-small--content-area-icon.cat {
    background-position-x: -10px;
  }

  .component--hero-small .hero-small--content-area-icon.catndog {
    background-position-x: -10px;
    background-position-y: -6px;
  }

  .component--hero-small .hero-small--image {
    max-width: 895px;
    margin-left: auto;
    min-height: 350px;
  }

  .component--hero-small.brand--bakers .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--felix .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--purina-pro-plan .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--adventuros .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--beta .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--beyond .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--bonio .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--dentalife .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--go-cat .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--friskies .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--purina-one .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--proplan-vet-diets .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--winalot .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--gourmet .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--dog-chow .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--catchow .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--beneful .hero-small--content-area {
    padding-top: 54px;
  }

  .component--hero-small.brand--friskies-dog .hero-small--content-area {
    padding-top: 54px;
  }
}

@media (min-width: 1140px) {
  .component--hero-small .hero-small--breed {
    flex-direction: row;
    row-gap: 20px;
    align-items: flex-start;
  }

  .component--hero-small .hero-small--breed__dog:before {
    background: url("../images/icons/icon-dog.svg") center center/48px 48px no-repeat #ffffff;
  }

  .component--hero-small .hero-small--breed__cat:before {
    background: url("../images/icons/icon-cat.svg") center center/48px 48px no-repeat #ffffff;
  }
}

@media (min-width: 1400.1px) {
  .component--hero-small .hero-small--content-area-wrapper {
    width: 705px;
  }

  .component--hero-small .hero-small--content-area {
    padding-left: 95px;
  }

  .component--hero-small .hero-small--content-area {
    padding-right: 95px;
  }

  .component--hero-small .hero-small--image img {
    width: 760px;
  }
}

@media (max-width: 992px) {
  .component--hero-small .hero-small--content-area-wrapper {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }

  .component--hero-small .hero-small--content-area {
    padding-left: 30px;
  }

  .component--hero-small .hero-small--content-area {
    padding-right: 30px;
  }

  .component--hero-small .hero-small--image img {
    width: 100%;
  }
}

@media (min-width: 992.1px) and (max-width: 1400px) {
  .component--hero-small .hero-small--content-area-wrapper {
    width: calc(530px + (100vw - 992px) / 408 * 175);
  }

  .component--hero-small .hero-small--content-area {
    padding-left: calc(90px + (100vw - 992px) / 408 * 5);
  }

  .component--hero-small .hero-small--content-area {
    padding-right: calc(90px + (100vw - 992px) / 408 * 5);
  }

  .component--hero-small .hero-small--image img {
    width: calc(530px + (100vw - 992px) / 408 * 230);
  }
}