/* ============================================================
   B5 SERVICES GROUP — BASE STYLES
   Reset + global typography
   ============================================================ */

/* --- Modern Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-black);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: var(--weight-semibold); }
h5 { font-size: var(--text-body-lg); font-weight: var(--weight-semibold); letter-spacing: 0; }
h6 { font-size: var(--text-body); font-weight: var(--weight-semibold); letter-spacing: 0; }

p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
}

p + p {
  margin-top: var(--space-4);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-dark);
}

strong, b {
  font-weight: var(--weight-semibold);
}

em, i {
  font-style: italic;
}

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Utility Text Classes --- */
.text-label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.text-large {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
}

.text-small {
  font-size: var(--text-body-sm);
}

.text-white { color: var(--color-white) !important; }
.text-blue  { color: var(--color-blue) !important; }
.text-magenta { color: var(--color-magenta) !important; }
.text-green { color: var(--color-green) !important; }
.text-gold  { color: var(--color-gold) !important; }
.text-gray  { color: var(--color-gray-400) !important; }
.text-charcoal { color: var(--color-charcoal) !important; }
.text-muted { color: var(--color-gray-400) !important; }
.text-muted-white { color: rgba(255, 255, 255, 0.55) !important; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Selection --- */
::selection {
  background-color: rgba(0, 102, 221, 0.15);
  color: var(--color-black);
}

/* --- Scrollbar (subtle) --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-warm-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* --- Skip to content (accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: var(--weight-semibold);
  z-index: var(--z-top);
  transition: top var(--transition-base);
}
.skip-to-content:focus {
  top: 0;
}

/* --- Article / Long-form content --- */
.prose h2 { margin-top: var(--space-12); margin-bottom: var(--space-5); }
.prose h3 { margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose p  { margin-bottom: var(--space-5); }
.prose ul, .prose ol {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); line-height: var(--leading-relaxed); }
.prose blockquote {
  border-left: 4px solid var(--color-blue);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-warm-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-body-lg);
  font-style: italic;
  color: var(--color-black);
}
