/* פלטת המותג. כל צירוף טקסט/רקע עומד בניגודיות WCAG AA */
:root {
  --paper: #f7f3ea;       /* קרם: רקע כללי */
  --paper-warm: #ede6d6;  /* בז': רקע לפרקים אישיים */
  --ink: #2b2b2b;         /* פחם: טקסט ראשי */
  --ink-soft: #57534b;    /* פחם רך: טקסט משני */
  --forest: #1f4d3a;      /* מקצועי: כותרות וכפתור ראשי */
  --forest-hover: #17392b;
  --olive: #3d4a2a;       /* מקצועי: כותרות משנה */
  --green-gray: #5f6f63;  /* אישי: טקסט בפרקים אישיים */
  --sage: #9caf94;        /* אישי: קישוט בלבד, לא לטקסט */
  --gold: #b08a3e;        /* הדגשה: קווים ואייקונים בלבד, לא לטקסט */
  --gold-deep: #8a6a2a;   /* הדגשה: מילות מפתח בטקסט */
}

/* גופן Assistant, שמור בתוך האתר (רישיון OFL, ראו fonts/OFL.txt). קובץ אחד לכל המשקלים */
@font-face {
  font-family: "Assistant";
  src: url("/fonts/assistant-hebrew-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant";
  src: url("/fonts/assistant-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Assistant", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

/* Mobile-first: טקסט ואחריו התמונה, בעמודה אחת */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  gap: 48px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
}

/* כל משפט בכותרת בשורה משלו, ובתוכו השורות מאוזנות כדי שמילה לא תישאר לבד */
.hero h1 span {
  display: block;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 36px;
  max-width: 38ch;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--ink-soft);
}

/* כפתור ראשי: forest עם טקסט קרם */
.cta {
  display: inline-block;
  padding: 14px 32px;
  line-height: 1.4;
  background: var(--forest);
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s;
}

.cta:hover {
  background: var(--forest-hover);
}

.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* כשהכפתור נשבר לשתי שורות: ממורכז ומאוזן, ו"ב-WhatsApp" נשאר יחד */
.cta {
  text-align: center;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* משפט הרגעה קצר מתחת לכפתור */
.cta-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* תמונת התדמית: הרקע הירוק שלה משתלב עם forest, ולכן בלי מסגרת */
.hero-media {
  display: block;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  height: auto;
  justify-self: center;
  object-fit: cover;
  border-radius: 16px;
}

/* מחשב: הטקסט מימין והתמונה משמאל */
@media (min-width: 900px) {
  .hero {
    /* קצת פחות ממסך מלא, כדי שתחילת הפרק הבא תבצבץ ותזמין לגלול */
    min-height: 86vh;
    padding: 96px 40px;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 80px;
  }

  .hero-media {
    justify-self: stretch;
  }
}

/* פרקי הדף מתחת ל-Hero: הרקע ברוחב מלא, התוכן ב-.wrap */
.section {
  padding: 56px 20px;
  border-top: 1px solid var(--sage);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* "מכירים את זה?": ממשיך את ה-Hero בלי קו מפריד, הפריטים הם המוקד */
.recognize {
  border-top: none;
  padding-top: 8px;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.recognize-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.recognize-list li {
  position: relative;
  max-width: 34ch;
  padding-inline-start: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* אייקון: טבעת זהב דקה עם נקודה במרכז. קישוט בלבד */
.recognize-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px);
}

@media (min-width: 900px) {
  .recognize-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    row-gap: 32px;
  }
}

/* פרק אישי: בז' */
.section-personal {
  background: var(--paper-warm);
  border-top: none;
}

.section p {
  max-width: 65ch;
  margin: 0 0 16px;
}

/* שורת מחיר בתחתית כרטיס שירות: תווית forest, מחיר בפחם.
   משקל 700 קבוע: <strong> בתוך טקסט 600 קפץ ל-900, ובמשקל הזה הגופן עובר לגופן אחר בעברית */
.service .price {
  margin-top: 4px;
}

.service .price strong {
  font-weight: 700;
  color: var(--forest);
}

/* "איך זה עובד" כציר זמן: מספר בעיגול זהב לכל שלב, וקו זהב שמחבר ביניהם.
   בטלפון הקו אנכי בצד, במחשב הוא אופקי והשלבים לרוחב */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 32px;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-inline-start: 64px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-deep);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 44px;
  bottom: -32px;
  width: 2px;
  background: var(--gold);
}

.steps h3 {
  margin-top: 8px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    padding-inline-start: 0;
    padding-top: 64px;
  }

  .steps li:not(:last-child)::after {
    top: 21px;
    bottom: auto;
    inset-inline-start: 44px;
    inset-inline-end: -32px;
    width: auto;
    height: 2px;
  }

  .steps h3 {
    margin-top: 0;
  }
}

