/* ==========================================================================
   نَبْض | NABD — Kinetic Interior Design
   ملف: /css/reset.css
   إعادة ضبط شاملة ومحكمة
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
}

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

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bone);
  color: var(--jet);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
}

button, [role="button"] {
  cursor: pointer;
  user-select: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

hr {
  height: 0;
  border-top-width: 1px;
  border-color: var(--border-thin);
}

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

/* إخفاء المؤشر الأصلي — سيُستبدل بمؤشر مخصص في cursor.js */
@media (hover: hover) and (pointer: fine) {
  body, a, button, [role="button"] {
    cursor: none;
  }
}

/* احترام تفضيل تقليل الحركة */
@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;
  }
  /* إعادة المؤشر الطبيعي على prefers-reduced-motion */
  @media (hover: hover) and (pointer: fine) {
    body, a, button, [role="button"] {
      cursor: auto;
    }
  }
}
