/* Fonts */
@font-face {
  font-family: "Dana Num";
  src: url("../assets/fonts/dana_num_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dana Num";
  src: url("../assets/fonts/dana_num_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dana Num";
  src: url("../assets/fonts/dana_num_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dana Num";
  src: url("../assets/fonts/dana_num_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  direction: rtl;
  font-family: var(--font-sans);
  font-size: var(--text-body-md);
  line-height: var(--lh-body-md);
  color: var(--color-on-surface);
  background: var(--color-background);
  overflow-x: hidden;
}

/* Latin/URL/email snippets stay LTR inside RTL copy */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

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

::selection {
  background: var(--color-primary-container);
  color: var(--color-on-primary-container);
}