/* שאלות נפוצות: אקורדיון */
.faq {
  max-width: 75ch;
  border-top: 1px solid var(--sage);
}

.faq details {
  border-bottom: 1px solid var(--sage);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* סימן + שהופך ל-× כשהתשובה פתוחה. הזהב כאן הוא אייקון, לא טקסט */
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-deep);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.faq summary h3 {
  margin: 0;
  font-size: 1.15rem;
}

.faq details p {
  margin: 0 0 20px;
}

/* משפט הסיכום בפרק "עליי" */
.prose .closing {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--sage);
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--forest);
  font-weight: 700;
}

.contact-list a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.site-footer {
  padding: 32px 20px;
  border-top: 1px solid var(--sage);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--forest);
}

.section h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive);
}


@media (min-width: 900px) {
  .section {
    padding: 80px 40px;
  }

  .site-footer {
    padding: 32px 40px;
  }
}

/* דף 404 */
.not-found {
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--forest);
}

.not-found p {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .faq summary::after {
    transition: none;
  }
}

/* במחשב: "מכירים את זה?" צמוד ל-Hero, כך שהכותרת שלו מבצבצת במסך הראשון */
@media (min-width: 900px) {
  .recognize {
    padding-top: 0;
  }
}

/* "מכירים את זה?": הפריטים, ולצדם הסרטון במחשב. בטלפון הסרטון אחרי הפריטים */
.recognize-body {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.recognize-body .recognize-list {
  margin-top: 0;
}

.recognize-video {
  margin: 0;
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.recognize-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: var(--forest);
}

@media (min-width: 900px) {
  .recognize-body {
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 64px;
  }

  /* לצד הסרטון יש מקום לשתי עמודות פריטים, לא שלוש */
  .recognize-body .recognize-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* פס כהה ברוחב מלא עם משפט מפתח: טקסט קרם על forest, קו זהב קצר מעליו */
.band {
  padding: 64px 20px;
  background: var(--forest);
  text-align: center;
}

.band p {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  text-wrap: balance;
}

.band p::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto 24px;
  background: var(--gold);
}

@media (min-width: 900px) {
  .band {
    padding: 88px 40px;
  }
}

/* שירותים ככרטיסים: הליווי בולט ברוחב מלא, ושלושת השיעורים מתחתיו.
   כרטיס = מסגרת sage דקה בלבד, בלי רקע כבד. המחיר תמיד בתחתית הכרטיס */
.service,
.service + .service {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--sage);
  border-radius: 16px;
}

.service .price {
  margin-top: auto;
  padding-top: 12px;
}

.service-featured {
  border: 2px solid var(--forest);
  border-top: 6px solid var(--gold);
  margin-bottom: 24px;
}

.service-featured h3 {
  font-size: 1.45rem;
  color: var(--forest);
}

.service-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .service-featured {
    padding: 32px 40px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* כפתור WhatsApp צף, בטלפון בלבד. מוסתר לגמרי (גם ממקלדת) עד שהסקריפט מציג אותו */
.cta-float {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.cta-float.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* מקום בתחתית הפוטר, כדי שהכפתור הצף לא יסתיר אותו */
.site-footer {
  padding-bottom: 96px;
}

@media (min-width: 900px) {
  .cta-float {
    display: none;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-float {
    transition: none;
  }
}

/* קישורים משפטיים בפוטר */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--forest);
  font-weight: 700;
}

.site-footer p + p {
  margin-top: 4px;
}

/* עמודים משפטיים: פרטיות, נגישות, תנאי שימוש */
.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--forest);
}

.legal-date {
  color: var(--ink-soft);
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.legal ul {
  max-width: 65ch;
  padding-inline-start: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal .legal-details {
  padding: 0;
  list-style: none;
}

.legal p a:not(.cta),
.legal-details a {
  color: var(--forest);
  font-weight: 700;
}

.legal-back {
  margin-top: 48px;
}

/* תיאור טקסטואלי של הסרטון: נפתח בלחיצה, באותו סגנון כמו השאלות הנפוצות */
.video-text {
  margin-top: 16px;
  border-top: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
}

.video-text summary {
  padding: 12px 0;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
}

.video-text summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.video-text p,
.video-text li {
  font-size: 0.95rem;
}

/* שורה קטנה מעל הכותרת: השם והתחום, כל עוד אין לוגו */
.eyebrow {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
}

/* "קרא עוד" בכרטיס הליווי. כשפתוח, הטקסט מתחלף ל"הצג פחות" */
.read-more summary {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}

.read-more summary::-webkit-details-marker {
  display: none;
}

.read-more summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.read-more .read-more-close,
.read-more[open] .read-more-open {
  display: none;
}

.read-more[open] .read-more-close {
  display: inline;
}

