/* Homepage sections (hero slider, about, product carousel, categories, banner) */

.seo-intro {
  padding: 2.5rem 0 3rem;
  background: #f8f6f3;
}

.seo-intro h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #3d2914;
}

.seo-intro__lede {
  max-width: 52rem;
  line-height: 1.65;
  margin: 0;
  color: #444;
}

.fadeInUp { animation-name: fadeInUp; }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Hero slider
   ========================================================================== */

#main-hero { overflow: hidden; }

.hero-swiper { position: relative; }

.hero-swiper .swiper-slide { position: relative; height: 600px; overflow: hidden; cursor: grab; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ken-burns { transition: transform 10s linear; }

.ken-burns--active { transition-duration: 20s; transform: scale(1.3); }

.slide-overlay { position: absolute; inset: 0; }

.slide-1 .slide-overlay { background-color: #00000066; }

.slide-2 .slide-overlay { background-color: #00000080; }

.slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  margin: auto;
  text-align: center;
  color: #fff;
}

.slide-contents { max-width: 70%; }

.slide-heading {
  margin-bottom: 30px;
  font-family: var(--f-head);
  font-size: 60px;
  font-weight: 600;
  line-height: 62px;
  color: var(--c-white);
}

.slide-description {
  margin-bottom: 30px;
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: var(--c-white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  transform: translateY(-50%);
  font-size: 25px;
  padding: 6px;
  color: var(--c-white);
  background-color: var(--c-primary);
  cursor: pointer;
}

.hero-arrow svg { width: 1em; height: 1em; fill: currentColor; }

.hero-arrow--prev { left: 10px; }

.hero-arrow--next { right: 10px; }

/* ==========================================================================
   About
   ========================================================================== */

#colored-background { background-color: var(--c-grey); padding: 60px 0; }

.about-wrap { display: flex; justify-content: center; padding: 10px; }

.icon-box { display: flex; align-items: flex-start; width: 80%; text-align: left; }

.icon-box__icon { display: inline-flex; flex: 0 0 auto; margin-right: 60px; }

.icon-box__glyph { display: inline-block; font-size: 75px; line-height: 1; color: var(--c-text); }

.icon-box__icon i { position: relative; display: block; width: 1em; height: 1em; }

.icon-box__icon i::before { position: absolute; left: 50%; transform: translateX(-50%); }

.icon-box__title {
  margin: 0 0 25px;
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-primary);
}

.icon-box__description { margin: 0; font-size: 16px; line-height: 22px; color: var(--c-text); }

/* ==========================================================================
   Section titles
   ========================================================================== */

.section-title {
  margin: 0 0 40px;
  font-family: var(--f-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  color: var(--c-primary);
}

/* ==========================================================================
   Our Products carousel
   ========================================================================== */

#our-products { padding: 50px 0 60px; }

.product-carousel { position: relative; }

.product-swiper { width: calc(100% - 60px); }

.product-swiper .swiper-slide { height: auto; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 20px 10px 95px; /* 90px + the 5px gap of the (hidden) price row in the original */
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  background-color: var(--c-grey);
}

.product-card img {
  display: block;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid #BEBEBE;
  border-radius: 50%;
}

.product-card__title {
  margin: 0;
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
  color: var(--c-primary);
}

.product-card__btn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--c-gold);
  cursor: pointer;
}

.carousel-arrow svg { width: 1em; height: 1em; fill: currentColor; }

.carousel-arrow--prev { left: 0; }

.carousel-arrow--next { right: 0; }

/* ==========================================================================
   Top Categories
   ========================================================================== */

#top_categories { background-color: var(--c-grey); padding: 50px 0 30px; }

#top_categories .container { display: flow-root; }

.category-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.category-grid li { position: relative; width: 22.05%; margin: 0 3.8% 30px 0; text-align: center; }

.category-grid li:nth-child(4n) { margin-right: 0; }

.category-grid a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 20px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 1px 1px #bbbbbb;
}

.category-grid img { display: block; width: 100%; height: 180px; margin: 0 0 16px; object-fit: cover; }

.category-grid h2 {
  margin: 0;
  padding: 0 0 13px;
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-primary);
}

/* ==========================================================================
   Call to action (cover)
   ========================================================================== */

.cta { position: relative; display: block; overflow: hidden; }

.cta__bg-wrapper { position: absolute; inset: 0; z-index: 1; overflow: hidden; transition: all .4s; }

.cta__bg, .cta__bg-overlay { position: absolute; inset: 0; transition: all .8s; }

.cta__bg { z-index: 1; background-size: cover; background-position: center; will-change: transform; }

.cta__bg-overlay { z-index: 2; background-color: rgba(0, 0, 0, .3); }

.cta:hover .cta__bg { transform: scale(1.2); }

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  width: 100%;
  min-height: 280px;
  padding: 8% 15%;
  text-align: center;
  color: #fff;
}

.cta__title {
  width: 100%;
  margin: 0 0 15px;
  font-family: var(--f-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 50px;
  color: var(--c-white);
}

.cta__description { width: 100%; font-size: 16px; line-height: 22px; color: var(--c-white); }

@media (max-width: 1024px) {
  .slide-contents { max-width: 80%; }
  #colored-background { padding: 30px 0; }
  .icon-box { display: block; width: 100%; text-align: center; }
  .icon-box__icon { display: flex; justify-content: center; margin: 0 auto 20px; }
  #our-products { padding: 30px 0 40px; }
  #top_categories { padding: 30px 0 0; }
  .cta__content { padding: 15% 5%; }
}

@media (max-width: 768px) {
  .category-grid li { width: 48%; margin: 0 4% 4% 0; }
  .category-grid li:nth-child(even) { margin-right: 0; }
}

@media (max-width: 767px) {
  .slide-inner { padding: 30px; }
  .slide-contents { max-width: 85%; }
  .icon-box__icon { display: block; }
  .icon-box__glyph { font-size: 62px; }
  #top_categories { padding: 20px 0 0; }
  #top_categories .section-title { margin-bottom: 30px; }
}

@media (max-width: 660px) {
  .category-grid li { width: 100%; margin-right: 0; }
}

@media (max-width: 480px) {
  .category-grid li { margin-bottom: 20px; }
}
