/* Culinary block
   Figma: Life In Our Homes Campaign — node 35:542 */

.culinary {
  position: relative;
  background-color: #fff5eb;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Remove the global "section+section { margin-top: 70px }" gap — the design
   runs these bands flush. */
section + .culinary {
  margin-top: 0;
}

/* The design stacks every part in a centred column with a 32px rhythm. */
.culinary__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.culinary__heading {
  margin: 0;
  font-family: 'pp-hatton', Georgia, 'Times New Roman', serif;
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 2.8125rem);
  line-height: 1.1;
  color: #006d8f;
}

.culinary__heading em {
  font-style: italic;
  font-weight: 200;
}

.culinary__intro,
.culinary__text,
.culinary__snippet {
  width: 100%;
  margin: 0 auto;
  font-family: 'gesta', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: normal;
  color: #1c1c1c;
}

/* The bottom copy is held narrower than the rest of the column in the design. */
.culinary__text {
  max-width: 1000px;
}

/* The design separates paragraphs with a blank line; 1.125rem reproduces that
   gap without the editor having to type empty paragraphs. */
.culinary__intro p,
.culinary__text p,
.culinary__snippet p {
  margin: 0 0 1.125rem;
}

.culinary__intro > :last-child,
.culinary__text > :last-child,
.culinary__snippet > :last-child {
  margin-bottom: 0;
}

.culinary__intro a,
.culinary__text a,
.culinary__snippet a {
  color: #006d8f;
  text-decoration: underline;
}

.culinary__intro a:hover,
.culinary__intro a:focus,
.culinary__text a:hover,
.culinary__text a:focus,
.culinary__snippet a:hover,
.culinary__snippet a:focus {
  text-decoration: none;
}

/* Cards — two across, 30px apart, each a 300px-tall image above a brown
   caption panel. */
.culinary__cards {
  width: 100%;
  margin: 0;
}

.culinary__cards:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.culinary__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100%;
}

/* The design's 528 x 300 tile, kept proportional as the container narrows
   rather than locked to a fixed height. */
.culinary__card-media {
  width: 100%;
  aspect-ratio: 528 / 300;
}

.culinary__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.culinary__card-caption {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: #966655;
  font-family: 'pp-hatton', Georgia, 'Times New Roman', serif;
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 25px;
  color: #fff5eb;
  text-align: center;
}

/* Icon list — evenly spaced columns separated by hairlines, per the design. */
.culinary__features {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.culinary__feature {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}

/* The divider is a 1px #1c1c1c line in the design; a border reproduces it and
   scales with the row instead of needing an image. */
.culinary__feature + .culinary__feature {
  border-left: 1px solid #1c1c1c;
}

.culinary__feature-icon {
  display: block;
  width: 57px;
  height: 57px;
  flex: 0 0 auto;
}

.culinary__feature-text {
  font-family: 'pp-hatton', Georgia, 'Times New Roman', serif;
  font-weight: 200;
  font-size: 1.5rem;
  line-height: normal;
  color: #1c1c1c;
}

/* Optional CTA. The section sits on cream, so this uses the design's on-light
   button (teal fill, cream label). */
.culinary__btn.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  background-color: #006d8f;
  border: 0;
  border-radius: 0;
  font-family: 'gesta', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 25px;
  letter-spacing: 0.266px;
  text-transform: capitalize;
  white-space: nowrap;
  color: #fff5eb;
  box-shadow: none;
}

.culinary__btn.btn.btn-primary:hover,
.culinary__btn.btn.btn-primary:focus {
  background-color: #005775;
  color: #fff5eb;
}

.culinary__btn.btn.btn-primary .icon {
  display: inline-flex;
  width: 14px;
  height: 11px;
  margin: 0;
  padding: 0;
}

.culinary__btn.btn.btn-primary .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 991px) {
  .culinary {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .culinary__inner {
    gap: 1.5rem;
  }

  .culinary__card-caption,
  .culinary__feature-text {
    font-size: 1.25rem;
  }

  .culinary__feature {
    padding: 0 12px;
  }
}

/* Mobile: the four-across icon row has no room, so it becomes two columns with
   the hairlines redrawn to suit the grid. */
@media (max-width: 767px) {
  .culinary__cards:not(.slick-initialized) {
    grid-template-columns: 1fr;
  }

  .culinary__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }

  .culinary__feature {
    padding: 0 10px;
  }

  .culinary__feature + .culinary__feature {
    border-left: 0;
  }

  .culinary__feature:nth-child(even) {
    border-left: 1px solid #1c1c1c;
  }
}

@media (max-width: 420px) {
  .culinary__features {
    grid-template-columns: 1fr;
  }

  .culinary__feature:nth-child(even) {
    border-left: 0;
  }
}

/* Slick carousel — see culinary.php for when it is initialised */
.culinary__cards.slick-initialized {
  position: relative;
}

/* Slick has no gap of its own, so pad each slide and pull the track back by the
   same amount to reproduce the grid's 30px spacing. */
.culinary__cards .slick-list {
  margin: 0 -15px;
}

.culinary__cards .slick-track {
  display: flex;
}

.culinary__cards .slick-slide {
  height: auto;
  padding: 0 15px;
}

.culinary__cards .slick-slide > div {
  height: 100%;
}

/* One card per slide on mobile, so it should run full width. */
@media (max-width: 767px) {
  .culinary__cards .slick-list {
    margin: 0;
  }

  .culinary__cards .slick-slide {
    padding: 0;
  }
}

.culinary__cards .slick-dots {
  position: static;
  margin: 1rem 0 0;
  padding: 0;
  line-height: 0;
}

.culinary__cards .slick-dots li button:before {
  color: #006d8f;
  opacity: 0.35;
  font-size: 8px;
}

.culinary__cards .slick-dots li.slick-active button:before {
  color: #006d8f;
  opacity: 1;
}

.culinary__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  background-color: #fff5eb;
  border: 0;
  color: #006d8f;
}

.culinary__nav--prev {
  left: 10px;
}

.culinary__nav--next {
  right: 10px;
}

.culinary__nav:hover,
.culinary__nav:focus {
  background-color: #006d8f;
  color: #fff5eb;
}

.culinary__nav.slick-disabled {
  opacity: 0.4;
  pointer-events: none;
}
