/* ============================================================
   base.css - Nicoll MTR
   Reset מלא + טיפוגרפיה + layout + אנימציות scroll
   ============================================================ */


/* ----------------------------
   Reset מלא
   ---------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: auto !important;
  /* גלילה חלקה לאנקורים */
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* ביטול סגנוני דפדפן לרשימות */
ul,
ol {
  list-style: none;
}

/* קישורים בלי underline כברירת מחדל */
a {
  color: inherit;
  text-decoration: none;
}

/* תמונות responsive */
img,
svg {
  max-width: 100%;
  display: block;
}

/* טפסים - אחידות בין דפדפנים */
input,
textarea,
select,
button {
  font-family: var(--font-family);
  font-size: var(--text-base);
}

/* הסרת border מ-fieldset */
fieldset {
  border: none;
}

/* ביטול resize אנכי בלבד ב-textarea */
textarea {
  resize: vertical;
}


/* ----------------------------
   טיפוגרפיה - ברירות מחדל לHeebo
   ---------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

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

/* כותרות גדולות יותר על דסקטופ */
@media (min-width: 1100px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}

strong {
  font-weight: 700;
}


/* ----------------------------
   Container - עטיפת תוכן מרכזי
   ---------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* padding צדי - בסיס מובייל */
  padding-inline: var(--space-md);
}

@media (min-width: 1100px) {
  .container {
    padding-inline: var(--space-xl);
  }
}


/* ----------------------------
   Section - עיצוב כללי לסקשנים
   ---------------------------- */

.section {
  padding-block: var(--section-py);
}

/* רקע אפור בהיר לסקשנים חלופיים */
.section--light {
  background-color: var(--color-light);
}

.section--white {
  background-color: var(--color-white);
}

/* כותרת מרכזית לסקשן */
.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 600px;
  margin-inline: auto;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-top: var(--space-sm);
  line-height: 1.7;
}


/* ----------------------------
   Reveal - אנימציות scroll (Intersection Observer)
   מצב התחלתי: נסתר ומוזז למטה
   JS מוסיף class "is-visible" כשהאלמנט נכנס למסך
   ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* עיכוב מדורג לאלמנטים בתוך grid */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* וריאנט: כניסה מהצד (RTL - מהשמאל) */
.reveal--slide {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--slide.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* מובייל: ביטול אנימציות כניסה */
@media (max-width: 639px) {
  .reveal,
  .reveal--slide {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal--delay-1,
  .reveal--delay-2,
  .reveal--delay-3,
  .reveal--delay-4 {
    transition-delay: 0s;
  }
}


/* ----------------------------
   Utility classes בסיסיות
   ---------------------------- */

/* הסתרה נגישה - נסתר חזותית אבל נקרא ע"י screen readers */
.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;
}

/* מרכוז טקסט */
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
