/* ============================================================
   Projects House — עיצוב האתר
   קובץ עיצוב ראשי (RTL, עברית)
   ============================================================ */

:root {
  --navy: #101d2c;          /* כותרת עליונה ותחתונה */
  --navy-2: #16283d;        /* גוון משני כהה */
  --accent: #f7941d;        /* כתום — צבע הדגשה */
  --accent-dark: #d97b06;
  --ink: #1c2733;           /* טקסט ראשי */
  --muted: #5b6b7b;         /* טקסט משני */
  --bg: #ffffff;
  --bg-soft: #f4f7fa;       /* רקע סקציות מתחלפות */
  --line: #e3e9ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 29, 44, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 29, 44, 0.08);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  direction: ltr;
}

/* height:auto is required so the width/height attributes on <img> (which reserve
   space and prevent layout shift) don't distort images once max-width kicks in */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 0;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb956; }
.btn-dark { background: var(--navy); color: #fff; }
/* גרסה בהירה של btn-outline, לשימוש על רקע לבן (btn-outline הוא לבן-על-כהה) */
.btn-ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
/* כפתור וידאו — שקוף למחצה, כדי שלא יתחרה בכפתור הכתום שמעליו */
.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-video:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.play-mark {
  flex: 0 0 auto;
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
}
/* משולש הפעלה. פונה ימינה בכל שפה — זו קונבנציה של נגני מדיה, לא כיוון קריאה */
.play-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- פס עליון ---------- */
.topbar {
  background: var(--navy-2);
  color: #cfdae6;
  font-size: .9rem;
  padding: 6px 0;
}
.topbar .container { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.topbar a { color: #cfdae6; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ---------- ניווט ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 250;           /* מעל כפתור הוואטסאפ (200), כדי שהתפריט הפתוח במובייל יכסה אותו */
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 16px;
}
/* Three zones: logo on the right, menu centred, orange CTA on the far left.
   Both side zones use `flex: 1 1 0` so they always claim an equal share of the
   leftover space — that is what centres the menu in the bar itself, rather
   than merely parking it midway between the logo and the button. */
.brand { flex: 1 1 0; }
.nav-links { flex: 0 1 auto; justify-content: center; }
.nav-cta-slot { flex: 1 1 0; display: flex; justify-content: flex-end; }
.brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  color: #e8eef5;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
/* The CTA lives outside .nav-links now, so it needs its own button styling
   rather than inheriting the nav-link padding/radius. */
.nav-cta-slot a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta-slot a:hover { background: var(--accent-dark); text-decoration: none; }

/* תפריט נפתח — מאמרים */
.dropdown > a::after { content: " ▾"; font-size: .75em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background: #fff;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
}
/* פתיחה בריחוף/פוקוס — דסקטופ בלבד. במובייל הפתיחה נעשית רק ב-JS עם .open;
   בלי הסקופ הזה ה-hover המדומה של מסך מגע פותח את התפריט באמצע ההקשה,
   וההקשה נוחתת על הקישור הראשון שצץ מתחת לאצבע. */
@media (min-width: 801px) {
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: block; }
}
.dropdown-menu a {
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 400;
  border-radius: 8px;
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent-dark); }

/* המבורגר למובייל */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(247,148,29,.28), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(38,90,150,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d3450 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0 80px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #d6e1ec;
  max-width: 820px;
  margin: 0 auto 34px;
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .actions-video { margin-top: 14px; }
.hero .hint { margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 1.15rem; }

/* ---------- חלונות קופצים: בסיס משותף לנגן ולטופס ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;           /* מעל הכותרת הדביקה (250) וכפתור הוואטסאפ (200) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9,17,26,.85);
  overflow-y: auto;       /* טופס גבוה ממסך נמוך — נגלל בתוך החלון */
}
.modal[hidden] { display: none; }
.modal-sheet { position: relative; width: 100%; margin: auto; }
.modal-close {
  position: absolute;
  top: -48px;
  left: 0;                /* RTL: מחוץ לפינה השמאלית-עליונה */
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,.32); }
/* כשאין מקום מעל התוכן — מעבירים את כפתור הסגירה לתוך הפינה */
@media (max-height: 620px), (max-width: 520px) {
  .modal-close { top: 6px; left: 6px; background: rgba(0,0,0,.5); z-index: 1; }
}

