/* ============================================================
   Mediaology — Design Tokens
   Single source of truth for colors, type, spacing, motion.
   ============================================================ */

:root {
  /* ---------- Brand colors (from brand guidelines) ---------- */
  --brand-primary: #EC1A64;        /* Infrared / Pink - main brand color */
  --brand-primary-dark: #AD144F;   /* Deep Magenta - hover/active states */
  --brand-black: #000000;
  --brand-white: #FFFFFF;

  /* Brand color tints (75/50/25/10% per brand guide) */
  --brand-primary-75: #F04F84;
  --brand-primary-50: #F58CB1;
  --brand-primary-25: #FAC5D8;
  --brand-primary-10: #FDE8EF;
  --brand-primary-dark-75: #C04A7B;
  --brand-primary-dark-50: #D680A7;
  --brand-primary-dark-25: #EBC0D3;

  /* ---------- Surface colors ---------- */
  --surface-black: #000000;
  --surface-near-black: #0A0A0A;     /* slightly lifted black for cards on black */
  --surface-magenta-bg: #1A0008;     /* deep magenta-to-black gradient start */
  --surface-magenta-mid: #4A0820;    /* magenta gradient middle */
  --surface-white: #FFFFFF;
  --surface-off-white: #F5F5F5;      /* subtle gray for service hero band, etc. */
  --surface-card-border: rgba(0, 0, 0, 0.08);
  --surface-card-light: #F5F5F7;

  /* ---------- Text colors ---------- */
  --text-on-dark-primary: #FFFFFF;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.78);
  --text-on-dark-tertiary: rgba(255, 255, 255, 0.55);
  --text-on-light-primary: #000000;
  --text-on-light-secondary: rgba(0, 0, 0, 0.72);
  --text-on-light-tertiary: rgba(0, 0, 0, 0.50);

  /* ---------- Typography ---------- */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Nexa', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale — mobile first, scales via clamp() */
  --fs-display-xl: clamp(2.5rem, 6vw + 1rem, 5.5rem);   /* hero headlines */
  --fs-display-lg: clamp(2rem, 4vw + 1rem, 4rem);       /* section headlines */
  --fs-display-md: clamp(1.75rem, 3vw + 0.75rem, 3rem); /* subsection headlines */
  --fs-h1: clamp(2rem, 3vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.75rem, 1.75rem);
  --fs-h4: clamp(1.0625rem, 0.5vw + 0.75rem, 1.25rem);
  --fs-body-lg: 1.125rem;   /* 18px */
  --fs-body: 1rem;          /* 16px */
  --fs-body-sm: 0.9375rem;  /* 15px */
  --fs-caption: 0.875rem;   /* 14px */
  --fs-eyebrow: 0.8125rem;  /* 13px */

  /* Line heights */
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-base: 1.5;
  --lh-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-eyebrow: 0.12em; /* uppercase eyebrow text */

  /* Font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---------- Spacing scale ---------- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  --space-40: 10rem;    /* 160px */

  /* Section vertical padding (responsive) */
  --section-py: clamp(4rem, 8vw, 8rem);
  --section-py-sm: clamp(2.5rem, 5vw, 5rem);

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-px: clamp(1rem, 4vw, 2.5rem);
  --content-max: 720px;       /* readable text column */
  --content-max-wide: 880px;

  /* ---------- Borders & radius ---------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;
  --border-thin: 1px;
  --border-medium: 1.5px;
  --border-thick: 2px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);
  --shadow-pink-glow: 0 8px 24px rgba(236, 26, 100, 0.25);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* ---------- Z-index scale ---------- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-modal: 5000;
  --z-toast: 6000;
}

/* Reduced motion: kill long animations, keep functional ones */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
