/* =============================================================
   Promoteam Design System — Base Styles
   RTL-first, Noto Sans Hebrew, logical properties throughout
   ============================================================= */

/* ── Google Fonts: Noto Sans Hebrew ────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@400;500;600;700&display=swap');

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

/* ── Root / Body ───────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  text-align: start;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--text-dark);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography scale ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semi);
  line-height: 1.3;
  color: var(--text-dark);
}

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

p { margin-block-end: var(--space-3); }
p:last-child { margin-block-end: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
}

a:hover { text-decoration: underline; }

img {
  display: block;
  max-inline-size: 100%;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
}

/* ── Focus states ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Layout utilities ──────────────────────────────────────── */
.u-container {
  max-inline-size: var(--content-max-w);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.u-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Mixed Hebrew/English — numbers, dates, IDs, currency */
.u-ltr {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline;
}

bdi {
  unicode-bidi: isolate;
}
