/* =========================================================
   SMART Intelligent Solutions — Color & Type Foundations
   ========================================================= */

/* Web fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Overpass:wght@300;400;500;600;700&display=swap');

/* Eurostile LT Extended is a licensed font used in the wordmark.
   We substitute Google's "Saira" (extended, geometric) as the nearest
   open-source match for long-form use. Flag this to the user. */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;700;800&display=swap');

:root {
  /* ——— BRAND COLORS ——— */
  --sis-dark-blue:   #1C2A43;   /* SIS/1 dark blue — primary */
  --sis-light-blue:  #5DB6D4;   /* SIS/1 light blue — accent */
  --sis-orange:      #E9A039;   /* SIS/1 orange — brand accent (hex/logo) */
  --sis-bg-grey:     #F0F0EE;   /* SIS/bg grey — warm page background */

  /* Secondary tonal */
  --sis-navy-deep:   #0D2F46;   /* deep navy — used in gradients */
  --sis-navy-mid:    #08446C;   /* supporting navy */

  /* ——— NEUTRALS (gray scale from source spec) ——— */
  --gray-1: #333333;
  --gray-2: #4F4F4F;
  --gray-3: #828282;
  --gray-4: #BDBDBD;
  --gray-5: #E0E0E0;
  --gray-6: #F2F2F2;
  --white:  #FFFFFF;
  --black:  #000000;

  /* ——— TINT STEPS (100 / 80 / 60 / 40 / 20 — per spec) ——— */
  --sis-dark-blue-80:  rgba(28, 42, 67, 0.80);
  --sis-dark-blue-60:  rgba(28, 42, 67, 0.60);
  --sis-dark-blue-40:  rgba(28, 42, 67, 0.40);
  --sis-dark-blue-20:  rgba(28, 42, 67, 0.20);

  --sis-light-blue-80: rgba(93, 182, 212, 0.80);
  --sis-light-blue-60: rgba(93, 182, 212, 0.60);
  --sis-light-blue-40: rgba(93, 182, 212, 0.40);
  --sis-light-blue-20: rgba(93, 182, 212, 0.20);

  --sis-orange-80:     rgba(233, 160, 57, 0.80);
  --sis-orange-60:     rgba(233, 160, 57, 0.60);
  --sis-orange-40:     rgba(233, 160, 57, 0.40);
  --sis-orange-20:     rgba(233, 160, 57, 0.20);

  /* ——— SEMANTIC ——— */
  --fg-1:         var(--sis-dark-blue);   /* primary text */
  --fg-2:         var(--gray-2);          /* body text */
  --fg-muted:     var(--gray-3);          /* captions / meta */
  --fg-on-dark:   var(--white);
  --fg-on-brand:  var(--white);

  --bg-page:      var(--white);
  --bg-subtle:    var(--sis-bg-grey);
  --bg-inverse:   var(--sis-dark-blue);
  --bg-brand:     var(--sis-orange);

  --border-default: var(--sis-bg-grey);
  --border-strong:  var(--gray-5);
  --border-on-dark: rgba(255,255,255,0.12);

  --link:          var(--sis-light-blue);
  --link-hover:    var(--sis-dark-blue);

  /* ——— TYPOGRAPHY FAMILIES ——— */
  --font-display: 'Rubik', system-ui, -apple-system, sans-serif;   /* headings, UI labels */
  --font-body:    'Overpass', system-ui, -apple-system, sans-serif; /* body copy */
  --font-brand:   'Saira', 'Eurostile LT ExtendedTwo', system-ui, sans-serif; /* wordmark / brand bursts */

  /* ——— TYPE TOKENS ——— */
  --fs-display-xl: 68px;  --lh-display-xl: 93px;   --ls-display-xl: 0.20em;
  --fs-display-l:  48px;  --lh-display-l:  58px;   --ls-display-l:  0.05em;
  --fs-h1:         32px;  --lh-h1:         38px;   --ls-h1:         0.05em;
  --fs-h2:         28px;  --lh-h2:         33px;   --ls-h2:         0.05em;
  --fs-h3:         22px;  --lh-h3:         28px;   --ls-h3:         0.03em;
  --fs-eyebrow:    16px;  --lh-eyebrow:    19px;   --ls-eyebrow:    0.30em;
  --fs-body:       17px;  --lh-body:       26px;
  --fs-body-sm:    15px;  --lh-body-sm:    22px;
  --fs-label:      16px;  --lh-label:      19px;   --ls-label:      0.02em;
  --fs-caption:    13px;  --lh-caption:    18px;

  /* ——— SPACING (4px base) ——— */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ——— RADII ——— */
  --radius-xs: 2px;
  --radius-sm: 4px;     /* default — matches Polygon/card radius in source */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* ——— SHADOWS ——— */
  --shadow-xs: 0 1px 2px rgba(28, 42, 67, 0.06);
  --shadow-sm: 0 2px 6px rgba(28, 42, 67, 0.08);
  --shadow-md: 0 6px 18px rgba(28, 42, 67, 0.10);
  --shadow-lg: 0 16px 40px rgba(28, 42, 67, 0.14);

  /* ——— MOTION ——— */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ——— BRAND GRADIENT (hero protection) ——— */
  --bg-hero-gradient: linear-gradient(180deg, #0D2F46 0%, rgba(13, 47, 70, 0) 28.72%, #0D2F46 55.7%), #08446C;
}

/* =========================================================
   Semantic element defaults
   ========================================================= */
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg-1);
  font-weight: 700;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--fs-h1);  line-height: var(--lh-h1);  letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2);  line-height: var(--lh-h2);  letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3);  line-height: var(--lh-h3);  letter-spacing: var(--ls-h3); }

p  { margin: 0 0 var(--space-3); color: var(--fg-2); }

small, .caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-brand);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--sis-orange);
  font-weight: 400;
}

.display-xl {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
  text-transform: uppercase;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code, pre, kbd, samp {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
