/* ==========================================================================
   בן & אריה — דף נחיתה למגנט לידים
   עיצוב פרימיום, RTL, Mobile-First.
   כל צבעי המותג מרוכזים במשתנים למטה — שינוי שם משנה את כל הדף.
   ========================================================================== */

:root {
  /* --- צבעי מותג (נייבי + זהב מתוך הלוגו) --- */
  --navy:        #0e2240;
  --navy-deep:   #081527;
  --navy-soft:   #33456a;
  --gold:        #c9a227;
  --gold-light:  #e8cf82;
  --gold-deep:   #a6841c;

  /* --- רקע וטקסט --- */
  --cream:       #faf6ec;
  --cream-2:     #f3ecdd;
  --surface:     #ffffff;
  --ink:         #16202e;
  --ink-soft:    #5c6675;
  --line:        #e8e1d0;

  /* --- טיפוגרפיה --- */
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- מידות ואפקטים --- */
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 10px;
  --shadow-card: 0 30px 70px -20px rgba(14, 34, 64, 0.28), 0 8px 24px -12px rgba(14, 34, 64, 0.18);
  --shadow-cover: 0 26px 50px -14px rgba(14, 34, 64, 0.5);
  --shadow-cta: 0 12px 26px -6px rgba(201, 162, 39, 0.6);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* מכבד את מאפיין hidden גם על אלמנטים עם display: grid/flex */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  direction: rtl;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- רקע מלא: קרם עם גרדיאנטים רכים וצורות מופשטות --- */
.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 30px) clamp(16px, 5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 88% -8%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(1000px 640px at 6% 108%, rgba(14, 34, 64, 0.10), transparent 58%),
    var(--cream);
}

/* צורות רקע מופשטות עדינות */
.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.page::before {
  width: 420px; height: 420px;
  top: -140px; inset-inline-start: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.16), transparent 70%);
}
.page::after {
  width: 520px; height: 520px;
  bottom: -220px; inset-inline-end: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 34, 64, 0.10), transparent 70%);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "topbar"
    "message"
    "offer";
  gap: clamp(18px, 3vw, 26px);
  align-items: center;
}

/* --- מותג --- */
.topbar {
  grid-area: topbar;
  display: flex;
  justify-content: center;
}
.topbar__logo {
  height: clamp(58px, 9vw, 70px);
  width: auto;
  display: block;
}

/* --- צד ימין: המסר --- */
.message {
  grid-area: message;
  text-align: center;
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
}

.message__title {
  margin: 0;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  max-width: 15ch;
}
.message__title-accent {
  color: var(--gold-deep);
  font-weight: 800;
}

.message__subtitle {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
}

.benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  justify-items: start;
  width: fit-content;
  margin-inline: auto;
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  color: var(--ink);
}
.benefits__check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(201, 162, 39, 0.6);
}

/* ==========================================================================
   צד שמאל: כרטיס ההצעה (כריכה + טופס)
   ========================================================================== */
