/*
Theme Name: Olsela Farm Management
Theme URI: https://olsela.com
Author: Wafariko Limited
Author URI: https://wafariko.com
Description: A responsive marketing website theme for the Olsela Farm Management System.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: olsela
*/

:root {
  --green-950: #073b20;
  --green-900: #07562d;
  --green-700: #0f7a3d;
  --green-500: #22a447;
  --green-100: #edf8ef;
  --orange: #f59a00;
  --orange-dark: #d97706;
  --cream: #fffaf0;
  --ink: #172019;
  --muted: #617065;
  --white: #fff;
  --border: #dce8de;
  --shadow: 0 16px 40px rgba(7, 59, 32, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-soft { background: linear-gradient(180deg, #f8fcf8 0%, #fff 100%); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  color: var(--orange-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1,h2,h3,h4 { margin: 0 0 16px; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 18px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 650px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(7,59,32,.08);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 148px; max-height: 56px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; }
.site-nav a:hover { color: var(--green-700); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-900); color: white; box-shadow: 0 10px 24px rgba(7,86,45,.22); }
.btn-orange { background: var(--orange); color: #1f260f; }
.btn-outline { border-color: var(--green-900); color: var(--green-900); background: white; }

.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(245,154,0,.20), transparent 30%),
    linear-gradient(135deg, #f6fff7 0%, #fffaf0 100%);
}
.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}
.hero h1 span { color: var(--green-700); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px; color: var(--green-950); font-weight: 750; }
.hero-badge { display: flex; align-items: center; gap: 8px; }
.hero-visual {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid rgba(255,255,255,.85);
}
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.floating-card {
  position: absolute;
  left: -28px;
  bottom: 42px;
  background: white;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  color: var(--green-950);
}

.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}
.logo-strip-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-900);
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(7,59,32,.06);
}
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.card p { color: var(--muted); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.feature-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.check-list { display: grid; gap: 15px; margin: 28px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check b { color: var(--green-900); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(7,59,32,.07);
}
.price-card.featured { border: 3px solid var(--green-700); transform: translateY(-12px); }
.popular {
  position: absolute;
  top: -16px; right: 24px;
  background: var(--orange);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
}
.price {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green-950);
}
.price small { font-size: .95rem; color: var(--muted); }
.price-list { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.price-list li::before { content: "✓"; color: var(--green-700); font-weight: 900; margin-right: 10px; }
.price-card .btn { margin-top: auto; }

.cta {
  color: white;
  background:
    radial-gradient(circle at 85% 25%, rgba(245,154,0,.32), transparent 24%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  border-radius: 32px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta h2 { max-width: 680px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.contact-card { background: var(--green-950); color: white; border-radius: 26px; padding: 36px; }
.contact-card a { color: #fff; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-item { display: flex; gap: 12px; }
.form-card { border: 1px solid var(--border); border-radius: 26px; padding: 36px; background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: grid; gap: 8px; margin-bottom: 18px; }
label { font-weight: 800; }
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cddbd0;
  border-radius: 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }

.site-footer { background: #062f1b; color: rgba(255,255,255,.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-title { color: white; font-weight: 900; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.page-hero { padding: 100px 0 62px; background: linear-gradient(135deg,#f4fff5,#fff8e8); }
.content-area { padding: 70px 0; }
.entry-content { max-width: 820px; }
.entry-content h2 { margin-top: 38px; }
.notice { padding: 15px 18px; border-radius: 12px; background: var(--green-100); color: var(--green-950); margin-bottom: 18px; }

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: 70px;
    padding: 18px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero-grid, .feature-split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .floating-card { left: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .hero-grid { padding: 48px 0; }
  .grid-3, .grid-4, .pricing-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 38px 26px; flex-direction: column; align-items: flex-start; }
  .brand img { width: 126px; }
}
