/* Promise of Trust + Story strip - compact sections for the home page */
/* Loaded after style.css, uses the site's theme variables */

/* ============================================
   PERFORMANCE
   ============================================ */
.section,
.promise-split,
.story-split,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.offer-track {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .offer-track { animation: none; }
  .promise-track,
  .festive-slider-track { transition: none; }
}

/* ---------- Tighter spacing around neighbouring sections ---------- */
.ingredients-mini-section + .section {
  padding: 48px 0 52px;
}

.ingredients-mini-section + .section .section-title {
  margin-bottom: 30px;
}

.story-split + .section {
  padding-top: 52px;
}

/* ============================================
   PROMISE OF TRUST (content left, banner right)
   ============================================ */
.promise-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--light-bg);
  overflow: hidden;
}

.promise-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 2vw;
}

.promise-content .section-title.promise-title {
  text-align: center;
  margin-bottom: 16px;
}

.promise-content .section-title.promise-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.9vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: #9b1c1c;
  margin-bottom: 0;
}

.promise-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.promise-icon {
  flex: none;
  width: 46px;
  height: 46px;
  color: var(--primary-orange);
}

.promise-text h3 {
  color: var(--dark-text);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 3px;
}

.promise-text p {
  color: var(--dark-text);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 270px;
  margin: 0 auto;
}

.promise-tagline {
  margin-top: 14px;
  text-align: center;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--primary-maroon);
}

.promise-slider {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  aspect-ratio: 21 / 9;
  background-color: #f6e6d2;
}

.promise-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.8s ease;
  will-change: transform;
}

.promise-slide {
  flex: 0 0 100%;
  height: 100%;
}

.promise-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promise-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.promise-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.promise-dot.is-active {
  background-color: var(--primary-maroon);
}

/* ============================================
   STORY STRIP - Rooted in Tradition
   Three parts in a row:  PHOTO | TEXT | STEPS
   Photo + text share a light ivory background.
   The steps panel has its own warmer tint and a gold divider.
   ============================================ */
.story-split {
  display: grid;
  grid-template-columns: 24% 32% 44%;
  align-items: stretch;
  margin-top: 40px;
  background: linear-gradient(90deg, #fffdf9 0%, #fdf8f1 100%);
  overflow: hidden;
}

/* Left: photo that fades softly into the text area */
.story-photo {
  position: relative;
  min-height: 300px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 60%, transparent 100%);
}

.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

/* Middle: text */
.story-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 32px 1.5vw 32px 0;
}

.story-content h2 {
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
  color: var(--primary-maroon);
  line-height: 1.25;
  margin-bottom: 14px;
}

.story-content p {
  font-size: clamp(0.88rem, 0.92vw, 1rem);
  line-height: 1.7;
  color: var(--muted-text);
  margin: 0 0 12px 0;
}

.story-content .ingredients-btn {
  margin-top: 8px;
}

/* Right: Source -> Select -> Pack panel, clearly separated */
.story-steps {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 2.5vw;
  text-align: center;
  background: linear-gradient(180deg, #f8e9d4 0%, #f3dfc3 100%);
  border-left: 3px solid #d9ad57;
  box-shadow: inset 14px 0 18px -14px rgba(139, 13, 13, 0.14);
}

.story-steps-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: #9b1c1c;
  margin-bottom: 20px;
}

.story-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.story-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-step-photo {
  width: clamp(72px, 7.2vw, 128px);
  height: clamp(72px, 7.2vw, 128px);
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #d9ad57, var(--soft-shadow);
  margin-bottom: 12px;
}

.story-step-num {
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-orange);
  margin-bottom: 4px;
}

.story-step h4 {
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  color: var(--primary-maroon);
  margin-bottom: 4px;
}

.story-step p {
  font-size: clamp(0.8rem, 0.82vw, 0.92rem);
  line-height: 1.5;
  color: #5a4a3f;
  max-width: 190px;
}

.story-step-arrow {
  flex: none;
  align-self: flex-start;
  margin-top: clamp(30px, 3vw, 54px);
  font-size: 1.5rem;
  line-height: 1;
  color: #c9962f;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .story-split {
    display: block;
  }
  .story-photo {
    min-height: 0;
    height: 240px;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .story-content {
    padding: 8px 6vw 28px;
    text-align: center;
  }
  .story-content p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
  }
  .story-steps {
    padding: 32px 6vw 36px;
    border-left: 0;
    border-top: 3px solid #d9ad57;
    box-shadow: none;
  }
  .story-steps-title {
    font-size: 1.5rem;
  }
  .story-step-photo {
    width: 104px;
    height: 104px;
  }
  .story-step p {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .promise-split {
    grid-template-columns: 1fr;
  }
  .promise-content { padding: 32px 5vw; }
  .promise-text p { font-size: 0.92rem; }
  .promise-slider {
    width: 100%;
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 768px) {
  .ingredients-mini-section + .section {
    padding: 36px 0 40px;
  }
  .ingredients-mini-section + .section .section-title {
    margin-bottom: 24px;
  }
  .story-split {
    margin-top: 28px;
  }
  .story-split + .section {
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .promise-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-steps-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .story-step-arrow {
    transform: rotate(90deg);
    margin-top: 0;
    align-self: center;
  }
}
