/* ==========================================================================
   Design tokens — שלב 2
   כל הערכים כאן נמדדו מהאתר המקורי ומתועדים ב-analysis.md (סעיפים א׳–ב׳).
   בשלב זה הקובץ מכיל tokens + @font-face + reset בלבד. העיצוב עצמו — שלב 4.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. פונטים — self-hosted, ללא קריאה ל-fonts.googleapis.com
   Rubik הוא variable font (משקלים 300–900 בקובץ אחד), לכן שתי הצהרות בלבד:
   אחת לתת-הקבוצה העברית ואחת ללטינית.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/greatvibes-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ---- צבעים (analysis.md ב׳) ---- */
  --c-cream:        #FEFAF0;  /* רקע ראשי, רצועת ה-header, כרטיס הטופס, טקסט על חום */
  --c-sage:         #C2C9A2;  /* accent — רצועות סקשנים, חצים, לייבל על כפתור חום */
  --c-brown:        #614630;  /* כפתורים ראשיים, רקע פוטר, טקסט בחלק מהסקשנים */
  --c-olive:        #403F2B;  /* כותרות וטקסט רץ, בלוק מפריד בפוטר */
  --c-pale-yellow:  #F3F1C4;  /* רצועת התמונה באודות, עמודת התמונה בכרטיס החתונות */
  --c-muted:        #706E5C;  /* טקסט משני / קישורים */
  --c-whatsapp:     #268020;  /* ירוק WhatsApp, מוכהה מ-#4CB748 — טקסט/אייקון לבן עליו היה 2.57:1 (Lighthouse), עכשיו 5.01:1 */

  --c-bg:           var(--c-cream);
  --c-text:         var(--c-olive);
  --c-heading:      var(--c-brown);

  /* ---- טיפוגרפיה ---- */
  --ff-sans:    'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ff-display: 'Great Vibes', 'Rubik', cursive;

  /* גדלים — דסקטופ (analysis.md ב׳, סקאלת 1440) */
  --fs-display:      80px;  --lh-display:      80px;
  --fs-h2:           40px;  --lh-h2:           36px;   /* line-height קטן מהגודל — מכוון */
  --fs-card-title:   25px;  --lh-card-title:   22.5px;
  --fs-body:         17px;  --lh-body:         25.5px;
  --fs-body-sm:      16px;  --lh-body-sm:      24px;
  --fs-btn:          19px;  --lh-btn:          24.7px;
  --fs-btn-pill:     18px;  --lh-btn-pill:     27px;
  --fs-footer:       15px;  --lh-footer:       19.5px;
  --fs-footer-addr:  14px;

  --fw-regular: 400;
  --fw-medium:  600;
  --fw-bold:    700;

  --ls-header-cta: 0.85px;
  --ls-display:   -0.8px;

  /* ---- פריסה (analysis.md א׳) ---- */
  --w-content:      1265px;  /* עמודת התוכן בדסקטופ */
  --w-min:           980px;  /* רצפת הרוחב של המקור */
  --gutter:           80px;  /* שוליים צדיים ב-≥1140 */
  --h-header:         76px;
  --h-header-mobile:  67px;
  --h-footer:        303px;

  /* יחסי עמודות */
  --col-about:      633px;   /* 50:50 */
  --col-card-img:   822px;   /* 65:35 */
  --col-card-text:  443px;

  /* ---- מדיה: aspect ratios (analysis.md ג׳) ---- */
  --ar-hero-landscape: 16 / 9;
  --ar-hero-portrait:   9 / 16;
  --ar-about-portrait: 8 / 9;      /* 0.889 */
  --ar-about-wide:     2 / 1;      /* 2.036 */
  --ar-card:           3 / 2;      /* 1.456 */
  --ar-gallery:        3 / 4;      /* 0.751 */

  /* ---- אינטראקציה ---- */
  --radius-pill:  100px;
  --radius-round:  50%;
  --size-arrow-lg: 50px;   /* חצי הגלריה הראשית */
  --size-arrow-sm: 40px;   /* חצי המיני-קרוסלה */
  --size-float:    77px;   /* כפתור צף — דסקטופ */
  --inset-float:   19px;
  --t-btn:  0.4s;          /* pill: חום→קרם */
  --t-btn-fast: 0.2s;      /* שליחה: החלפה מלאה */
}

