/* ============================================================
   AGROPERFECT — Crop Program page
   Extends the homepage system (styles.css). Processing Potato.
   ============================================================ */

/* Remove the short rule before eyebrow kickers on this page */
.eyebrow::before { display: none; }

/* ----------------------------------------------------------
   PROGRAM HERO
   ---------------------------------------------------------- */
.phero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--forest-night);
}
.phero__bg {
  position: absolute; inset: 0;
  background-color: #16314F;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.phero__scrim {
  position: absolute; inset: 0;
  opacity: var(--hero-scrim, 0.84);
  background:
    linear-gradient(180deg, rgba(16,40,68,.5) 0%, rgba(16,40,68,.12) 30%, rgba(16,40,68,.9) 100%),
    linear-gradient(90deg, rgba(16,40,68,.84) 0%, rgba(16,40,68,.08) 70%);
}
.phero__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding: clamp(116px, 16vh, 168px) var(--gutter) clamp(48px, 6vw, 92px);
}
.phero__crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(237,239,230,.66);
  display: flex; align-items: center; gap: .7em; flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.phero__crumb a { color: var(--gold-soft); transition: color .2s; }
.phero__crumb a:hover { color: #fff; }
.phero__crumb i { width: 14px; height: 14px; opacity: .6; }
.phero h1 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 400; letter-spacing: -0.028em;
  line-height: 1.08;
  max-width: 18ch; color: #fff;
}
.phero h1 em { font-style: italic; color: var(--gold-soft); }
.phero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.55;
  color: rgba(237,239,230,.9); max-width: 60ch; text-wrap: pretty;
}

/* Jump-link rail */
.jumps {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 2.2rem;
}
.jumps a {
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: .06em;
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.26);
  color: #EDEFE6;
  display: inline-flex; align-items: center; gap: .55em;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.jumps a span { color: var(--gold-soft); }
.jumps a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }

/* ----------------------------------------------------------
   OVERVIEW  (intro + at-a-glance aside)
   ---------------------------------------------------------- */
.ov-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.ov-body p { font-size: 1.16rem; line-height: 1.62; color: var(--ink-soft); max-width: 54ch; }
.ov-body p + p { margin-top: 1.2rem; }
.ov-body .lead-1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.32; font-weight: 400; letter-spacing: -.01em;
  color: var(--ink); max-width: 24ch;
  margin: 0 0 1.8rem;
}
.ov-body .lead-1 em { font-style: italic; color: var(--forest); }

/* Right column: glance card */
.glance {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  position: sticky; top: 96px;
}
.glance__title {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .6em;
}
.glance__title::before { content:""; width: 20px; height: 1px; background: var(--gold); }
.glance__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.glance__row:first-of-type { border-top: 0; }
.glance__k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap; }
.glance__v { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); text-align: right; line-height: 1.25; }
.glance__v small { font-family: var(--font-sans); font-size: 0.82rem; color: var(--ink-soft); display: block; margin-top: 2px; }

/* ----------------------------------------------------------
   STAT CALLOUTS
   ---------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.fact { background: var(--paper); padding: clamp(26px, 3vw, 40px) clamp(20px,2.4vw,32px); }
.fact__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 400; line-height: 1;
  color: var(--forest);
}
.fact__num .u { color: var(--sage); }
.fact__label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-top: .9rem; line-height: 1.45;
}

/* ----------------------------------------------------------
   SEASON ROADMAP  (unified stage timeline)
   ---------------------------------------------------------- */
.roadmap { margin-top: clamp(40px, 5vw, 64px); }

.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: clamp(28px,3vw,40px); }
.legend__item {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .04em;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: .6em;
}
.legend__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.legend__dot--nut { background: var(--green); }
.legend__dot--pro { background: var(--forest); }

.stage {
  display: grid;
  grid-template-columns: minmax(210px, 270px) 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding-block: clamp(32px, 3.6vw, 52px);
  border-top: 1px solid var(--line);
}
.stage:last-child { border-bottom: 1px solid var(--line); }

