/* ============================================================
   PMO Simplified — Foundations
   Colors, Typography, Spacing, Radii, Shadows
   ============================================================ */

/* ---------- Webfont stack ----------
   PRIMARY: "WF Visual Sans Variable" — proprietary; not bundled.
     Drop licensed .woff2 files into ./fonts/ and the @font-face below picks them up.
     Until then, the stack falls through to Manrope (closest free analog) and then Arial.
   MONO: Inconsolata — companion monospace per the brand spec.
*/
@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;600;700&family=Manrope:wght@400;500;550;600;700;800&display=swap");

/* If you have licensed WF Visual Sans Variable files, drop them here.
   The system already references the family name "WF Visual Sans Variable" everywhere,
   so simply un-comment + adjust the src paths and the brand font lights up automatically. */
/*
@font-face {
  font-family: "WF Visual Sans Variable";
  src: url("./fonts/WFVisualSans-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* ============ COLORS ============ */

  /* Primary — Trust Navy
     A confident, professional blue. Deeper than Webflow Blue; reads as
     "consultancy" rather than "developer tool". */
  --color-primary:           #1f3a8a; /* Trust Navy — primary CTA + brand */
  --color-primary-600:       #2545a8; /* hover surface */
  --color-primary-500:       #2f57c9; /* interactive default */
  --color-primary-400:       #5b7fe0; /* lighter accent */
  --color-primary-300:       #aebde9; /* muted tint */
  --color-primary-100:       #e8edf9; /* badge bg / highlight */
  --color-primary-050:       #f4f6fc; /* subtle surface */

  /* Ink — Near-black text */
  --color-ink:               #0a0a0a; /* primary text */
  --color-ink-800:           #1f1f1f;
  --color-ink-700:           #363636; /* mid text */
  --color-ink-600:           #5a5a5a; /* link / secondary text */
  --color-ink-400:           #898989; /* hover border */
  --color-ink-300:           #ababab; /* muted, placeholder */
  --color-ink-200:           #d8d8d8; /* border, divider */
  --color-ink-100:           #ececec; /* subtle border */
  --color-ink-050:           #f6f6f6; /* surface alt */

  /* Surface */
  --color-bg:                #ffffff;
  --color-surface:           #ffffff;
  --color-surface-alt:       #f8f8f7; /* warm-paper alt surface */
  --color-surface-canvas:    #f3f3f1; /* page canvas */

  /* Secondary — restrained palette, used for tags / status / charts.
     Tuned slightly more muted than the Webflow secondary set so they read
     as PM/consulting (status), not playful product. */
  --color-amber:             #d97706; /* in-progress / warning */
  --color-amber-100:         #fef3e2;
  --color-emerald:           #047857; /* on-track / success */
  --color-emerald-100:       #e3f3ec;
  --color-rose:              #be123c; /* blocked / critical */
  --color-rose-100:          #fde8ee;
  --color-violet:            #6d28d9; /* strategic / governance */
  --color-violet-100:        #ede4fb;
  --color-teal:              #0e7490; /* info */
  --color-teal-100:          #def1f5;
  --color-slate:             #334155; /* neutral tag */
  --color-slate-100:         #e7ebf0;

  /* Semantic roles */
  --fg-1:        var(--color-ink);
  --fg-2:        var(--color-ink-700);
  --fg-3:        var(--color-ink-600);
  --fg-muted:    var(--color-ink-300);
  --fg-on-dark:  #ffffff;
  --fg-on-brand: #ffffff;
  --link:        var(--color-primary);
  --link-hover:  var(--color-primary-600);
  --border:      var(--color-ink-200);
  --border-strong: var(--color-ink-400);
  --border-subtle: var(--color-ink-100);

  /* Status (semantic) */
  --status-ontrack:    var(--color-emerald);
  --status-progress:   var(--color-amber);
  --status-blocked:    var(--color-rose);
  --status-info:       var(--color-teal);
  --status-strategic:  var(--color-violet);

  /* ============ TYPOGRAPHY ============
     Family per brand spec. "WF Visual Sans Variable" is the canonical primary;
     Manrope is the bundled fallback for development. */
  --font-display: "WF Visual Sans Variable", "Manrope", Arial, sans-serif;
  --font-body:    "WF Visual Sans Variable", "Manrope", Arial, sans-serif;
  --font-mono:    "Inconsolata", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* Type scale — Webflow-spec aligned */
  --fs-hero:        80px;   /* Display Hero  */
  --fs-section:     56px;   /* Section Heading */
  --fs-subhead:     32px;   /* Sub-heading */
  --fs-feature:     24px;   /* Feature title */
  --fs-body-lg:     20px;   /* Lead body */
  --fs-body:        16px;   /* Body standard */
  --fs-button:      16px;
  --fs-label:       15px;   /* Uppercase label */
  --fs-caption:     14px;
  --fs-badge:       12.8px;
  --fs-micro:       10px;

  /* Line height */
  --lh-hero:    1.04;
  --lh-section: 1.04;
  --lh-tight:   1.20;
  --lh-snug:    1.30;
  --lh-normal:  1.40;
  --lh-relaxed: 1.50;
  --lh-loose:   1.60;

  /* Letter spacing */
  --ls-hero:        -0.8px;
  --ls-body:        -0.16px;
  --ls-label:       1.5px;
  --ls-micro:       1px;
  --ls-normal:      0;

  /* Weights — per spec */
  --fw-regular:  400;
  --fw-body:     500;   /* default body */
  --fw-badge:    550;   /* badge uppercase */
  --fw-display:  600;   /* display + section headings */
  --fw-bold:     700;

  /* ============ SPACING (fractional, Webflow-style) ============ */
  --sp-px:    1px;
  --sp-1:     2.4px;
  --sp-2:     3.2px;
  --sp-3:     4px;
  --sp-4:     5.6px;
  --sp-5:     6px;
  --sp-6:     7.2px;
  --sp-7:     8px;
  --sp-8:     9.6px;
  --sp-9:     12px;
  --sp-10:    16px;
  --sp-11:    24px;
  --sp-12:    32px;
  --sp-13:    48px;
  --sp-14:    64px;
  --sp-15:    96px;
  --sp-16:    128px;

  /* ============ RADII — conservative & sharp ============ */
  --r-xs:    2px;
  --r-sm:    4px;   /* default — buttons, badges, cards */
  --r-md:    8px;   /* larger cards / panels */
  --r-pill:  9999px;
  --r-circle: 50%;

  /* ============ SHADOWS — 5-layer cascade ============ */
  --shadow-card:
    rgba(0,0,0,0)    0px 84px 24px,
    rgba(0,0,0,0.01) 0px 54px 22px,
    rgba(0,0,0,0.04) 0px 30px 18px,
    rgba(0,0,0,0.08) 0px 13px 13px,
    rgba(0,0,0,0.09) 0px  3px  7px;

  --shadow-soft:
    rgba(0,0,0,0.04) 0px 8px  16px,
    rgba(0,0,0,0.06) 0px 2px   4px;

  --shadow-elevated:
    rgba(0,0,0,0.02) 0px 24px 48px,
    rgba(0,0,0,0.04) 0px 12px 24px,
    rgba(0,0,0,0.08) 0px  4px  8px;

  --shadow-focus: 0 0 0 3px rgba(31, 58, 138, 0.20);

  /* ============ TIMING ============ */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES — drop into any page importing this file
   ============================================================ */

html, body {
  background: var(--color-bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-display);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: var(--fw-display);
  line-height: var(--lh-section);
  letter-spacing: -0.4px;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: var(--fw-body);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-feature);
  font-weight: var(--fw-body);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin: 0;
}
.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
  color: var(--fg-2);
  font-weight: var(--fw-regular);
}
p { margin: 0; color: var(--fg-2); }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); }

.label {
  font-size: var(--fs-label);
  font-weight: var(--fw-body);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--fg-2);
}
.micro {
  font-size: var(--fs-micro);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--fg-2);
}
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--color-primary-100);
  color: var(--color-primary);
}
