/*
 * ╔══════════════════════════════════════════════════════════════════════╗
 * ║  JFT AGRO OVERSEAS — MASTER DESIGN SYSTEM  v2.0                    ║
 * ║  Include this file in EVERY page's <head> after Google Fonts        ║
 * ║  <link rel="stylesheet" href="jft-design-system.css">              ║
 * ╚══════════════════════════════════════════════════════════════════════╝
 */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Colors */
  --green:       #4e8c3e;
  --green-dark:  #326127;
  --green-light: #6aad55;
  --navy:        #1a3c34;
  --navy-dark:   #0d1f1b;
  --navy-light:  #2c5148;
  --gold:        #eebf45;
  --gold-light:  #f7ca5e;
  --gold-dark:   #b88d14;
  --cream:       #fdfbf7;
  --border:      rgba(26,60,52,.1);

  /* Typography */
  --ff-h: 'Merriweather', serif;
  --ff-s: 'Montserrat', sans-serif;
  --ff-b: 'Lato', sans-serif;

  /* Easing */
  --ease:     cubic-bezier(.165,.84,.44,1);
  --ease-out: cubic-bezier(.2,.8,.2,1);

  /* Spacing */
  --container-max:  1360px;
  --container-pad:  clamp(20px, 5vw, 55px);
  --section-pad:    clamp(70px, 9vw, 130px);
}

/* ── 2. RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 175px; overflow-x: hidden; scrollbar-gutter: stable; }
body { margin: 0; padding: 0; font-family: var(--ff-b); color: #4a4a4a; background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: var(--ff-h); margin: 0; color: var(--navy); letter-spacing: -.5px; }
p { line-height: 1.8; margin-bottom: 1.4rem; font-size: clamp(1rem,1.5vw,1.1rem); color: #5c5c5c; }
a { text-decoration: none; color: inherit; transition: .4s var(--ease); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ── 3. LAYOUT UTILITIES ───────────────────────────────────────────────── */
.jft-wide-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 5;
}
.section-padding { padding: var(--section-pad) 0; }
.text-center { text-align: center; }
#header-placeholder { min-height: 80px; display: block; }
#footer-placeholder  { min-height: 400px; display: block; background: var(--navy); }

/* ── 4. PROGRESS BAR ───────────────────────────────────────────────────── */
#page-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  z-index: 10000; transition: width .1s;
  box-shadow: 0 2px 10px rgba(238,191,69,.5);
}

/* ── 5. TYPOGRAPHY SYSTEM ─────────────────────────────────────────────── */
.brand-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-s); font-size: .75rem; font-weight: 800;
  color: var(--green); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 20px;
  background: rgba(78,140,62,.08); padding: 10px 22px;
  border-radius: 50px; border: 1px solid rgba(78,140,62,.2);
  backdrop-filter: blur(5px);
}
.brand-tag-gold  { background: rgba(238,191,69,.1); color: var(--gold-dark); border-color: rgba(238,191,69,.3); }
.brand-tag-white { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); }

.section-title {
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 900; line-height: 1.15; color: var(--navy);
}
.section-title span {
  color: var(--green); position: relative; display: inline-block; z-index: 1;
}
.section-title span::after {
  content: ''; position: absolute; bottom: 6px; left: 0;
  width: 100%; height: 8px;
  background: var(--gold); opacity: .3; z-index: -1; border-radius: 2px;
}
.section-desc {
  font-size: clamp(1rem,1.5vw,1.12rem); margin-top: 20px;
  color: #6b6b6b; line-height: 1.85;
}
.section-header { margin-bottom: clamp(40px,6vw,70px); }
.center-header  { text-align: center; margin-left: auto; margin-right: auto; max-width: 800px; }

