/* ============================================================
   Kerem Life Zone — Shared chrome (header / footer / global)
   Used by sub-pages. Requires tokens.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background: var(--color-white);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.anchor { position: relative; top: -80px; display: block; height: 0; visibility: hidden; }

/* ── Sticky Header ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-secondary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; max-width: 100%;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1315px; margin: 0 auto;
}
.site-logo img { width: 100px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: flex-start; padding-inline-start: 24px; }
.main-nav a {
  font-family: var(--font-hebrew-noto);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  padding: 20px 12px; display: inline-block; position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: var(--color-primary); transition: width 0.3s;
}
.main-nav a:hover, .main-nav a:focus { color: var(--color-primary); }
.main-nav a:hover::after, .main-nav a:focus::after { width: 100%; }

.header-whatsapp { display: flex; align-items: center; }
.header-whatsapp a { color: var(--color-secondary); display: flex; align-items: center; }
.header-whatsapp svg { width: 25px; height: 25px; fill: var(--color-secondary); transition: fill 0.3s; display: block; }
.header-whatsapp a:hover svg { fill: var(--color-primary); }
.header-phone { display: flex; align-items: center; gap: 8px; margin-inline-start: 18px; margin-inline-end: 26px; color: var(--color-secondary); transition: color 0.3s; white-space: nowrap; }
.header-phone:hover { color: var(--color-primary); }
.header-phone svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; display: block; }
.header-phone .hp-label { font-family: var(--font-hebrew-noto); font-size: var(--text-base); font-weight: var(--weight-regular); color: var(--color-text); }
.header-phone .hp-num { font-family: var(--font-hebrew-noto); font-size: 22px; font-weight: var(--weight-black); color: currentColor; letter-spacing: 0.5px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 10px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 3px; background: var(--color-primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  display: none; position: absolute; top: 100%; right: 0; left: 0;
  background: var(--color-white); border-bottom: 3px solid var(--color-secondary);
  flex-direction: column; padding: 10px 0; z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-hebrew-noto); font-size: var(--text-base); padding: 12px 30px; display: block; transition: background 0.3s, color 0.3s; }
.mobile-nav a:hover { background: var(--color-primary); color: var(--color-white); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-hero {
  display: inline-block; font-family: var(--font-hebrew-noto);
  font-size: var(--text-base); font-weight: var(--weight-semibold);
  color: var(--color-secondary); background: var(--color-white);
  border: 1px solid var(--color-secondary); border-radius: 0;
  padding: 12px 30px; text-align: center; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-hero:hover, .btn-hero:focus { background: var(--color-secondary); color: var(--color-white); }

/* ── Floating WhatsApp ─────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; z-index: 9999;
  background: #25D366; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ── Fixed vertical "פרטים נוספים" side tab ───────────── */
.side-cta {
  position: fixed; left: 0; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  z-index: 9998;
  background: var(--color-secondary); color: var(--color-white);
  font-family: var(--font-hebrew-noto); font-weight: var(--weight-semibold);
  font-size: var(--text-base); letter-spacing: 0.5px;
  padding: 20px 12px; writing-mode: vertical-rl; cursor: pointer;
  border-radius: 6px 0 0 6px; box-shadow: 2px 0 10px rgba(0,0,0,0.25);
  transition: background 0.3s, padding 0.3s;
}
.side-cta:hover, .side-cta:focus { background: var(--color-primary); padding-left: 16px; }
@media (max-width: 767px) { .side-cta { font-size: 15px; padding: 14px 9px; } }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 20000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; background: none; border: none; cursor: pointer; z-index: 20001; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 48px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 20001; }
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transition: opacity 0.1s; }
.reveal.active { animation-duration: 1s; animation-fill-mode: both; }
.reveal-up.active { animation-name: fadeInUp; }
.reveal-right.active { animation-name: fadeInRight; }
.reveal-left.active { animation-name: fadeInLeft; }
.reveal-fade.active { animation-name: fadeIn; }
.reveal-zoom.active { animation-name: zoomIn; }

