/* =========================================
   global.css — PrecisePicks
   Body, typography, colour tokens, utility classes
   ========================================= */

/* ---- COLOUR TOKENS ---- */
:root {
  --color-brand:        #001F59;   /* Navy — matches "Precise" in the logo */
  --color-brand-dark:   #001440;
  --color-brand-light:  #287EFC;   /* Blue — matches "Picks" in the logo */
  --color-accent:       #287EFC;   /* Blue — secondary, pairs with brand navy */

  --color-text:         #1e293b;   /* Slate 800 */
  --color-text-muted:   #64748b;   /* Slate 500 */
  --color-text-inverse: #f8fafc;

  --color-bg:           #ffffff;
  --color-bg-alt:       #f1f5f9;   /* Slate 100 */
  --color-bg-dark:      #0f172a;   /* Slate 900 */

  --color-border:       #e2e8f0;   /* Slate 200 */

  --color-success:      #22c55e;
  --color-warning:      #f59e0b;
  --color-error:        #ef4444;

  /* ---- SPACING ---- */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* ---- TYPOGRAPHY ---- */
  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  'Fira Code', 'Cascadia Code', Consolas, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* ---- RADIUS ---- */
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-full: 9999px;

  /* ---- SHADOWS ---- */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* ---- TRANSITIONS ---- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ---- BASE ---- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* ---- HEADINGS ---- */
h1 { font-size: var(--text-4xl); font-weight: 800; line-height: 1.15; }
h2 { font-size: var(--text-3xl); font-weight: 700; line-height: 1.25; }
h3 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 500; }
h6 { font-size: var(--text-base);font-weight: 500; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-brand);
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-brand-dark); }

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

/* ---- BRAND NAME COLOUR SPLIT (sampled directly from logo.png) ---- */
.brand-precise { color: #001F59; -webkit-text-fill-color: #001F59; }
.brand-picks   { color: #287EFC; -webkit-text-fill-color: #287EFC; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* ---- SECTION SPACING ---- */
.section {
  padding-block: var(--space-4xl);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* ---- SECTION LABELS ---- */
.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

/* ---- UTILITY ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