/* מובייל — הסקאלה של קנבס ה-320 של המקור, מיושמת מ-768 ומטה */
@media (max-width: 767px) {
  :root {
    --fs-display:     44px;  --lh-display:     44px;
    --fs-h2:          24px;  --lh-h2:          21.6px;
    --fs-card-title:  20px;  --lh-card-title:  18px;
    --fs-body:        15px;  --lh-body:        22.5px;
    --fs-body-sm:     15px;  --lh-body-sm:     18px;
    --ls-display:    -0.44px;
    --size-float:     50px;
    --inset-float:    16px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset / בסיס
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

/* נגישות: מצב focus נראה לכל אלמנט אינטראקטיבי (החלטת המפקח #4) */
:focus-visible {
  outline: 3px solid var(--c-brown);
  outline-offset: 2px;
}

/* כיבוד העדפת תנועה מופחתת */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* [hidden] חייב לנצח כל display שרכיב מגדיר לעצמו (למשל .urgency-banner/.nudge עם display:flex) —
   אחרת specificity שווה מול ברירת המחדל של הדפדפן מוכרעת לפי סדר, וכלל המחבר עלול לנצח בטעות. */
[hidden] { display: none !important; }

/* ==========================================================================
   שלב 4 — שכפול מבני. כל המידות במקור: analysis.md.
   עמודת תוכן: .wrap — 1265px עם שוליים 80px ב-≥1140, רצפה 980 ב-1140-979,
   כיווץ פרופורציונלי חדש ב-768-979 (החלטה #2), עמודה יחידה מ-767 ומטה.
   ========================================================================== */

.wrap {
  width: min(1265px, 100% - 160px);
  max-width: 1265px;
  margin-inline: auto;
}
@media (max-width: 1139px) { .wrap { width: 980px; } }
@media (max-width: 979px)  { .wrap { width: 100%; padding-inline: 28px; } }
@media (max-width: 479px)  { .wrap { padding-inline: 20px; } }

.skip-link {
  position: absolute; top: -70px; left: 12px; z-index: 100;
  background: var(--c-brown); color: var(--c-cream);
  padding: 12px 20px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---- כפתורים ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--ff-sans);
}
.btn--pill {
  border-radius: var(--radius-pill);
  padding: 13px 36px;
  font-size: var(--fs-btn-pill); line-height: var(--lh-btn-pill); font-weight: 600;
}
.btn--solid {
  background: var(--c-brown); color: var(--c-sage);
  transition: background-color var(--t-btn), color var(--t-btn);
}
.btn--solid:hover, .btn--solid:focus-visible { background: var(--c-cream); color: var(--c-brown); }
.btn--full { width: 100%; }
.btn--submit {
  background: var(--c-brown); color: var(--c-sage);
  font-size: var(--fs-btn); line-height: var(--lh-btn); font-weight: 700;
  transition: background-color var(--t-btn-fast) ease-in-out, color var(--t-btn-fast) ease-in-out;
}
.btn--submit:hover, .btn--submit:focus-visible { background: var(--c-sage); color: var(--c-brown); }

.icon-btn {
  width: 36px; height: 33px; display: flex; align-items: center; justify-content: center;
  color: var(--c-olive); opacity: 0.85; transition: opacity 0.2s;
}
.icon-btn:hover, .icon-btn:focus-visible { opacity: 1; }
.icon-btn svg { width: 19px; height: 19px; }

.icon-circle {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; opacity: 0.9; transition: opacity 0.2s;
}
.icon-circle:hover, .icon-circle:focus-visible { opacity: 1; }
.icon-circle svg { width: 17px; height: 17px; }

/* ---- Header — מיקום פיזי מוחלט, ללא תלות ב-RTL, תואם analysis.md (ד) ---- */
.site-header {
  position: sticky; top: 0; z-index: 52;
  height: var(--h-header);
  background: var(--c-cream);
}
.site-header__bar {
  position: relative;
  width: min(1265px, 100% - 160px); max-width: 1265px; margin-inline: auto;
  height: 100%;
}
.site-header__icons {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  display: flex; gap: 8px;
}
.site-header__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; text-align: center;
}
.site-header__brand { font-weight: 700; font-size: 19px; color: var(--c-brown); line-height: 1.1; }
.site-header__tagline { font-size: 10px; color: var(--c-olive); opacity: 0.75; }
#header-cta {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  font-size: 17px; font-weight: 700; letter-spacing: var(--ls-header-cta);
  color: var(--c-olive); text-decoration: none; padding: 8px 4px;
}
#header-cta:hover, #header-cta:focus-visible { color: var(--c-brown); }

