/**
 * @file
 * custom
 * Custom styling that is applied throughout the site
 * 
 * -------------------------------------------------
 * Updated: Alberni Design Jr - 2019-07-15
 * 
 * Attached thru `.libraries.yml`
 *
 ============================================================================ */
 body {
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
  font-size: 1.2em;
}

/*==============================================================
   Regions
  ==============================================================*/

.main-content {
  padding-bottom: 5rem;
}

.container,
.path-not-front .content-inner {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .container,
  .path-not-front .content-inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/*----------------------------
   Header
  ----------------------------*/
.path-not-front .layout-header {
  border-bottom: 1px solid #ccc;
}

.path-not-front .header-image__title {
  color: #fff;
  margin: 0;
}

.img-content__content--centered {
  top: 50%;
  left: .5em;
  right: .5em;
  margin: 0 auto;
  text-align: center;
  max-width: 45em;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #eee;
  font-size: 1.3em;
}

/*----------------------------
   Main Content
  ----------------------------*/
.content-inner {
  padding-bottom: 3em;
}

#block-modern-page-title {
  margin: 1em 0 2em;
}

.field-node--body ul {
  margin-left: 2em;
}

/*----------------------------
   Subfooter
  ----------------------------*/
.subfooter {
  font-size: .9em;
  padding: 3rem 0;
  background: #222;
}

.subfooter .block:not(:last-child) {
  margin: 0 2em 2em 0;
}

/* Logo
----------------------*/
.footer-logo {
  max-width: 12em;
  -webkit-filter: brightness(100);
  filter: brightness(100);
}

/* Infomation
----------------------*/
.footer-info {
  margin: 1.5em 0 0;
  padding: 0 0 0 2.5em;
  background: 0 .1em no-repeat;
  min-width: 15em;
}

/* Background Images */
.footer-info--address {
  background-image: url('images/icon-gmap.png');
}

.footer-info--phone {
  background-image: url('images/icon-phone.png');
}

.footer-info--email {
  background-image: url('images/icon-email.png');
}

.footer-info--hours {
  background-image: url('images/icon-clock.png');
}

/*----------------------------
   Footer
  ----------------------------*/
.footer {
  background: #3F0A0A;
  background: #222;
  font-size: .85em;
  border-top: 1px solid #333;
  color: #666;
}

/* Responsify Map */
.resp-container--footer-map {
  max-width: 100%;
  width: 28em;
  padding-top: 60%;
}

.toggle_button {
  display: none;
}

/*==============================================================
   Nodes
  ==============================================================*/

@media (min-width: 39.9375em) {
  .node--type-products .field-name-field-gallery {
    margin-left: 9%;
  }
}

.node--type-products .field-name-field-gallery .field__items {
  margin: -.3rem -.3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.node--type-products .field-name-field-gallery .field__item {
  font-size: 0;
  border: .31rem solid rgba(0, 0, 0, 0);
  -webkit-box-flex: 1;
      -ms-flex: 1 1 150px;
          flex: 1 1 150px;
}

.node--type-products .field-name-field-gallery .field__items:after {
  content: '';
  -webkit-box-flex: 1;
      -ms-flex: 1 1 150px;
          flex: 1 1 150px;
}

/*==============================================================
 * Views
 *==============================================================*/

/*** Product List ***/
.product-list {  overflow: hidden;  }

.product-list > .view-rows {
  margin: -1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.product-list .views-row {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 300px;
          flex: 1 1 300px;
  text-align: center;
  font-size: 1.2em;
  margin: 1em;
}

/*** Supplier List ***/
.view-suppliers .views-row {
  display: inline-block;
  text-align: center;
  font-size: .8em;
  color: #999;
  margin: 1em;
  vertical-align: top;
}

.view-suppliers .views-field-body {
  width: 250px;
}

.view-suppliers .views-field-field-image {
    height: 180px;
    line-height: 180px;
}

/*==============================================================
 * Responsive
 *==============================================================*/

@media screen and (max-width: 1250px) {
  .header {
    float: left;
    padding: 0 1em 0 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 2 10em;
    flex: 1 2 9em;
  }

  /* Main Menu */
  .menu-bar {
    padding: 0;
    min-width: 100%;
    text-align: center;
    line-height: 2;
  }

  .menu-name--main { /* For animation */
    display: none;
  }

  .menu-name--main a {
    padding: .4em 12px;
    font-size: 1em;
  }

  /* Toggle Button */
  .toggle_button {
    display: block;
    margin-left: auto;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 2em;
    flex: 1 1 2em;
    text-align: right;
  }
  
  /* Toggle Icon */
  .toggle-icon {
    width: 60px;
    height: 45px;
    margin-left: auto;
    position: relative;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
  }

  .toggle-line {
    position: absolute;
    height: 9px;
    width: 100%;
    background: #d3531a;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  .toggle-line--1 {
    top: 0px;
  }
  
  .toggle-line--2,
  .toggle-line--3 {
    top: 18px;
  }
  
  .toggle-line--4 {
    top: 36px;
  }
  
 .open .toggle-line--1 {
    top: 18px;
    width: 0%;
    left: 50%;
  }
  
  .open .toggle-line--2 {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
        transform: rotate(45deg);
  }
  
  .open .toggle-line--3 {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
  }
  
  .open .toggle-line--4 {
    top: 18px;
    width: 0%;
    left: 50%;
  }
}

@media screen and (max-width: 480px) {
  .menu-name--main li {
    width: 100%;
    text-align: center;
  }
}

@media screen and (min-width: 900px) {

  /*----------------------------
     Sidebar
    ----------------------------*/
  .layout-content-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .layout-main-content {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .layout-sidebar {
    width: 22em;
    min-width: 22em;
    opacity: .9;
  }
}


@media screen and (max-width: 767px) {

  h1 {
    font-size: 30px;
  }

  .highlighted {
    clear: both;
  }
  
  /* Footer map */
  #block-footer-map {
    margin: 0 auto;
    min-width: 100%;
  }
}