/* ============================================
   NWK-BSAC Design System v2 — Base
   Reset, typography, utilities
   ============================================ */

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

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

a:hover {
  color: var(--aqua);
}

ul, ol {
  list-style: none;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: var(--deep);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

h6 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
}

strong {
  font-weight: 600;
}

/* === Utility Classes === */
.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;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-teal { color: var(--teal); }
.text-aqua { color: var(--aqua); }
.text-coral { color: var(--coral); }
.text-gold { color: var(--gold); }
.text-secondary { color: var(--text-secondary); }

/* Section label — the small category text above section headings */
.nwk-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--aqua);
  margin-bottom: var(--space-sm);
  display: block;
}

.nwk-label--dark {
  color: var(--teal);
}

/* === Focus Styles === */
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* === Selection === */
::selection {
  background: var(--aqua);
  color: var(--deep);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