@media (max-width: 767px) {
  .site-header { height: var(--h-header-mobile); }
  .site-header__bar { width: 100%; padding-inline: 20px; }
  .site-header__logo { left: 20px; transform: translateY(-50%); align-items: flex-start; }
  .site-header__icons { left: auto; right: 20px; }
  #header-cta { display: none; } /* נעלם במובייל, כמו במקור */
}

/* ---- 1. הירו — וידאו full-bleed, ללא כותרת ---- */
.hero { position: relative; width: 100%; height: 741px; background: var(--c-olive); overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 767px) { .hero { height: 468px; } }

/* ---- 2. רצועת טאגליין ---- */
.tagline { background: var(--c-sage); height: 360px; display: flex; align-items: center; }
.tagline__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tagline__eyebrow {
  font-family: var(--ff-display); font-size: var(--fs-display); line-height: var(--lh-display);
  color: var(--c-brown); font-weight: 400;
}
.tagline__heading {
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-brown);
}
.tagline__paragraph {
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-olive); max-width: 44ch;
}
.tagline .btn--pill { margin-top: 8px; }
@media (max-width: 767px) {
  .tagline { height: auto; padding-block: 48px; }
}

/* ---- 3. אודות — 50:50 (תמונה שמאל / טקסט ימין), ואז רצועת רוחב grayscale ---- */
.about { background: var(--c-cream); overflow-x: clip; } /* השוליים השליליים של .about__wide במובייל לא יגרמו לגלישה אופקית */
.about__split {
  direction: ltr; display: flex; align-items: stretch;
  padding-top: 120px; height: 832px; /* 120 padding + 712 תוכן (border-box) */
}
.about__image { flex: 1 1 50%; min-width: 0; }
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__text {
  flex: 1 1 50%; min-width: 0;
  direction: rtl; text-align: right;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 20px;
  padding: 10px 64px 0 56px; /* הכותרת ~10px מתחת לקצה העליון של התמונה, לא ממורכזת אנכית */
}
.about__text h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-brown); }
.about__text p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-olive); }
.about__wide { margin-top: 50px; width: 100%; height: 700px; background: var(--c-pale-yellow); }
.about__wide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

@media (max-width: 767px) {
  .about__split { direction: rtl; flex-direction: column; height: auto; padding-top: 40px; }
  .about__image { height: 340px; }
  .about__text { padding: 24px 20px 32px; gap: 14px; }
  .about__wide { height: 220px; margin-top: 0; width: calc(100% + 40px); margin-inline: -20px; }
}

/* ---- 4. סוגי אירועים — כותרת (מקוננת) + 4 כרטיסים לסירוגין ---- */
.events { background: var(--c-cream); }
.events__head {
  background: var(--c-sage); height: 232px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.events__eyebrow {
  font-family: var(--ff-display); font-size: var(--fs-display); line-height: var(--lh-display); color: var(--c-brown);
}
.events__head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-olive); }