.stage__head { position: relative; }
.stage__idx {
  font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: .1em;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .7em;
  margin-bottom: 1rem;
}
.stage__idx::before {
  content:""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); flex: none;
  box-shadow: 0 0 0 4px rgba(185,212,50,.18);
}
.stage__name { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.08; }
.stage__win {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); margin-top: .9rem;
  display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px;
}
.stage__note {
  font-size: 0.96rem; color: var(--ink-soft); line-height: 1.5; margin-top: 1.1rem; max-width: 32ch;
}

.stage__tracks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 40px);
}
.track__label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.track__label .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.track--nut .track__label { color: var(--green); }
.track--nut .dot { background: var(--green); }
.track--pro .track__label { color: var(--forest); }
.track--pro .dot { background: var(--forest); }

.prod { padding: 11px 0; }
.prod + .prod { border-top: 1px dashed var(--line-soft); }
.prod__name {
  font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.3;
  display: block;
}
.prod__name .opt { color: var(--ink-faint); font-weight: 500; font-style: italic; }
/* Inline links from product names to their catalog pages */
.prod__link {
  color: inherit; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.prod__link:hover { color: var(--forest); text-decoration-color: var(--forest); }
.threat__managed .prod__link { color: var(--forest-deep); }
.threat__managed .prod__link:hover { color: var(--forest); }
.prod__note { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; display: block; }
.prod__branch {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); background: var(--paper-deep);
  padding: 2px 7px; border-radius: 3px; margin-right: 7px;
}
.track__empty { font-size: 0.92rem; color: var(--ink-faint); font-style: italic; line-height: 1.5; padding: 11px 0; }

/* Inline callout (e.g. stop urea) */
.stage__flag {
  grid-column: 2;
  margin-top: 18px;
  display: flex; align-items: flex-start; gap: .7em;
  font-size: 0.9rem; color: var(--forest-deep);
  background: rgba(43,93,153,.06);
  border-left: 2px solid var(--forest);
  padding: 11px 14px; border-radius: 0 var(--radius) var(--radius) 0;
}
.stage__flag i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--forest); }

/* ----------------------------------------------------------
   STRATEGY SPLIT (nutrition vs protection philosophy)
   ---------------------------------------------------------- */
.strat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.strat__card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex; flex-direction: column;
}
.strat__card--nut { border-top: 3px solid var(--green); }
.strat__card--pro { border-top: 3px solid var(--forest); }
.strat__media { height: clamp(170px, 20vw, 230px); }
.strat__body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; flex: 1; }
.strat__kick {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
}
.strat__card--nut .strat__kick { color: var(--green); }
.strat__card--pro .strat__kick { color: var(--forest); }
.strat__card h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); font-weight: 500; margin-bottom: .9rem; }
.strat__card p { color: var(--ink-soft); line-height: 1.58; margin: 0; }

/* ----------------------------------------------------------
   EXPECTED RESULTS
   ---------------------------------------------------------- */
.results {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(40px, 5vw, 64px);
}
.result {
  display: flex; flex-direction: column;
}
.result__num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em;
  color: var(--gold-soft); padding-top: 16px; padding-bottom: 16px;
  border-top: 1px solid var(--line-dark); margin-bottom: 18px;
}
.result__icon { color: var(--gold-soft); margin-bottom: 16px; }
.result__icon svg { width: 26px; height: 26px; }
.result p { font-size: 1rem; color: rgba(237,239,230,.82); line-height: 1.5; margin: 0; }

/* ----------------------------------------------------------
   RELATED PROGRAMS
   ---------------------------------------------------------- */
