/* ===== אתר יעדאל חזן - עיצוב משותף ===== */
:root {
  --navy-900: #0e2a44;
  --navy-800: #143a5c;
  --navy-700: #1c4a72;
  --teal-400: #4ec9d6;
  --teal-300: #7adbe4;
  --teal-100: #dff6f8;
  --ink: #1f2d3a;
  --ink-soft: #47586a;
  --bg: #f6f9fb;
  --white: #ffffff;
  --accent-deep: #0f6b78;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(14, 42, 68, 0.10);
  --serif: 'Frank Ruhl Libre', 'Heebo', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== ניווט ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 42, 68, 0.96);
  backdrop-filter: blur(8px);
  color: var(--white);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
  flex-wrap: wrap; gap: 10px;
}
.nav-logo { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--teal-300); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: #cfe3ef; text-decoration: none; font-size: 0.95rem; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-300); }
.nav-links a.soon { opacity: .45; cursor: default; }
.btn-nav {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  color: var(--navy-900) !important; font-weight: 700;
  padding: 8px 18px; border-radius: 999px; font-size: 0.95rem !important;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, #2a6a8a 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-block; border: 1px solid rgba(122, 219, 228, .6);
  color: var(--teal-300); border-radius: 999px; padding: 6px 16px;
  font-size: 0.9rem; margin-bottom: 20px;
}
.hero h1 { font-family: var(--serif); font-size: 2.7rem; line-height: 1.3; font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal-300); }
.hero-sub { font-size: 1.2rem; color: #d9e8f2; max-width: 34rem; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 30px; border-radius: 8px; font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(78, 201, 214, .35);
}
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.5); color: var(--white);
}

/* תמונה אמיתית */
.photo-frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.photo-frame img { width: 100%; display: block; }

/* עדויות וואטסאפ */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.test-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.test-card img { width: 100%; display: block; }
.test-card .test-foot {
  padding: 12px 18px; font-size: .92rem; color: var(--ink-soft);
  display: flex; justify-content: space-between;
}
.test-card .test-foot b { color: var(--navy-800); }

/* placeholder לתמונה */
.photo-placeholder {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(122,219,228,.25), rgba(255,255,255,.08));
  border: 1.5px dashed rgba(122, 219, 228, .55);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-100); font-size: .95rem; text-align: center; padding: 20px;
}

/* ===== סקשנים ===== */
section { padding: 72px 0; }
section.alt { background: var(--white); }
section.dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.kicker {
  color: var(--accent-deep); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent-deep); }
.dark .kicker { color: var(--teal-300); }
.dark .kicker::before { background: var(--teal-300); }
h2 { font-family: var(--serif); font-size: 2rem; font-weight: 800; margin-bottom: 14px; line-height: 1.35; }
.section-intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 36px; font-size: 1.1rem; }
.dark .section-intro { color: #d9e8f2; }

/* ===== כרטיסים ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy-800); }
.card p { color: var(--ink-soft); font-size: 1rem; flex-grow: 1; }
.card a.more { color: var(--navy-700); font-weight: 700; text-decoration: none; }
.card a.more:hover { color: var(--teal-400); }
/* מספור טיפוגרפי במקום אייקונים */
.cards { counter-reset: cardnum; }
.card-num {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--accent-deep); display: flex; align-items: center; gap: 10px;
}
.card-num::before { counter-increment: cardnum; content: "0" counter(cardnum); }
.card-num::after { content: ""; flex: 1; height: 1px; background: #dbe6ee; }

/* רשימת כאבים */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain {
  background: var(--white); border-radius: 10px; padding: 18px 22px;
  box-shadow: var(--shadow); font-size: 1.05rem; color: var(--ink);
  border-right: 3px solid var(--accent-deep);
}

/* שלבים */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(122,219,228,.25);
  border-radius: var(--radius); padding: 26px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-400); color: var(--navy-900);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: #d9e8f2; font-size: .98rem; }