/* ריווחים מדויקים בין הכרטיסים (analysis.md א): 88 מעל, 43/67/68 בין, 70 מתחת */
.events__list { padding-top: 88px; padding-bottom: 70px; display: flex; flex-direction: column; }
.event-card { display: flex; direction: ltr; align-items: flex-start; } /* הכותרת בגובה קצה התמונה העליון, לא ממורכזת */
.event-card:nth-child(2) { margin-top: 43px; }
.event-card:nth-child(3) { margin-top: 67px; }
.event-card:nth-child(4) { margin-top: 68px; }

/* עמודת התמונה (65% = 822px) מכילה תיבת תמונה ממורכזת אופקית שהיא 78.5% ממנה (645px) — לא ממלאת את כל העמודה */
.event-card__media {
  flex: 0 0 65%;
  display: flex; justify-content: center;
}
.event-card__media-box {
  position: relative; overflow: hidden;
  width: 78.5%; /* 645 / 822 */
  aspect-ratio: 1290 / 886; /* = 645×443 בדיוק */
}
.event-card__media-box > img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease;
}
.event-card__media-box > img.is-active { opacity: 1; }

.carousel-arrow {
  position: absolute; top: 50%; right: 22px; transform: translateY(-50%); /* פיזי, מהקצה הימני של התמונה עצמה — בכל הכרטיסים */
  width: var(--size-arrow-sm); height: var(--size-arrow-sm); border-radius: var(--radius-round);
  background: var(--c-sage); color: var(--c-olive); z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow svg { width: 16px; height: 16px; }

.event-card__body {
  flex: 0 0 35%; direction: rtl; text-align: right;
  display: flex; flex-direction: column; gap: 14px;
}
.event-card__body h3 { font-size: var(--fs-card-title); line-height: var(--lh-card-title); font-weight: 700; color: var(--c-olive); }
.event-card__body p { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--c-olive); }

.event-card--img-left .event-card__body { padding-left: 56px; }
.event-card--img-right .event-card__body { padding-right: 56px; }

@media (max-width: 767px) {
  .events__head { height: auto; padding-block: 40px; }
  .events__list { padding-top: 40px; padding-bottom: 40px; }
  .event-card,
  .event-card:nth-child(2), .event-card:nth-child(3), .event-card:nth-child(4) {
    direction: rtl; flex-direction: column; align-items: stretch; margin-top: 40px;
  }
  .event-card__body,
  .event-card--img-left .event-card__body,
  .event-card--img-right .event-card__body { padding: 20px 20px 0; flex: none; order: 1; } /* טקסט קודם — כמו במקור במובייל */
  .event-card__media,
  .event-card--img-left .event-card__media,
  .event-card--img-right .event-card__media { flex: none; order: 2; } /* תמונה אחרי הטקסט */
  .event-card__media-box { width: 100%; }
  .carousel-arrow { right: 16px; }
}

/* ---- כותרות משותפות (רצועת גלריה) ---- */
.section-head {
  background: var(--c-sage); height: 232px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.section-head__eyebrow {
  font-family: var(--ff-display); font-size: var(--fs-display); line-height: var(--lh-display); color: var(--c-brown);
}
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-olive); }
@media (max-width: 767px) { .section-head { height: auto; padding-block: 36px; } }

/* ---- 5. גלריה — גלילה אופקית אמיתית, ללא autoplay ---- */
.gallery { background: var(--c-cream); padding-block: 101px 97px; }
.gallery__wrap { position: relative; } /* החצים absolute על הקצוות, ה-track תופס את כל הרוחב */
.gallery__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 55px; overflow-x: auto; scroll-behavior: smooth;
  width: 100%; scrollbar-width: thin;
}
.gallery__track li { flex: 0 0 clamp(200px, 27vw, 383px); }
.gallery__track img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: var(--size-arrow-lg); height: var(--size-arrow-lg);
  border-radius: var(--radius-round); background: var(--c-sage); color: var(--c-olive);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
