/**
 * Global Market Reports - Quiet Intelligence Design System
 * Premium market research brand redesign
 *
 * Philosophy: Hide complexity, reveal simplicity.
 * Elite brands are defined not by spectacle, but by absolute clarity
 * and the trust that comes from invisible perfection.
 */

/* ═══════════════════════════════════════════════════════════════
   COLOR SYSTEM — Monochrome + Single Warm Accent
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Primary palette */
  --color-ink: #0a0a0a;
  --color-ink-soft: #3a3a3a;
  --color-ink-muted: #6b6b6b;
  --color-surface: #fafaf8;
  --color-surface-warm: #f3f1ec;
  --color-surface-elevated: #ffffff;
  --color-border: #e5e3de;

  /* Accent — warm gold, single point of color */
  --color-accent: #c8a45e;
  --color-accent-hover: #b8943e;

  /* Functional colors */
  --color-error: #d32f2f;
  --color-success: #388e3c;
  --color-warning: #f57c00;
  --color-info: #1976d2;

  /* ─── Typography ─── */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ─── Spacing (8px base) ─── */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* ─── Radius ─── */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;

  /* ─── Shadows ─── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.06);

  /* ─── Motion ─── */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --easing: cubic-bezier(0.2, 0, 0.08, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & NORMALIZATION
   ═══════════════════════════════════════════════════════════════ */

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-surface);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

h3 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

h5 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h6 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

p {
  margin: 0;
  color: var(--color-ink-muted);
}

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

a:hover {
  color: var(--color-accent);
}

em { font-style: italic; }
strong { font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--space-md);
}

/* Eyebrow labels */
.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 1rem;
  max-width: 480px;
  margin: var(--space-sm) auto 0;
  line-height: 1.7;
}

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

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }

.text-muted { color: var(--color-ink-muted); }
.text-soft { color: var(--color-ink-soft); }

.font-editorial { font-family: var(--font-editorial); }
.font-mono { font-family: var(--font-mono); }

/* Spacing utilities */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.py-lg { padding: var(--space-lg) 0; }
.py-xl { padding: var(--space-xl) 0; }
.py-2xl { padding: var(--space-2xl) 0; }

/* Display utilities */
.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn,
button,
a.btn,
input[type="submit"] {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.01em;
}

.btn-primary,
button.btn-primary {
  background: var(--color-ink);
  color: var(--color-surface);
  border-color: var(--color-ink);
}

.btn-primary:hover,
button.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary,
button.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-secondary:hover,
button.btn-secondary:hover {
  border-color: var(--color-ink);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

input,
textarea,
select {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #b0ada6;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS & BLOCKS
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.card-small {
  padding: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--duration-normal) ease-out;
}

.animate-slide-up {
  animation: slideUp var(--duration-normal) ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft var(--duration-normal) ease-out;
}
