/* ===========================================================
   PRODUCT PAGE — The Integrated Agri-Processing Hub
   Uses the same variables, fonts and components as style.css
   =========================================================== */

/* ---------- HERO ---------- */
.prod-hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.prod-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.prod-hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 32, 26, .92) 0%, rgba(8, 32, 26, .68) 42%, rgba(8, 32, 26, .1) 75%);
}
.prod-hero-inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 60px; }
.prod-hero .eyebrow { color: var(--gold-bright); }
.prod-hero h1 {
  color: var(--white); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 400; line-height: 1.12; max-width: 14ch; margin-bottom: 20px;
}
.prod-hero-sub { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 42ch; margin-bottom: 34px; }
.prod-hero-pills { display: flex; gap: 14px; }
.prod-pill {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.05rem;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.prod-pill:hover { background: var(--green-bright); border-color: var(--green-bright); }

@media (max-width: 700px) {
  .prod-hero { min-height: 90vh; }
  .prod-hero-gradient { background: linear-gradient(180deg, rgba(8, 32, 26, .55) 0%, rgba(8, 32, 26, .9) 70%); }
  .prod-hero-inner { padding-top: 120px; padding-bottom: 48px; }
}

/* ---------- HOW IT WORKS (flow diagram) ---------- */
.prod-flow { background: var(--bg); padding: 90px 0; border-top: 1px solid var(--border); }
.flow-svg { width: 100%; height: auto; margin-top: 30px; overflow: visible; }
.flow-box { fill: var(--bg-soft); stroke: var(--border); stroke-width: 1.5; }
.flow-box--source { fill: var(--white); }
.flow-box--hub { fill: var(--green-mid); stroke: var(--green-mid); }
.flow-text {
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  fill: var(--ink); dominant-baseline: middle;
}
.flow-text--light { fill: var(--white); }
.flow-path {
  fill: none; stroke: var(--green-bright); stroke-width: 2.4;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.flow-svg.in-view .flow-path { stroke-dashoffset: 0; }

@media (max-width: 700px) {
  .flow-text { font-size: 20px; }
}

/* ---------- ENGINE SECTIONS ---------- */
.prod-engine { background: var(--bg-soft); padding: 80px 0; border-top: 1px solid var(--border); }
.prod-engine--alt { background: var(--bg); }
.prod-engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prod-engine--alt .prod-engine-grid { direction: rtl; }
.prod-engine--alt .prod-engine-grid > * { direction: ltr; }
.prod-engine-media { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.prod-engine-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.prod-engine-media:hover img { transform: scale(1.045); }
.prod-engine-num { font-family: var(--font-display); font-size: 3rem; color: var(--border); line-height: 1; display: block; margin-bottom: 10px; }
.prod-badge {
  display: inline-block; color: var(--green-mid); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--green-mid);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 16px;
}
.prod-engine-copy h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 400; margin-bottom: 16px; }
.prod-engine-lead { color: var(--ink); font-size: 1.05rem; line-height: 1.6; margin-bottom: 22px; max-width: 46ch; }
.prod-bullets { display: flex; flex-direction: column; gap: 10px; }
.prod-bullets li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.prod-bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

@media (max-width: 900px) {
  .prod-engine-grid, .prod-engine--alt .prod-engine-grid { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .prod-engine--alt .prod-engine-media { order: -1; }
}

/* ---------- TODAY / TOMORROW ---------- */
.prod-transform { background: var(--bg); padding: 90px 0; border-top: 1px solid var(--border); }
.transform-list { display: flex; flex-direction: column; margin-top: 40px; }
.transform-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.transform-row:last-child { border-bottom: 1px solid var(--border); }
.transform-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.transform-today p, .transform-tomorrow p { font-size: .98rem; line-height: 1.55; color: var(--ink); }
.transform-tomorrow .transform-label { color: var(--green-mid); }
.transform-arrow { color: var(--green-bright); font-size: 1.3rem; }
.transform-tagline {
  text-align: center; font-family: var(--font-display); font-style: italic; color: var(--green-mid);
  font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); margin-top: 44px;
}

@media (max-width: 700px) {
  .transform-row { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .transform-arrow { display: none; }
}

/* ---------- CTA ---------- */
.prod-cta { background: var(--dark-1); padding: 80px 0; text-align: center; }
.prod-cta h2 { color: var(--white); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 400; margin-bottom: 30px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.prod-cta-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.prod-cta .btn-outline { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.prod-cta .btn-outline:hover { background: var(--white); color: var(--dark-1); }
