/* ============================================================
   Zola's Jerk Marinade — Home Page Styles
   ============================================================ */

/* ---- Welcome / intro section ---- */
.jm-intro {
  padding: var(--section-padding);
  background: var(--jm-ember);
}

.jm-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.jm-intro__content .section-title {
  margin-bottom: 1.25rem;
}

.jm-intro__content p {
  color: var(--jm-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.jm-intro__content p:last-of-type {
  margin-bottom: 0;
}

.jm-intro__visual img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

/* ---- Video section ---- */
.jm-video {
  padding: var(--section-padding);
  background: var(--jm-charcoal);
  text-align: center;
}

.jm-video__header {
  margin-bottom: 3rem;
}

.jm-video__frame {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--jm-border);
  aspect-ratio: 16 / 9;
  background: var(--jm-card);
}

.jm-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Cooking section ---- */
.jm-cooking {
  padding: var(--section-padding);
  background: var(--jm-ember);
}

.jm-cooking__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}

.jm-cooking__content .section-title {
  margin-bottom: 1.25rem;
}

.jm-cooking__content p {
  color: var(--jm-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.jm-cooking__visual img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* ---- Product info section ---- */
.jm-product {
  padding: var(--section-padding);
  background: var(--jm-charcoal);
}

.jm-product__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.jm-product__visual img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.jm-product__content .section-title {
  margin-bottom: 1.25rem;
}

.jm-product__content p {
  color: var(--jm-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.jm-product__content p:last-of-type {
  margin-bottom: 2rem;
}

/* Heat levels badge row */
.jm-heat-levels {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.jm-heat-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  color: var(--jm-text);
}

.jm-heat-badge i {
  color: var(--jm-primary);
}

.jm-heat-badge--mild i   { color: #7dbd5e; }
.jm-heat-badge--medium i { color: var(--jm-primary); }
.jm-heat-badge--hot i    { color: #e04040; }

/* ---- Features strip ---- */
.jm-features {
  padding: var(--section-padding);
  background: var(--jm-ember);
}

.jm-features__header {
  text-align: center;
  margin-bottom: 3rem;
}

.jm-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.jm-feature-card {
  background: var(--jm-card);
  border: 1px solid var(--jm-border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.jm-feature-card:hover {
  border-color: var(--jm-primary);
  transform: translateY(-3px);
}

.jm-feature-card__icon {
  font-size: 2rem;
  color: var(--jm-primary);
  margin-bottom: 1rem;
}

.jm-feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--jm-text);
  margin-bottom: .5rem;
}

.jm-feature-card__desc {
  font-size: .88rem;
  color: var(--jm-text-muted);
  line-height: 1.65;
}

/* ---- Responsive ---- */
@media (hover: none) {
  .jm-feature-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .jm-intro__grid,
  .jm-cooking__grid,
  .jm-product__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .jm-cooking__grid {
    direction: ltr;
  }

  /* Reverse visual/text order on mobile for visual variety */
  .jm-product__visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .jm-intro,
  .jm-video,
  .jm-cooking,
  .jm-product,
  .jm-features {
    padding: 4rem 1.25rem;
  }

  .jm-heat-levels {
    flex-direction: column;
  }
}
