/* ============================================================
   Agreentech — public site styles
   Palette: lime-green on black
   ============================================================ */
:root {
    --green: #8BC34A;
    --green-bright: #A4D866;
    --green-dim: #5d8a2f;
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --bg-card: #161616;
    --border: #222;
    --border-soft: #1c1c1c;
    --text: #f1f1f1;
    --muted: #9a9a9a;
    --radius: 10px;
    --maxw: 1180px;
    --shadow: 0 14px 40px -10px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-bright); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.eyebrow { color: var(--green); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: #d7d7d7; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: #d7d7d7; max-width: 720px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s, color .15s;
    text-decoration: none;
}
.btn-primary { background: var(--green); color: #0a0a0a; }
.btn-primary:hover { background: var(--green-bright); color: #000; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: #333; background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; justify-content: center; }

/* ====== Header / Nav ====== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,10,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.1rem;}
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.logo strong { color: var(--green); }
.nav-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center;}
.nav-links a {
    color: #ddd; padding: 8px 14px; border-radius: 6px;
    font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--green); background: #181818; }
.nav-links a.active { color: var(--green); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; background: transparent; border: 1px solid #333; color: #fff; padding: 8px 10px; border-radius: 8px; cursor: pointer; }

@media (max-width: 860px) {
    .nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 70px; left: 0; right: 0; background: #0d0d0d; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 4px;}
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
}

/* ====== Hero ====== */
.hero {
    position: relative;
    padding: 120px 0 90px;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(139,195,74,.18), transparent 60%),
        radial-gradient(700px 400px at -10% 30%, rgba(139,195,74,.08), transparent 60%),
        var(--bg);
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero h1 span { color: var(--green); }
.hero p { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art {
    aspect-ratio: 1/1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(139,195,74,.18), transparent 65%),
        linear-gradient(160deg, #131313, #0a0a0a);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    box-shadow: var(--shadow);
}
.hero-art img { width: 60%; opacity: .95; }
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-art { max-width: 340px; margin: 0 auto; }
}

/* ====== Cards / Services grid ====== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: #333; }
.card .icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: rgba(139,195,74,.12);
    color: var(--green);
    border-radius: 12px;
    margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: #c0c0c0; margin: 0; font-size: 15px; }

/* ====== Feature row (ERP) ====== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 10px; padding: 8px 0; color: #d3d3d3;}
.feature-list svg { flex-shrink: 0; color: var(--green); width: 20px; height: 20px; margin-top: 3px;}
.feature-art {
    background: linear-gradient(140deg, #161616, #0a0a0a);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.feature-art .mini {
    background: #0c0c0c; border: 1px solid #1f1f1f; border-radius: 8px; padding: 14px; margin-bottom: 10px;
    display:flex; align-items:center; justify-content:space-between; font-size:14px;
}
.feature-art .mini .dot { width:10px; height:10px; border-radius:50%; background: var(--green); }
.feature-art .mini .lbl { color: #ddd; }
.feature-art .mini .val { color: var(--green); font-weight: 700; }

/* ====== Forms ====== */
.form { display: grid; gap: 16px; max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14.5px; color: #ddd;}
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px;
    background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
    color: #fff; font: inherit; font-size: 15px; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--green);
}
.field textarea { min-height: 140px; resize: vertical; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert-success { background: rgba(139,195,74,.12); border: 1px solid var(--green-dim); color: #d8f0b3;}
.alert-error   { background: rgba(220,80,80,.10); border: 1px solid #6a2222; color: #f3c8c8;}

/* ====== CTA strip ====== */
.cta-strip {
    background: linear-gradient(135deg, rgba(139,195,74,.18), rgba(139,195,74,.03));
    border: 1px solid #2a3a17;
    border-radius: 16px;
    padding: 38px 36px;
    display: flex; justify-content: space-between; gap: 20px; align-items: center;
    flex-wrap: wrap;
}
.cta-strip h3 { margin: 0; font-size: 1.5rem; }

/* ====== Blog ====== */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex; flex-direction: column;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--green); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.post-body { max-width: 760px; margin: 0 auto; }
.post-body img { border-radius: 8px; margin: 18px 0; }
.post-body h2, .post-body h3 { margin-top: 32px; }
.post-body blockquote { border-left: 3px solid var(--green); padding-left: 16px; color: #cfcfcf; font-style: italic; }
.post-body pre { background: #0d0d0d; border: 1px solid #222; padding: 14px; border-radius: 8px; overflow-x: auto;}
.post-body code { background: #0d0d0d; padding: 2px 6px; border-radius: 4px; color: var(--green);}

/* ====== Footer ====== */
.site-footer {
    background: #060606;
    border-top: 1px solid var(--border-soft);
    padding: 60px 0 30px;
    margin-top: 40px;
    color: #aaa;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px;}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #bbb; font-size: 14.5px; }
.site-footer a:hover { color: var(--green); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #161616; font-size: 13px; color: #777; text-align: center;}

/* Utilities */
.spacer-sm { height: 20px; }
.spacer    { height: 40px; }