/* עדויות */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); font-size: 1.02rem; color: var(--ink-soft);
}
.quote .who { margin-top: 12px; font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.placeholder-note {
  border: 1.5px dashed #b9cbd9; border-radius: 12px; padding: 14px 18px;
  color: #7a8ea0; font-size: .92rem; background: #fbfdfe;
}

/* וידאו placeholder */
.video-placeholder {
  aspect-ratio: 16 / 9; max-width: 720px; margin: 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  border: 1.5px dashed rgba(122,219,228,.5);
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--teal-100);
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal-400); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.faq details {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  margin-bottom: 12px; padding: 0 22px; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--navy-800);
  padding: 18px 0; list-style: none; position: relative;
}
.faq summary::after {
  content: "+"; position: absolute; left: 0; top: 16px;
  font-size: 1.4rem; color: var(--teal-400); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* ===== טופס ליד ===== */
.lead-box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; max-width: 560px; margin: 0 auto;
}
.lead-box h2 { text-align: center; }
.lead-box .sub { text-align: center; color: var(--ink-soft); margin-bottom: 24px; }
.lead-box label { display: block; font-weight: 700; font-size: .95rem; margin: 14px 0 6px; }
.lead-box input, .lead-box textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #d3dfe9; font-family: inherit; font-size: 1rem;
}
.lead-box input:focus, .lead-box textarea:focus {
  outline: none; border-color: var(--teal-400);
}
.lead-box button {
  width: 100%; margin-top: 22px; border: none; cursor: pointer;
  font-family: inherit;
}
.after-note { text-align: center; color: #7a8ea0; font-size: .9rem; margin-top: 14px; }

/* הודעת הצלחה אחרי שליחת טופס */
.form-success {
  text-align: center; padding: 34px 20px;
  animation: riseIn .5s cubic-bezier(.22,1,.36,1);
}
.form-success .fs-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  color: var(--navy-900); font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy-800);
  margin-bottom: 8px;
}
.form-success p { color: var(--ink-soft); }

/* ===== דפי תוכן (נושא / עליי) ===== */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white); padding: 64px 0;
}
.page-hero h1 { font-family: var(--serif); font-size: 2.3rem; font-weight: 800; line-height: 1.4; max-width: 40rem; }
.page-hero .sub { color: #d9e8f2; font-size: 1.15rem; max-width: 36rem; margin-top: 14px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 44px; }
.prose p { margin-bottom: 18px; color: var(--ink); font-size: 1.08rem; }
.prose .highlight {
  background: #f2f7f8; border-right: 3px solid var(--accent-deep);
  border-radius: 8px; padding: 22px 26px; margin: 28px 0;
  font-weight: 600; font-family: var(--serif); font-size: 1.12rem;
  color: var(--navy-800);
}
.prose ul { margin: 0 22px 18px 0; color: var(--ink); }
.prose ul li { margin-bottom: 8px; }

/* CTA תחתון */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white); text-align: center; border-radius: var(--radius);
  padding: 48px 32px;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #d9e8f2; margin-bottom: 24px; }

/* ===== פוטר ===== */
footer {
  background: var(--navy-900); color: #9db8cb; padding: 40px 0; font-size: .95rem;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--teal-300); text-decoration: none; }

/* שורת משנה מתחת לכותרת הסיפור */
.story-sub {
  color: var(--accent-deep); font-weight: 700; font-size: 1.05rem;
  margin: -6px 0 22px !important;
}

/* פס הסמכות מתחת ל-hero */
.cred-strip {
  background: var(--navy-800); border-top: 1px solid rgba(122,219,228,.18);
  padding: 16px 0;
}
.cred-inner {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 10px 0;
}
.cred-inner span {
  color: #b9d2e2; font-size: .92rem; letter-spacing: .02em;
  padding: 0 22px; border-left: 1px solid rgba(122,219,228,.25);
}
.cred-inner span:last-child { border-left: none; }
.cred-inner b { color: var(--teal-300); font-weight: 700; }

/* חתימה */
.signature {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.7rem; color: var(--accent-deep); margin-top: 6px;
}

/* ===== כרטיסי הבמאי / הבלש ===== */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 26px 0; }
.duo-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--teal-400);
  transition: transform .25s ease, box-shadow .25s ease;
}
.duo-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,42,68,.16); }
.duo-card .duo-tag {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--accent-deep); font-size: 1rem;
}
.duo-card .duo-tag .ic { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.duo-card .duo-quote {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 800; color: var(--navy-800);
  margin: 10px 0 8px; line-height: 1.4;
}
.duo-card p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

/* כפתור צף - מובייל בלבד, דף הליווי בלבד */
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta {
    display: block; position: fixed; bottom: 16px; right: 16px; left: 16px; z-index: 60;
    text-align: center; padding: 15px; border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
    color: var(--navy-900); font-weight: 800; font-size: 1.05rem; text-decoration: none;
    box-shadow: 0 12px 30px rgba(14, 42, 68, .35);
    transform: translateY(110px); opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
  }
  .sticky-cta.show { transform: none; opacity: 1; }
}