.gold-text {
  background: linear-gradient(135deg, #f7ca5e, #eebf45, #b88d14);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 900;
}

/* ── 6. BUTTONS ───────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; padding: 17px 42px; border-radius: 50px;
  font-family: var(--ff-s); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .82rem; border: none; cursor: pointer;
  transition: .4s var(--ease); box-shadow: 0 10px 30px rgba(78,140,62,.3);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(78,140,62,.4); background: linear-gradient(135deg, var(--green-light), var(--green)); }

.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,.65);
  color: #fff; padding: 15px 40px; border-radius: 50px;
  font-family: var(--ff-s); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .82rem; cursor: pointer;
  transition: .4s var(--ease); display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-4px); }

.btn-outline-navy {
  background: transparent; border: 2px solid rgba(26,60,52,.3);
  color: var(--navy); padding: 15px 38px; border-radius: 50px;
  font-family: var(--ff-s); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .82rem; cursor: pointer;
  transition: .4s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; transform: translateY(-4px); }

.btn-gold {
  background: var(--gold); color: var(--navy); padding: 17px 42px;
  border-radius: 50px; font-family: var(--ff-s); font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem;
  border: none; cursor: pointer; transition: .4s var(--ease);
  box-shadow: 0 10px 30px rgba(238,191,69,.35);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-gold:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(238,191,69,.5); background: var(--gold-light); }

/* ── 7. SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(45px);  transition: 1s var(--ease-out); }
.reveal-left  { opacity: 0; transform: translateX(-55px); transition: 1s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(55px);  transition: 1s var(--ease-out); }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }
.d1{transition-delay:.15s} .d2{transition-delay:.3s} .d3{transition-delay:.45s} .d4{transition-delay:.6s}

/* ── 8. WHATSAPP FAB ──────────────────────────────────────────────────── */
.wa-fab {
  position: fixed; bottom: 95px; right: 28px;
  width: 56px; height: 56px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
  z-index: 998; animation: waPulse 2.5s ease-in-out infinite;
  transition: .3s;
}
.wa-fab:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 8px 30px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.08); }
}

/* ── 9. BACK TO TOP ───────────────────────────────────────────────────── */
#backToTop {
  position: fixed; bottom: 30px; right: 30px;
  width: 52px; height: 52px; background: var(--gold); color: var(--navy);
  border: none; border-radius: 50%; cursor: pointer; z-index: 999;
  box-shadow: 0 8px 25px rgba(238,191,69,.4);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transition: .4s var(--ease); transform: translateY(15px);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--green); color: #fff; transform: translateY(-4px); }

/* ── 10. INNER PAGE HERO BANNER ───────────────────────────────────────── */
.jft-page-hero {
  position: relative; min-height: 52vh; min-height: clamp(340px,52vh,520px);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: flex; align-items: flex-end; overflow: hidden;
  padding-top: 130px; padding-bottom: 60px;
}
.jft-page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.jft-page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.jft-page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .12; z-index: 0;
}
.jft-page-hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(78,140,62,.15), transparent 70%);
  z-index: 0; pointer-events: none;
}
.jft-page-hero-gold-stripe {
  position: absolute; top: 0; right: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  z-index: 8; opacity: .5;
}
.jft-page-hero-inner {
  position: relative; z-index: 10; width: 100%;
}
.jft-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-s); font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.jft-breadcrumb a { color: rgba(255,255,255,.4); transition: .3s; }
.jft-breadcrumb a:hover { color: var(--gold); }
.jft-breadcrumb i { font-size: .5rem; color: rgba(255,255,255,.25); }
.jft-page-hero h1 {
  font-size: clamp(2.2rem,5.5vw,4.2rem); font-weight: 900; line-height: 1.1;
  color: #fff; letter-spacing: -1.5px; margin: 0 0 20px;
}
.jft-page-hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 300; }
.jft-page-hero h1 span::after { display: none; }
.jft-page-hero-sub {
  font-size: clamp(1rem,1.5vw,1.15rem);
  color: rgba(215,232,225,.75); line-height: 1.8; max-width: 600px;
  margin-bottom: 38px; font-weight: 300;
}
.jft-page-hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.jft-hero-tag {
  font-family: var(--ff-s); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); background: rgba(238,191,69,.12);
  border: 1px solid rgba(238,191,69,.25); padding: 8px 16px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 8px;
}
.jft-hero-stat {
  font-family: var(--ff-s); font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 7px;
}
.jft-hero-stat strong { color: #fff; }

/* ── 11. DARK SECTION PATTERN ─────────────────────────────────────────── */
.jft-dark-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  overflow: hidden;
}
.jft-dark-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.jft-dark-section .section-title { color: #fff; }
.jft-dark-section .section-title span::after { background: var(--green); opacity: .5; }
.jft-dark-section .section-desc { color: rgba(255,255,255,.5); }
.jft-dark-section .brand-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }

