/* ==========================================================================
   i2X Brand Design System - CSS Custom Properties
   Source of truth: CLAUDE.md (Section 2–8)
   Consumed by: Elementor custom CSS, page templates, any WP stylesheet
   ========================================================================== */

:root {
  /* ── Colour palette ─────────────────────────────────────────── */
  --i2x-navy:           #212B55;
  --i2x-navy-900:       #141A38;
  --i2x-navy-950:       #0D1226;   /* footer / deepest navy       */
  --i2x-blue:           #3A4A9A;
  --i2x-blue-400:       #6472BE;
  --i2x-blue-200:       #A4ADE0;
  --i2x-blue-100:       #E8EAF5;
  --i2x-blue-50:        #F2F4FB;
  --i2x-grey:           #C4C8D8;
  --i2x-grey-soft:      #DDE0EC;   /* subtle borders, logo-wall   */
  --i2x-grey-dark:      #9AA1B8;
  --i2x-yellow:         #FFED00;
  --i2x-yellow-tint:    #FFF7A8;
  --i2x-cream:          #FAFBFD;   /* warm off-white surface       */

  /* ── Semantic surface tokens ────────────────────────────────── */
  --i2x-bg:             #FFFFFF;   /* default page background     */
  --i2x-bg-2:           #F2F4FB;   /* blue-tinted section bg      */
  --i2x-bg-3:           #E8EAF5;   /* alternate section bg        */
  --i2x-fg:             #0D1226;   /* primary body text (ink)     */
  --i2x-fg-2:           #3A4565;   /* secondary body text         */
  --i2x-fg-3:           #6B7596;   /* muted / metadata            */
  --i2x-border:         #E4E7F0;   /* default border              */
  --i2x-border-strong:  #C4C8D8;   /* strong border / divider     */

  /* ── Spacing ────────────────────────────────────────────────── */
  --i2x-section:        112px;     /* section vertical padding    */
  --i2x-pad:            32px;      /* horizontal content padding  */
  --i2x-max-w:          1400px;    /* max content width           */
  --i2x-max-w-sub:      1280px;    /* max subpage content width   */

  /* ── Typography ─────────────────────────────────────────────── */
  --i2x-font-body:      "Inter", system-ui, sans-serif;
  --i2x-font-mono:      "Red Hat Mono", ui-monospace, monospace;

  /* ── Border radius ──────────────────────────────────────────── */
  --i2x-r-pill:         999px;
  --i2x-r-xl:           20px;
  --i2x-r-lg:           16px;
  --i2x-r-md:           12px;
  --i2x-r-sm:           8px;
  --i2x-r-xs:           4px;

  /* ── Shadows ────────────────────────────────────────────────── */
  --i2x-shadow-nav:     0 8px 24px -16px rgba(13,23,51,0.18);
  --i2x-shadow-card:    0 12px 32px -16px rgba(33,43,85,0.25);
  --i2x-shadow-hero:    0 24px 60px -20px rgba(33,43,85,0.25);
  --i2x-shadow-btn:     0 8px 20px rgba(33,43,85,0.25);
  --i2x-shadow-accent:  0 8px 20px rgba(255,237,0,0.35);

  /* ── Transitions ─────────────────────────────────────────────── */
  --i2x-ease:           200ms ease;
  --i2x-ease-fast:      160ms ease;
}

/* ==========================================================================
   Base resets & body defaults
   ========================================================================== */

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

body {
  font-family: var(--i2x-font-body);
  background-color: var(--i2x-bg);
  color: var(--i2x-fg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Elementor global overrides - ensure brand fonts load correctly
   ========================================================================== */

.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--i2x-font-body);
}

/* ==========================================================================
   Eyebrow label utility - reusable across Elementor custom HTML widgets
   Usage: <div class="i2x-eyebrow">Partner ecosystem</div>
   ========================================================================== */

.i2x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--i2x-blue);
  margin-bottom: 16px;
}
.i2x-eyebrow::before {
  /* 4 dots - matches brand visual language */
  content: "";
  display: inline-block;
  width: 40px; height: 6px; flex-shrink: 0;
  background-image: radial-gradient(circle, currentColor 3px, transparent 3px);
  background-size: 10px 6px;
  background-repeat: repeat-x;
  background-position: left center;
}
/* Dark sections: color overrides on .i2x-eyebrow color are enough;
   ::before uses currentColor so dots flip automatically */
.i2x-dark .i2x-eyebrow::before,
.elementor-section.i2x-dark .i2x-eyebrow::before {
  background-color: transparent; /* no override needed beyond currentColor */
}