/* ===== חיים ואינטראקציה ===== */

/* תאורה חיה ב-hero (כמו בדף הנחיתה) */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,201,214,.22), transparent 68%);
  top: -180px; left: -140px; pointer-events: none;
  animation: floaty 9s ease-in-out infinite alternate;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,219,228,.14), transparent 70%);
  bottom: -160px; right: -100px; pointer-events: none;
  animation: floaty 11s ease-in-out infinite alternate-reverse;
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
@keyframes floaty {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(46px) scale(1.06); }
}

/* כניסה מדורגת ב-hero בטעינת הדף */
.hero-badge, .hero h1, .hero-sub, .hero-ctas, .hero .photo-frame,
.page-hero .hero-badge, .page-hero h1, .page-hero .sub {
  opacity: 0; transform: translateY(22px);
  animation: riseIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
.hero h1, .page-hero h1 { animation-delay: .12s; }
.hero-sub, .page-hero .sub { animation-delay: .24s; }
.hero-ctas { animation-delay: .36s; }
.hero .photo-frame { animation-delay: .2s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* חשיפה בגלילה (מופעל ע"י script.js) */
.js .rvl { opacity: 0; transform: translateY(26px); }
.js .rvl.in {
  opacity: 1; transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rvl-delay, 0s);
}

/* ריחוף על כרטיסים */
.card, .test-card, .pain, .step, .quote {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .test-card:hover, .quote:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 42, 68, 0.16);
}
.pain:hover { transform: translateX(-4px); box-shadow: 0 14px 30px rgba(14,42,68,.14); }
.step:hover { transform: translateY(-4px); border-color: rgba(122,219,228,.6); background: rgba(255,255,255,.09); }

/* תמונות - זום עדין */
.photo-frame { overflow: hidden; }
.photo-frame img, .test-card img { transition: transform .5s ease; }
.photo-frame:hover img { transform: scale(1.03); }

/* קו מונפש בתפריט */
.nav-links a:not(.btn-nav) { position: relative; padding-bottom: 3px; }
.nav-links a:not(.btn-nav)::after {
  content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
  background: var(--teal-300); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active:not(.btn-nav)::after { width: 100%; }

/* חצים בלינקים של כרטיסים */
.card a.more { transition: padding-left .2s ease; }
.card:hover a.more { padding-left: 6px; }

/* FAQ - ריחוף עדין */
.faq details { transition: box-shadow .25s ease, transform .25s ease; }
.faq details:hover { box-shadow: 0 14px 32px rgba(14,42,68,.14); }
.faq details[open] { border-right: 4px solid var(--teal-400); }

/* כפתור ראשי - פעימה עדינה של הצל */
.btn-primary { position: relative; }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(78, 201, 214, .5); }

/* כיבוד העדפת צמצום תנועה */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { animation: none; }
  .hero-badge, .hero h1, .hero-sub, .hero-ctas, .hero .photo-frame,
  .page-hero .hero-badge, .page-hero h1, .page-hero .sub { animation: none; opacity: 1; transform: none; }
  .js .rvl { opacity: 1; transform: none; }
}

/* ===== רספונסיב ===== */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero h1 { font-size: 2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .photo-placeholder { max-width: 320px; margin: 0 auto; order: -1; }
  .cards, .steps, .quotes, .pains, .test-grid, .duo { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .nav-links { font-size: .9rem; gap: 12px; }
  .page-hero h1 { font-size: 1.7rem; }
}
