/* ============================================================
   LIV 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; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
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;
}
h1, h2, h3, h4 { overflow-wrap: break-word; }
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: 132px; height: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.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 14px; 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, .main-nav a.active-page { color: var(--color-primary); }
.main-nav a:hover::after, .main-nav a:focus::after, .main-nav a.active-page::after { width: 100%; }
.mobile-nav a.active-page { color: var(--color-primary); font-weight: var(--weight-semibold); }

.header-social { display: flex; align-items: center; gap: 16px; }
.header-social a { color: var(--color-text); display: flex; align-items: center; }
.header-social svg { width: 22px; height: 22px; fill: currentColor; transition: color 0.3s; }
.header-social a:hover { color: var(--color-primary); }

.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; background: none; border: none; cursor: pointer; padding: 10px; z-index: 20001; display: flex; align-items: center; justify-content: center; }
.lightbox-nav svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.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: url('assets/1-LIF.jpg') center/cover no-repeat;
  padding: 60px 20px 40px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-primary);
  font-size: 66px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
}
.page-hero p {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--color-secondary);
  margin-top: 8px;
}
.page-hero .breadcrumb {
  font-family: var(--font-hebrew-noto);
  font-size: var(--text-sm);
  color: rgba(0,0,0,0.65);
  margin-top: 12px;
}
.page-hero .breadcrumb a { color: var(--color-primary); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ── Legal pages (privacy / terms / accessibility) ─────── */
.legal-section { padding: 60px 30px 90px; }
.legal-content { max-width: 900px; margin: 0 auto; line-height: 1.8; font-size: var(--text-base); color: #222; }
.legal-content h2 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); color: var(--color-primary); margin: 30px 0 12px; }
.legal-content h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 20px 0 8px; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 0 26px 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--color-secondary); text-decoration: underline; }
.legal-content hr { border: 0; border-top: 1px solid rgba(0,0,0,0.12); margin: 26px 0; }

/* ── Service sub-page (text + blob) ────────────────────── */
.service-page { padding: 70px 30px 90px; }
.service-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: flex-start; gap: 50px; }
.service-text { flex: 1.4; font-size: 18px; line-height: 1.5; color: #000; }
.service-text p { margin-bottom: 18px; }
.service-text h2 { font-size: 24px; font-weight: 500; margin: 18px 0 14px; }
.service-text ul { margin: 0 0 18px; }
.service-text li { position: relative; padding-inline-start: 22px; margin-bottom: 10px; line-height: 1.5; }
.service-text li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--color-secondary); font-weight: 700; }
.service-img { flex: 1; display: flex; justify-content: center; }
.service-img img { width: 100%; max-width: 420px; }
@media (max-width: 1024px) {
  .service-inner { flex-direction: column-reverse; }
  .service-img { max-width: 320px; margin: 0 auto; }
}

