/* ============================================================
   RONEN — layout.css
   שלד האתר: container · header · nav · buttons · footer · sections.
   תלוי ב-base.css.
   ============================================================ */

/* ---------- Container ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

/* כותרת העמוד ("הצהרת נגישות") וגוף המסמך הם שני .section עוקבים —
   80 תחתון + 60 עליון = פער של 140 לפני שורת הטקסט הראשונה. */
.page-header + .section { padding-block-start: var(--space-l); }
.container--wide   { max-width: var(--container-wide); }

/* ---------- Section ---------- */

.section { padding-block: var(--pad-3xl); }
.section--tight { padding-block: var(--pad-2xl); }

.section--fill-brand   { background: var(--color-bg-brand); }   /* #F4F2FF */
.section--fill-neutral { background: var(--color-bg-alt); }     /* #F6F7F9 */
.section--fill-action  { background: var(--color-action); }     /* #6E44FF */
.section--fill-dark    { background: var(--color-neutral-950); }

.section--fill-action .section__title,
.section--fill-dark .section__title { color: var(--color-on-action); }

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title { color: var(--color-action); }

.section__intro {
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: var(--p-l);
  line-height: var(--p-l-lh);
}

.section__foot {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* ---------- כפתורים / Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--pad-s) var(--pad-l);
  border-radius: var(--radius-full);
  font-size: var(--p-l);
  line-height: 1;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover { opacity: 1; transform: translateY(-1px); }

/* ראשי — סגול מלא. ⚠️ צבע הטקסט חייב !important:
   כלל גלובלי של a{color} דרס אותו בעבר ויצר סגול-על-סגול בלתי-קריא. */
.btn--primary {
  background: var(--color-action);
  color: var(--color-on-action) !important;
}
.btn--primary:hover { background: #5B33F0; }

/* משני — מתאר */
.btn--outline {
  background: transparent;
  color: var(--color-action) !important;
  border-color: var(--color-stroke-action);
}
.btn--outline:hover {
  background: var(--color-bg-brand);
  border-color: var(--color-action);
}

/* על רקע כהה/סגול */
.btn--on-dark {
  background: transparent;
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, .45);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); }

/* Figma "Button/action/stroke/L" — מתאר סגול, ריפוד 16/24, radius round, gap 12.
   btn--stroke-strong = גרסת ה-2px שבהירו. */
.btn--stroke {
  background: transparent;
  color: var(--color-action) !important;
  border: 1px solid var(--color-action);
  gap: var(--space-xs);
  padding: var(--pad-s) var(--pad-l);
  border-radius: var(--radius-round);
  font-size: var(--p-l);
}
.btn--stroke-strong { border-width: 2px; }
/* מתאר סגול-בהיר (#BCB1FF) — כפתורי "אודות" ו"שירותים" ב-Figma */
.btn--stroke-soft { border-color: var(--color-stroke-action); }
.btn--stroke:hover { background: var(--color-bg-brand); }

.btn--sm { padding: var(--pad-2xs) var(--pad-s); font-size: var(--p-m); }
.btn--lg { padding: var(--pad-m) var(--pad-xl); font-size: var(--p-l); }

.btn__icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.btn__icon svg { width: 100%; height: 100%; }

/* ---------- האדר / Site header ----------
   פס לבן מרחף: 1320×68 בתוך 1440, radius 24, ממוקם y=27. */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-block: var(--space-m);
  background: transparent;
  transition: padding var(--transition-base), background var(--transition-base);
}

/* ⚠️ העטיפה נשארת שקופה תמיד — גם בגלילה.
   רקע כאן נצבע מקצה לקצה ויוצר "פס" שני מעל הסרגל. הזכוכית שייכת
   ל-__bar בלבד, בדיוק כמו בפרודקשן (לאף אב שם אין רקע). */
.site-header.is-stuck {
  padding-block: var(--space-2xs);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 68px;
  padding: var(--pad-2xs) var(--pad-2xs) var(--pad-2xs) var(--pad-2xs);
  padding-inline-end: var(--pad-l);
  /* זכוכית — הערכים נמדדו מהפרודקשן. לא לבן מלא: התוכן אמור להיראות מבעד. */
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-m);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .1);
}

.site-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img { height: 40px; width: auto; }

