/* ==========================================================================
   SST — Artificial Grass Manufacturer
   style.css — Design tokens, reset, base typography, layout, helpers
   (Component rules live in components.css)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand: #3f9d3a;
  --brand-dark: #0f2417;
  --on-brand: #ffffff;
  --accent: #c9f27a;

  /* Neutrals */
  --bg: #ffffff;
  --surface: #f2f5ef;
  --cream: #f5f3ec;
  --text: #16211a;
  --muted: #516153;
  --border: #e3e7e1;

  /* Feedback */
  --danger: #c0392b;
  --danger-ring: rgba(192, 57, 43, 0.15);

  /* Effects */
  --brand-shadow: rgba(15, 36, 23, 0.55);
  --brand-ring: rgba(63, 157, 58, 0.18);

  /* Radius */
  --radius: 12px;
  --radius-lg: 22px;

  /* Fonts */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1240px;
  --pad: 32px;
  --section-gap: 100px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }

/* ---------- Base typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
main { display: block; }

.section { padding-block: var(--section-gap); }
.section--muted { background-color: var(--surface); }
.section--dark { background-color: var(--brand-dark); }
.section--dark p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.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;
}
.no-scroll { overflow: hidden; }

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