/* ── Press feature ("בתקשורת") — editorial ─────────────── */
.press { background: #f5f1ec; padding: 84px 30px; }
.press-card {
  max-width: 940px; margin: 0 auto; position: relative; background: #fffefc;
  border: 1px solid rgba(49,174,196,.18);
  border-radius: 6px 30px 6px 30px;
  box-shadow: 0 26px 60px -32px rgba(16,50,58,.42), 0 2px 6px rgba(16,50,58,.05);
  padding: 50px 56px 42px;
}
/* eyebrow / attribution row */
.press-head { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(16,50,58,.09); margin-bottom: 34px; }
.press-kicker { font-family: var(--font-hebrew-noto); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; color: var(--color-primary); }
.press-pub { display: flex; align-items: center; gap: 11px; }
.press-pub em { font-family: var(--font-hebrew-noto); font-size: 12px; font-style: normal; color: #a7a099; white-space: nowrap; }
.press-pub img { width: 116px; height: auto; display: block; }
/* pull-quote (hero) */
.press-quote { position: relative; margin: 0 0 20px; padding-top: 6px; }
.press-quote::before { content: '\201D'; position: absolute; top: -46px; right: -10px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 150px; line-height: 1;
  color: rgba(49,174,196,.15); z-index: 0; pointer-events: none; }
.press-quote p { position: relative; z-index: 1; font-size: 31px; font-weight: 500;
  line-height: 1.42; color: #1e3239; }
.press-title { font-size: 16px; line-height: 1.55; color: #7c756e; margin-bottom: 30px; }
/* footer: byline + cta */
.press-foot { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.press-by { display: flex; align-items: center; gap: 13px; }
.press-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(16,50,58,.18); }
.press-by b { font-size: 16px; font-weight: 700; color: #1e3239; display: block; line-height: 1.2; }
.press-by small { font-size: 13px; color: #a7a099; }
.press-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--color-secondary); color: #fff;
  font-family: var(--font-hebrew-noto); font-weight: var(--weight-semibold); font-size: 16px;
  padding: 13px 30px; border-radius: var(--radius-full);
  transition: background .3s, transform .35s cubic-bezier(.19,1,.22,1), box-shadow .3s;
  box-shadow: 0 8px 20px -8px rgba(241,98,98,.6); }
.press-cta svg { width: 15px; height: 15px; fill: currentColor; transition: transform .35s cubic-bezier(.19,1,.22,1); }
.press-cta:hover { background: var(--color-primary); box-shadow: 0 10px 24px -8px rgba(49,174,196,.6); }
.press-cta:hover svg { transform: translateX(-4px); }
/* stat line */
.press-stat { display: flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--font-hebrew-noto); font-size: 13px; color: #9a938c; }
.press-stat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

/* compact variant — homepage band */
.press--compact { padding: 56px 30px; }
.press--compact .press-card { padding: 26px 40px; display: flex; align-items: center; gap: 34px; }
.press--compact .press-pub { flex-direction: column; align-items: flex-start; gap: 5px; flex-shrink: 0; }
.press--compact .press-title { flex: 1; margin: 0; font-size: 19px; font-weight: 500; color: #1e3239; line-height: 1.4; }
.press--compact .press-title a { color: inherit; }
.press--compact .press-title a:hover { color: var(--color-primary); }
.press--compact .press-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .press--compact .press-card { flex-direction: column; align-items: flex-start; text-align: start; gap: 20px; }
}
@media (max-width: 767px) {
  .press { padding: 54px 22px; }
  .press-card { padding: 36px 28px 32px; border-radius: 6px 22px 6px 22px; }
  .press-quote p { font-size: 24px; }
  .press-quote::before { font-size: 110px; top: -34px; }
  .press-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .press-cta { justify-content: center; }
  .press--compact .press-card { align-items: stretch; }
  .press--compact .press-cta { justify-content: center; }
}

/* ── Footer (black, multi-column) ──────────────────────── */
.site-footer {
  background: #000; color: var(--color-white);
  padding: 60px 30px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--font-hebrew-noto); font-size: var(--text-base);
  color: var(--color-white); transition: color 0.3s;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social a { color: var(--color-white); display: flex; transition: color 0.3s; }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-social a:hover { color: var(--color-primary); }
.footer-logo { flex-shrink: 0; }
.footer-logo img { width: 230px; height: auto; }
.footer-copy {
  font-family: var(--font-hebrew-noto); font-size: var(--text-xs);
  color: rgba(255,255,255,0.6); text-align: center;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .page-hero h1 { font-size: 50px; }
  .page-hero p { font-size: 28px; }
}
@media (max-width: 767px) {
  .site-logo img { width: 96px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero p { font-size: 24px; }
}
@media (max-width: 1024px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .footer-col { align-items: center; }
  .footer-logo img { width: 190px; }
}

/* ── Reels — "מה חדש" ──────────────────────────────────── */
.reels-section { padding: 100px 0; background: var(--color-light-gray); }
.reels-inner { max-width: var(--container-max); margin-inline: auto; padding-inline: 20px; }
.reels-label {
  font-family: var(--font-accent); font-size: var(--text-5xl);
  font-weight: var(--weight-medium); color: var(--color-secondary);
  line-height: 1.1; margin-bottom: 4px;
}
.reels-heading {
  font-family: var(--font-primary); font-size: var(--text-8xl);
  font-weight: 700; color: var(--color-text); line-height: 1.05;
}
.reels-sub {
  font-family: var(--font-hebrew-noto); font-size: var(--text-md);
  color: #444; margin-top: 10px;
}

.rl-rail-wrap { position: relative; margin-top: 34px; }
.rl-rail {
  display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;   /* mandatory הופך פליקים לתפוסים */
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block-end: 8px;
}
.rl-rail::-webkit-scrollbar { display: none; }

/* ── שלד טעינה ──────────────────────────────────────────
   אילו המקטע היה hidden ונחשף אחרי שהמניפסט חוזר, כל מה שמתחתיו
   היה נדחף בבת אחת. השלד שומר את הגובה מראש. */
.rl-skel {
  flex: 0 0 auto;
  inline-size: clamp(200px, 62vw, 264px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: linear-gradient(100deg, #ececec 30%, #f6f6f6 50%, #ececec 70%);
  background-size: 220% 100%;
  animation: rlShimmer 1.4s ease-in-out infinite;
}
@media (min-width: 1025px) { .rl-skel { inline-size: 264px; } }
@keyframes rlShimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }

/* כניסה מדורגת לכרטיסים — ה-observer של העמוד לא רואה אלמנט מוזרק */
.rl-card {
  animation: rlIn 0.5s cubic-bezier(.22,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes rlIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* fade-in לפוסטר/תמונה במקום חיתוך חד על רקע שחור */
.rl-media { opacity: 0; transition: opacity 0.45s ease; }
.rl-media.rl-ready, .rl-card video.rl-media { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rl-skel, .rl-card { animation: none; }
  .rl-media { transition: none; opacity: 1; }
}
:root.a11y-noanim .rl-skel, :root.a11y-noanim .rl-card { animation: none; }

.rl-card {
  flex: 0 0 auto;
  inline-size: clamp(200px, 62vw, 264px);
  aspect-ratio: 9 / 16;          /* שומר מקום — מונע קפיצת פריסה */
  scroll-snap-align: start;
  position: relative; border: 0; padding: 0;
  border-radius: 18px; overflow: hidden;
  background: #111; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform 0.3s;
}
@media (min-width: 1025px) { .rl-card { inline-size: 264px; } }
.rl-card:hover { transform: translateY(-4px); }
.rl-card:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

.rl-media { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.rl-card::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0;
  block-size: 45%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.rl-caption {
  position: absolute; inset-inline: 12px; inset-block-end: 12px; z-index: 2;
  color: #fff; font-family: var(--font-primary); font-size: var(--text-sm);
  font-weight: var(--weight-medium); text-align: start;
  unicode-bidi: isolate; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.rl-badge {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2;
  inline-size: 32px; block-size: 32px; border-radius: var(--radius-circle);
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center;
}
.rl-badge svg { width: 16px; height: 16px; fill: #fff; }

.rl-nav {
  position: absolute; inset-block-start: 50%; translate: 0 -50%; z-index: 3;
  inline-size: 44px; block-size: 44px; border-radius: var(--radius-circle);
  border: 0; background: rgba(255,255,255,0.94); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
/* חצי SVG ולא תווי טקסט: תווים כמו ‹ › עוברים שיקוף אוטומטי (bidi
   mirroring) בהקשר RTL ומופיעים הפוך. SVG חסין לכך. */
.rl-nav svg {
  width: 20px; height: 20px; fill: none;
  stroke: var(--color-text); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.rl-nav:hover { background: #fff; }
/* מיקום פיזי (ולא לוגי) — כפתור שמאל תמיד משמאל, ימין תמיד מימין,
   כך שהחיצים מצביעים החוצה בלי תלות בכיוון הכתיבה */
.rl-left  { left: -10px; }
.rl-right { right: -10px; }
.rl-nav[aria-disabled="true"] { opacity: .35; cursor: default; }
.rl-nav:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

/* מודאל וידאו (עם קול) */
.rl-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 20000;
  display: flex; align-items: center; justify-content: center;
}
.rl-modal[hidden] { display: none; }
.rl-modal-video {
  max-inline-size: min(92vw, 480px); max-block-size: 88vh;
  border-radius: 14px; background: #000;
}
.rl-modal-close {
  position: absolute; inset-block-start: 20px; inset-inline-end: 26px;
  color: #fff; font-size: 40px; line-height: 1;
  background: none; border: 0; cursor: pointer; z-index: 20001;
}

@media (prefers-reduced-motion: reduce) {
  .rl-rail { scroll-behavior: auto; }
  .rl-card { transition: none; }
}
@media (max-width: 767px) {
  .reels-section { padding: 70px 0; }
  .reels-heading { font-size: var(--text-6xl); }
  .reels-label { font-size: var(--text-3xl); }
  .rl-nav { display: none; }   /* במובייל גוללים באצבע */
}
