/* ====== Farmsky Africa — Brand Stylesheet (logo-aligned) ====== */
:root {
  /* Brand — extracted from logo */
  --green: #066837;          /* primary deep green */
  --green-2: #0a8049;        /* lighter green */
  --green-3: #d4ead9;         /* soft green tint */
  --green-4: #f0f7f2;         /* paper green */
  --cyan: #01aded;            /* logo cyan-blue */
  --cyan-2: #0298d0;
  --orange: #f96229;          /* logo orange accent */
  --orange-soft: #fde2d4;

  /* Neutrals */
  --bg: #fafbf9;
  --paper: #ffffff;
  --paper-2: #f4f7f3;
  --text: #0e2418;
  --muted: #5a665d;
  --line: rgba(6,104,55,.10);
  --shadow: 0 18px 50px rgba(6,104,55,.10);
  --shadow-sm: 0 8px 22px rgba(6,104,55,.07);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% -10%, rgba(1,173,237,.06), transparent 30%),
    radial-gradient(circle at -10% 60%, rgba(249,98,41,.05), transparent 40%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* ====== Navigation ====== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px; padding: 10px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: -.01em;
}
.brand-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; color: var(--green); letter-spacing: -.02em; }
.brand-text small { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link, .nav-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; color: var(--text);
  font-size: 14px; font-weight: 500;
  transition: all .22s ease; cursor: pointer;
  background: transparent; border: 0; font-family: inherit;
}
.nav-link:hover, .nav-button:hover,
.nav-item:hover > .nav-button,
.nav-link.active {
  background: var(--green-3); color: var(--green);
}
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 12px;
  font-size: 14px; color: var(--text); font-weight: 500;
}
.dropdown a span {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 3px; font-weight: 400;
}
.dropdown a:hover { background: var(--green-4); color: var(--green); }
.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; transition: all .22s ease; cursor: pointer;
  font-size: 14px; font-family: inherit;
}
.btn.primary {
  background: var(--green); color: white;
  box-shadow: 0 8px 24px rgba(6,104,55,.25);
}
.btn.primary:hover { transform: translateY(-2px); background: var(--green-2); box-shadow: 0 12px 30px rgba(6,104,55,.32); }
.btn.secondary { background: transparent; border-color: rgba(6,104,55,.20); color: var(--green); }
.btn.secondary:hover { background: var(--green-3); }
.btn.accent { background: var(--orange); color: white; box-shadow: 0 8px 22px rgba(249,98,41,.25); }
.btn.accent:hover { background: #e75519; transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.92); color: var(--text); }
.btn.ghost:hover { background: white; }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 18px;
}

/* ====== Hero ====== */
.hero { padding: 50px 0 30px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 24px; align-items: center;
}
.hero-copy {
  padding: 18px 0;
}
.hero-visual {
  position: relative;
  background: linear-gradient(150deg, var(--green-3) 0%, rgba(1,173,237,.08) 60%, var(--orange-soft) 100%);
  border-radius: 30px;
  padding: 30px;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
  overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,173,237,.18), transparent 70%);
}
.hero-visual::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,98,41,.16), transparent 70%);
}
.hero-product {
  position: relative; z-index: 2;
  max-width: 100%; height: auto;
  filter: drop-shadow(0 30px 50px rgba(6,104,55,.20));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--green-3); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  width: fit-content;
}
h1, h2, h3, h4 { line-height: 1.08; margin: 0; font-weight: 700; color: var(--text); }
h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-top: 16px; letter-spacing: -.035em;
}
h1 .accent { color: var(--green); }
.lead {
  margin: 18px 0 26px; font-size: 17px;
  color: var(--muted); max-width: 54ch;
}

/* ====== Sections ====== */
.section { padding: 50px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.025em;
  max-width: 22ch;
}
.section-head p {
  margin: 0; color: var(--muted); max-width: 46ch; font-size: 15px;
}
.tag {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  background: var(--green-3); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 10px;
}
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.cyan { background: rgba(1,173,237,.12); color: var(--cyan-2); }

