/* =========================================================
   Agronix — styles
   Dark + green. Audiowide headings, Barlow Condensed body
   (closest free match to the old site's Acumin Pro Extra Condensed).
   ========================================================= */

:root {
  --bg: #0A0E0B;
  --bg-2: #111712;
  --bg-3: #18201A;
  --line: rgba(255, 255, 255, .08);
  --text: #E9EFEA;
  --muted: #9AA89D;
  --green: #62C732;
  --green-bright: #7BDD48;
  --green-dim: rgba(98, 199, 50, .14);

  --font-head: "Audiowide", system-ui, sans-serif;
  --font-body: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --container: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  background: var(--green);
  color: #071006;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-bright); border-color: var(--green-bright); box-shadow: 0 0 28px rgba(98, 199, 50, .35); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--text); box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 1rem; }
.btn-block { width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 11, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 96px;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 35%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,11,.6) 0%, rgba(10,14,11,0) 22%),
    linear-gradient(90deg, rgba(10,14,11,.85) 0%, rgba(10,14,11,.45) 40%, rgba(10,14,11,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,14,11,.55) 35%, rgba(10,14,11,0) 60%);
}
.hero-content { position: relative; }
.hero h1 span { color: var(--green); }
.lede { font-size: 1.35rem; color: #CBD5CD; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.9rem; color: var(--green); line-height: 1.1; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 52px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.2rem; }
.split-media { margin: 0; position: relative; }
.split-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 2px solid var(--green); border-radius: var(--radius-lg); opacity: .5;
}
.split-media img { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.why:hover { border-color: rgba(98,199,50,.5); transform: translateY(-3px); }
.why-num { display: block; font-family: var(--font-head); color: var(--green); font-size: 1.05rem; margin-bottom: 18px; }
.why p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Area */
.area { position: relative; padding: 150px 0; overflow: hidden; }
.area-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.area-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,11,.94) 0%, rgba(10,14,11,.7) 50%, rgba(10,14,11,.25) 100%); }
.area-content { position: relative; max-width: var(--container); }
.area-content h2, .area-content p:not(.eyebrow) { max-width: 560px; }
.area-content p:not(.eyebrow) { color: #CBD5CD; font-size: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.2rem; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--green); }
.contact-list svg {
  width: 42px; height: 42px; padding: 10px; border-radius: var(--radius);
  background: var(--green-dim);
  fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.hidden-field { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #C9D3CB; }
.optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1.1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.field.invalid input, .field.invalid textarea { border-color: #E5534B; }
.form-note { margin: 12px 0 0; min-height: 1.4em; font-size: 1.05rem; }
.form-note.success { color: var(--green); font-weight: 600; }
.form-note.error { color: #F07A73; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 1rem; letter-spacing: .06em; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo { height: 24px; width: auto; }
.footer-inner p { margin: 0; text-transform: uppercase; }
.copyright { margin-left: auto !important; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .split-media { margin-left: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .container { padding: 0 16px; }
  :root { --header-h: 64px; }
  .logo img { height: 26px; }
  .nav { display: none; }
  .btn-sm { margin-left: auto; }
  .hero { padding-bottom: 64px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10,14,11,.6) 0%, rgba(10,14,11,.35) 40%, var(--bg) 100%);
  }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 22px 16px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .area { padding: 110px 0; }
  .area-shade { background: rgba(10,14,11,.78); }
  .why-grid, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .contact-form { padding: 24px 18px; }
  .copyright { margin-left: 0 !important; width: 100%; }
}
