/*
 * Groene Moslims design tokens.
 *
 * Single source of truth: inc/design-tokens.php reads the hex values below to
 * remap legacy Divi module colours at render time, so edit colours here only.
 * Contrast notes are WCAG 2.x ratios against white (#fff) unless stated.
 *
 * Naming: the gm-event-manager plugin defines its own --gm-* variables inside
 * #gm-plugin-root (--gm-accent, --gm-ink, --gm-shadow-*, --gm-r-*, …). Do not
 * reuse those names here.
 */
:root {
	/* Brand – the logo green. PRIMARY colour: buttons, highlights, icons,
	 * dividers, section backgrounds.
	 * Text ON brand: always --gm-green-900 (6.37:1) – never white (2.1:1).
	 * Brand AS text: only on --gm-green-900 (6.37:1) or --gm-green-800 (5.07:1). */
	--gm-brand: #61c3aa;
	--gm-brand-hover: #4fb79c; /* hover/pressed brand surface; green-900 text 5.53:1 */

	/* Dark greens */
	--gm-green-50: #ebf5f2;  /* mint tint background (green-900 text 12.2:1) */
	--gm-green-600: #397465; /* ONLY inline text links in body copy (5.4:1 on white) */
	--gm-green-700: #2e5c50; /* small accent text on light backgrounds (7.6:1) */
	--gm-green-800: #244435; /* headings on light; dark sections/footer bg (brand text 5.07:1) */
	--gm-green-900: #19332d; /* body text; text on brand; darkest section bg (brand text 6.37:1) */
	--gm-mint-100: #cfe9e1;  /* body text on dark green sections (10.6:1 on green-900) */

	/* Backgrounds & earth neutrals */
	--gm-white: #ffffff;
	--gm-sage-50: #f4f9ed;   /* existing light sage section background */
	--gm-sand-50: #faf7f0;   /* warm off-white page background */
	--gm-sand-200: #ebe3d3;  /* hairlines, card borders */
	--gm-earth-600: #6f6157; /* secondary text on light backgrounds (6.0:1) */
	--gm-earth-800: #423e3b; /* existing dark earth */

	/* The one accent colour – reserved, decoration only (not for text) */
	--gm-ochre: #c08a3e;

	/* Semantic aliases */
	--gm-color-primary: var(--gm-brand);
	--gm-color-on-primary: var(--gm-green-900);
	--gm-color-text: var(--gm-green-900);
	--gm-color-text-muted: var(--gm-earth-600);
	--gm-color-heading: var(--gm-green-800);
	--gm-color-link: var(--gm-green-600);
	--gm-color-link-hover: var(--gm-green-900);
	--gm-color-icon: var(--gm-brand);
	--gm-color-button-bg: var(--gm-brand);
	--gm-color-button-text: var(--gm-green-900);
	--gm-color-button-bg-hover: var(--gm-brand-hover);
	--gm-color-focus: var(--gm-green-900);
	--gm-color-accent: var(--gm-ochre);
	--gm-color-bg: var(--gm-white);
	--gm-color-bg-alt: var(--gm-sage-50);
	--gm-color-bg-warm: var(--gm-sand-50);
	--gm-color-bg-dark: var(--gm-green-900);
	--gm-color-text-on-dark: var(--gm-mint-100);
	--gm-color-heading-on-dark: var(--gm-brand);
	--gm-color-link-on-dark: var(--gm-brand);
	--gm-color-focus-on-dark: var(--gm-brand);

	/* Typography */
	--gm-font-heading: 'Baloo Da 2', 'Work Sans', system-ui, sans-serif;
	--gm-font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--gm-font-arabic: 'KFGQPC HAFS Uthmanic Script', 'Noto Naskh Arabic', 'Traditional Arabic', serif;

	--gm-weight-regular: 400;
	--gm-weight-medium: 500;
	--gm-weight-semibold: 600;
	--gm-weight-bold: 700;

	/* Fluid type scale (~1.25 ratio), 360px → 1280px viewport */
	--gm-text-xs: 0.8125rem;                                 /* 13px */
	--gm-text-sm: 0.9375rem;                                 /* 15px */
	--gm-text-base: 1.0625rem;                               /* 17px */
	--gm-text-lg: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
	--gm-text-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
	--gm-text-2xl: clamp(1.5rem, 1.33rem + 0.75vw, 1.875rem);
	--gm-text-3xl: clamp(1.75rem, 1.47rem + 1.25vw, 2.5rem);
	--gm-text-4xl: clamp(2.125rem, 1.7rem + 1.9vw, 3.25rem);
	--gm-text-arabic: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);

	--gm-leading-tight: 1.2;
	--gm-leading-snug: 1.35;
	--gm-leading-body: 1.65;
	--gm-leading-arabic: 2;

	/* Spacing (4px base) */
	--gm-space-1: 0.25rem;
	--gm-space-2: 0.5rem;
	--gm-space-3: 0.75rem;
	--gm-space-4: 1rem;
	--gm-space-5: 1.5rem;
	--gm-space-6: 2rem;
	--gm-space-7: 3rem;
	--gm-space-8: 4rem;
	--gm-space-9: 6rem;
	--gm-section-y: clamp(3rem, 2rem + 4vw, 6rem);
	--gm-container: 1180px;

	/* Radius & elevation */
	--gm-radius-sm: 6px;
	--gm-radius-md: 12px;
	--gm-radius-lg: 20px;
	--gm-radius-pill: 999px;
	--gm-elevation-1: 0 1px 2px rgba(25, 51, 45, 0.08);
	--gm-elevation-2: 0 6px 20px rgba(25, 51, 45, 0.1);
	--gm-focus-ring: 0 0 0 3px var(--gm-white), 0 0 0 5px var(--gm-color-focus);
}
