/* ============================================================
   LII — Leadership Impact Institute
   global.css  |  v1.0  |  March 2026
   Single source of truth for all CSS custom properties,
   resets, typography, spacing, and utility classes.
   All component styles live in components.css.
   ============================================================ */


/* ── GOOGLE FONTS IMPORT ──────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');


/* ── DESIGN TOKENS ────────────────────────────────────────── */

:root {

  /* Brand Colours */
  --color-navy:       #0A1F44;
  --color-gold:       #C9A84C;
  --color-gold-light: #E8D5A3;
  --color-off-white:  #F8F7F4;
  --color-text-dark:  #1A1A2E;
  --color-mid-grey:   #6B7280;
  --color-border:     #E5E0D8;

  /* Derived / utility colours */
  --color-gold-dark:      #A8893A;   /* gold darkened ~10% for hover */
  --color-navy-mid:       #132B5E;   /* navy lightened slightly       */
  --color-white:          #FFFFFF;
  --color-overlay:        rgba(10, 31, 68, 0.72);

  /* Typography — Family */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Typography — Scale (clamp: min, preferred, max) */
  --text-display: clamp(2rem,    5vw,   3.5rem);
  --text-h1:      clamp(1.75rem, 4vw,   2.75rem);
  --text-h2:      clamp(1.4rem,  3vw,   2rem);
  --text-h3:      clamp(1.1rem,  2vw,   1.4rem);
  --text-body:    clamp(0.95rem, 1.5vw, 1.05rem);
  --text-small:   0.875rem;
  --text-xs:      0.75rem;

  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width:       1200px;
  --content-padding: clamp(1rem, 4vw, 2rem);

  /* Borders & Radius */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(10, 31, 68, 0.08);
  --shadow-lift: 0 8px 28px rgba(10, 31, 68, 0.14);
  --shadow-nav:  0 2px 16px rgba(10, 31, 68, 0.18);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-mid:  300ms ease;
}


/* ── CSS RESET ────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-dark);
  background-color: var(--color-off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}


/* ── TYPOGRAPHY — HEADINGS ────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: 1.1rem; }

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}

/* Headings on dark backgrounds */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .display {
  color: var(--color-white);
}


/* ── TYPOGRAPHY — BODY ────────────────────────────────────── */

p {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-dark);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.82);
}

small,
.text-small {
  font-size: var(--text-small);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Eyebrow / label text above headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Certification designation codes — JetBrains Mono only */
.cert-code {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Lead / intro paragraph */
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}


/* ── LINKS ────────────────────────────────────────────────── */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Inline prose links */
.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-gold-dark);
}


/* ── FOCUS STYLES — WCAG 2.1 AA ──────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Suppress default focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}


/* ── LAYOUT UTILITIES ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--content-padding);
}

/* Section wrapper — default padding */
.section {
  padding-block: var(--space-2xl);
}

/* Section background variants */
.section-light {
  background-color: var(--color-off-white);
}

.section-dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section-white {
  background-color: var(--color-white);
}


/* ── UTILITY CLASSES ──────────────────────────────────────── */

/* Screen-reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left;   }

/* Text colours */
.text-navy   { color: var(--color-navy);     }
.text-gold   { color: var(--color-gold);     }
.text-white  { color: var(--color-white);    }
.text-muted  { color: var(--color-mid-grey); }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semi   { font-weight: 600; }
.font-bold   { font-weight: 700; }

/* Spacing helpers */
.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }

.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

/* Gold rule / horizontal accent divider */
.gold-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background-color: var(--color-gold);
}

.gold-rule-center {
  display: block;
  width: 3rem;
  height: 2px;
  background-color: var(--color-gold);
  margin-inline: auto;
}


/* ── BREADCRUMB ───────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  color: var(--color-gold-light);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-gold-light);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb-sep {
  opacity: 0.5;
  user-select: none;
}

.breadcrumb span:last-child {
  opacity: 0.65;
}


/* ── PROSE — POLICY PAGES ─────────────────────────────────── */

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.prose p + p {
  margin-top: var(--space-sm);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
  font-size: var(--text-body);
  line-height: 1.65;
}


/* ── PRINT STYLES ─────────────────────────────────────────── */

@media print {

  /* Hide navigation, footer, and interactive elements */
  header,
  nav,
  footer,
  .skip-link,
  .alert-banner,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .hamburger {
    display: none !important;
  }

  /* All text to black on white */
  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4, h5, h6,
  .display {
    color: #000 !important;
  }

  p {
    color: #000 !important;
  }

  /* Show href for external links */
  a[href^="https://"]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #444;
  }

  /* Avoid breaks inside key components */
  .card,
  .stat-block,
  .process-step {
    break-inside: avoid;
  }

  /* Remove decorative shadows for print */
  .card,
  section {
    box-shadow: none !important;
  }

  /* Full-width layout */
  .container,
  .container-narrow {
    max-width: 100%;
    padding-inline: 0;
  }
}