/* פיזי בכוונה: prev (חזרה להתחלה) בקצה הימני, next (עוד תוכן) בקצה השמאלי — תואם RTL scrollLeft */
.gallery__arrow--prev { right: 7px; }
.gallery__arrow--next { left: 7px; }
.gallery__wrap:hover .gallery__arrow,
.gallery__wrap:focus-within .gallery__arrow { opacity: 1; }
.gallery__arrow svg { width: 18px; height: 18px; }

/* מגע: אין hover אמיתי — חץ next יחיד קבוע, כמו במקור במובייל */
@media (hover: none) {
  .gallery__arrow--prev { display: none; }
  .gallery__arrow--next { opacity: 1; width: 40px; height: 40px; }
}

@media (max-width: 767px) {
  .gallery { padding-block: 40px; }
  .gallery__track { gap: 16px; }
  .gallery__track li { flex-basis: 45vw; }
  .gallery__wrap { padding-inline: 0; }
}

/* ---- 6. יצירת קשר ---- */
/* 262px במקור נמדד מראש הסקשן ועד ראש הכרטיס — כולל את בלוק הכותרת (156) + הרווח (32),
   לא בנוסף להם. padding-top בפועל = 262 - 156(כותרת) - 32(רווח) ≈ 74. */
.contact { background: var(--c-sage); padding: 74px 0 99px; }
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.contact__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 640px; }
.contact__eyebrow { font-family: var(--ff-display); font-size: var(--fs-display); line-height: var(--lh-display); color: var(--c-olive); letter-spacing: var(--ls-display); }
.contact__head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-olive); }
.contact__sub { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--c-olive); }
.contact__sub a {
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap; direction: ltr; unicode-bidi: isolate; /* מונע שבירת מספר הטלפון לשתי שורות במובייל */
}

.contact__card { width: 504px; max-width: 100%; background: var(--c-cream); padding: 36px 36px; }
#contact-form { display: flex; flex-direction: column; gap: 10px; } /* עמודה אחת, כמו במקור */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--c-olive); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--ff-sans); font-size: var(--fs-body); color: var(--c-olive); /* 17px — כמו במקור */
  background: var(--c-bg); border: 1px solid var(--c-sage); border-radius: 6px;
  padding: 7px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-brown); }
.field--consent { flex-direction: row; align-items: flex-start; gap: 8px; }
.field--consent input { width: auto; margin-top: 3px; }
.field--consent span { font-size: 13px; line-height: 1.5; color: var(--c-olive); }
.field--consent a { text-decoration: underline; color: var(--c-muted); }
#contact-form .btn--submit { border-radius: var(--radius-pill); padding: 13px; margin-top: 4px; }
.contact__mailto {
  text-align: center; font-size: 14px; color: var(--c-muted);
  text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .contact { padding: 56px 0 48px; }
  .contact__card { padding: 28px 20px; }
}

/* ---- פוטר — טריק שלוש העמודות (עמודות בהירות על רקע כהה = מפרידים) ---- */
.site-footer { background: var(--c-brown); }
.site-footer__logo {
  height: 105px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  /* אין הפרדה בקו — במקור ההפרדה בין רצועת הלוגו לעמודות היא מעבר צבע הרקע (חום→זית), לא border */
}
.site-footer__logo span:first-child { font-weight: 700; font-size: 20px; color: var(--c-cream); }
.site-footer__logo span:last-child { font-size: 11px; color: var(--c-sage); }
.site-footer__cols {
  background: var(--c-olive);
  display: grid; grid-template-columns: 323fr 333fr 324fr;
}
.footer-col {
  background: var(--c-brown); padding: 46px 20px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: var(--fs-footer); color: var(--c-cream);
}
.footer-col a { text-decoration: none; }
.footer-col a:hover, .footer-col a:focus-visible { text-decoration: underline; }
.footer-col--links { align-items: flex-start; }
.footer-col--contact { align-items: flex-start; }
.footer-col--address { align-items: flex-start; }
.footer-col--address p { font-size: var(--fs-footer-addr); }
.footer-col__social { display: flex; gap: 10px; margin-top: 4px; }
.footer-col--contact .icon-circle, .footer-col__social .icon-circle { background: var(--c-olive); }

