/**
 * EcoImpact Premium — Design Tokens
 * Original conservation design system (not derived from third-party sites)
 */

:root {
  /* ─── Color Palette ─────────────────────────────────────── */
  --eco-forest-green:   #1B4332;
  --eco-earth-green:    #2D6A4F;
  --eco-sage:           #52B788;
  --eco-warm-beige:     #F5EDE0;
  --eco-soft-sand:      #FAF6F0;
  --eco-deep-charcoal:  #1A1A1A;
  --eco-golden-accent:  #C9A227;
  --eco-white:          #FFFFFF;
  --eco-sage-mist:      #D8E2DC;
  --eco-overlay-dark:   rgba(27, 67, 50, 0.72);
  --eco-overlay-light:  rgba(250, 246, 240, 0.92);

  /* ─── Typography ──────────────────────────────────────────── */
  --eco-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --eco-font-body:    "DM Sans", system-ui, -apple-system, sans-serif;

  --eco-text-xs:   0.75rem;
  --eco-text-sm:   0.875rem;
  --eco-text-base: 1rem;
  --eco-text-lg:   1.125rem;
  --eco-text-xl:   1.25rem;
  --eco-text-2xl:  1.5rem;
  --eco-text-3xl:  2rem;
  --eco-text-4xl:  2.5rem;
  --eco-text-5xl:  3.5rem;
  --eco-text-6xl:  4.5rem;

  --eco-leading-tight:  1.15;
  --eco-leading-normal: 1.7;
  --eco-tracking-wide:  0.08em;
  --eco-tracking-tight: -0.02em;

  /* ─── Spacing Scale ─────────────────────────────────────── */
  --eco-space-1:  0.25rem;
  --eco-space-2:  0.5rem;
  --eco-space-3:  0.75rem;
  --eco-space-4:  1rem;
  --eco-space-6:  1.5rem;
  --eco-space-8:  2rem;
  --eco-space-10: 2.5rem;
  --eco-space-12: 3rem;
  --eco-space-16: 4rem;
  --eco-space-20: 5rem;
  --eco-space-24: 6rem;
  --eco-space-32: 8rem;

  /* ─── Layout ──────────────────────────────────────────────── */
  --eco-container-max: 1280px;
  --eco-container-narrow: 720px;
  --eco-container-padding: clamp(1rem, 4vw, 2rem);

  /* ─── Radii ───────────────────────────────────────────────── */
  --eco-radius-card:   24px;
  --eco-radius-button: 999px;
  --eco-radius-input:  12px;
  --eco-radius-sm:     8px;

  /* ─── Shadows ─────────────────────────────────────────────── */
  --eco-shadow-sm:  0 2px 8px rgba(27, 67, 50, 0.06);
  --eco-shadow-md:  0 8px 32px rgba(27, 67, 50, 0.10);
  --eco-shadow-lg:  0 16px 48px rgba(27, 67, 50, 0.14);
  --eco-shadow-glow: 0 0 0 3px rgba(201, 162, 39, 0.25);

  /* ─── Transitions ─────────────────────────────────────────── */
  --eco-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --eco-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --eco-duration-fast:   180ms;
  --eco-duration-normal: 320ms;
  --eco-duration-slow:   600ms;

  /* ─── Z-Index ─────────────────────────────────────────────── */
  --eco-z-header: 1000;
  --eco-z-overlay: 900;
  --eco-z-modal: 1100;
}

/* ─── Base Typography Scale ─────────────────────────────────── */
body {
  font-family: var(--eco-font-body);
  font-size: var(--eco-text-base);
  line-height: var(--eco-leading-normal);
  color: var(--eco-deep-charcoal);
  background-color: var(--eco-soft-sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.ecoimpact-heading {
  font-family: var(--eco-font-heading);
  font-weight: 500;
  line-height: var(--eco-leading-tight);
  letter-spacing: var(--eco-tracking-tight);
  color: var(--eco-forest-green);
}

h1 { font-size: clamp(var(--eco-text-4xl), 5vw, var(--eco-text-6xl)); }
h2 { font-size: clamp(var(--eco-text-3xl), 4vw, var(--eco-text-5xl)); }
h3 { font-size: clamp(var(--eco-text-2xl), 3vw, var(--eco-text-4xl)); }
h4 { font-size: var(--eco-text-2xl); }
h5 { font-size: var(--eco-text-xl); }
h6 { font-size: var(--eco-text-lg); }

.ecoimpact-eyebrow {
  font-family: var(--eco-font-body);
  font-size: var(--eco-text-sm);
  font-weight: 600;
  letter-spacing: var(--eco-tracking-wide);
  text-transform: uppercase;
  color: var(--eco-golden-accent);
}

.ecoimpact-container {
  width: min(100% - var(--eco-container-padding) * 2, var(--eco-container-max));
  margin-inline: auto;
}

.ecoimpact-section {
  padding-block: clamp(var(--eco-space-16), 8vw, var(--eco-space-32));
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  padding: var(--eco-space-2) var(--eco-space-4);
  background: var(--eco-forest-green);
  color: var(--eco-white);
}
