/**
 * MausamCrop — Global design tokens, reset, typography, and layout.
 * Brand tokens are frozen here so every screen stays visually consistent.
 */

:root {
  /* Brand */
  --color-primary: #1b4d1b;
  --color-accent: #589e33;
  --color-surface: #ffffff;
  --color-bg: #f4f7f4;
  --color-cream: #f7eedb;
  --color-text: #1f2937;
  --color-muted: #64748b;

  /* Derived */
  --color-primary-soft: rgba(27, 77, 27, 0.08);
  --color-accent-soft: rgba(88, 158, 51, 0.14);
  --color-border: rgba(27, 77, 27, 0.12);
  --color-shadow: rgba(31, 41, 55, 0.08);
  --color-danger: #b45309;
  --color-invalid: #dc2626;
  --color-valid: #589e33;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;

  /* Layout */
  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --header-h: 72px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3.5rem;
  --shadow-card: 0 8px 24px var(--color-shadow);
  --shadow-hover: 0 16px 36px rgba(27, 77, 27, 0.14);
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---- Layout ---- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-6) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-2xl);
  line-height: 1.2;
  color: var(--color-primary);
}

.section-lead {
  max-width: 40rem;
  color: var(--color-muted);
  margin-top: var(--space-2);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(88, 158, 51, 0.18), transparent 32%),
    linear-gradient(180deg, #eaf3e6 0%, var(--color-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.hero-copy {
  margin: var(--space-4) 0 var(--space-6);
  color: var(--color-muted);
  font-size: var(--text-lg);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.stat {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--space-4);
}

.stat strong {
  display: block;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.stat span {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---- Grids ---- */
.crop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  padding: var(--space-6) 0;
  background: var(--color-primary);
  color: #d7e6d7;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer strong {
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: var(--text-sm);
}

.footer-nav a:hover {
  color: #fff;
}

.site-footer p {
  font-size: var(--text-sm);
}

/* ---- Utilities ---- */
.muted {
  color: var(--color-muted);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
}

.hidden {
  display: none !important;
}
