/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   @font-face {
   font-family: 'Franchise Bold';
   font-style: normal;
   font-weight: normal;
   src: url('Franchise-Bold-hinted.woff') format('woff');
   }



html {
  color: #005b99;
  font-size: 1em;
  line-height: 1.4;
  font-family: arial, sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #fff;
  text-shadow: none;
}

::selection {
  background: #fff;
  text-shadow: none;
}

a:focus {outline:0;}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
a {
  color: #005b99;
}

.container {
  max-width: 1400px;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-around;
  padding: 0.75em;
  font-family: 'Franchise Bold';
  text-transform: uppercase;
  font-size: 2em;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.lity-active,
.lity-active body {
    overflow: hidden;
}

.lity-container {
  overflow: scroll;
}

h1 {
  font-size: 4em;
  font-family: 'Franchise Bold';
  text-transform: uppercase;
  line-height: 1;
}

h2 {
  font-size: 1.75em;
}

h2, h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: bold;
}

.header {
  position: relative;
}

.slider {
  line-height: 0;
}

.slider img {
  width: 100%;
}

.slider h1 {
  color: #fff;
  font-size: 6vw;
  position: absolute;
  font-family: 'Franchise Bold';
  text-transform: uppercase;
  line-height: 1;
}

@media screen and (min-width: 1600px) {
  .slider h1 {
     font-size: 100px;
  }
}

.slider div {
  position: relative;
}

.slide-right h1 {
  left: 10%;
  top: 5%;
}

.slide-left h1 {
  left: 55%;
  top: 5%;
  max-width: 45%;
}

.slider.videos, .slider.recipes {
  padding-left: 3em;
  padding-right: 3em;
}

.single-item .slick-arrow {
  z-index: 10;
}

.single-item .slick-next {
  right: 50px;
}
.single-item .slick-prev {
  left: 40px;
}

.slick-arrow::before {
  content:"";
  background: url("../img/slider-arrow.svg") no-repeat;
  background-size: contain;
  display: block;
  width: 30px;
  height: 50px;
}

.slick-prev::before {
  transform: rotate(180deg);
}

.slick-prev {
  left: 20px;
}

.slick-next {
  right: 30px;
}

.logo {
  background-color: #005b99;
  width: 17vw;
  position: absolute;
  bottom:0;
  left: 10%;
  height: 10vw;
  max-height: 220px;
  border-radius: 4px;
  min-width: 120px;
  min-height: 68px;
}

.logo::after {
  content: '';
  background: url("../img/MilkCarton.png") no-repeat;
  background-size: contain;
  position: absolute;
  width: 4vw;
  height: 10vw;
  right: -1.5vw;
  top: -1.5vw;
}