@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .footer-col { align-items: center; text-align: center; border-bottom: 1px solid var(--c-brown); }
}

/* ---- כפתור צף — כמו במקור (77 ימין-תחתון דסקטופ, 50 שמאל-תחתון מובייל) ---- */
.float-wa {
  position: fixed; z-index: 50;
  bottom: var(--inset-float); right: var(--inset-float); /* פיזי בכוונה — לא inset-inline, כדי לא להתהפך עם dir=rtl */
  width: var(--size-float); height: var(--size-float); border-radius: 50%;
  background: var(--c-whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(64, 63, 43, 0.25);
}
.float-wa svg { width: 55%; height: 55%; }
@media (max-width: 767px) {
  .float-wa { right: auto; left: var(--inset-float); }
}

/* ---- עמודי מדיניות (פרטיות/נגישות) — analysis.md (ז) ---- */
.legal {
  max-width: 948px;
  margin: 171px auto 120px;
  display: flex; flex-direction: column; gap: 20px;
}
.legal h1 {
  font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 700; color: var(--c-brown);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 700; color: var(--c-olive);
  margin-top: 8px;
}
.legal p {
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-olive);
}
.legal__updated { font-size: 14px; color: var(--c-muted); margin-top: -12px; }
@media (max-width: 767px) {
  .legal { margin-top: 100px; padding-inline: 20px; gap: 16px; }
}

/* ==========================================================================
   שלב 5 — שכבת ההמרה: וואטסאפ במרכז
   ========================================================================== */

/* ---- כפתור outline (CTA בכרטיסים, ניווט במפה) ---- */
.btn--outline {
  border: 1.5px solid var(--c-brown); color: var(--c-brown); background: transparent;
  padding: 9px 22px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600;
  transition: background-color var(--t-btn), color var(--t-btn);
}
.btn--outline:hover, .btn--outline:focus-visible { background: var(--c-brown); color: var(--c-cream); }
.btn--outline-cream {
  border: 1.5px solid var(--c-cream); color: var(--c-cream); background: transparent;
  transition: background-color var(--t-btn), color var(--t-btn);
}
.btn--outline-cream:hover, .btn--outline-cream:focus-visible { background: var(--c-cream); color: var(--c-brown); }

/* ---- באנר דחיפות — עם כפתור סגירה ---- */
.urgency-banner {
  position: relative;
  background: var(--c-olive); color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px 44px; font-size: 14px; font-weight: 600;
}
#urgency-close {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--c-cream); opacity: 0.75;
}
#urgency-close:hover, #urgency-close:focus-visible { opacity: 1; }
#urgency-close svg { width: 14px; height: 14px; }

/* ---- CTA בהירו — בתחתית הווידאו, על גרדיאנט ---- */
.hero__cta {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 24px 32px;
  background: linear-gradient(to top, rgba(64, 63, 43, 0.55), rgba(64, 63, 43, 0) 35%);
}
.hero__cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__cta-promise { color: var(--c-cream); font-size: 14px; text-align: center; }
@media (max-width: 767px) {
  .hero__cta { padding: 32px 16px 24px; gap: 8px; }
}

/* ---- כפתור צף — pulse עדין בדסקטופ, מוסתר במובייל (הסרגל התחתון מחליף) ---- */
@media (prefers-reduced-motion: no-preference) {
  .float-wa { animation: wa-pulse 2.4s ease-in-out infinite; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(64, 63, 43, 0.25), 0 0 0 0 rgba(76, 183, 72, 0.45); }
  50%      { box-shadow: 0 4px 14px rgba(64, 63, 43, 0.25), 0 0 0 10px rgba(76, 183, 72, 0); }
}
@media (max-width: 767px) { .float-wa { display: none; } }

