/* ============================================
   BASE.CSS - Reset, Variables, Typography
   ============================================ */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors - Primary */
  --navy:          #10233a;
  --navy-light:    #1b3858;
  --navy-dark:     #0a1727;
  --navy-rgb:      16, 35, 58;

  /* Colors - Accent */
  --gold:          #fb8603;
  --gold-light:    #ff9f33;
  --gold-dark:     #d96e00;
  --gold-rgb:      251, 134, 3;

  /* Colors - Neutral */
  --white:         #ffffff;
  --gray-50:       #f8f9fc;
  --gray-100:      #f0f2f7;
  --gray-200:      #e2e6ef;
  --gray-300:      #c8cedb;
  --gray-400:      #9aa3b8;
  --gray-500:      #6b7590;
  --gray-600:      #4a5268;

  /* Colors - Text */
  --text:          #1a1a2e;
  --text-muted:    #6b7590;

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(var(--navy-rgb), .04);
  --shadow-sm:     0 1px 3px rgba(var(--navy-rgb), .06);
  --shadow-md:     0 4px 16px rgba(var(--navy-rgb), .08);
  --shadow-lg:     0 8px 32px rgba(var(--navy-rgb), .12);
  --shadow-xl:     0 16px 48px rgba(var(--navy-rgb), .16);

  /* Border Radius */
  --radius-xs:     3px;
  --radius-sm:     5px;
  --radius-md:     5px;
  --radius-lg:     5px;
  --radius-xl:     5px;
  --radius-full:   9999px;

  /* Transitions */
  --ease:          cubic-bezier(.22, 1, .36, 1);
  --duration:      0.3s;
  --transition:    var(--duration) var(--ease);

  /* Spacing */
  --space-xs:      4px;
  --space-sm:      8px;
  --space-md:      16px;
  --space-lg:      24px;
  --space-xl:      32px;
  --space-2xl:     48px;

  /* Layout */
  --container:     1320px;
  --header-h:      64px;
  --header-h-sm:   54px;
  --topbar-h:      38px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

/* ============================================
   TYPOGRAPHY - Headings
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(var(--gold-rgb), .25);
  color: var(--navy-dark);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}
