/**
 * CBA Platform Phase 1 - Design Tokens
 * Color palette, typography, and spacing locked for Phase 1
 * Reference: Provia Global CBA Web Operations Skill v1.0
 */

:root {
  /* ========== COLOR PALETTE ========== */
  /* Primary Colors */
  --cba-navy: #0B376F;
  --cba-blue: #1261A8;
  --cba-teal: #0F7F78;
  --cba-green: #2F8654;
  --cba-gold: #D89A18;

  /* Neutrals */
  --cba-white: #FFFFFF;
  --cba-bg-soft: #F4F8FC;
  --cba-text-main: #172033;
  --cba-text-muted: #5E6878;
  --cba-border: #DBE5EF;

  /* ========== TYPOGRAPHY ========== */
  /* Font Families */
  --font-heading: "Open Sans", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  /* Font Sizes */
  --font-size-h1: 48px;
  --font-size-h2: 32px;
  --font-size-h3: 20px;
  --font-size-body: 16px;
  --font-size-small: 14px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-heading: 1.3;
  --line-height-body: 1.6;

  /* ========== SPACING ========== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* ========== BORDER RADIUS ========== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* ========== TRANSITIONS ========== */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 32px;
    --font-size-h2: 24px;
  }
}

/* ========== UTILITY CLASSES ========== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--cba-text-main);
  background-color: var(--cba-white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--cba-text-main);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

/* Links */
a {
  color: var(--cba-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cba-teal);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus States */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cba-gold);
  outline-offset: 2px;
}

/* ========== STATE CLASSES ========== */

.is-active {
  font-weight: var(--font-weight-semibold);
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.has-error {
  border-color: #dc2626 !important;
}

.has-success {
  border-color: var(--cba-green) !important;
}