/* ---- FAQ — accordion native (details/summary) ---- */
.faq { background: var(--c-cream); padding-block: 60px; }
.faq__list { max-width: 948px; display: flex; flex-direction: column; gap: 4px; }
.faq__item { border-bottom: 1px solid var(--c-sage); padding-block: 18px; }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: var(--fs-body); font-weight: 700; color: var(--c-olive);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 9px; height: 9px;
  border-right: 2px solid var(--c-brown); border-bottom: 2px solid var(--c-brown);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(225deg); }
.faq__answer { padding-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.faq__answer p { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--c-olive); }
.faq__link { font-size: 14px; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .faq { padding-block: 40px; } }

/* ---- הוכחה חברתית — מוסתרת כברירת מחדל (main.js מציג אם socialProof.enabled) ---- */
.social-proof { background: var(--c-sage); padding-block: 64px; }
.social-proof .wrap { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.social-proof__eyebrow { font-family: var(--ff-display); font-size: var(--fs-display); line-height: var(--lh-display); color: var(--c-brown); }
.social-proof h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-olive); }
.social-proof__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.social-proof__stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.social-proof__stat-value { font-size: 40px; font-weight: 700; color: var(--c-brown); }
.social-proof__stat-label { font-size: 14px; color: var(--c-olive); }
.social-proof__testimonials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.social-proof__testimonial { background: var(--c-cream); padding: 24px; text-align: right; direction: rtl; display: flex; flex-direction: column; gap: 12px; }
.social-proof__testimonial blockquote { margin: 0; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--c-olive); }
.social-proof__testimonial p { font-size: 13px; font-weight: 600; color: var(--c-brown); margin: 0; }
.social-proof__logos { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.social-proof__logos li { background: rgba(64, 63, 43, 0.12); color: var(--c-olive); font-size: 12px; padding: 10px 18px; border-radius: 6px; }
@media (max-width: 767px) { .social-proof__testimonials { grid-template-columns: 1fr; } }

/* ---- הבטחת מענה מתחת לכפתור השליחה ---- */
.contact__promise { text-align: center; font-size: 13px; color: var(--c-muted); margin: 0; }

/* ---- מפה + ניווט (מתחת לכרטיס הטופס, אותו רוחב) ---- */
.contact__nav {
  width: 504px; max-width: 100%; margin-top: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.contact__nav h3 { font-size: 17px; font-weight: 700; color: var(--c-olive); }
.contact__nav p { font-size: 14px; color: var(--c-olive); }
.contact__nav-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.contact__map { width: 100%; height: 240px; border: 0; display: block; border-radius: 6px; }

/* ---- Nudge — כרטיס קטן שמחליק פנימה אחרי 65% גלילה, פעם אחת לסשן ---- */
.nudge {
  position: fixed; z-index: 40; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 380px; max-width: calc(100% - 32px);
  background: var(--c-cream); border-radius: 12px; box-shadow: 0 8px 24px rgba(64, 63, 43, 0.28);
  padding: 20px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .nudge { animation: nudge-in 0.35s ease-out; }
}
@keyframes nudge-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.nudge__close {
  position: absolute; top: 10px; left: 10px;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--c-muted);
}
.nudge__close svg { width: 14px; height: 14px; }
.nudge p { font-size: 14px; color: var(--c-olive); padding-inline-end: 18px; margin: 0; }
.nudge .btn--pill { font-size: 14px; padding: 10px 24px; }
@media (max-width: 767px) { .nudge { bottom: calc(56px + env(safe-area-inset-bottom) + 12px); } }

/* ---- סרגל תחתון דביק במובייל — מחליף את הכפתור הצף ---- */
.mobile-bar {
  display: none;
  position: fixed; z-index: 45; bottom: 0; left: 0; right: 0;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(64, 63, 43, 0.15);
}
@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); } /* שהפוטר לא יוסתר מאחורי הסרגל */
}
.mobile-bar__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.mobile-bar__btn svg { width: 18px; height: 18px; }
.mobile-bar__btn--wa { background: var(--c-whatsapp); color: #fff; }
.mobile-bar__btn--tel { background: var(--c-brown); color: var(--c-cream); }