/* ====== Cards ====== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.photo-panel { overflow: hidden; padding: 0; }
.photo-panel img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

/* ====== Icon cards (replaces text bullets) ====== */
.icon-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
  transition: transform .25s ease, border-color .25s;
}
.icon-card:hover { transform: translateY(-3px); border-color: var(--green); }
.icon-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 14px;
  font-size: 22px;
}
.icon-wrap.green { background: var(--green-3); color: var(--green); }
.icon-wrap.cyan { background: rgba(1,173,237,.12); color: var(--cyan-2); }
.icon-wrap.orange { background: var(--orange-soft); color: var(--orange); }
.icon-card h4 { font-size: 16px; margin-bottom: 6px; }
.icon-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ====== Workflow diagram ====== */
.workflow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; position: relative;
  margin: 28px 0;
}
.workflow-step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 16px;
  text-align: center; position: relative;
  transition: all .25s ease;
}
.workflow-step:hover { border-color: var(--green); transform: translateY(-2px); }
.workflow-step .num {
  width: 36px; height: 36px; margin: 0 auto 12px;
  background: var(--green); color: white;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.workflow-step .step-icon {
  font-size: 26px; margin-bottom: 8px;
}
.workflow-step h5 { font-size: 14px; margin: 6px 0 4px; font-weight: 600; }
.workflow-step p { font-size: 12px; color: var(--muted); margin: 0; }
.workflow-arrow {
  position: absolute; top: 50%; right: -10px;
  transform: translateY(-50%);
  color: var(--cyan); font-size: 18px; z-index: 2;
  display: none;
}
@media (min-width: 900px) {
  .workflow-step:not(:last-child) .workflow-arrow { display: block; }
}

/* ====== Services ====== */
.services-grid .service-card {
  position: relative; overflow: hidden; min-height: 380px; padding: 0;
}
.service-card > img { width: 100%; height: 100%; object-fit: cover; }
.service-card .overlay {
  position: absolute; inset: auto 14px 14px 14px;
  background: rgba(6,36,24,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: white; padding: 20px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
}
.service-card .overlay h3 { color: white; }
.service-card .overlay p { color: rgba(255,255,255,.85); font-size: 14px; }
.link-line {
  margin-top: 14px; display: inline-flex; gap: 6px; align-items: center;
  font-weight: 600; color: white; font-size: 13px;
}
.link-line:hover { gap: 10px; }

/* ====== Partner tabs ====== */
.partner-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
}
.pill {
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-weight: 600; color: var(--green);
  font-size: 14px; font-family: inherit;
  transition: all .2s ease;
}
.pill:hover { background: var(--green-3); }
.pill.active {
  background: var(--green); color: white;
  box-shadow: 0 6px 18px rgba(6,104,55,.22);
}
.partner-panel { display: none; }
.partner-panel.active { display: block; }

/* ====== Metrics ====== */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.metric {
  background: linear-gradient(160deg, var(--green) 0%, #033b21 100%);
  color: white; border-radius: 20px; padding: 24px;
  min-height: 150px;
  box-shadow: 0 14px 34px rgba(6,104,55,.20);
  position: relative; overflow: hidden;
}
.metric::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(1,173,237,.18);
}
.metric.cyan { background: linear-gradient(160deg, var(--cyan-2) 0%, #014f72 100%); box-shadow: 0 14px 34px rgba(1,173,237,.20); }
.metric.cyan::before { background: rgba(249,98,41,.20); }
.metric.orange { background: linear-gradient(160deg, var(--orange) 0%, #b3411a 100%); box-shadow: 0 14px 34px rgba(249,98,41,.22); }
.metric.orange::before { background: rgba(6,104,55,.22); }
.metric strong {
  display: block; font-size: 2.1rem; margin-bottom: 6px;
  letter-spacing: -.03em; position: relative; color: white;
}
.metric span {
  color: rgba(255,255,255,.88); font-size: 13px;
  position: relative; line-height: 1.4;
}

/* ====== News ====== */
.news-grid .card { display: flex; flex-direction: column; gap: 6px; }
.news-meta {
  color: var(--orange); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ====== Contact ====== */
.contact-wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px;
}
form { display: grid; gap: 12px; margin-top: 16px; }
input, textarea, select {
  width: 100%; padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); font: inherit; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6,104,55,.12);
}
textarea { min-height: 130px; resize: vertical; }
.note { font-size: 12px; color: var(--muted); }

.map-card iframe {
  width: 100%; min-height: 260px; border: 0; border-radius: 14px;
  filter: saturate(.95) contrast(1.02); margin-top: 12px;
}
.contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--green-3); display: grid; place-items: center;
  color: var(--green); flex-shrink: 0; font-size: 16px;
}
.contact-item strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--text); }
.contact-item span, .contact-item a { font-size: 14px; color: var(--muted); }
.contact-item a:hover { color: var(--green); }

