/* =========================================================
   SunAgro — Design System
   Palette: Field Green #2F5233, Sun Gold #E8A93B, Deep Wheat #C97E2A,
            Husk Cream #F6F1E4, Soil Ink #2A2015, Sky Wash #E4EAE1
   Type: Fraunces (display) / Work Sans (body) / Space Mono (labels & data)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  --green: #2F5233;
  --green-dark: #203823;
  --gold: #E8A93B;
  --wheat: #C97E2A;
  --cream: #F6F1E4;
  --cream-2: #EFE7D3;
  --ink: #2A2015;
  --ink-soft: #5c5344;
  --sky: #E4EAE1;
  --white: #FFFDF8;
  --line: rgba(42,32,21,0.14);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', Arial, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;

  --maxw: 1200px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--display); color: var(--green-dark); margin:0 0 .5em; font-weight:600; line-height:1.15; }
p{ margin:0 0 1em; color: var(--ink-soft); }
.container{ max-width: var(--maxw); margin:0 auto; padding: 0 28px; }

:focus-visible{ outline: 3px solid var(--wheat); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wheat);
  display:flex; align-items:center; gap:10px;
  margin-bottom: 14px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background: var(--wheat); display:inline-block; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--body); font-weight:600; font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--gold); color: var(--green-dark); }
.btn-primary:hover{ background: #f0b756; transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: rgba(246,241,228,0.55); color: var(--cream); }
.btn-outline:hover{ background: rgba(246,241,228,0.12); }
.btn-dark{ background: var(--green); color: var(--cream); }
.btn-dark:hover{ background: var(--green-dark); }

/* ---------- header / nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(246,241,228,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.nav-logo{ display:flex; align-items:center; }
.nav-logo img{ height: 46px; width:auto; }
.nav-links{ display:flex; gap: 30px; align-items:center; }
.nav-links a{
  font-size: 14.5px; font-weight:600; color: var(--ink);
  position:relative; padding: 6px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: var(--wheat); transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--wheat); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-phone{ font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  .nav-links{
    position:fixed; inset: 68px 0 0 0; background: var(--cream);
    flex-direction:column; padding: 30px 28px; gap: 22px;
    transform: translateX(100%); transition: transform .25s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:24px; height:2px; background: var(--ink); display:block; }
  .nav-phone{ display:none; }
}

/* ---------- page banner (interior pages) ---------- */
.page-banner{
  position:relative; color: var(--cream);
  padding: 92px 0 64px;
  background-size: cover; background-position: center;
  overflow:hidden;
}
.page-banner::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(32,56,35,0.92) 10%, rgba(32,56,35,0.72) 55%, rgba(32,56,35,0.5) 100%);
}
.page-banner .container{ position:relative; z-index:2; }
.page-banner .eyebrow{ color: var(--gold); }
.page-banner .eyebrow::before{ background: var(--gold); }
.page-banner h1{ color: var(--white); font-size: clamp(32px,5vw,52px); max-width: 760px; }
.page-banner p.lead{ color: rgba(255,253,248,0.85); max-width: 560px; font-size:17px; }
.crumb{ font-family: var(--mono); font-size:12px; color: rgba(255,253,248,0.7); letter-spacing:1px; }
.crumb a{ color: var(--gold); }

/* ---------- hero (home) ---------- */
.hero{
  position:relative; color: var(--white);
  min-height: 92vh; display:flex; align-items:center;
  background-size: cover; background-position: center;
  overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, rgba(23,38,25,0.92) 0%, rgba(23,38,25,0.62) 48%, rgba(23,38,25,0.28) 100%);
}
.hero-content{ position:relative; z-index:2; max-width: 660px; padding: 60px 0; }
.hero h1{
  color: var(--white); font-size: clamp(38px, 6vw, 64px);
  margin-bottom: .35em;
}
.hero h1 em{ font-style: italic; color: var(--gold); }
.hero p.lead{ color: rgba(255,253,248,0.88); font-size: 18px; max-width: 480px; }
.hero-actions{ display:flex; gap:16px; margin-top: 30px; flex-wrap:wrap; }