/* On dark/navy backgrounds */
.i2x-dark .i2x-eyebrow,
.elementor-section.i2x-dark .i2x-eyebrow {
  color: var(--i2x-yellow);
}

/* ==========================================================================
   Button utilities
   ========================================================================== */

.i2x-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--i2x-r-pill);
  font-family: var(--i2x-font-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--i2x-ease);
  text-decoration: none;
  line-height: 1;
}
.i2x-btn--lg    { padding: 16px 28px; font-size: 15px; }
.i2x-btn--primary {
  background: var(--i2x-navy);
  color: #fff;
}
.i2x-btn--primary:hover {
  background: var(--i2x-blue);
  transform: translateY(-1px);
  box-shadow: var(--i2x-shadow-btn);
  color: #fff;
}
.i2x-btn--accent {
  background: var(--i2x-yellow);
  color: var(--i2x-navy);
  font-weight: 700;
}
.i2x-btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--i2x-shadow-accent);
  color: var(--i2x-navy);
}
.i2x-btn--ghost {
  background: transparent;
  color: var(--i2x-fg);
  border-color: var(--i2x-border-strong);
}
.i2x-btn--ghost:hover {
  border-color: var(--i2x-blue);
  color: var(--i2x-blue);
}

/* ==========================================================================
   Card utility
   ========================================================================== */

.i2x-card {
  background: var(--i2x-bg-2);
  border: 1px solid var(--i2x-border);
  border-radius: var(--i2x-r-md);
  padding: 28px;
  transition: border-color var(--i2x-ease), transform var(--i2x-ease);
}
.i2x-card:hover {
  border-color: var(--i2x-blue);
  transform: translateY(-2px);
  box-shadow: var(--i2x-shadow-card);
}

/* ==========================================================================
   Tag / badge utilities
   ========================================================================== */

.i2x-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--i2x-r-xs);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.i2x-tag--blue   { background: var(--i2x-blue-100); color: var(--i2x-blue); }
.i2x-tag--yellow { background: var(--i2x-yellow); color: var(--i2x-navy); }
.i2x-tag--live   { background: rgba(47,168,91,0.12); color: #1B7A3F; }
.i2x-tag--active { background: rgba(243,156,18,0.15); color: #B86E00; }

/* Chip (filter pill) */
.i2x-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--i2x-r-pill);
  background: var(--i2x-bg-2);
  border: 1px solid var(--i2x-border-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--i2x-fg-2);
  cursor: pointer;
  transition: all var(--i2x-ease-fast);
}
.i2x-chip:hover  { color: var(--i2x-blue); border-color: var(--i2x-blue); }
.i2x-chip.active { background: var(--i2x-navy); color: #fff; border-color: var(--i2x-navy); }

/* ==========================================================================
   Mono label utility (Red Hat Mono metadata)
   ========================================================================== */

.i2x-mono {
  font-family: var(--i2x-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--i2x-fg-3);
}
.i2x-mono--blue { color: var(--i2x-blue); }

/* ==========================================================================
   Section wrapper utility
   ========================================================================== */

.i2x-section {
  padding: var(--i2x-section) 0;
  position: relative;
}
.i2x-section-inner {
  max-width: var(--i2x-max-w);
  margin: 0 auto;
  padding: 0 var(--i2x-pad);
}
.i2x-section--alt {
  background: var(--i2x-bg-2);
}
.i2x-section--dark {
  background: var(--i2x-navy);
  color: #fff;
}

/* ==========================================================================
   KPI stat block
   ========================================================================== */

.i2x-kpi-num {
  font-family: var(--i2x-font-body);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--i2x-navy);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-top: 8px;
}
.i2x-kpi-num::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 3px;
  background: var(--i2x-yellow);
}
.i2x-kpi-label {
  font-size: 12px;
  color: var(--i2x-fg-2);
  margin-top: 4px;
}

/* ==========================================================================
   Pull-quote / blockquote utility
   ========================================================================== */

.i2x-quote {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  font-style: italic;
  color: var(--i2x-navy);
  border-left: 4px solid var(--i2x-yellow);
  padding: 8px 0 8px 28px;
  margin: 0 0 40px;
  line-height: 1.3;
  max-width: 32ch;
}

/* ==========================================================================
   Responsive helpers
   ========================================================================== */

@media (max-width: 980px) {
  :root {
    --i2x-section: 72px;
    --i2x-pad:     24px;
  }
}

@media (max-width: 640px) {
  .i2x-kpi-num { font-size: 32px; }
}