/* ── 12. QUOTE CTA BLOCK ──────────────────────────────────────────────── */
.jft-cta-block {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: clamp(60px,8vw,110px) 0;
  position: relative; overflow: hidden; text-align: center;
}
.jft-cta-block::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(78,140,62,.15), transparent 70%);
  pointer-events: none;
}
.jft-cta-block .jft-wide-container { position: relative; z-index: 2; }
.cta-eyebrow {
  font-family: var(--ff-s); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.cta-eyebrow::before, .cta-eyebrow::after {
  content: ''; flex: 1; max-width: 60px; height: 1px; background: rgba(238,191,69,.3);
}
.cta-block-title {
  font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 20px;
}
.cta-block-title em { color: var(--gold-light); font-style: italic; font-weight: 300; }
.cta-block-desc { font-size: 1.1rem; color: rgba(215,232,225,.75); max-width: 560px; margin: 0 auto 40px; line-height: 1.8; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-trust-row {
  margin-top: 32px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.cta-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-s); font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px;
}
.cta-trust-item i { color: var(--gold); opacity: .7; }

/* ── 13. SPEC TABLE SECTION ───────────────────────────────────────────── */
.jft-spec-section { background: var(--cream); }
.jft-spec-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(26,60,52,.07);
}
.jft-spec-table td {
  padding: 16px 24px; border-bottom: 1px solid rgba(26,60,52,.07); font-size: .95rem;
}
.jft-spec-table tr:last-child td { border-bottom: none; }
.jft-spec-table td:first-child {
  font-family: var(--ff-s); font-weight: 700; color: var(--navy);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(26,60,52,.03); width: 38%; border-right: 1px solid rgba(26,60,52,.07);
}
.jft-spec-table td:last-child { color: #555; font-family: var(--ff-b); }
.jft-spec-table .spec-highlight td { background: rgba(238,191,69,.06); }
.jft-spec-table .spec-highlight td:first-child { background: rgba(238,191,69,.1); }

/* ── 14. INFO CARDS (logistics, certifications, etc.) ─────────────────── */
.jft-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.jft-info-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 28px; text-align: center; transition: .45s; position: relative; overflow: hidden;
}
.jft-info-card::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--gold); transition: .5s;
}
.jft-info-card:hover { transform: translateY(-8px); border-color: rgba(238,191,69,.4); box-shadow: 0 25px 55px rgba(26,60,52,.1); }
.jft-info-card:hover::after { width: 75%; }
.jft-info-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 18px; display: block; }
.jft-info-label { font-family: var(--ff-s); font-size: .72rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.jft-info-value { font-family: var(--ff-h); font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.jft-info-sub { font-size: .82rem; color: #999; margin: 0; }

/* ── 15. DARK INFO CARDS (for dark sections) ──────────────────────────── */
.jft-dark-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 36px 28px; transition: .45s; position: relative; overflow: hidden;
}
.jft-dark-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--gold); transition: .5s; }
.jft-dark-card:hover { background: rgba(255,255,255,.08); border-color: rgba(238,191,69,.4); transform: translateY(-7px); box-shadow: 0 25px 50px rgba(0,0,0,.25); }
.jft-dark-card:hover::after { width: 100%; }
.jft-dark-card-icon { width: 52px; height: 52px; background: rgba(238,191,69,.1); border: 1px solid rgba(238,191,69,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: .4s; }
.jft-dark-card:hover .jft-dark-card-icon { background: var(--gold); border-color: var(--gold); }
.jft-dark-card-icon i { font-size: 1.3rem; color: var(--gold); transition: .4s; }
.jft-dark-card:hover .jft-dark-card-icon i { color: var(--navy); }
.jft-dark-card h3 { font-family: var(--ff-h); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.jft-dark-card p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; margin: 0; }

/* ── 16. GOLD DIVIDER LINE ────────────────────────────────────────────── */
.jft-gold-line { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── 17. RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jft-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .jft-info-grid { grid-template-columns: 1fr; }
  .jft-page-hero { padding-top: 160px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* Hide number input spinners (cross-browser) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