.hero-seal{
  position:absolute; right: 60px; bottom: 50px; z-index:2;
  width: 128px; height:128px; opacity:0.92;
  animation: spin 34s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
@media (max-width: 900px){ .hero-seal{ display:none; } }

/* ---------- mandi ticker strip ---------- */
.ticker{
  background: var(--green-dark); color: var(--cream);
  overflow:hidden; white-space:nowrap; border-top:1px solid rgba(232,169,59,0.3); border-bottom:1px solid rgba(232,169,59,0.3);
}
.ticker-track{
  display:inline-flex; gap: 48px; padding: 12px 0;
  animation: ticker 32s linear infinite;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 1px;
}
.ticker-track span{ color: var(--gold); margin-right:8px; }
@keyframes ticker{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- sections ---------- */
section{ padding: 88px 0; }
.section-alt{ background: var(--sky); }
.section-dark{ background: var(--green-dark); color: var(--cream); }
.section-dark h2, .section-dark h3{ color: var(--white); }
.section-dark p{ color: rgba(246,241,228,0.78); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
h2{ font-size: clamp(28px, 3.6vw, 40px); }

/* ---------- grid helpers ---------- */
.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* ---------- stat blocks ---------- */
.stats{ display:grid; grid-template-columns: repeat(4,1fr); gap:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat{ padding: 32px 20px; text-align:center; border-left: 1px solid var(--line); }
.stat:first-child{ border-left:none; }
.stat .num{ font-family: var(--display); font-size: 42px; color: var(--green); font-weight:600; }
.stat .label{ font-family: var(--mono); font-size:11.5px; letter-spacing:1.5px; text-transform:uppercase; color: var(--ink-soft); margin-top:6px; }
@media (max-width: 760px){ .stats{ grid-template-columns: repeat(2,1fr);} .stat:nth-child(3){border-left:none;} .stat{ border-bottom:1px solid var(--line);} }

/* ---------- cards ---------- */
.card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 18px 34px rgba(42,32,21,0.1); }
.card-img{ height: 200px; overflow:hidden; }
.card-img img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.card:hover .card-img img{ transform: scale(1.06); }
.card-body{ padding: 24px; flex:1; display:flex; flex-direction:column; }
.card-tag{ font-family: var(--mono); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color: var(--wheat); margin-bottom:10px; }
.card h3{ font-size: 20px; margin-bottom:8px; }
.card-body p{ font-size: 14.5px; flex:1; }
.card-link{ font-weight:600; font-size:14px; color: var(--green); margin-top: 10px; display:inline-flex; align-items:center; gap:6px; }
.card-link .arrow{ transition: transform .2s ease; }
.card:hover .card-link .arrow{ transform: translateX(4px); }

/* ---------- split (image + text) ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.split.reverse .split-img{ order:2; }
.split-img{ border-radius: var(--radius); overflow:hidden; position:relative; }
.split-img::after{ content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,0.15); }
.split-img img{ width:100%; height:100%; object-fit:cover; min-height:340px; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 32px;} .split.reverse .split-img{ order:0;} }

/* ---------- timeline (seasons) ---------- */
.timeline{ display:grid; grid-template-columns: repeat(4,1fr); gap: 0; position:relative; }
.timeline::before{ content:""; position:absolute; top:22px; left:0; right:0; height:1px; background: var(--line); }
.tl-item{ position:relative; padding: 44px 20px 0 0; }
.tl-dot{ width:12px; height:12px; border-radius:50%; background: var(--gold); position:absolute; top:16px; left:0; border: 3px solid var(--sky); }
.tl-item .tl-eyebrow{ font-family: var(--mono); font-size:11px; color: var(--wheat); letter-spacing:1.5px; }
@media (max-width: 900px){
  .timeline{ grid-template-columns: 1fr; }
  .timeline::before{ top:0; bottom:0; left:22px; right:auto; width:1px; height:auto; }
  .tl-item{ padding: 0 0 36px 44px; }
  .tl-dot{ top:4px; left:16px; }
}

/* ---------- values / icon list ---------- */
.value{ padding: 28px 0; border-top: 1px solid var(--line); display:grid; grid-template-columns: 60px 1fr; gap: 20px; }
.value:last-child{ border-bottom:1px solid var(--line); }
.value .vnum{ font-family: var(--display); font-size: 26px; color: var(--gold); }

/* ---------- team ---------- */
.team-card{ text-align:center; }
.team-photo{
  width: 128px; height:128px; border-radius:50%; margin: 0 auto 16px; overflow:hidden;
  border: 3px solid var(--white); box-shadow: 0 8px 22px rgba(42,32,21,0.12);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-role{ font-family: var(--mono); font-size: 12px; color: var(--wheat); letter-spacing:1px; }

/* ---------- testimonials ---------- */
.testi{ background: var(--white); border:1px solid var(--line); padding: 32px; border-radius: var(--radius); }
.testi p{ font-family: var(--display); font-style: italic; font-size: 19px; color: var(--ink); }
.testi-who{ font-family: var(--mono); font-size:12px; color: var(--ink-soft); letter-spacing: 1px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--green); color: var(--cream);
  border-radius: var(--radius);
  padding: 56px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2{ color: var(--white); margin-bottom:4px; }
.cta-band p{ color: rgba(246,241,228,0.8); margin:0; }

/* ---------- forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
label{ font-family: var(--mono); font-size:11.5px; letter-spacing:1.2px; text-transform:uppercase; color: var(--ink-soft); }
input, select, textarea{
  font-family: var(--body); font-size:15px; padding: 13px 14px;
  border:1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus{ border-color: var(--wheat); outline:none; }
textarea{ resize: vertical; min-height: 120px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

/* ---------- table (products spec / market) ---------- */
.spec-table{ width:100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td{ text-align:left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec-table th{ font-family: var(--mono); font-size:11.5px; letter-spacing:1px; text-transform:uppercase; color: var(--ink-soft); }

/* ---------- accordion (FAQ / services) ---------- */
.acc-item{ border-bottom: 1px solid var(--line); }
.acc-q{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 22px 0; cursor:pointer; background:none; border:none; width:100%; text-align:left;
  font-family: var(--display); font-size: 19px; color: var(--green-dark); font-weight:600;
}
.acc-q .plus{ font-family: var(--mono); font-size:20px; color: var(--wheat); transition: transform .2s ease; flex-shrink:0; }
.acc-item.open .acc-q .plus{ transform: rotate(45deg); }
.acc-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.acc-item.open .acc-a{ max-height: 240px; }
.acc-a p{ padding-bottom: 22px; margin:0; }

/* ---------- map ---------- */
.map-wrap{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.map-wrap iframe{ width:100%; height: 420px; border:0; display:block; }

/* ---------- footer ---------- */
.site-footer{ background: var(--green-dark); color: rgba(246,241,228,0.82); padding: 64px 0 0; }
.foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(246,241,228,0.14); }
.foot-logo img{ height:44px; margin-bottom: 14px; }
.foot-grid h4{ color: var(--white); font-family: var(--mono); font-size:12.5px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:16px; }
.foot-grid li{ margin-bottom: 10px; font-size: 14.5px; }
.foot-grid a:hover{ color: var(--gold); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 22px 0; font-size: 13px; color: rgba(246,241,228,0.55); flex-wrap:wrap; gap:10px; }
.foot-bottom a{ color: rgba(246,241,228,0.55); margin-left: 18px; }
.foot-bottom a:hover{ color: var(--gold); }
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(246,241,228,0.3);
  display:flex; align-items:center; justify-content:center; font-size:14px;
}
.social-row a:hover{ border-color: var(--gold); color: var(--gold); }

@media (max-width: 900px){
  .foot-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .foot-grid{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }
