/* ==========================================================================
   Makwana Corporate — Design Tokens
   Single source of truth. Every other stylesheet reads from here.
   ========================================================================== */

:root {
  /* ---------- Brand colour (from the new logo) ---------- */
  --primary: #0C5644;
  --primary-dark: #073C31;
  --secondary: #147A60;
  --accent: #22A77A;
  --mint: #EAF6F2;
  --light-bg: #F5FAF8;
  --dark: #24272A;
  --text: #60686B;
  --border: #DDE8E4;
  --white: #FFFFFF;

  /* Derived shades (kept in the same hue family) */
  --primary-900: #05291F;           /* deepest — footer base, card shadows */
  --primary-700: var(--primary-dark);
  --primary-600: var(--primary);
  --primary-500: var(--secondary);
  --primary-400: var(--accent);
  --primary-200: #BFE3D6;
  --primary-100: #D6EDE5;
  --primary-50:  var(--mint);
  --primary-alpha-08: rgba(12, 86, 68, 0.08);
  --primary-alpha-14: rgba(12, 86, 68, 0.14);
  --primary-alpha-24: rgba(12, 86, 68, 0.24);

  --ink: var(--dark);               /* headings & strong copy */
  --ink-soft: #3A3F42;              /* secondary headings */
  --muted: var(--text);             /* body copy */
  --subtle: #8A9396;                /* hints, meta */
  --line: var(--border);
  --line-strong: #C9D9D3;
  --surface: var(--white);
  --surface-alt: var(--light-bg);
  --surface-tint: var(--mint);

  /* Status */
  --success: #1E8A5F;
  --success-bg: #E6F5EE;
  --error: #C2412D;
  --error-bg: #FCEDEA;
  --warning: #B7791F;
  --warning-bg: #FDF5E6;
  --info: #2B6A8F;
  --info-bg: #E9F2F8;

  /* ---------- Typography ---------- */
  --font-heading: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale (360px → 1440px) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.9vw, 4rem);      /* 40 → 64 : H1 hero */
  --fs-h1: clamp(2.25rem, 1.65rem + 2.6vw, 3.375rem);     /* 36 → 54 : page H1 */
  --fs-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);      /* 30 → 44 */
  --fs-h3: clamp(1.375rem, 1.22rem + 0.65vw, 1.75rem);    /* 22 → 28 */
  --fs-h4: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);   /* 18 → 21 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);     /* 17 → 20 */
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);    /* 16 → 17 */
  --fs-small: 0.875rem;                                    /* 14 */
  --fs-xs: 0.8125rem;                                      /* 13 */
  --fs-stat: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  --lh-tight: 1.08;
  --lh-heading: 1.18;
  --lh-snug: 1.4;
  --lh-body: 1.65;

  --tracking-tight: -0.025em;
  --tracking-heading: -0.018em;
  --tracking-wide: 0.04em;

  --measure: 64ch;                 /* comfortable reading width */
  --measure-narrow: 48ch;

  /* ---------- Layout ---------- */
  --container: 1280px;
  --container-narrow: 880px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);          /* 20 → 40 side padding */

  --header-h: 84px;
  --header-h-compact: 68px;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-7: 2rem;      /* 32 */
  --space-8: 2.5rem;    /* 40 */
  --space-9: 3rem;      /* 48 */
  --space-10: 4rem;     /* 64 */
  --space-11: 5rem;     /* 80 */
  --space-12: 6rem;     /* 96 */

  /* Section rhythm: 64px mobile → 120px desktop */
  --section-y: clamp(4rem, 2.6rem + 5.6vw, 7.5rem);
  --section-y-sm: clamp(3rem, 2.2rem + 3.2vw, 5rem);

  /* ---------- Radius (hierarchy, not one value everywhere) ---------- */
  --radius-xs: 6px;      /* tags, tiny controls */
  --radius-sm: 10px;     /* buttons, inputs */
  --radius-md: 14px;     /* cards */
  --radius-lg: 22px;     /* large panels, image frames */
  --radius-xl: 32px;     /* hero visuals */
  --radius-full: 999px;  /* chips, avatars, toggles */

  /* ---------- Elevation (green-tinted, used sparingly) ---------- */
  --shadow-xs: 0 1px 2px rgba(7, 60, 49, 0.06);
  --shadow-sm: 0 2px 6px rgba(7, 60, 49, 0.06), 0 1px 2px rgba(7, 60, 49, 0.04);
  --shadow-md: 0 12px 28px -10px rgba(7, 60, 49, 0.18), 0 2px 6px rgba(7, 60, 49, 0.05);
  --shadow-lg: 0 28px 60px -22px rgba(7, 60, 49, 0.32), 0 6px 14px rgba(7, 60, 49, 0.06);
  --shadow-card: 0 30px 50px -24px rgba(5, 41, 31, 0.55);
  --ring: 0 0 0 4px rgba(34, 167, 122, 0.22);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 520ms;
  --dur-reveal: 720ms;

  /* ---------- Layers ---------- */
  --z-base: 1;
  --z-dropdown: 40;
  --z-header: 50;
  --z-floating: 60;
  --z-overlay: 80;
  --z-drawer: 90;
  --z-modal: 100;
  --z-toast: 120;
}
