﻿/* ==========================================================================
   NA UI v2 — Design tokens and base layer
   Local preview only. Not deployed to production.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/vazirmatn.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
}

:root {
  /* Brand color */
  --na-primary: #0a7ea4;
  --na-primary-strong: #066a8c;
  --na-primary-deep: #062c3d;
  --na-primary-ink: #052331;
  --na-primary-soft: #e7f4fa;
  --na-primary-tint: #f2f9fc;
  --na-coral: #ef7c62;
  --na-coral-strong: #d9634a;
  --na-coral-soft: #fdf0ec;

  /* Ink and surfaces */
  --na-ink: #0c2635;
  --na-ink-soft: #37505f;
  --na-muted: #6b8292;
  --na-white: #ffffff;
  --na-surface: #ffffff;
  --na-surface-2: #f6fafc;
  --na-surface-3: #ecf4f8;
  --na-line: #dfe9ef;
  --na-line-strong: #c8d9e2;

  /* Status */
  --na-success: #16876b;
  --na-success-soft: #e6f6f1;
  --na-warning: #a9701b;
  --na-warning-soft: #fdf3e2;
  --na-danger: #c14a3c;
  --na-danger-soft: #fdeceb;

  /* Radii */
  --na-r-xs: 8px;
  --na-r-sm: 12px;
  --na-r-md: 16px;
  --na-r-lg: 22px;
  --na-r-xl: 30px;
  --na-r-pill: 999px;

  /* Shadows */
  --na-shadow-xs: 0 1px 2px rgba(12, 38, 53, 0.06);
  --na-shadow-sm: 0 6px 18px rgba(12, 38, 53, 0.06);
  --na-shadow-md: 0 16px 40px rgba(12, 38, 53, 0.09);
  --na-shadow-lg: 0 30px 70px rgba(6, 44, 61, 0.18);

  /* Typography */
  --na-font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --na-text-xs: 12px;
  --na-text-sm: 13px;
  --na-text-base: 15px;
  --na-text-md: 16px;
  --na-text-lg: 19px;

  /* Layout */
  --na-shell: 1240px;
  --na-header-h: 78px;
  --na-gutter: 28px;

  /* Motion */
  --na-ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--na-header-h) + 24px);
}

body {
  margin: 0;
  background: var(--na-surface);
  color: var(--na-ink);
  font-family: var(--na-font);
  font-size: var(--na-text-base);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.na2-noscroll {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--na-ink);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--na-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--na-primary);
  color: #fff;
}

/* Utilities ------------------------------------------------------------- */

.na-shell {
  width: min(var(--na-shell), calc(100% - (var(--na-gutter) * 2)));
  margin-inline: auto;
}

.na-shell--narrow {
  width: min(900px, calc(100% - (var(--na-gutter) * 2)));
}

.na-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;
}

.na-skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--na-r-sm) var(--na-r-sm);
  background: var(--na-primary-deep);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--na-ease);
}

.na-skip:focus {
  top: 0;
}

.na-stack {
  display: grid;
  gap: 1rem;
}

.na-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.na-muted {
  color: var(--na-muted);
}

.na-numeric {
  font-variant-numeric: tabular-nums;
}

/* Motion preferences ---------------------------------------------------- */

@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;
  }
}


/* Keep masked phone numbers and serials in logical LTR order. */
.na-phone,
.na-serial-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}

/* Keep the login/registration page clean: no header or footer brand mark. */
.na-auth-page .na-brand img,
.na-auth-page .na-footer-brand img {
  display: none;
}
