:root {
  --bg: #f3f4ed;
  --bg-soft: #eef1e0;
  --surface: #ffffff;
  --surface-muted: #f7f8f1;
  --primary: #2f6b39;
  --primary-dark: #1f4f2a;
  --accent: #b6803a;
  --text: #1a241b;
  --text-muted: #4f5f52;
  --line: #dce3d2;
  --shadow: 0 16px 34px rgba(37, 75, 38, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(114, 167, 107, 0.22), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(182, 128, 58, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f8f2 0%, #eef2e4 45%, #f8f8f1 100%);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section-pad {
  padding: 4.8rem 0;
}

h1,
h2,
h3,
.logo {
  font-family: "Outfit", sans-serif;
  line-height: 1.18;
  margin: 0 0 0.8rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(243, 244, 237, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: 220ms ease;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 3.6rem);
}

.hero-subtitle {
  max-width: 58ch;
  color: var(--text-muted);
  margin: 1rem 0 1.8rem;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.88rem 1.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2d6f3a, #3f8747);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(33, 80, 37, 0.25);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.soil-card {
  width: min(380px, 100%);
  background: linear-gradient(145deg, #fefefb, #ecf0e2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.soil-card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.meter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.65rem;
}

.meter strong {
  color: var(--primary);
}

.section-head {
  margin-bottom: 1.6rem;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
}

.about-copy {
  display: grid;
  gap: 1rem;
  max-width: 78ch;
}

.about-copy p {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #b8caa9;
  box-shadow: 0 14px 26px rgba(44, 86, 47, 0.13);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: linear-gradient(130deg, #e0efd7, #f3f1dc);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
}

.workflow {
  background: linear-gradient(180deg, rgba(238, 242, 228, 0.6), rgba(247, 248, 241, 0.7));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeccf;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #2b5e33;
}

.why-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-item {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-weight: 500;
}

.why-item::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.form-shell {
  max-width: 700px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 600;
  margin: 0.8rem 0 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d4be;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fcfdf8;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(64, 135, 71, 0.35);
  border-color: #5c935f;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.7rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
  background: #f0f3e6;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem;
    flex-direction: column;
    min-width: 200px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    transform-origin: top right;
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .cards-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 4rem 0;
  }
}
