/* ==========================================================================
   Base: design tokens, reset, typography, buttons, utilities
   Brand green #37ac50 comes from the original site; darker shades are used
   for text so it stays readable (WCAG AA) on white.
   ========================================================================== */

:root {
  --green: #37ac50;        /* brand: fills, accents */
  --green-600: #2e9445;
  --green-700: #217a35;    /* links and green text on white */
  --green-800: #185f29;
  --green-900: #0f3d1b;
  --green-50: #eef8f0;
  --green-100: #d9f0de;

  --ink: #14231a;          /* headings */
  --text: #39443d;
  --muted: #5f6b64;
  --bg: #ffffff;
  --bg-soft: #f5f8f5;
  --line: #e2e8e3;
  --white: #ffffff;
  --danger: #b3261e;

  --font: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 26, 0.06), 0 2px 10px rgba(20, 35, 26, 0.05);
  --shadow-md: 0 14px 36px -14px rgba(20, 35, 26, 0.28);

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.3em; }
strong { color: var(--ink); }

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--green-700);
  border-radius: 999px;
  background: var(--green-700);
  color: var(--white);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--ghost { background: transparent; color: var(--green-700); }
.btn--ghost:hover { background: var(--green-50); color: var(--green-800); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--green-800); }
.btn--light:hover { background: var(--green-50); border-color: var(--green-50); color: var(--green-900); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.95rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------- utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--white); }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
