/* =========================================================
   farmers-landing.css
   Minimal overrides for for-farmers-aggregators.html
   All layout comes from landing.css — this file handles
   the farmers-page-specific visual tweaks and the custom
   3-image overlapping gallery layout.
   ========================================================= */

/* ── Seeds section: solid background with texture instead of image ── */
.fa-seeds-override {
  background-color: var(--color-green-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.22 0 0 0 0.72 0.18 0 0 0 0.58 0.08 0 0 0 0.22 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  
  /* Reset sticky layout to static flow with responsive padding */
  position: relative;
  height: auto;
  overflow: visible;
  padding: clamp(5rem, 12vh, 9rem) 0;
}

/* ── Reset text wrap position so it flows naturally ── */
.fa-seeds-override .seeds-text-wrap {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  padding-top: 0;
}

/* ── Hide vignette since we use a solid background with texture ── */
.fa-seeds-override .seeds-vignette {
  display: none;
}

/* ── Accent line inside the seeds paragraph ── */
.fa-seeds-accent {
  display: block;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--color-yellow);
}

/* ── Centered, bold and clean text layout overrides ── */
.fa-seeds-override .content-container {
  text-align: center;
}

.fa-seeds-override .seeds-headline {
  font-size: 18px;
}

.fa-seeds-override .seeds-paragraph {
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 68rem;
  margin: 0 auto;
}

/* ── Farmers Hero Layout Overrides ── */

/* Shift left side text up */
.hero-stage .hero-left {
  padding-top: calc(6vh + 4rem) !important;
  padding-bottom: 4vh !important;
}

/* Make hero relative instead of sticky, so it scrolls out of view naturally */
.hero-stage {
  height: auto !important;
  position: relative;
  z-index: 1;
}

.hero-stage .hero {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible !important;
  padding: 4rem 0;
}

/* Remove the negative margin and shadows that make sections overlap on this page */
.seeds-stage {
  margin-top: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

.statement-stage {
  margin-top: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 3;
}

/* ── Custom 3-image hero gallery ── */
.fa-hero-gallery {
  position: relative;
  width: 100%;
  height: 600px;
  display: block;
}

.fa-gallery-item {
  position: absolute;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* State when visible (triggered by JS stagger) */
.fa-gallery-item.is-visible {
  opacity: 1;
}

/* Float card wrapper (holds the actual card styles and animations) */
.fa-gallery-card-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  background-color: #f5f5f5;
  animation: heroCardFloat 6s ease-in-out infinite;
  will-change: transform;
}

/* Staggered floating animations */
.fa-gallery-item--main .fa-gallery-card-wrapper {
  animation-delay: 0s;
  animation-duration: 6s;
}

.fa-gallery-item--sub1 .fa-gallery-card-wrapper {
  animation-delay: -1.5s;
  animation-duration: 6.5s;
}

.fa-gallery-item--sub2 .fa-gallery-card-wrapper {
  animation-delay: -3.2s;
  animation-duration: 7s;
}

.fa-gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Main large, wide image (Increased height and z-index: 2) */
.fa-gallery-item--main {
  width: 100%;
  height: 440px;
  top: 10px;
  left: 0;
  z-index: 2;
}
.fa-gallery-item--main.is-visible {
  transform: translateY(0) scale(1);
}

/* Two smaller overlapping images below (Increased height to 265px, z-index: 3) */
.fa-gallery-item--sub1 {
  width: 42%;
  height: 265px;
  bottom: 15px;
  left: -2%;
  z-index: 3;
  transform: translateY(30px) scale(0.95) rotate(-4deg);
}
.fa-gallery-item--sub1.is-visible {
  transform: translateY(0) scale(1) rotate(-4deg);
}

.fa-gallery-item--sub2 {
  width: 42%;
  height: 265px;
  bottom: 30px;
  right: -2%;
  z-index: 3;
  transform: translateY(30px) scale(0.95) rotate(3deg);
}
.fa-gallery-item--sub2.is-visible {
  transform: translateY(0) scale(1) rotate(3deg);
}

/* Micro-interactions: lift on hover (smaller items get z-index: 4, main stays at z-index: 2) */
.fa-gallery-item--main:hover {
  transform: translateY(-8px) scale(1.02);
}
.fa-gallery-item--sub1:hover {
  transform: translateY(-8px) scale(1.02) rotate(-2deg);
  z-index: 4;
}
.fa-gallery-item--sub2:hover {
  transform: translateY(-8px) scale(1.02) rotate(2deg);
  z-index: 4;
}

/* Disable floating animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fa-gallery-card-wrapper {
    animation: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .fa-hero-gallery {
    height: 560px;
  }
  .fa-gallery-item--main {
    height: 380px;
  }
  .fa-gallery-item--sub1,
  .fa-gallery-item--sub2 {
    height: 220px;
    bottom: 20px;
  }
}

@media (max-width: 860px) {
  .hero-stage .hero {
    padding: 2rem 0;
  }
  .hero-stage .hero-left {
    padding-top: clamp(4rem, 8vh, 6rem) !important;
  }
  .fa-hero-gallery {
    height: 480px;
    margin-top: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .fa-gallery-item--main {
    height: 320px;
  }
  .fa-gallery-item--sub1,
  .fa-gallery-item--sub2 {
    height: 190px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .fa-hero-gallery {
    height: 380px;
  }
  .fa-gallery-item--main {
    height: 260px;
  }
  .fa-gallery-item--sub1,
  .fa-gallery-item--sub2 {
    height: 150px;
    bottom: 15px;
  }
}

/* ── Commodities Grid for Buyers Page ── */
.commodities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .commodities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .commodities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.commodity-card {
  background: #ffffff;
  border: 1px solid #e1e5e0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px -4px rgba(25, 51, 29, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.commodity-card:hover {
  transform: translateY(-4px);
  border-color: #cdd5cb;
  box-shadow: 0 12px 30px -10px rgba(25, 51, 29, 0.08);
}

.commodity-card__image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid #e1e5e0;
}

.commodity-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.commodity-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-copy);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.commodity-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  flex-grow: 1;
}

.commodity-card__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e9ece8;
  font-size: 0.95rem;
}

.commodity-card__spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.commodity-card__spec-row dt {
  font-weight: 600;
  color: #687e5c;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 90px;
}

.commodity-card__spec-row dd {
  margin: 0;
  color: var(--color-copy);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

