/* ZorgGerr — warm, human design system
   Rooted in the green leaf logo: bright leaf + deep leaf + warm cream backdrop.
*/

:root {
  /* Greens, pulled from the logo */
  --leaf-bright: #8BC53F;
  --leaf-bright-deep: #74A82D;
  --leaf-deep: #4A9B2E;
  --leaf-shadow: #2F6A1C;
  --leaf-soft: #C5DCA0;
  --leaf-wash: #E8F1D5;

  /* Warm neutrals */
  --cream: #FBF8F1;
  --cream-deep: #F4EEE1;
  --bone: #ECE4D2;
  --paper: #FFFFFF;

  /* Ink */
  --ink: #1F2C1A;
  --ink-soft: #4A5544;
  --ink-mute: #7A8472;

  /* Warm accents */
  --terra: #D4855B;
  --terra-soft: #F1D6C2;
  --blush: #F4DDD0;
  --amber: #E8B976;

  /* Status */
  --error: #B8463A;
  --error-soft: #F5DCD8;
  --ok: var(--leaf-deep);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --r-pill: 999px;

  /* Shadows — soft, warm */
  --shadow-sm: 0 2px 8px -2px rgba(47, 106, 28, 0.08), 0 1px 2px rgba(31, 44, 26, 0.04);
  --shadow-md: 0 10px 28px -8px rgba(47, 106, 28, 0.14), 0 4px 10px -4px rgba(31, 44, 26, 0.06);
  --shadow-lg: 0 24px 56px -16px rgba(47, 106, 28, 0.18), 0 8px 24px -8px rgba(31, 44, 26, 0.08);

  /* Type */
  --font-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Container */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
}

body {
  overflow-x: hidden;
}

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

a { color: var(--leaf-shadow); text-decoration: none; }
a:hover { color: var(--leaf-deep); }

button { font-family: inherit; cursor: pointer; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.12;
}
h2, h3, h4 { text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 400; line-height: 1.1; text-wrap: pretty; }
h2 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 400; line-height: 1.12; }
h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; font-family: var(--font-body); letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

em, .italic-display { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

/* Eyebrow */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-shadow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--leaf-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--leaf-deep);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(47,106,28,0.5);
}
.btn-primary:hover { background: var(--leaf-shadow); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31,44,26,0.18);
}
.btn-ghost:hover { background: rgba(31,44,26,0.05); }
.btn-cream {
  background: var(--cream);
  color: var(--ink);
}
.btn-cream:hover { background: var(--paper); }

/* Card */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,44,26,0.04);
}

/* Blob — decorative organic shape */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Leaf decorative SVG sizing */
.leaf-deco { position: absolute; pointer-events: none; }

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.input, .textarea, .select {
  font: inherit;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid rgba(31,44,26,0.1);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--leaf-deep);
  background: var(--paper);
}
.textarea { min-height: 140px; resize: vertical; font-family: inherit; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--leaf-deep);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Badge / Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--leaf-wash);
  color: var(--leaf-shadow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-pill);
}

/* Animated reveal — JS adds .reveal-armed before observer runs, falls back to visible */
.reveal {
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-armed {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-armed.in {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.grid { display: grid; }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.muted { color: var(--ink-soft); }
.tiny { color: var(--ink-mute); font-size: 13px; }

/* Loading */
.app-loader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  transition: opacity .4s ease;
}
.app-loader.gone { opacity: 0; pointer-events: none; }
.app-loader-leaf {
  width: 56px; height: 56px;
  animation: leaf-spin 1.6s ease-in-out infinite;
}
@keyframes leaf-spin {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.05); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .card { padding: 24px; }
}
