/* ============================================================
   EVERXP DESIGN SYSTEM — PHASE 1
   Brand palette: AVISRUR (Deep Navy + Gold)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Hebrew:wght@300;400;500;600;700&display=swap');

/* ---- Color Tokens ---- */
:root {
  --xp-navy:        #1A2B4A;
  --xp-navy-dark:   #0D1520;
  --xp-navy-mid:    #243560;
  --xp-navy-light:  #2E4070;

  --xp-gold:        #F5C518;
  --xp-gold-dark:   #D4A914;
  --xp-gold-light:  #FDE172;
  --xp-gold-glow:   rgba(245, 197, 24, 0.25);

  --xp-white:       #FFFFFF;
  --xp-light:       #F4F6FA;
  --xp-light-mid:   #EBEff7;
  --xp-muted:       #7A8599;
  --xp-border:      #DDE3EF;
  --xp-dark:        #0D1520;
}

/* ---- Typography Tokens ---- */
:root {
  --font-display: 'Inter', sans-serif;
  --font-body:    'IBM Plex Sans Hebrew', 'Inter', sans-serif;
  --font-mono:    'Courier New', monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --weight-black:     900;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-loose:  1.8;
}

/* ---- Spacing Tokens ---- */
:root {
  --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-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 */
}

/* ---- Shape Tokens ---- */
:root {
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;
}

/* ---- Shadow Tokens ---- */
:root {
  --shadow-xs:   0 1px 4px rgba(13, 21, 32, 0.06);
  --shadow-sm:   0 2px 8px rgba(13, 21, 32, 0.08);
  --shadow-md:   0 4px 20px rgba(13, 21, 32, 0.12);
  --shadow-lg:   0 8px 40px rgba(13, 21, 32, 0.16);
  --shadow-xl:   0 16px 64px rgba(13, 21, 32, 0.22);
  --shadow-gold: 0 4px 24px rgba(245, 197, 24, 0.40);
  --shadow-navy: 0 8px 32px rgba(26, 43, 74, 0.35);
}

/* ---- Transition Tokens ---- */
:root {
  --ease-fast:    0.15s ease;
  --ease-default: 0.22s ease;
  --ease-smooth:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   BASE STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--xp-navy-dark);
  background-color: var(--xp-white);
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--xp-navy);
  margin-bottom: var(--space-4);
}

h1, .h1 { font-size: var(--text-5xl); }
h2, .h2 { font-size: var(--text-4xl); }
h3, .h3 { font-size: var(--text-3xl); }
h4, .h4 { font-size: var(--text-2xl); }
h5, .h5 { font-size: var(--text-xl); }
h6, .h6 { font-size: var(--text-lg); }

@media (max-width: 768px) {
  h1, .h1 { font-size: var(--text-4xl); }
  h2, .h2 { font-size: var(--text-3xl); }
  h3, .h3 { font-size: var(--text-2xl); }
}

/* ---- Links ---- */
a {
  color: var(--xp-navy);
  text-decoration: none;
  transition: color var(--ease-default);
}

a:hover {
  color: var(--xp-gold-dark);
}

/* ---- Paragraphs ---- */
p {
  color: var(--xp-muted);
  line-height: var(--leading-loose);
}

/* ---- Selection ---- */
::selection {
  background-color: var(--xp-gold);
  color: var(--xp-navy-dark);
}

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

/* Colors */
.text-navy       { color: var(--xp-navy) !important; }
.text-gold       { color: var(--xp-gold) !important; }
.text-gold-dark  { color: var(--xp-gold-dark) !important; }
.text-muted-xp   { color: var(--xp-muted) !important; }
.text-white      { color: var(--xp-white) !important; }

/* Backgrounds */
.bg-navy         { background-color: var(--xp-navy) !important; }
.bg-navy-dark    { background-color: var(--xp-navy-dark) !important; }
.bg-navy-mid     { background-color: var(--xp-navy-mid) !important; }
.bg-gold         { background-color: var(--xp-gold) !important; }
.bg-light-xp     { background-color: var(--xp-light) !important; }
.bg-white-xp     { background-color: var(--xp-white) !important; }

/* Section spacing */
.section         { padding: var(--space-20) 0; }
.section-sm      { padding: var(--space-12) 0; }
.section-lg      { padding: var(--space-32) 0; }

/* Gold accent line — used above section headings */
.label-overline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xp-gold);
  margin-bottom: var(--space-3);
}

.label-overline::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--xp-gold);
  vertical-align: middle;
  margin-right: var(--space-2);
}

/* Gold underline on headings */
.heading-underline {
  position: relative;
  display: inline-block;
}

.heading-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 4px;
  background: var(--xp-gold);
  border-radius: var(--radius-full);
}