.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* ====== Footer ====== */
.footer {
  padding: 40px 0 40px; color: var(--muted);
  background: linear-gradient(180deg, transparent, var(--green-4));
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
  padding-bottom: 26px;
}
.footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); margin-bottom: 12px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; font-size: 14px; }
.footer ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ====== Coming Soon modal ====== */
.soon-modal {
  position: fixed; inset: 0; background: rgba(8,36,24,.62);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 200;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.soon-modal.open { display: flex; }
.soon-box {
  width: min(540px, 100%); background: var(--paper);
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 32px; position: relative;
  animation: slideUp .35s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.soon-box .close-x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-4); font-size: 18px;
}
.soon-box h3 { font-size: 1.6rem; margin: 14px 0 12px; letter-spacing: -.02em; }

.coming-soon-page {
  min-height: 70vh; display: grid; place-items: center; padding: 50px 0;
}
.coming-soon-card { text-align: center; max-width: 580px; }
.coming-soon-card .big-icon {
  width: 86px; height: 86px; border-radius: 26px;
  background: linear-gradient(160deg, var(--green), var(--cyan));
  margin: 0 auto 20px; display: grid; place-items: center;
  color: white; font-size: 36px; box-shadow: var(--shadow);
}

/* ====== Page hero ====== */
.page-hero { padding: 50px 0 24px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-top: 12px; }
.page-hero .lead { font-size: 16px; max-width: 60ch; }

/* ====== Toast ====== */
.toast {
  position: fixed; bottom: 26px; right: 26px;
  background: var(--green); color: white;
  padding: 14px 20px; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 300;
  opacity: 0; transform: translateY(20px);
  transition: all .3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ====== CTA banner ====== */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, #044f29 60%, #022d18 100%);
  color: white; border-radius: 26px; padding: 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,173,237,.30), transparent 70%);
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,98,41,.25), transparent 70%);
}
.cta-banner h3 { color: white; font-size: 1.7rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 48ch; margin: 12px auto 22px; position: relative; }
.cta-banner .cta-row { justify-content: center; position: relative; }

/* ====== Product showcase ====== */
.product-showcase {
  background: linear-gradient(150deg, var(--green-4) 0%, rgba(1,173,237,.06) 100%);
  border-radius: 28px; padding: 30px; overflow: hidden; position: relative;
}
.product-showcase img {
  display: block; width: 100%; max-width: 600px; margin: 0 auto;
  filter: drop-shadow(0 24px 36px rgba(6,104,55,.18));
}

/* ====== Admin ====== */
.admin-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background:
    radial-gradient(circle at top right, rgba(1,173,237,.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(249,98,41,.08), transparent 30%),
    var(--bg);
}
.admin-card {
  width: 100%; max-width: 420px;
  background: var(--paper); padding: 36px;
  border-radius: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.admin-card .brand-logo { margin: 0 auto 16px; width: 56px; height: 56px; display: block; }
.admin-card h2 { text-align: center; margin-bottom: 8px; font-size: 1.7rem; color: var(--green); }
.admin-card .note { text-align: center; margin-bottom: 22px; }
.admin-error {
  background: rgba(220,80,80,.10); color: #a13030;
  padding: 12px 14px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px; display: none;
}
.admin-error.show { display: block; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--paper); border-right: 1px solid var(--line);
  padding: 22px 16px;
}
.admin-sidebar .brand { margin-bottom: 28px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a {
  padding: 10px 14px; border-radius: 10px; color: var(--text);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: var(--green-3); color: var(--green);
}
.admin-main { padding: 28px 32px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.admin-header h1 { font-size: 1.6rem; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.editor-row { display: grid; gap: 6px; margin-bottom: 14px; }
.editor-row label { font-size: 13px; font-weight: 600; color: var(--text); }
.editor-row .help { font-size: 12px; color: var(--muted); }
.news-list { display: grid; gap: 12px; }
.news-item {
  background: var(--paper); padding: 16px; border-radius: 14px;
  border: 1px solid var(--line);
  display: flex; gap: 14px; justify-content: space-between; align-items: flex-start;
}
.news-item .news-content { flex: 1; }
.news-item h4 { margin-bottom: 6px; }
.news-item .actions { display: flex; gap: 6px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 999px; }

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3, .services-grid, .grid-4, .metrics, .footer-grid, .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-visual { min-height: 380px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .grid-3, .services-grid, .grid-4, .metrics, .footer-grid, .workflow {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
  .admin-main { padding: 22px 18px; }
}