.offer-card {
  grid-area: offer;
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* פס זהב עדין בראש הכרטיס */
.offer-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 22px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --- הכריכה עם ערימת עמודים --- */
.cover {
  position: relative;
  align-self: center;
  width: clamp(150px, 44vw, 188px);
  margin: 6px 0 2px;
  filter: drop-shadow(var(--shadow-cover));
}
.cover__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}
/* עמודים עדינים מאחורי הכריכה — תחושת מדריך אמיתי */
.cover__stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cover__stack::before,
.cover__stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fbf9f4;
  border: 1px solid var(--line);
}
.cover__stack::before { transform: rotate(1deg)   translate(-5px, 5px); }
.cover__stack::after  { transform: rotate(4.5deg) translate(-9px, 9px); background: #f2ede1; }

.offer-card:hover .cover__img { transform: rotate(-1.5deg) translateY(-3px); }

/* מצב מוקטן של הכריכה בשלב 2 (חוסך גובה, שומר הקשר).
   שתי מחלקות לספציפיות גבוהה מ-.cover שבתוך media query. */
.cover.cover--compact { width: clamp(92px, 24vw, 116px); margin: 2px 0; }

/* ==========================================================================
   טפסים
   ========================================================================== */
.lead-form {
  display: grid;
  gap: 13px;
}

.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #b3ab9c; }
.field textarea { resize: vertical; min-height: 52px; line-height: 1.5; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
/* אדום רק לאחר שגיאת אימות (submit), לא במצב רגיל */
.lead-form.was-validated input:invalid,
.lead-form.was-validated textarea:invalid {
  border-color: #cf4b39;
  box-shadow: 0 0 0 3px rgba(207, 75, 57, 0.12);
}

/* --- כפתור CTA --- */
.cta {
  display: inline-block;
  width: 100%;
  margin-top: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(16px, 2.1vw, 18px);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  padding: 16px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-cta);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -6px rgba(201, 162, 39, 0.7); }
.cta:active { transform: translateY(0); filter: brightness(0.97); }
.cta:disabled { opacity: 0.7; cursor: default; transform: none; }

.trust {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.trust__lock { font-size: 12px; }

/* ==========================================================================
   שלב 2: שאלון סינון
   ========================================================================== */
.questionnaire { gap: 14px; }

.q-head { display: grid; gap: 4px; }
.q-head__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
}
.q-head__subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.q-block { border: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.q-block__label {
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.q-options { display: grid; gap: 8px; }

.q-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.q-option input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.q-option__box {
  flex: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s ease;
}
.q-option__box::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.q-option__text { font-size: 14px; color: var(--ink); }

.q-option.is-selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.q-option.is-selected .q-option__box { border-color: var(--gold); }
.q-option.is-selected .q-option__box::after { transform: scale(1); }
.q-option input:focus-visible ~ .q-option__box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   מצב סיום (Thank You)
   ========================================================================== */
.thank-you {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 10px 4px;
}
.thank-you__icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-size: 28px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(201, 162, 39, 0.7);
}
.thank-you__title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--navy);
}
.thank-you__text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ==========================================================================
   אנימציות כניסה עדינות
   ========================================================================== */
.topbar, .message, .offer-card { animation: rise 0.6s var(--ease) both; }
.message   { animation-delay: 0.06s; }
.offer-card { animation-delay: 0.14s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .topbar, .message, .offer-card { animation: none; }
  .cover__img { transition: none; }
}

/* ==========================================================================
   דסקטופ — קומפוזיציה דו־טורית מחוברת, הכל במסך אחד
   ========================================================================== */
@media (min-width: 900px) {
  .page { padding-block: 20px; }

  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas:
      "topbar topbar"
      "message offer";
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 20px;
    align-items: center;
  }

  .topbar { justify-content: flex-start; }
  .topbar__logo { height: 64px; }

  .message {
    text-align: right;
    justify-items: start;
    gap: 18px;
  }
  .message__title {
    font-size: clamp(40px, 3.9vw, 54px);
    line-height: 1.1;
    max-width: 13ch;
  }
  .message__subtitle { max-width: 42ch; }

  .benefits { margin-inline: 0; }
  .benefits li { font-size: 17px; }

  .offer-card { max-width: 440px; }
  .cover { width: clamp(160px, 15vw, 190px); }
}

@media (min-width: 1200px) {
  .message__title { font-size: 54px; }
}

/* מסכים נמוכים בדסקטופ — הידוק אנכי כדי להישאר במסך אחד */
@media (min-width: 900px) and (max-height: 760px) {
  .topbar__logo { height: 54px; }
  .hero { row-gap: 12px; }
  .message { gap: 13px; }
  .message__title { font-size: clamp(34px, 3.4vw, 44px); }
  .offer-card { padding: 18px 22px; gap: 12px; }
  .cover { width: 150px; margin: 2px 0 0; }
  .field input { padding: 10px 14px; }
  .cta { padding: 13px 20px; }
}
