/* ==========================================================================
   Home  (front-page.php)
   ========================================================================== */

.home-wrap { max-width: var(--container-shop); margin: 0 auto; padding: 0 var(--pad-x); }
.home-section { padding: 112px 0; }
.home-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.home-copy { font-size: 16px; line-height: 1.65; color: var(--c-body-2); max-width: 520px; }
.home-copy + .home-copy { margin-top: 14px; }
@media (max-width: 767px) { .home-section { padding: 72px 0; } }

/* ---------- Hero (video) ---------- */
.home-hero {
  position: relative;
  min-height: 560px;
  height: calc(100svh - var(--header-h));
  max-height: 860px;
  overflow: hidden;
  background: var(--c-forest-deep);
  color: var(--c-cream);
  display: flex;
  flex-direction: column;
}
.home-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 46, 22, .82) 0%, rgba(26, 46, 22, .55) 45%, rgba(26, 46, 22, .1) 100%),
    linear-gradient(0deg, rgba(26, 46, 22, .7) 0%, rgba(26, 46, 22, 0) 35%);
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-top: 40px;
}
.home-hero .eyebrow { color: var(--c-butter); }
.home-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: .98;
  text-transform: uppercase;
  max-width: 15ch;
  text-wrap: balance;
}
.home-hero__lead { font-size: 17px; line-height: 1.6; max-width: 440px; color: rgba(251, 247, 238, .88); }
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn--butter-fill { background: var(--c-butter); border-color: var(--c-butter); color: var(--c-forest); }
.btn--butter-fill:hover { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-forest); }
.btn--ghost-light { border-color: rgba(251, 247, 238, .7); color: var(--c-cream); }
.btn--ghost-light:hover { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-forest); }

.home-hero__bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(251, 247, 238, .2);
}
.home-hero__bar .home-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.home-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 600 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.home-hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.home-hero__facts li::before { content: ""; width: 8px; height: 11px; background: var(--c-mustard); border-radius: 999px 999px 2px 2px; }
.home-hero__facts { list-style: none; margin: 0; padding: 0; }
.video-toggle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid rgba(251, 247, 238, .5);
  border-radius: 50%;
  background: rgba(26, 46, 22, .3);
  color: var(--c-cream);
  display: inline-flex; align-items: center; justify-content: center;
}
.video-toggle:hover { background: var(--c-cream); color: var(--c-forest); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 767px) {
  .home-hero { height: calc(100svh - var(--header-h)); min-height: 520px; }
  .home-hero::after { background: linear-gradient(0deg, rgba(26, 46, 22, .88) 0%, rgba(26, 46, 22, .45) 60%, rgba(26, 46, 22, .25) 100%); }
  .home-hero__inner { justify-content: flex-end; padding-bottom: 28px; }
  .home-hero__facts li:nth-child(n+2) { display: none; }
}

/* ---------- Featured products ---------- */
.home-featured__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  margin-bottom: 40px;
}
.home-featured__intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.home-featured__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.rail { position: relative; }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 28px) / 4);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--c-forest);
  border-radius: 50%;
  background: none;
  color: var(--c-forest);
  font-size: 18px;
}
.rail__btn:hover:not(:disabled) { background: var(--c-forest); color: var(--c-cream); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.rail__progress { flex: 1; max-width: 240px; height: 2px; background: var(--c-line); position: relative; overflow: hidden; }
.rail__progress span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--c-forest); transition: left .3s, width .3s; }
@media (max-width: 1023px) { .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 2.6); gap: 20px; } }
@media (max-width: 767px) {
  .rail__track { grid-auto-columns: 68%; gap: 14px; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 4px; scroll-padding: 0 var(--pad-x); }
  .rail__nav { display: none; }
}

/* ---------- Our story ---------- */
.home-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.home-story__media { position: relative; }
.arch-img { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--c-img-bg); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.stamp {
  position: absolute;
  right: -28px;
  bottom: 48px;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--c-butter);
  color: var(--c-forest);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 46, 22, .15);
  overflow: hidden;
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tj-rotate 28s linear infinite; }
.stamp text { font: 700 10.5px var(--font-ui); letter-spacing: .22em; text-transform: uppercase; fill: var(--c-forest); }
.stamp img { width: 46px; height: auto; }
@keyframes tj-rotate { to { transform: rotate(360deg); } }
.home-story__text { display: flex; flex-direction: column; gap: 22px; }
.home-story__text .btn { align-self: flex-start; }
@media (max-width: 899px) {
  .home-story { grid-template-columns: 1fr; gap: 48px; }
  .home-story__media { max-width: 420px; }
  .stamp { right: 0; width: 108px; height: 108px; }
}

/* ---------- Craft (forest) ---------- */
.home-craft { background: var(--c-forest); color: var(--c-cream); }
.home-craft__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; }
.home-craft .eyebrow { color: var(--c-butter); }
.home-craft .home-title { color: var(--c-cream); }
.home-craft .home-copy { color: rgba(251, 247, 238, .8); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(251, 247, 238, .18); }
.step:last-child { border-bottom: 1px solid rgba(251, 247, 238, .18); }
.step__n { font: 400 30px/1 var(--font-display); color: var(--c-mustard); }
.step h3 { font: 700 12px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--c-butter); margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.6; color: rgba(251, 247, 238, .85); }
.home-craft__media .arch-img { aspect-ratio: 4 / 5; border: 10px solid rgba(251, 247, 238, .08); }
.home-craft .btn { margin-top: 32px; }
@media (max-width: 899px) {
  .home-craft__grid { grid-template-columns: 1fr; gap: 48px; }
  .home-craft__media { order: -1; max-width: 420px; }
}

/* ---------- Harvest band (full-bleed photo) ---------- */
.home-band {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: var(--c-cream);
  overflow: hidden;
}
.home-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.home-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 46, 22, .78) 0%, rgba(26, 46, 22, .35) 45%, rgba(26, 46, 22, 0) 70%), linear-gradient(0deg, rgba(26, 46, 22, .8) 0%, rgba(26, 46, 22, 0) 50%); }
.home-band .home-wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.home-band__quote { font: 400 clamp(30px, 4vw, 52px)/1.08 var(--font-display); text-transform: uppercase; max-width: 16ch; text-wrap: balance; }
.home-band .eyebrow { color: var(--c-butter); margin-bottom: 16px; }
@media (max-width: 767px) { .home-band { min-height: 520px; } .home-band .home-wrap { padding-bottom: 48px; } }

/* ---------- Gifting ---------- */
.home-gift { background: var(--c-butter); }
.home-gift__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.home-gift__text { display: flex; flex-direction: column; gap: 20px; }
.home-gift__text .home-copy { color: var(--c-body-2); }
.home-gift__text .btn { align-self: flex-start; }
.home-gift__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.home-gift .product-card__media { background: var(--c-cream); }
@media (max-width: 899px) { .home-gift__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 479px) { .home-gift__cards { gap: 14px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp svg { animation: none; }
}
