/* ============================================================
   שקד פתרונות פדגוגיים — Base / Reset / Typography / A11y
   ============================================================ */

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

* { margin: 0; }

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--ink-700);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ---------- כותרות ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { text-wrap: pretty; }

/* ---------- קישורים ---------- */
a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--brand-800); }

/* ---------- מדיה ---------- */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- טפסים ---------- */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }

ul, ol { padding-inline-start: 1.25em; }

/* ============================================================
   נגישות
   ============================================================ */

/* focus-visible נראה בבירור — טבעת דו-גונית שנראית גם על רקע בהיר וגם על רקע כהה */
:focus-visible {
  outline: 3px solid var(--accent-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--brand-900);
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* דילוג לתוכן */
.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  top: -100px;
  z-index: var(--z-modal);
  background: var(--brand-700);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-md);
  transition: top var(--t-med) var(--ease);
}
.skip-link:focus {
  top: var(--sp-4);
  color: #fff;
}

/* מוסתר חזותית אך נגיש לקוראי מסך */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   פריסה — עוזרים
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.section { padding-block: clamp(var(--sp-8), 6vw, var(--sp-11)); }

/* ============================================================
   רכיבי בסיס — כפתורים, כרטיסים, תגיות
   ============================================================ */

/* כפתורים */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1;
  padding: var(--sp-3) var(--sp-6);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent-500);
  color: var(--brand-900);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-400);
  color: var(--brand-900);
}

.btn--brand {
  background: var(--brand-700);
  color: #fff;
}
.btn--brand:hover { background: var(--brand-800); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
  color: var(--brand-800);
}

/* כרטיסים */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
}
.card--interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* תגית / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--brand-100);
  color: var(--brand-700);
}
.tag--accent { background: var(--accent-100); color: var(--accent-ink); }

/* כותרת-על קטנה */
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--accent-ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--ink-700);
}
