/* Jasemot Integrated Farms Limited – Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #4CAF50;
  --color-dark: #2E7D32;
  --color-light: #A5D6A7;
  --color-accent: #81C784;
  --color-offwhite: #f6fff6;
  --color-text: #0f2a10;
  --color-muted-text: #2b4c2d;
  --shadow-lg: 0 15px 30px rgba(46, 125, 50, 0.25);
  --shadow-md: 0 8px 20px rgba(46, 125, 50, 0.2);
  --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-height: 70px;
}

/* Dark mode overrides */
body.dark {
  --color-primary: #2E7D32;
  --color-dark: #1b5e20;
  --color-light: #5f8d61;
  --color-accent: #4c8a58;
  --color-offwhite: #0b140c;
  --color-text: #e8f5e9;
  --color-muted-text: #b8d2bb;
}

/* Reset / Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-offwhite) 0%, #e9f7ea 100%);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; margin: 0 0 12px; color: var(--color-dark); }
p { margin: 0 0 16px; line-height: 1.7; }
a { color: var(--color-dark); text-decoration: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 70px 0; position: relative; }
.section.alt { background: #edf9ee; }
.section .section-title { text-align: center; margin-bottom: 24px; }
.section .section-subtitle { text-align: center; margin: 0 auto 40px; color: var(--color-muted-text); max-width: 720px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; font-weight: 600; letter-spacing: 0.2px;
  box-shadow: var(--shadow-md); border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.button.ghost { background: transparent; color: var(--color-dark); border: 2px solid var(--color-dark); }
.button.ghost:hover { background: var(--color-dark); color: #fff; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center;
  background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46,125,50,0.22);
}
.navbar.scrolled { background: rgba(250, 255, 250, 0.9); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--color-dark); }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { background: var(--color-light); color: #0a2b0e; }

/* Mobile menu */
.menu-toggle { display: none; background: transparent; border: 0; font-size: 26px; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: var(--nav-height) 0 0 0; background: rgba(245,255,245,0.97);
    flex-direction: column; padding: 20px; transform: translateY(-120%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
}

/* Ticker */
.ticker { background: linear-gradient(90deg, var(--color-dark), var(--color-primary)); color: #fff; font-weight: 600; }
.ticker .container { display: flex; gap: 16px; align-items: center; overflow: hidden; height: 40px; }
.ticker-track { display: flex; gap: 36px; white-space: nowrap; will-change: transform; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - var(--nav-height)); display: grid; place-items: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  url('images/hero.jpg') center/cover no-repeat fixed, linear-gradient(180deg, #2e7d32, #4caf50);
  filter: brightness(0.6);
}
.hero .content { position: relative; text-align: center; padding: 0 16px; }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 56px); text-shadow: 0 6px 30px rgba(0,0,0,0.35); }
.hero p { color: #e8f5e9; font-size: clamp(16px, 2.2vw, 20px); margin: 18px auto 28px; max-width: 840px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.stat { background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); padding: 22px; text-align: center;
  box-shadow: var(--shadow-sm); }
.stat .num { font-size: 34px; font-weight: 700; color: var(--color-dark); }
.stat .label { color: var(--color-muted-text); font-weight: 500; }

/* Icon carousel */
.icon-carousel { overflow: hidden; border-radius: var(--radius); background: #f0fbf1; border: 1px solid rgba(46,125,50,0.2); }
.icon-track { display: flex; gap: 26px; padding: 16px; animation: slideX 30s linear infinite; }
.icon-track img, .icon-track .emoji { width: 56px; height: 56px; filter: drop-shadow(0 6px 10px rgba(46,125,50,0.2)); }
@keyframes slideX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card .card-body { padding: 18px; }

/* Bullets */
.bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.bullet { background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }

/* Testimonials */
.testimonials { position: relative; overflow: hidden; }
.testimonial-track { display: flex; gap: 18px; transition: transform .4s ease; }
.testimonial { min-width: 300px; background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.testimonial .name { font-weight: 700; color: var(--color-dark); margin-top: 8px; }

/* Weather */
.weather { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); padding: 18px; }
@media (max-width: 700px) { .weather { grid-template-columns: 1fr; } }
.weather .temp { font-size: 38px; font-weight: 700; color: var(--color-dark); }
.weather small { color: var(--color-muted-text); }

/* Forms */
.form { display: grid; gap: 12px; }
.input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(46,125,50,0.3);
  background: #f3fbf4; color: var(--color-text); font-family: inherit; }
textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { color: var(--color-muted-text); font-size: 12px; }
.error { color: #b71c1c; font-weight: 600; }
.success { color: #1b5e20; font-weight: 600; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Footer */
.footer { background: var(--color-dark); color: #fff; padding: 50px 0; margin-top: 60px; }
.footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.footer a { color: #e8f5e9; }
.footer .copyright { margin-top: 22px; color: #cfe7d2; font-size: 14px; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 36px; }
.hidden { display: none !important; }
.reveal { opacity: 0; transform: translateY(20px); transition: all .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Back-to-top */
#backToTop { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1100; }
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-2px); }

/* Sticky action buttons (mobile) */
.sticky-actions { position: fixed; left: 12px; bottom: 16px; display: none; flex-direction: column; gap: 10px; z-index: 1100; }
.sticky-actions a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--color-primary); box-shadow: var(--shadow-md); }
@media (max-width: 700px) { .sticky-actions { display: inline-flex; } }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #ecf8ed; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(46,125,50,0.2); text-align: left; }
th { background: #dff3e1; }

/* Maps */
.map { width: 100%; height: 320px; border: 1px solid rgba(46,125,50,0.25); border-radius: var(--radius); overflow: hidden; }

/* Badges */
.badge { display: inline-block; padding: 6px 12px; background: #dff3e1; color: var(--color-dark); border-radius: 999px; font-weight: 600; }