.logo img {
  width: 70%;
  display: block;
  margin:  0 auto;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

section.intro {
  display: flex;
}

@media screen and (max-width: 768px) {
  section.intro, .faq {
     flex-direction: column;
  }
  .intro .col {
    width: 100%;
    padding: 0 2em;
  }

  .faq .col {
    width: 100%;
    text-align: center;
    max-width: 600px;
    margin: auto;
  }

  .faq .faq-header {
    padding-top:0;
  }

  p {
    font-size: 1em;
  }

  .nav {
    font-size: 1.5em;
  }
}

.columns {
  display: flex;
}

.col {
  padding: 2% 5%;
  width: 50%;
  box-sizing: border-box;
}

p {
  font-size: 1.4em;
  line-height: 1.5;
  padding: 0.75em 0;
}



/* Video Slider */

.videos .slick-slide, .recipes .slick-slide {
  margin: 0 1em;
}

.slider.videos, .footer {
  border-top: 3px solid rgba(211,233,250,1);
  padding-top: 4em;
}

.slick-dots {
  bottom:-3em!important;
}

.slick-dots {
  position: relative;
}

.slick-dots li button:before {
  font-family: 'Franchise Bold'!important;
  font-size: 40px!important;
  color: #005b99!important;
}

.slider.videos a::before {
  content: "";
  background: url("../img/play-button.svg") no-repeat;
  background-size: contain;
  width: 50px;
  height: 50px;
  position: absolute;
  top: calc(50% - 25px);
  Left: calc(50% - 25px);
  opacity: 0.6;
  transition: all 100ms ease;
}

.slider.videos a:hover::before {
  transform: scale(1.1);
  opacity: 0.8;
  transition: all 200ms ease;
}

.video-slider-caption {
  text-align: center;
  padding: 2em;
  max-width: 1000px;
  margin: auto;
}

/* FAQ */

.faq-wrapper {
  background: rgba(211,233,250,1);
  width: 100%;
  padding-bottom: 1em;
}
.faq-wrapper .container {
  overflow: visible;
}

.faq {
  display: flex;
}

.one-third {
  width: 40%;
}

.two-thirds {
  width: 60%;
}

.faq-header {
  padding: 5em;
}

.faq-wrapper h2, .faq-wrapper p {
  margin: 0;
  padding-top:0;
}

.big-q p {
  background: url("../img/big-q.svg") no-repeat;
  background-position: center center;
  background-size: contain;
  padding: 2em;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  line-height: 1.25;
  font-size: 1.5em;
  max-width: 300px;
  margin: auto;
}

.faq-expanded {
  padding-top: 4em;
  display:none;
  margin: auto;

}


.faq-question {
  margin: 0 auto 2em auto;
  position: relative;
  overflow: visible;
  padding: 3em 3em 2.25em 3em;
  background: rgba(255,255,255,0.7);
  max-width: 1000px;
  /*border-left: 4px solid rgba(255,255,255,0.75);*/
}

/*.faq-question::before {
  content:"";
  background: url("../img/big-q.svg") no-repeat;
  background-size: contain;
  position: absolute;
  opacity: 0.75;
  width: 50px;
  height: 50px;
  left: -4em;
  top: 0;
  z-index: 0;
  display: block;
}*/

.faq-toggle {
  text-align: center;
  text-transform: uppercase;
  width: 100px;
  margin: -2em auto 0 auto;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.faq-toggle::after {
  content: "";
  background: url("../img/arrow-drk-blue.svg") center center no-repeat;
  background-size: 80%;
  width: 70px;
  height: 50px;
  position: absolute;
  bottom: -2.2em;
  left: 50%;
  transform: translateX(-50%);
  transition: 200ms ease;
}

.faq-toggle.open::after {
  transform: rotate(180deg) translateX(50%);
  transition: 200ms ease;
}

.faq-toggle .less {
  display: none;
}

.faq-toggle.open .more {
  display: none;
}

.faq-toggle.open .less {
  display: block;
}

.recipes {
  padding: 6em 0 0 0;
}

.recipes img {
  max-width: 400px;
  margin: auto;
}

.recipe-pop {
  max-width: 1400px;
  margin: auto;
}

.recipe-pop h1 {
  position: absolute;
  top: 0;
  left: 0.5em;
  font-size: 3.5em;
}

.recipe-pop p, .recipe-pop li {
  font-size: 1.4em;
}

.recipe-pop .col {
  padding: 5em 4em 4em 4em;
  background: url("../img/recipe-bg.jpg") no-repeat;
  background-size: cover;
}

.recipe-pop h2 {
  text-transform: uppercase;
}

.recipe-pop .directions {
  background-color: rgba(211,233,250,1);
  background-blend-mode: multiply;
}

.recipes.slick-dotted {
  margin-bottom: 10em!important;
}

.footer {
  font-family: arial, sans-serif;
  font-size: 0.75em;
  margin: 2em auto;
}

.footer .contact p {
  margin:0;
  padding: 0;
}

.logo-footer {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.contact img {
  width: 100%;
  max-width: 200px;
  max-height: 120px;
  vertical-align: baseline;
}

.logo-footer img {
  max-height: 100px;
  vertical-align: baseline;
  margin: 0 1em;
}

.footer span {
  position: absolute;
  bottom: 0;
  left: 5%;
}

.footer .col {
  padding-bottom:0;
}

@media screen and (max-width: 767px) {
  .recipe-pop .columns, .footer.columns {
    flex-direction: column;
  }
  .recipe-pop .col, .footer .col {
    width: 100%;
    text-align: left;
  }
  .recipe-pop h1 {
    font-size: 2em;
  }
}

@media screen and (max-width: 560px) {

  .header .slider .slick-arrow {
    visibility: hidden;
  }

  .columns {
    flex-direction: column;
  }

  .contact, .logo-footer {
    width: 100%;
  }

  .footer .logo-footer {
    padding-bottom: 2em;
  }

  footer .footer {
    padding: 1em;
  }

  .nav {
    display: none;
  }


}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