/* ניווט ראשי */
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.site-nav__list a {
  color: var(--color-text);
  font-size: var(--p-l);
  line-height: 1;
  padding-block: var(--space-2xs);
  position: relative;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
  color: var(--color-action);
  opacity: 1;
}

.site-header__cta { flex: 0 0 auto; }

/* כפתור המבורגר — מובייל בלבד */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--color-action);
}

.nav-toggle svg { width: 24px; height: 24px; }

/* מגירת מובייל */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-white);
  padding: var(--pad-xl) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  transform: translateX(-100%);
  transition: transform var(--transition-base), visibility var(--transition-base);
  overflow-y: auto;
  /* ⚠️ visibility מונע מהמגירה הסגורה למתוח את המסמך ולתפוס פוקוס */
  visibility: hidden;
}

[dir="rtl"] .nav-drawer { transform: translateX(100%); }

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer__list { display: flex; flex-direction: column; gap: var(--space-m); }
.nav-drawer__list a { font-size: var(--h4-size); color: var(--color-action); }

body.nav-open { overflow: hidden; }

/* ---------- פוטר / Site footer ---------- */

.site-footer {
  background: var(--color-neutral-950);
  color: var(--color-white);
  padding-block: var(--pad-3xl) var(--pad-xl);
}

.site-footer a { color: var(--color-white); }
.site-footer a:hover { opacity: .7; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

/* עמודת המותג */
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-m); }
.site-footer__logo img { height: 72px; width: auto; }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-s); }

.footer-contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--p-l);
}

.footer-contact__email address,
.footer-contact__phone {
  font-style: normal;
  direction: ltr;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer-contact__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--p-m);
  color: var(--color-neutral-300);
  cursor: pointer;
}

.footer-contact__actions { display: flex; align-items: center; gap: var(--space-2xs); }

.footer-contact__meta { display: flex; flex-direction: column; gap: 4px; }
.footer-contact__line { font-size: var(--p-m); color: var(--color-neutral-300); }

/* ---------- שורת רשתות חברתיות ---------- */
/* מוצגת רק לרשתות שמולאו ב-Customizer (ronen_social_row). */
.social-row {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-row__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: 1px solid currentColor;
  transition: opacity .2s ease, background-color .2s ease;
}

.social-row__link svg { width: 20px; height: 20px; }

.social-row--footer { margin-top: var(--space-xs); }
.social-row--footer .social-row__link { color: var(--color-white); }
.social-row--footer .social-row__link:hover { opacity: 1; background: rgba(255, 255, 255, .12); }

.social-row--contact { justify-content: center; margin-top: var(--space-l); }
.social-row--contact .social-row__link { color: var(--color-action); }
.social-row--contact .social-row__link:hover { opacity: .7; }

/* עמודות קישורים */
/* ⚠️ זו כותרת h2 שמוקטנת לגודל טקסט — חובה לאפס גם את ה-tracking.
   ‎base.css נותן ל-h2 ‎letter-spacing: -4px (ערך מוחלט, מכויל ל-56px);
   ב-16px הוא מרסק את האותיות זו על זו. */
.footer-col__title {
  font-size: var(--p-m);
  line-height: var(--p-m-lh);
  letter-spacing: var(--tracking-body);
  color: var(--color-neutral-300);
  margin-bottom: var(--space-m);
}

.footer-col__list { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-col__list a { font-size: var(--p-l); line-height: var(--p-l-lh); }

.site-footer__bottom {
  margin-top: var(--space-2xl);
  text-align: center;
  font-size: var(--p-l);
  color: var(--color-neutral-300);
}

/* ---------- וואטסאפ צף ---------- */

.whatsapp-float {
  position: fixed;
  inset-block-end: var(--space-l);
  inset-inline-start: var(--space-l);
  z-index: var(--z-header);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================================
   רספונסיביות
   ============================================================ */

@media (max-width: 1023px) {

  .section { padding-block: var(--pad-3xl); }

  .site-header { padding-block: var(--space-s); }

  .site-header__bar {
    min-height: 56px;
    padding-inline: var(--pad-s);
    border-radius: var(--radius-s);
  }

  .site-header__logo img { height: 32px; }

  /* בניווט המובייל: המבורגר במקום תפריט + CTA */
  .site-nav,
  .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
  }

  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
