/* פלטה מ-DESIGN.md. כל צירוף טקסט/רקע עומד בניגודיות 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;   /* הדגשה: מילות מפתח בטקסט */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  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-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-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 32px;
  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;
}

/* תמונת התדמית: הרקע הירוק שלה משתלב עם 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: 100vh;
    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;
}

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

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

/* שירות: קו זהב דק בצד, הדגשה במינון קטן */
.service {
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold);
}

.service + .service {
  margin-top: 36px;
}

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

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 12px;
}

.steps li::before {
  content: counter(step);
  grid-row: span 3;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gold-deep);
}

.steps h3,
.steps p {
  grid-column: 2;
}

/* שאלות נפוצות: אקורדיון */
.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);
}

.placeholder {
  margin: 0;
  color: var(--ink-soft);
}

@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;
  }
}
