/* ==========================================================================
   MTech Engineering — tokens.css
   Single source of design truth. Every colour, size, shadow and rhythm used
   anywhere on this site is declared here as a custom property.
   Change a value once → it updates everywhere.
   ========================================================================== */

/* Fonts are loaded with <link rel="preconnect"> + display=swap in each page
   head (see any .html file). System stacks below are the guaranteed fallback. */

:root {
  /* ---------------------------------------------------------------- surfaces */
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EAF1F8;

  /* --------------------------------------------------------------------- ink */
  --navy-900: #0B1F3A;   /* headings + dark sections */
  --navy-800: #102B4C;
  --navy-700: #163A63;
  --text: #334155;       /* body copy */
  /* Secondary copy. Darkened from slate-500 (#64748B) because that value only
     reaches 4.18:1 on --surface-alt; #5B6C82 clears AA on every light surface. */
  --muted: #5B6C82;
  --on-dark: #FFFFFF;
  --on-dark-soft: #C4D4E8;  /* AA on navy-900 */
  --on-dark-muted: #9FB6D0; /* AA on navy-900 */

  /* ----------------------------------------------------------------- accents */
  --blue: #1E88C8;
  --blue-strong: #17709F;
  --blue-deep: #125C85;
  --blue-soft: #E4F1F9;
  --teal: #12A89D;
  --teal-strong: #0E857C;
  --teal-soft: #DEF4F2;
  --orange: #E8710A;
  --orange-strong: #A94E04;
  --orange-soft: #FDEEE0;
  --amber: #F5A623;
  --amber-strong: #8F5C06;
  --amber-soft: #FEF2DD;
  --red: #D1182B;
  --red-soft: #FBE5E8;

  /* ------------------------------------------------------------ ink colours
     Bright accents are fine for icon chips, bars and borders. Small coloured
     text needs 4.5:1, so it uses these darker "ink" variants instead.
     Every *-ink value is verified AA on --bg, --surface and --surface-alt. */
  --blue-ink: #17709F;
  --teal-ink: #0A665F;
  --orange-ink: #A94E04;
  --amber-ink: #8F5C06;
  --red-ink: #D1182B;
  --navy-ink: #163A63;

  /* -------------------------------------------------------------- brand mark */
  --brand-navy: #0B1F3A;
  --brand-blue: #1E88C8;
  --brand-red: #D1182B;

  /* --------------------------------------------------- service accent colours */
  --svc-civil: #C0504D;
  --svc-civil-soft: #F8E9E8;
  --svc-civil-ink: #A03A37;
  --svc-architectural: #E8710A;
  --svc-architectural-soft: #FDEEE0;
  --svc-architectural-ink: #A94E04;
  --svc-electrical: #3B6CB4;
  --svc-electrical-soft: #E7EEF8;
  --svc-electrical-ink: #3B6CB4;
  --svc-fire: #D1182B;
  --svc-fire-soft: #FBE5E8;
  --svc-fire-ink: #D1182B;
  --svc-plumbing: #12A89D;
  --svc-plumbing-soft: #DEF4F2;
  --svc-plumbing-ink: #0A6E67;
  --svc-solar: #7A9A3A;
  --svc-solar-soft: #EEF4E2;
  --svc-solar-ink: #4F6B1D;
  --svc-testing: #7B5EA7;
  --svc-testing-soft: #F0EBF7;
  --svc-testing-ink: #7B5EA7;

  /* -------------------------------------------------------------------- lines */
  --border: #DCE5EF;
  --border-strong: #C5D4E5;
  --border-dark: rgba(255, 255, 255, .14);

  /* ------------------------------------------------------- blueprint motif */
  --grid-line: rgba(11, 31, 58, .055);
  --grid-line-strong: rgba(11, 31, 58, .085);
  --grid-size: 40px;

  /* ------------------------------------------------------------------ layout */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --section-y-sm: clamp(2.75rem, 5vw, 4.25rem);

  /* ------------------------------------------------------------------ rhythm */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;

  /* ---------------------------------------------------------------- radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* -------------------------------------------------------------- shadows */
  --sh-xs: 0 1px 2px rgba(11, 31, 58, .05);
  --sh-sm: 0 2px 8px rgba(11, 31, 58, .055), 0 1px 2px rgba(11, 31, 58, .04);
  --sh-md: 0 10px 28px -12px rgba(11, 31, 58, .16), 0 3px 10px -6px rgba(11, 31, 58, .09);
  --sh-lg: 0 26px 56px -22px rgba(11, 31, 58, .24), 0 8px 20px -14px rgba(11, 31, 58, .12);
  --sh-xl: 0 44px 84px -32px rgba(11, 31, 58, .30);
  --sh-focus: 0 0 0 3px rgba(30, 136, 200, .38);
  --sh-inset-line: inset 0 1px 0 rgba(255, 255, 255, .6);

  /* ------------------------------------------------------------ typography */
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-h1: clamp(2.75rem, 5.6vw, 4.25rem);   /*  44 → 68 */
  --fs-h2: clamp(1.875rem, 3.3vw, 2.75rem);  /*  30 → 44 */
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);    /*  20 → 24 */
  --fs-h4: clamp(1.0625rem, 1.3vw, 1.1875rem);
  --fs-lead: clamp(1.0625rem, 1.35vw, 1.1875rem);
  --fs-body: clamp(1rem, 0.4vw + 0.92rem, 1.0625rem); /* 16 → 17 */
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;
  --fs-stat: clamp(2.25rem, 4.6vw, 3.25rem);

  --lh-tight: 1.1;
  --lh-heading: 1.22;
  --lh-body: 1.65;

  --ls-tight: -0.02em;
  --ls-wide: 0.18em;

  /* ------------------------------------------------------------ motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 620ms;

  /* --------------------------------------------------------------- layers */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 500;
  --z-header: 1000;
  --z-overlay: 1100;
  --z-float: 1200;

  --header-h: 78px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 66px;
  }
}
