/* ═══════════════════════════════════════════════════════════
   Utility classes — replace common inline style="..." values.
   Added in Phase 3 of the security cleanup so we can drop
   'unsafe-inline' from CSP style-src.
   ═══════════════════════════════════════════════════════════ */

/* ── Spacing ── */
.u-mt-2  { margin-top: var(--space-2); }
.u-mt-4  { margin-top: var(--space-4); }
.u-mt-5  { margin-top: var(--space-5); }
.u-mt-8  { margin-top: var(--space-8); }
.u-mt-10 { margin-top: var(--space-10); }
.u-mt-16 { margin-top: var(--space-16); }
.u-mt-0  { margin-top: 0; }

.u-mb-0  { margin-bottom: 0; }
.u-mb-4  { margin-bottom: var(--space-4); }
.u-mb-6  { margin-bottom: var(--space-6); }
.u-mb-8  { margin-bottom: var(--space-8); }
.u-mb-10 { margin-bottom: var(--space-10); }

/* ── Colors ── */
.u-text-white       { color: var(--color-white); }
.u-text-white-85    { color: rgba(255, 255, 255, 0.85); }
.u-text-white-80    { color: rgba(255, 255, 255, 0.8); }
.u-text-white-75    { color: rgba(255, 255, 255, 0.75); }
.u-text-sky         { color: var(--color-sky); }
.u-text-blue        { color: var(--color-blue); }
.u-text-1           { color: var(--color-text-1); }
.u-text-2           { color: var(--color-text-2); }
.u-text-3           { color: var(--color-text-3); }
.u-text-amber       { color: var(--color-amber, #F59E0B); }
.u-text-emerald     { color: var(--color-emerald, #10B981); }
.u-text-violet      { color: var(--color-violet, #A855F7); }
.u-text-purple      { color: #A78BFA; }

/* ── Alignment / layout ── */
.u-text-center      { text-align: center; }
.u-text-left        { text-align: left; }
.u-justify-center   { justify-content: center; }
.u-justify-end      { justify-content: flex-end; }
.u-items-start      { align-items: flex-start; }
.u-items-stretch    { align-items: stretch; }
.u-flex-row         { flex-direction: row; }
.u-grid-1col        { grid-template-columns: 1fr; }
.u-grid-col-full    { grid-column: 1 / -1; }
.u-gap-12           { gap: var(--space-12); }

/* ── Visibility ── */
.u-hidden           { display: none; }
.u-disabled-look    { opacity: 0.4; pointer-events: none; }

/* ── Specific patterns recurring on multiple pages ── */
/* Section intro paragraph: centered, content-width, with bottom margin */
.u-section-intro {
  max-width: var(--max-width-content);
  margin: 0 auto var(--space-8);
  text-align: center;
}
.u-section-intro--narrow-mb6 {
  max-width: var(--max-width-content);
  margin: 0 auto var(--space-6);
  text-align: center;
}

/* Section eyebrow label */
.u-section-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}

/* Big stat number — used inside .concept-card and similar */
.u-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-black);
  color: var(--color-sky);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.u-stat-number--sm {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-black);
  color: var(--color-sky);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* Inverse primary button (used on saturated-blue backgrounds for contrast) */
.btn--inverse {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}
.btn--inverse:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

/* Surface card (light-bordered surface used for various callouts) */
.u-surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
}

/* Border accent: left border in sky color (used for accent quotes / panels) */
.u-border-l-sky {
  border-left-color: var(--color-sky);
}

/* Visually-hidden but accessible (skip-to-content patterns) */
.u-sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── px-based spacing (used on brochure pages with their own var system) ── */
.u-mt-px-8     { margin-top: 8px; }
.u-mt-px-12    { margin-top: 12px; }
.u-mt-px-20    { margin-top: 20px; }
.u-mt-px-24    { margin-top: 24px; }
.u-mt-px-28    { margin-top: 28px; }
.u-mt-px-32    { margin-top: 32px; }
.u-mt-px-36    { margin-top: 36px; }
.u-border-t-none { border-top: none; }

/* ── Sizing ── */
.u-square-112  { width: 112px; height: 112px; }
.u-min-h-160   { min-height: 160px; }
.u-h-56        { height: 56px; }
.u-h-24-auto   { height: 24px; width: auto; }
.u-h-52-auto   { height: 52px; width: auto; }
.u-flex-1      { flex: 1; }
.u-pad-0       { padding: 0; }
.u-pad-10      { padding: var(--space-10); }
.u-overflow-hidden { overflow: hidden; }
.u-my-8        { margin: var(--space-8) 0; }

/* ── Other ── */
.u-color-inherit { color: inherit; }
.u-opacity-12  { opacity: 0.12; }
.u-opacity-30  { opacity: 0.3; }
.u-opacity-55  { opacity: 0.55; }
.u-text-12-faded { font-size: 12px; opacity: 0.5; }
.u-text-2xl    { font-size: var(--text-2xl); }
.u-mb-3        { margin-bottom: var(--space-3); }

/* ── Brochure-shared utility classes ─────────────────────────────────
   Brochures use locally-scoped CSS vars (--sky, --text, --rule, etc.)
   while the rest of the site uses --color-*. These fallbacks let one
   class work in both contexts. */
.u-text-sky-x       { color: var(--sky, var(--color-sky)); }
.u-text-blue-x      { color: var(--blue, var(--color-blue)); }
.u-text-text        { color: var(--text, var(--color-text-1)); }
.u-text-muted       { color: var(--muted, var(--color-text-2)); }
.u-text-text3       { color: var(--text3, var(--color-text-3)); }
.u-border-l-sky-x   { border-left-color: var(--sky, var(--color-sky)); }
.u-border-b-rule    { border-bottom: 1px solid var(--rule, var(--color-rule)); }
.u-divider-line     { flex: 1; height: 1px; background: var(--rule, var(--color-rule)); }
.u-text-20-blue     { font-size: 20px; color: var(--blue, var(--color-blue)); }
.u-text-15-blue     { font-size: 15px; color: var(--blue, var(--color-blue)); }
.u-text-13-muted-mt8 { font-size: 13px; color: var(--muted, var(--color-text-2)); margin-top: 8px; }
.u-fw-600-text      { font-weight: 600; color: var(--text, var(--color-text-1)); }

/* Brochure table-cell patterns (used in 42 + 7 + 6 spots respectively) */
.brochure-check-cell {
  text-align: center;
  padding: 10px 12px;
  color: #16A34A;
  font-weight: 600;
}
.brochure-cell {
  padding: 10px 16px;
  color: var(--text, var(--color-text-1));
  font-weight: 500;
}
.brochure-cell-header {
  text-align: center;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text, var(--color-text-1));
  letter-spacing: 0.04em;
  font-size: 10px;
  text-transform: uppercase;
}

/* Brochure label (uppercase, tracking, sky color, with top margin) */
.u-brochure-label {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky, var(--color-sky));
}

/* Brochure section headline + style — small letterspaced */
.u-brochure-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text3, var(--color-text-3));
  text-transform: uppercase;
  white-space: nowrap;
}
