/* ============================================================
   BASE — resets, CSS custom properties, typography
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Brand */
  --blue:        #0470d7;
  --blue-dark:   #0357b0;
  --blue-light:  #e8f1fb;
  --red:         #b20101;
  --red-dark:    #8f0101;

  /* Neutrals */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Surfaces */
  --footer-bg:   #2c3340;
  --slate-800:   #3d4654;
  --slate-900:   #2c3340;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width:  1200px;
  --header-h:   72px;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md:  0 4px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg:  0 12px 32px rgba(17, 24, 39, 0.12);
  --shadow-header: 0 1px 0 rgba(17, 24, 39, 0.06);

  /* Transitions */
  --transition:      180ms ease;
  --transition-slow: 280ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-800);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(4, 112, 215, 0.12);
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
sup { font-size: 0.6em; }

::selection {
  background: var(--blue-light);
  color: var(--blue-dark);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* --- 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: 0;
}