.related {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: clamp(36px, 4vw, 56px);
}
.relcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 14px; min-height: 168px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.relcard:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(18,44,28,.5); border-color: var(--line-strong); }
.relcard__idx { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .1em; color: var(--ink-faint); }
.relcard__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.relcard__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
}
.relcard__tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--forest); }
.relcard__arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.relcard__arrow svg { width: 15px; height: 15px; }
.relcard:hover .relcard__arrow { background: var(--gold); border-color: var(--gold); color: #16263D; transform: translateX(3px); }

/* ----------------------------------------------------------
   PHOTO BAND  (full-width thematic image)
   ---------------------------------------------------------- */
.photoband {
  position: relative;
  min-height: clamp(360px, 46vw, 540px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--forest-night);
  color: #fff;
}
.photoband__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.photoband__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,40,68,.2) 0%, rgba(16,40,68,.1) 40%, rgba(16,40,68,.9) 100%),
    linear-gradient(90deg, rgba(16,40,68,.8) 0%, rgba(16,40,68,.06) 64%);
}
.photoband__inner {
  position: relative; width: 100%;
  padding-block: clamp(40px, 5vw, 72px);
}
.photoband__inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.02em;
  color: #fff; max-width: 18ch;
}
.photoband__inner h2 em { font-style: italic; color: var(--gold-soft); }
.photoband__inner p {
  margin-top: 1.2rem; font-size: clamp(1.02rem, 1.5vw, 1.25rem); line-height: 1.55;
  color: rgba(237,239,230,.9); max-width: 54ch; text-wrap: pretty;
}

/* ----------------------------------------------------------
   PESTS & DISEASES
   ---------------------------------------------------------- */
.threats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 26px);
  margin-top: clamp(36px, 4vw, 56px);
}
.threat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.threat__img {
  width: 100%; height: clamp(180px, 18vw, 220px); display: block;
  background: var(--paper-deep); border-bottom: 1px solid var(--line);
}
.threat__body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.threat__tag {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; align-self: flex-start; margin-bottom: 1rem;
}
.threat__tag--disease { color: var(--forest); background: rgba(43,93,153,.1); }
.threat__tag--soil    { color: #8a5a2b; background: rgba(138,90,43,.12); }
.threat__tag--insect  { color: var(--green); background: rgba(44,140,67,.12); }
.threat__tag--weed    { color: #6c7a1e; background: rgba(108,122,30,.14); }
.threat h3 { font-size: 1.42rem; font-weight: 500; line-height: 1.12; }
.threat__sci { font-style: italic; color: var(--ink-faint); font-size: 0.95rem; margin: .35rem 0 0; }
.threat__desc { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.5; margin: 1rem 0 1.4rem; }
.threat__managed {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: 0.92rem; color: var(--ink); line-height: 1.45;
}
.threat__managed span {
  display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px;
}
.threat__managed strong { font-weight: 600; color: var(--forest-deep); }

.threat-note {
  margin-top: clamp(22px, 2.5vw, 32px);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .04em;
  color: var(--ink-faint); line-height: 1.5;
  display: flex; align-items: center; gap: .6em;
}
.threat-note i { width: 15px; height: 15px; flex: none; }

/* ----------------------------------------------------------
   CLOSING CTA  (photographic)
   ---------------------------------------------------------- */
.closer {
  position: relative; overflow: hidden;
  background: var(--forest-night); color: #fff;
  text-align: center;
}
.closer__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.closer__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,40,68,.78) 0%, rgba(16,40,68,.6) 50%, rgba(16,40,68,.86) 100%);
}
.closer__inner {
  position: relative; max-width: 800px; margin-inline: auto;
  padding-block: clamp(72px, 9vw, 130px);
}
.closer .eyebrow { justify-content: center; }
.closer h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -.025em; color: #fff; }
.closer p { font-size: 1.18rem; color: rgba(237,239,230,.88); max-width: 50ch; margin: 1.4rem auto 0; line-height: 1.55; }
.closer .cta__btns { justify-content: center; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .threats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .ov-grid { grid-template-columns: 1fr; }
  .glance { position: static; }
  .strat { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 22px; }
  .stage__note { max-width: none; }
  .stage__flag { grid-column: 1; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .threats { grid-template-columns: 1fr; }
  .stage__tracks { grid-template-columns: 1fr; gap: 24px; }
  .phero { min-height: 82vh; }
}

/* Short / landscape viewports — keep hero clear of the fixed header */
@media (max-height: 720px) {
  .phero { min-height: 100vh; }
  .phero__inner { padding-top: clamp(82px, 12vh, 116px); padding-bottom: clamp(28px, 4vh, 56px); }
  .phero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
  .phero__sub { font-size: 1.02rem; margin-top: 1.1rem; }
  .jumps { margin-top: 1.5rem; }
}
