/* ==========================================================================
   Machine Tech Ideas Ltd. — design tokens (single source — P07 §6, §11, §15, §83–85, §115)
   Brand colours measured from the uploaded MACHINE-Tek logo. Phase 2 extends this file.
   ========================================================================== */
:root {
  /* Brand */
  --brand-navy: #2A306C;          /* "MACHINE" wordmark */
  --brand-blue: #1E96D8;          /* "-Tek" wordmark */
  --brand-gear-start: #1888C8;
  --brand-gear-mid: #2175BD;
  --brand-indigo: #33499F;

  /* Semantic colours */
  --color-background: #F3F6FA;    /* cool frost, not cream */
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-dark: #161A3F;  /* deep navy sections */
  --color-surface-dark-2: #1F2455;
  --color-text: #161A3F;
  --color-text-muted: #545E75;    /* 6.0:1 on background */
  --color-text-inverse: #F3F6FA;
  --color-text-inverse-muted: #B9C3D9; /* 9.5:1 on dark surface */
  --color-border: #D9E0EA;
  --color-border-strong: #AEB8C8;
  --color-primary: #2A306C;
  --color-primary-hover: #1F2455;
  --color-accent: #0E6FA9;        /* brand blue darkened for AA text/buttons (5.4:1 on white) */
  --color-accent-hover: #0B5B8B;
  --color-accent-bright: #1E96D8; /* on dark surfaces (5.1:1) and decoration */
  --color-success: #1E7A4C;
  --color-warning: #A8680F;
  --color-danger: #B42318;
  --color-whatsapp: #0E7C40;      /* channel colour, used sparingly (P07 §112) — darkened so white label passes AA */
  --color-focus: #1E96D8;

  /* Typography (fonts finalised in Phase 2 after Bengali QA — P07 §10, §14) */
  --font-sans: "Archivo", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Noto Sans Bengali", system-ui, sans-serif;
  --stretch-display: 112%;        /* semi-expanded Archivo for headings — the engineering voice */
  --stretch-body: 100%;
  --text-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --text-h1: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --text-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --text-h4: 1.125rem;
  --text-body-lg: 1.1875rem;
  --text-body: 1rem;
  --text-body-sm: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-label: 0.875rem;
  --text-button: 0.9375rem;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --leading-bengali: 1.75;        /* Bengali needs more line-height (P07 §126) */
  --measure: 68ch;                /* comfortable line length (P07 §13) */

  /* Spacing scale XS → 4XL (P07 §15) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* Layout (P07 §16–17) */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 0.6rem + 1.8vw, 2rem);

  /* Radius small / medium / large / pill (P07 §84) — industrial: mostly small */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Shadows none / sm / md / lg (P07 §85) — navy-tinted, subtle */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(22, 26, 63, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(22, 26, 63, 0.14);
  --shadow-lg: 0 18px 40px -12px rgba(22, 26, 63, 0.22);

  /* Motion (P07 §31, §20) — transform/opacity only */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-reveal: 520ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Z-index hierarchy (P07 §115) */
  --z-base: 0;
  --z-dropdown: 100;
  --z-header: 200;
  --z-floating: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-lightbox: 700;

  /* Aspect ratios (P07 §27) */
  --ratio-square: 1 / 1;
  --ratio-product: 4 / 3;
  --ratio-project: 3 / 2;
  --ratio-cover: 16 / 9;

  /* Breakpoints (documented; used in @media): 480 small mobile · 768 tablet · 1024 desktop · 1280 large · 1536 xl */
}

/* Signature shape: a notched corner echoing the gear teeth of the logo and insulated cold-room panels.
   Used only on CTA panels and capacity cards (P07 §5 "different shapes based on context"). */
:root { --notch: 18px; }