/* ── Sub-page hero strip (title band) ──────────────────── */
.page-hero {
  background: var(--color-light-gray);
  padding: 70px 20px 50px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-primary);
  font-size: var(--text-8xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  line-height: 1.15;
}
.page-hero p {
  font-family: var(--font-primary);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-secondary);
  margin-top: 8px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--color-white); color: var(--color-text);
  padding: 40px 20px; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.footer-logo img { width: 120px; height: auto; margin: 0 auto 18px; }
.footer-credit { font-family: var(--font-hebrew-noto); font-size: var(--text-sm); color: var(--color-text); margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 16px; }
.footer-links a { font-family: var(--font-hebrew-noto); font-size: var(--text-sm); color: var(--color-secondary); transition: color 0.3s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-disclaimer, .footer-copy { font-family: var(--font-hebrew-noto); font-size: var(--text-xs); color: rgba(0,0,0,0.55); margin-bottom: 6px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone { margin-inline-start: 10px; }
  .page-hero h1 { font-size: 50px; }
  .page-hero p { font-size: 28px; }
}
@media (max-width: 767px) {
  .site-logo img { width: 74px; }
  .header-phone .hp-label { display: none; }
  .header-phone .hp-num { font-size: 19px; }
  .header-phone svg { width: 20px; height: 20px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero p { font-size: 24px; }
}

/* ── בורר שפה ─────────────────────────────────────────────
   נכסים לוגיים בלבד, כדי שיתהפך לבדו בגרסאות הלטיניות.
   הדגלים הם data-URI ולא אמוג'י: אמוג'י דגלים אינם מרונדרים
   כלל ב-Windows ומופיעים שם כשתי אותיות. */
.lang-switch { position: relative; margin-inline-start: 22px; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #dfe3e6; cursor: pointer;
  padding: 5px 9px; border-radius: var(--radius-full);
  color: var(--color-text); font-family: var(--font-primary);
  font-size: 13px; font-weight: var(--weight-semibold);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-btn:hover { border-color: var(--color-secondary); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.lang-btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.lang-cur { letter-spacing: .6px; }
.lang-caret { inline-size: 9px; block-size: 9px; opacity: .55; transition: transform .2s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

/* דגל: יחס 3:2 קבוע, עם טבעת עדינה כדי שהלבן ייראה על רקע לבן */
.lang-flag {
  inline-size: 20px; block-size: 14px; flex-shrink: 0;
  border-radius: 2px; background-size: cover; background-position: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.lang-flag--he { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%272.4%27%20width%3D%2730%27%20height%3D%272.6%27%20fill%3D%27%230038b8%27%2F%3E%3Crect%20y%3D%2715%27%20width%3D%2730%27%20height%3D%272.6%27%20fill%3D%27%230038b8%27%2F%3E%3Cpath%20d%3D%27M15%206.6l3.6%206.3h-7.2z%27%20fill%3D%27none%27%20stroke%3D%27%230038b8%27%20stroke-width%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M15%2013.4l-3.6-6.3h7.2z%27%20fill%3D%27none%27%20stroke%3D%27%230038b8%27%20stroke-width%3D%27.9%27%2F%3E%3C%2Fsvg%3E"); }
.lang-flag--en { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Cg%20fill%3D%27%23b22234%27%3E%3Crect%20y%3D%270.00%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%273.08%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%276.15%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%279.23%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2712.31%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2715.38%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2718.46%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3C%2Fg%3E%3Crect%20width%3D%2712.6%27%20height%3D%2710.77%27%20fill%3D%27%233c3b6e%27%2F%3E%3C%2Fsvg%3E"); }
.lang-flag--fr { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20width%3D%2710%27%20height%3D%2720%27%20fill%3D%27%23002395%27%2F%3E%3Crect%20x%3D%2720%27%20width%3D%2710%27%20height%3D%2720%27%20fill%3D%27%23ed2939%27%2F%3E%3C%2Fsvg%3E"); }
/* דגל הכפתור נגזר מ-data-lang, שה-build כבר מעדכן — בלי קוד נוסף */
.lang-switch[data-lang="he"] .lang-btn .lang-flag { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%272.4%27%20width%3D%2730%27%20height%3D%272.6%27%20fill%3D%27%230038b8%27%2F%3E%3Crect%20y%3D%2715%27%20width%3D%2730%27%20height%3D%272.6%27%20fill%3D%27%230038b8%27%2F%3E%3Cpath%20d%3D%27M15%206.6l3.6%206.3h-7.2z%27%20fill%3D%27none%27%20stroke%3D%27%230038b8%27%20stroke-width%3D%27.9%27%2F%3E%3Cpath%20d%3D%27M15%2013.4l-3.6-6.3h7.2z%27%20fill%3D%27none%27%20stroke%3D%27%230038b8%27%20stroke-width%3D%27.9%27%2F%3E%3C%2Fsvg%3E"); }
.lang-switch[data-lang="en"] .lang-btn .lang-flag { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Cg%20fill%3D%27%23b22234%27%3E%3Crect%20y%3D%270.00%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%273.08%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%276.15%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%279.23%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2712.31%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2715.38%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3Crect%20y%3D%2718.46%27%20width%3D%2730%27%20height%3D%271.538%27%2F%3E%3C%2Fg%3E%3Crect%20width%3D%2712.6%27%20height%3D%2710.77%27%20fill%3D%27%233c3b6e%27%2F%3E%3C%2Fsvg%3E"); }
.lang-switch[data-lang="fr"] .lang-btn .lang-flag { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2020%27%3E%3Crect%20width%3D%2730%27%20height%3D%2720%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20width%3D%2710%27%20height%3D%2720%27%20fill%3D%27%23002395%27%2F%3E%3Crect%20x%3D%2720%27%20width%3D%2710%27%20height%3D%2720%27%20fill%3D%27%23ed2939%27%2F%3E%3C%2Fsvg%3E"); }

.lang-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  min-inline-size: 176px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,.16); border: 1px solid #e6e8ea;
  display: none; z-index: 10000;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  text-decoration: none; color: var(--color-text);
  font-size: 15px; white-space: nowrap;
}
.lang-menu a:hover { background: var(--color-light-gray); }
.lang-name { flex: 1; }
/* השפה הנוכחית מסומנת גם ויזואלית וגם ל-aria, לא רק בצבע */
.lang-menu a[aria-current] { font-weight: var(--weight-semibold); color: var(--color-secondary); }
.lang-menu a[aria-current]::after { content: "\2713"; font-size: 13px; }
@media (max-width: 900px) { .lang-switch { margin-inline-start: 6px; } .lang-cur { display: none; } }



/* סף ההמבורגר הועלה מ-1024 ל-1200: בטווח שביניהם ההדר לא נכנס
   לרוחב המסך והעמוד גלש אופקית — נמדד docW 1164 מול 1025 גם
   באתר העברי. רק שלושת כללי ההדר עוברים; פריסת הטאבלט שב-1024
   נשארת במקומה. */
@media (max-width: 1360px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone { margin-inline-start: 10px; }
}

/* ── לוגו-מילים והערות ── */
.site-logo--text { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.site-logo--text .lg-name { font-family: var(--font-hebrew-noto); font-weight: 800; font-size: 26px; color: var(--color-text); }
.site-logo--text .lg-city { font-family: var(--font-hebrew-noto); font-weight: 500; font-size: 14px; color: var(--color-primary); }
.header-cta { text-decoration: none; }
.page-note { text-align: center; font-family: var(--font-hebrew-noto); font-size: var(--text-sm); color: #555; margin: 18px 16px 0; }
@media (max-width: 767px) { .site-logo--text .lg-name { font-size: 21px; } .site-logo--text .lg-city { font-size: 12px; } }
.gal-group { font-family: var(--font-hebrew-noto); font-size: 26px; font-weight: 700; margin: 34px 16px 14px; text-align: start; }
.legal-content { overflow-wrap: anywhere; }
/* לוגו לייף זון + עכו (הערות ארי 10.10) */
.site-logo--brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.site-logo--brand img { height: 34px; width: auto; }
.site-logo--brand .lg-city { font-family: var(--font-hebrew-noto); font-weight: 800; font-size: 24px; color: var(--color-primary); }
@media (max-width: 767px) { .site-logo--brand img { height: 24px; } .site-logo--brand .lg-city { font-size: 18px; } }
@media (max-width: 400px) { .site-logo--brand { gap: 6px; } .site-logo--brand img { height: 20px; } .site-logo--brand .lg-city { font-size: 16px; } }
