/* ============================================================
   THE NATEWORK GROUP — Base Styles
   Reset, typography defaults, global utilities
   ============================================================ */

/* ── Font Face ───────────────────────────────────────────────
   Place .woff2 files in /assets/fonts/neue-einstellung/
   ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Neue Einstellung';
  src: url('../assets/fonts/neue-einstellung/NeuEinstellung-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Einstellung';
  src: url('../assets/fonts/neue-einstellung/NeuEinstellung-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Skip Link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
  z-index: var(--z-toast);
  transition: top var(--transition-base);
}
.skip-link:focus { top: var(--space-3); }

/* ── Focus Styles (WCAG 2.2 AA) ──────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
}

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

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

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

@media (max-width: 1024px) {
  .text-display { font-size: var(--text-6xl); }
}
@media (max-width: 768px) {
  .text-display { font-size: var(--text-5xl); }
}
@media (max-width: 480px) {
  .text-display { font-size: var(--text-4xl); }
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}
p:last-child { margin-bottom: 0; }

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

.text-sm-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
}

/* ── Links ───────────────────────────────────────────────────── */
a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}
a:hover { color: var(--color-navy); }

/* ── Images & Media ──────────────────────────────────────────── */
img, svg, video, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Lists ───────────────────────────────────────────────────── */
ul, ol { padding-left: var(--space-6); }
li { margin-bottom: var(--space-2); line-height: var(--leading-relaxed); }

/* Unstyled list utility */
.list-none {
  list-style: none;
  padding-left: 0;
}
.list-none li { margin-bottom: 0; }

/* ── Forms (base) ────────────────────────────────────────────── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}
button { cursor: pointer; }

/* ── Tables ──────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
th {
  font-weight: var(--weight-bold);
  background-color: var(--color-bg);
  color: var(--color-navy);
}

/* ── Screen Reader Only ──────────────────────────────────────── */
.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;
}

/* ── Utility Classes ─────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.font-bold    { font-weight: var(--weight-bold); }
.font-display { font-family: var(--font-display); }
.text-navy    { color: var(--color-navy); }
.text-blue    { color: var(--color-blue); }
.text-teal    { color: var(--color-teal); }
.text-taupe   { color: var(--color-taupe); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.hidden       { display: none !important; }
.mt-4         { margin-top: var(--space-4); }
.mt-6         { margin-top: var(--space-6); }
.mt-8         { margin-top: var(--space-8); }
.mb-0         { margin-bottom: 0; }
.mb-4         { margin-bottom: var(--space-4); }
.mb-6         { margin-bottom: var(--space-6); }
.mb-8         { margin-bottom: var(--space-8); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}
.divider--teal { border-color: var(--color-teal); }
