/* =========================================================================
   CJ Consulting (M&A) — Design System tokens & base styles
   Same design language as CJ Recruitment, recoloured to the logo green.
   Fonts (Inter / Inter Tight) are loaded non-render-blocking from index.html.
   ========================================================================= */

:root {
  /* Brand — logo green (token name --cj-red kept for DS compatibility) */
  --cj-red: #1B7250;
  --cj-red-600: #14583E;
  --cj-green-light: #9BC9B3;
  --cj-grey: #7C8B83;
  --ink-950: #11261C;
  --ink-900: #173324;

  /* Surfaces */
  --surface-page: #F5F8F6;
  --surface-raised: #FFFFFF;
  --surface-sunken: #E9F1EC;
  --surface-inverse: #11261C;

  /* Borders */
  --border-default: rgba(17, 38, 28, 0.16);
  --border-subtle: rgba(17, 38, 28, 0.08);

  /* Text */
  --text-default: rgba(17, 38, 28, 0.82);
  --text-strong: #11261C;
  --text-muted: rgba(17, 38, 28, 0.58);

  /* Accent */
  --accent-soft: rgba(27, 114, 80, 0.10);

  /* Secondary accent — harmonises with green + ink */
  --cj-intern: #2E7D86;
  --cj-intern-soft: rgba(46, 125, 134, 0.12);

  /* Neutrals (green-tinted) */
  --neutral-50: #F5F8F6;
  --neutral-100: #EAF1EC;
  --neutral-200: #D8E4DD;
  --neutral-300: #C0D0C7;
  --neutral-400: #91A398;
  --sand-50: #EFF4F1;

  /* Layout */
  --container-max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-label: 'Inter', system-ui, sans-serif;

  --text-eyebrow: 0.72rem;
  --text-body-sm: 0.95rem;
  --text-body-lg: 1.125rem;
  --text-display-lg: clamp(2rem, 4.6vw, 3.6rem);

  --tracking-tighter: -0.025em;
  --tracking-eyebrow: 0.12em;

  /* Radius */
  --radius-pill: 999px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 20, 20, 0.05);
  --shadow-sm: 0 2px 6px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 6px 16px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 18px 44px rgba(20, 20, 20, 0.14);

  /* Easing */
  --ease-emphasis: cubic-bezier(0.2, 0, 0, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-default);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-default);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  line-height: 1.5;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text-strong);
}

p { margin: 0; }

::selection { background: var(--cj-red); color: #fff; }
::-moz-selection { background: var(--cj-red); color: #fff; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img, video { max-width: 100%; display: block; }

/* ---- shared utility classes ---- */
.cj-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 700;
  display: inline-block;
}

.cj-navlink { transition: color .2s, background .2s; }

.cj-tile { transition: transform .28s var(--ease-emphasis), box-shadow .28s var(--ease-emphasis), border-color .2s; }

.cj-foot-link { transition: color .18s; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .cj-split { grid-template-columns: 1fr !important; }
  .cj-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  .cj-points { grid-template-columns: 1fr !important; }
  .cj-footer-grid { grid-template-columns: 1fr !important; }
}

/* ---- reduce-motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