/* נגן הווידאו */
.video-modal .modal-sheet { max-width: 960px; }
.video-modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- טופס הצעת מחיר ---------- */
.quote-modal .modal-sheet { max-width: 560px; }
.quote-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  text-align: left;
}
.quote-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.quote-lead { color: var(--muted); margin-bottom: 6px; }
.quote-phone { font-weight: 700; margin-bottom: 20px; }
.quote-phone a { color: var(--accent); }
.quote-form .field { margin-bottom: 14px; }
.quote-form label {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 5px;
}
.quote-form .req { color: var(--accent); }
.quote-form input,
.quote-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247,148,29,.18);
}
.quote-form textarea { resize: vertical; min-height: 96px; }
.quote-form [aria-invalid="true"] { border-color: #d64545; }
.field-err { color: #d64545; font-size: .88rem; margin-top: 4px; }
/* המלכודת חייבת להישאר בעץ ה-DOM וללא תצוגה — לא display:none, שבוטים מדלגים עליו */
.field-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-status { font-weight: 700; margin: 4px 0 14px; }
.form-status.is-error { color: #d64545; }
.form-status.is-ok { color: #128a4a; }
.form-status:empty { margin: 0; }
.quote-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quote-actions .btn { flex: 1 1 auto; text-align: center; }
.quote-form button[disabled] { opacity: .6; cursor: default; transform: none; }

/* Hero פנימי (עמודי תוכן) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.page-hero .crumbs { margin-top: 8px; color: #9fb3c8; font-size: .95rem; }
.page-hero .crumbs a { color: #cfdae6; }

/* ---------- סקציות ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-soft); }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin: 14px auto 0;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 44px;
  font-size: 1.08rem;
}

/* ---------- כרטיסי סיפורי הצלחה ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  color: var(--ink);
  text-decoration: none !important;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card img {
  height: 110px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}
.story-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.story-card .cat { color: var(--muted); font-size: .95rem; }
.story-card .sales {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 10px 0 4px;
}
.story-card .where { color: var(--muted); font-size: .9rem; }

/* ---------- רשת פרויקטים ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* הכרטיסים הם קישורים לעמוד הפרויקט, ולכן צריך לנטרל את עיצוב הקישור */
a.project-card { color: var(--ink); text-decoration: none !important; display: block; }
.project-card img { height: 200px; width: 100%; object-fit: cover; }
/* תמונת הפרויקט בראש עמוד הפרויקט */
.project-hero {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
/* שורת קרדיט קטנה צמוד מתחת לתמונת הפרויקט */
.project-credit {
  color: var(--muted);
  font-size: .85rem;
  margin: -14px 0 22px;
}
/* גלריית תמונות בעמוד פרויקט — כל תמונה נפתחת במלואה בלשונית חדשה */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 6px 0 26px;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0; /* בלי רווח מתחת לתמונה */
}
.gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* כפתור סרטון הפרויקט — btn-video מעוצב לרקע כהה של ההירו,
   ובגוף עמוד (רקע לבן) עוברים לגרסה כהה */
.project-video { margin-bottom: 26px; }
.article-body .btn-video { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-body .btn-video:hover { background: var(--navy-2); border-color: var(--navy-2); }
.project-card .body { padding: 16px 18px 20px; }
.project-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.project-card p { color: var(--muted); font-size: .95rem; }
.center-link { text-align: center; margin-top: 34px; }

/* ---------- שירותים ---------- */
.stage-label {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 6px 22px;
  font-weight: 700;
  margin: 40px 0 20px;
}
.stage-label .free { color: var(--accent); }
/* Flex, not grid, and a fixed card width: every stage group holds a different
   number of cards, and with `1fr` grid columns a two-card row produced cards
   twice as wide as a four-card row -- so the same icon rendered at different
   sizes down the page. Fixed basis keeps every card identical; the rows centre
   themselves however many cards they hold. */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.service-card {
  flex: 0 1 240px;          /* never grow -> identical width in every row */
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  color: var(--ink);
  text-decoration: none !important;
  display: flex;            /* titles of differing length stay bottom-aligned */
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card h3 {
  font-size: 1.05rem;
  padding: 14px 12px 18px;
  margin: 0;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- אודות ---------- */
.about-wrap { max-width: 900px; margin: 0 auto; }
.about-wrap p { margin-bottom: 16px; font-size: 1.05rem; }
.numbered-list { max-width: 900px; margin: 24px auto 0; padding-inline-start: 0; list-style: none; counter-reset: srv; }
.numbered-list li {
  counter-increment: srv;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.numbered-list li::before {
  content: counter(srv);
  min-width: 30px; height: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

/* ---------- צור קשר ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.contact-card a { font-weight: 600; }
.contact-card p { color: var(--muted); }
/* טופס יצירת קשר גלוי, מתחת לכרטיסי הערוצים — שורה אופקית אחת,
   כדי לתפוס כמה שפחות גובה. התוויות מוסתרות חזותית וה-placeholder מחליף אותן */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 980px;
  margin: 34px auto 0;
  padding: 20px 22px;
}
.contact-form h3 { margin-bottom: 14px; font-size: 1.1rem; text-align: center; }
.contact-form .quote-form {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1.7fr;
  gap: 12px;
  align-items: start;
}
.contact-form .field { margin-bottom: 0; }
.contact-form .quote-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-form input { height: 47px; }
.contact-form textarea { height: 47px; min-height: 47px; resize: none; }
/* כפתור השליחה בשורה משלו, ממורכז */
.contact-form .btn {
  height: 47px;
  padding: 0 48px;
  grid-column: 1 / -1;
  justify-self: center;
}
.contact-form .captcha-field { grid-column: 1 / -1; justify-self: center; }
.contact-form .form-status { grid-column: 1 / -1; margin: 0; text-align: center; }
.contact-form .form-status:empty { display: none; }
@media (max-width: 860px) {
  .contact-form .quote-form { grid-template-columns: 1fr; }
  .contact-form textarea { height: 96px; }
  .contact-form .btn { width: 100%; }
}

/* ---------- פס קריאה לפעולה ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(247,148,29,.35), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #d6e1ec; margin-bottom: 26px; font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- עמוד מאמר ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
.article-body h2 {
  font-size: 1.45rem;
  margin: 34px 0 12px;
  color: var(--navy);
}
.article-body h3 { font-size: 1.2rem; margin: 26px 0 10px; color: var(--navy); }
.article-body p { margin-bottom: 14px; font-size: 1.05rem; }
.article-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 10px 0 24px;
}
.article-aside {
  position: sticky;
  top: 92px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.article-aside h3 { margin-bottom: 12px; font-size: 1.1rem; }
.article-aside ul { list-style: none; }
.article-aside li { margin-bottom: 8px; }
.article-aside a { color: var(--ink); }
.article-aside a:hover { color: var(--accent-dark); }
.article-aside .aside-cta { margin-top: 18px; text-align: center; }
.article-aside .aside-cta .btn { width: 100%; }

/* ---------- עמוד סיפורי הצלחה ---------- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.story-block:last-child { border-bottom: 0; }
.story-block img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0 auto; max-height: 320px; object-fit: contain; }
.story-block .logo { max-height: 70px; width: auto; box-shadow: none; margin: 0 0 14px; }
.story-block h2 { font-size: 1.6rem; margin-bottom: 10px; color: var(--navy); }
.story-block .stats {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  margin: 16px 0;
}
.story-block p { margin-bottom: 10px; }

/* ---------- פוטר ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c7d6;
  padding: 56px 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #b9c7d6; }
.site-footer a:hover { color: #fff; }
.footer-articles ul {
  columns: 2;
  column-gap: 24px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row img { height: 34px; width: 34px; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  text-align: center;
  color: #8fa2b5;
}

/* ---------- כפתור וואטסאפ צף ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 200;
  background: #25d366;
  border-radius: 50%;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
/* the icon is 256x200, so contain keeps it from being squeezed into a square */
.wa-float img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- אנימציית הופעה ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- רספונסיביות ---------- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-block { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  /* .nav-links becomes an absolute dropdown here, so the only children left in
     flow are the logo, the CTA and the hamburger. `order` lays them out as
     logo (right) … CTA, hamburger (left); the equal-share centring above is
     dropped since there is no longer a centre zone to balance. */
  .nav { gap: 10px; }
  .brand { flex: 0 0 auto; order: 1; }
  .nav-cta-slot { flex: 1 1 auto; order: 2; justify-content: flex-end; }
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    gap: 2px;
    box-shadow: 0 14px 24px rgba(0,0,0,.3);
    /* the panel is out of the document flow, so it must scroll itself once the
       article list outgrows the space under the sticky header. svh = the small
       viewport (browser toolbars visible), so the panel bottom — and the last
       menu item — is always actually on screen; the vh fallback over-subtracts
       for the same reason on older browsers. */
    max-height: calc(100vh - 160px);
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .nav-links.open { display: flex; }
  /* בלוק ריק בסוף הרשימה — מאפשר לגלול את הפריט האחרון מעל סרגל הכפתורים של
     אנדרואיד. padding-bottom על מיכל גלילה לא אמין בדפדפנים, בלוק אמיתי כן. */
  .nav-links::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: 96px;
  }
  .nav-links a { padding: 12px 14px; }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,.06);
    max-height: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: #dbe5ee; }
  .dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-articles ul { columns: 1; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 52px 0; }
}

/* ---------- Language switcher (US site) ---------- */
.nav-links a.lang-switch {
  font-size: .92rem;
  opacity: .85;
  direction: rtl; /* the label itself is Hebrew */
}
.nav-links a.lang-switch:hover { opacity: 1; }

/* ---------- Language selector (topbar, top right) ---------- */
.topbar .container { position: relative; }
.lang-select { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; align-items: center; }
.lang-select .sep { opacity: .45; }
.lang-select .cur { color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  .lang-select { position: static; transform: none; margin-inline-start: auto; }
}
