/* ===== Design Tokens ===== */
:root {
  --green-900: #14431f;
  --green-800: #1c5a2a;
  --green-700: #22682f;
  --green-600: #2e7d32;
  --green-500: #3d9142;
  --green-050: #eef5ec;
  --ink: #1f2a24;
  --muted: #5b6b60;
  --line: #e2e8e0;
  --bg: #ffffff;
  --bg-alt: #f4f7f2;
  --gold: #f5b301;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 67, 31, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 67, 31, 0.06);
  --maxw: 1300px;
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-sans);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-600); font-weight: 600; font-size: 0.95rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}
.eyebrow svg { width: 18px; height: 18px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-900); }
.section-sub { color: var(--muted); margin-top: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-600); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--green-700); }
.btn-light:hover { background: var(--green-050); transform: translateY(-2px); }

/* ===== Top Bar ===== */
.topbar {
  background: var(--green-900); color: #dbe9db; font-size: 0.85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; gap: 16px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 15px; height: 15px; color: var(--green-500); }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: grid; place-items: center; transition: background .2s ease;
}
.topbar-social a:hover { background: var(--green-500); }
.topbar-social svg { width: 13px; height: 13px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-img { height: 54px; width: auto; display: block; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%; background: var(--green-050);
  display: grid; place-items: center; color: var(--green-600); flex-shrink: 0;
}
.brand-logo svg { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--green-900); line-height: 1.1; }
.brand-sub { font-size: 0.72rem; color: var(--muted); }
.brand-tag { font-size: 0.66rem; color: var(--green-600); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 12px; font-size: 0.92rem; font-weight: 500; color: var(--ink);
  border-radius: 8px; position: relative; display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s ease;
}
.nav a:hover, .nav a.active { color: var(--green-600); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--green-600); border-radius: 2px;
}
.nav .caret { width: 13px; height: 13px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; color: var(--green-900);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== Hero ===== */
.hero { background: var(--white); padding: 40px 0 56px; position: relative; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-welcome { display: inline-flex; align-items: center; gap: 8px; color: var(--green-600); font-weight: 600; margin-bottom: 10px; }
.hero-welcome svg { width: 20px; height: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--green-900); }
.hero-role { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--ink); font-family: var(--font-head); font-weight: 600; margin-top: 6px; }
.hero-keywords { color: var(--green-600); font-weight: 600; margin: 14px 0; font-size: 1rem; }
.hero p.lead { color: var(--muted); max-width: 520px; }

.hero-features { display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0; }
.hero-feature { text-align: center; width: 84px; }
.hero-feature .icon {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 12px; background: var(--green-050);
  display: grid; place-items: center; color: var(--green-600);
}
.hero-feature .icon svg { width: 24px; height: 24px; }
.hero-feature span { font-size: 0.8rem; color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo-frame {
  position: relative; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-photo-frame img { width: 100%; height: 560px !important; object-fit: cover; }
.hero-card {
  position: absolute; left: 24px; right: 24px; bottom: 20px;
  background: rgba(20, 67, 31, .88); color: var(--white); padding: 16px 20px;
  border-radius: 12px; backdrop-filter: blur(2px);
}
.hero-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.hero-card p { font-size: 0.82rem; color: #d7e6d7; line-height: 1.5; }
.hero-card .tags { margin-top: 8px; font-size: 0.75rem; font-weight: 600; color: #bfe0bf; }

/* ===== Services ===== */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-500); }
.service-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 14px;
  background: var(--green-050); display: grid; place-items: center; color: var(--green-600);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.02rem; color: var(--green-900); margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.service-link { color: var(--green-600); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ===== About ===== */
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr 0.8fr; gap: 30px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 340px; object-fit: cover; }
.about-badge {
  position: absolute; left: 18px; bottom: 18px; background: var(--green-700); color: var(--white);
  padding: 14px 20px; border-radius: 12px; text-align: center;
}
.about-badge strong { display: block; font-size: 1.9rem; font-family: var(--font-head); line-height: 1; }
.about-badge span { font-size: 0.78rem; color: #d7e6d7; }
.about-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green-900); margin: 6px 0 16px; }
.about-body p { color: var(--muted); margin-bottom: 14px; font-size: 0.95rem; }
.about-points { display: grid; gap: 18px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-050);
  display: grid; place-items: center; color: var(--green-600); flex-shrink: 0;
}
.about-point .icon svg { width: 24px; height: 24px; }
.about-point h4 { font-size: 0.98rem; color: var(--green-900); }
.about-point p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.about-side { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }

/* ===== Stats ===== */
.stats {
  background: linear-gradient(rgba(20,67,31,.86), rgba(20,67,31,.9)), url("/images/blog-soil-health.png") center/cover;
  color: var(--white); padding: 48px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat .icon { color: var(--green-500); margin-bottom: 10px; }
.stat .icon svg { width: 34px; height: 34px; }
.stat strong { display: block; font-size: 2rem; font-family: var(--font-head); }
.stat span { font-size: 0.85rem; color: #cfe3cf; }

/* ===== Focus Areas ===== */
.focus-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.focus-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 150px;
  box-shadow: var(--shadow-sm);
}
.focus-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.focus-card:hover img { transform: scale(1.08); }
.focus-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,67,31,.85), rgba(20,67,31,0) 65%);
}
.focus-card span {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  color: var(--white); font-weight: 600; font-size: 0.85rem;
}

/* ===== Testimonials ===== */
.testimonials { background: var(--bg-alt); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.testi-quote { color: var(--green-500); font-size: 2.4rem; font-family: Georgia, serif; line-height: 1; }
.testi-card p.text { color: var(--muted); font-size: 0.9rem; margin: 6px 0 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-person h4 { font-size: 0.95rem; color: var(--green-900); }
.testi-person span { font-size: 0.78rem; color: var(--muted); }
.stars { color: var(--gold); margin-top: 12px; display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.blog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-thumb { position: relative; height: 130px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-date {
  position: absolute; top: 10px; left: 10px; background: var(--green-700); color: var(--white);
  border-radius: 8px; padding: 6px 8px; text-align: center; line-height: 1;
}
.blog-date strong { display: block; font-size: 1.1rem; font-family: var(--font-head); }
.blog-date span { font-size: 0.68rem; }
.blog-body { padding: 14px 16px 18px; }
.blog-cat { color: var(--green-600); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.blog-body h3 { font-size: 0.92rem; color: var(--green-900); margin: 6px 0 12px; }
.blog-link { color: var(--green-600); font-weight: 600; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 5px; }
.blog-link svg { width: 14px; height: 14px; }
.section-head-row { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 34px; }
.section-head-row .btn { position: absolute; right: 0; }

/* ===== Footer ===== */
.footer { background: var(--green-900); color: #cdddcd; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.3fr; gap: 30px; }
.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: #a9c3a9; }
.footer-about { font-size: 0.88rem; margin: 16px 0; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .2s ease;
}
.footer-social a:hover { background: var(--green-500); }
.footer-social svg { width: 16px; height: 16px; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; transition: color .2s ease, padding .2s ease; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--green-500); flex-shrink: 0; margin-top: 3px; }
.newsletter p { font-size: 0.88rem; margin-bottom: 14px; }
.newsletter form { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.newsletter input {
  padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: var(--white); font-family: inherit; font-size: 0.9rem;
}
.newsletter input::placeholder { color: #9fb69f; }
.newsletter input:focus { outline: 2px solid var(--green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-600); color: var(--white); border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0;
  visibility: hidden; transform: translateY(10px); transition: all .3s ease; z-index: 60;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .about .container { grid-template-columns: 1fr; }
  .about-side { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 80px 22px 22px; box-shadow: -6px 0 30px rgba(0,0,0,.15); transition: right .3s ease; z-index: 55;
  }
  .nav.open { right: 0; }
  .nav a { width: 100%; }
  .nav a.active::after { display: none; }
  .menu-toggle { display: block; z-index: 60; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo-frame img { height: 420px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .topbar-info { gap: 12px; font-size: 0.78rem; }
  .topbar-info span:nth-child(3) { display: none; }
  .topbar-social { gap: 5px; }
  .brand-img { height: 42px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head-row .btn { position: static; margin-top: 14px; }
  .section-head-row { flex-direction: column; }
  .hero-cta .btn, .hero-cta { width: 100%; }
  .hero-cta .btn { justify-content: center; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .header-actions { font-size:12px;gap: 5px; }
  .topbar-social{gap: 5px;}
}
