/* =========================================================
   קובץ העיצוב של האתר
   ---------------------------------------------------------
   כדי לשנות צבעים, גופנים או מרווחים – שני את הערכים בחלק
   "הגדרות כלליות" שמתחיל כאן למטה. השינוי יחול על כל העמודים.

   שפה עיצובית: חיבור גוף-נפש, זרימה, חמלה וקרקוע.
   - שמנת רגועה כרקע, ומרחבים נדיבים – האתר "לוקח נשימה עמוקה".
   - שזיף/מג'נטה עמוק להדגשות ולכפתורים, זהב חם לאייקונים ולקישוטים.
   - כותרות בגופן Rubik (מעוגל, רך וזורם),
     טקסט בגופן Assistant (נקי וקריא).
   - צללים רכים ואורגניים במקום מסגרות, קשתות וטבעות שמהדהדות את הלוגו.
   - אין שחור או לבן טהורים באתר.
   ========================================================= */

/* ---------- הגדרות כלליות (צבעים, גופנים, מרווחים) ---------- */
:root {
  /* רקעים */
  --color-bg: #faf9f6;          /* רקע כללי – שמנת רגועה */
  --color-surface: #fffefb;     /* רקע כרטיסיות – שמנת בהירה (לא לבן טהור) */
  --color-soft: #f4edef;        /* רקע רך לאזורים מודגשים – שזיף בהיר מאוד */
  --color-sand: #f3eee6;        /* רקע חול חמים – כותרת תחתונה */

  /* טקסט */
  --color-text: #2c2c2c;        /* טקסט ראשי – פחם עמוק */
  --color-muted: #5a5a5a;       /* טקסט משני */

  /* שזיף/מג'נטה – הדגשות, כותרות, קישורים וכפתורים */
  --color-accent: #7a3b52;      /* שזיף עמוק */
  --color-accent-dark: #5e2c3f; /* שזיף כהה – מעבר עכבר */
  --color-accent-soft: #c49aab; /* שזיף רך – לקישוטים בלבד (לא לטקסט) */

  /* זהב – הדגשות משניות, אייקונים וקישוטים (לא לטקסט רגיל – ניגודיות נמוכה) */
  --color-gold: #c5a059;
  --color-gold-tint: rgba(197, 160, 89, 0.14);

  --color-on-accent: #fffefb;   /* טקסט על רקע שזיף */
  --color-input-border: #8c8782;/* מסגרת שדות טופס – ניגודיות מספקת לנגישות */
  --color-error: #a3322b;       /* הודעות שגיאה בטופס */

  /* גופנים */
  --font-main: "Assistant", "Segoe UI", Arial, sans-serif;
  --font-heading: "Rubik", "Assistant", "Segoe UI", Arial, sans-serif;

  /* מרווחים – "נשימה עמוקה" */
  --space-section: clamp(5rem, 10vw, 8rem);
  --space-gap: clamp(2.5rem, 6vw, 6rem);

  /* צורות וצללים */
  --radius: 12px;
  --radius-arch: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); /* קשת */
  --shadow: 0 10px 40px rgba(60, 35, 45, 0.05), 0 2px 6px rgba(60, 35, 45, 0.03);
  --shadow-hover: 0 22px 54px rgba(60, 35, 45, 0.09), 0 4px 12px rgba(60, 35, 45, 0.04);
  --ease-flow: cubic-bezier(0.22, 0.8, 0.3, 1); /* תנועה רכה וזורמת */
  --container: 1160px;
}

/* ---------- איפוס בסיסי ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* הגופן חל גם על רכיבי טופס וכפתורים */
button,
input,
textarea,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ---------- טיפוגרפיה ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 0.65em;
  font-weight: 500;
}

h1,
h2 {
  color: var(--color-accent);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; color: var(--color-text); }

p {
  margin: 0 0 1.1em;
  line-height: 1.75; /* פסקאות מעט מרווחות יותר לקריאה נינוחה */
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.22em;
  transition: color 0.3s var(--ease-flow);
}

a:hover {
  color: var(--color-accent-dark);
}

/* מסגרת פוקוס ברורה לניווט במקלדת */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* טקסט שמוקרא רק לתוכנות הקראה ולא מוצג על המסך */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- קישור "דילוג לתוכן" (נגישות) ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 10px 18px;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--color-on-accent);
}

/* ---------- כותרת עליונה ותפריט ---------- */
.site-header {
  background: rgba(250, 249, 246, 0.9);
  box-shadow: 0 1px 0 rgba(122, 59, 82, 0.07);
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

/* סמל הלוגו – המעגלים הזורמים (תמונה שקופה, ללא עיגול פינות) */
.logo-mark {
  width: auto;
  height: 52px;
  flex-shrink: 0;
  border-radius: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
}

.logo-tagline {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-flow), color 0.3s var(--ease-flow);
}

.site-nav a:hover {
  background: var(--color-soft);
  color: var(--color-text);
}

/* העמוד הנוכחי מסומן בתפריט */
.site-nav a[aria-current="page"] {
  background: var(--color-soft);
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* ---------- אייקוני יצירת קשר ורשתות חברתיות (כותרת עליונה, תחתונה ועמוד יצירת קשר) ---------- */
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(60, 35, 45, 0.06);
  transition: background-color 0.3s var(--ease-flow), color 0.3s var(--ease-flow), transform 0.3s var(--ease-flow);
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
  transform: translateY(-2px);
}

.social-links svg {
  width: 19px;
  height: 19px;
}

/* פייסבוק ואינסטגרם מוסתרים בכותרת העליונה במסכים צרים (הם מופיעים בכותרת התחתונה) */
@media (max-width: 1024px) {
  .header-contact .hide-md {
    display: none;
  }
}

/* בטלפון צר במיוחד נשאר בכותרת רק אייקון הטלפון */
@media (max-width: 420px) {
  .header-contact .hide-xs {
    display: none;
  }
}

/* כפתור התפריט מוצג רק בנייד */
.menu-toggle {
  display: none;
  background: var(--color-surface);
  border: 0;
  box-shadow: 0 2px 10px rgba(60, 35, 45, 0.08);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease-flow);
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
}

.menu-icon::before { top: -7px; }
.menu-icon::after  { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid var(--color-accent);
  cursor: pointer;
  transition: background-color 0.4s var(--ease-flow), border-color 0.4s var(--ease-flow),
    color 0.4s var(--ease-flow), transform 0.4s var(--ease-flow), box-shadow 0.4s var(--ease-flow);
}

/* כפתור ראשי – שזיף עמוק */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 8px 24px rgba(122, 59, 82, 0.22);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-on-accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(122, 59, 82, 0.28);
}

/* כפתור משני – מסגרת שזיף עדינה */
.btn-secondary {
  background: transparent;
  color: var(--color-accent-dark);
}

.btn-secondary:hover {
  background: var(--color-soft);
  color: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.25rem;
}

/* ---------- אזורים (סקשנים) ---------- */
.section {
  padding-block: var(--space-section);
}

/* אזור רך עם קצוות גליים – תחושת זרימה בין האזורים */
.section-soft {
  position: relative;
  background: var(--color-soft);
}

.section-soft::before,
.section-soft::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 40px;
  background: var(--color-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V18C150 4 300 0 450 8s300 22 450 18 300-18 300-18v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V18C150 4 300 0 450 8s300 22 450 18 300-18 300-18v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

.section-soft::before {
  bottom: 100%;
}

.section-soft::after {
  top: 100%;
  transform: scaleY(-1);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header p,
.lead {
  color: var(--color-muted);
  font-size: 1.22rem;
  line-height: 1.8;
}

/* כותרת-על קטנה עם קו זהב רך */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-accent);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
}

/* ---------- אזור פתיחה בעמוד הבית – עריכתי, עם הרבה מרחב ---------- */
.hero {
  position: relative;
  overflow: hidden; /* הטבעות הדקורטיביות לא יגרמו לגלילה לרוחב */
  padding-block: clamp(3.5rem, 8vw, 7rem) var(--space-section);
  background:
    radial-gradient(ellipse 55% 65% at 18% 30%, rgba(122, 59, 82, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 55% at 95% 95%, rgba(197, 160, 89, 0.12), transparent 70%);
}

/* טקסט מימין, תמונה בצורת קשת משמאל (בעברית העמודה הראשונה היא הימנית) */
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-gap);
  align-items: center;
}

.hero-text {
  max-width: 36rem;
}

.hero-text h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  line-height: 1.15;
  margin-bottom: 0.5em;
}

/* "באמת." בשורה נפרדת, עם קו הדגשה זהוב רך */
.hero-text h1 .highlight {
  display: inline-block;
  background: linear-gradient(transparent 64%, rgba(197, 160, 89, 0.38) 64%, rgba(197, 160, 89, 0.38) 90%, transparent 90%);
  padding-inline: 0.08em;
}

.hero-text .lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  max-width: 32rem;
}

.hero-media {
  position: relative;
  isolation: isolate;
  margin: 0;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}

/* מסגרת רכה ואורגנית לכל התמונות – מלבן מעוגל שקצוותיו נמסים לתוך רקע השמנת */
.soft-framed-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}

.hero-media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 60%;
}

/* שתי טבעות דקות ושזורות מאחורי התמונה – הד למעגלים שבלוגו */
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-media::before {
  width: 78%;
  aspect-ratio: 1;
  top: -7%;
  inset-inline-end: -16%;
  border: 1.5px solid var(--color-gold);
  opacity: 0.8;
}

.hero-media::after {
  width: 52%;
  aspect-ratio: 1;
  bottom: 4%;
  inset-inline-start: -14%;
  border: 1.5px solid var(--color-accent-soft);
}

/* כרטיס קטן שמרחף על פינת התמונה */
.hero-badge {
  position: absolute;
  bottom: 9%;
  inset-inline-start: -2.75rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-accent);
  white-space: nowrap;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ---------- תמונה וטקסט זה לצד זה ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-gap);
  align-items: center;
}

/* גודל אחיד לתמונות – זהה לתמונות עמוד הבית (עד 460px, יחס 4:5; בנייד עד 340px) */
.standard-img-size {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* תמונה בעמודה של פריסת טקסט+תמונה */
.split-media {
  justify-self: center;
}

/* מיקוד החיתוך כשהנושא המרכזי בתמונה אינו במרכזה */
.soft-framed-img.focus-start {
  object-position: 38% center;
}

.soft-framed-img.focus-end {
  object-position: 60% center;
}

/* כותרת פתיחה עם תמונה לצידה – ב-RTL הטקסט מימין והתמונה משמאל */
.page-hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-gap);
}

.page-hero-split > div {
  flex: 1 1 0;
  min-width: 0;
}

.page-hero-img {
  flex: 0 1 460px;
}

.page-hero-img.portrait {
  object-position: center 20%;
}

/* תמונות מוקטנות ב-40% (עמודי אודות ויצירת קשר) – 460px ← 276px, באותו יחס ובאותה מסגרת רכה */
.img-compact {
  max-width: 276px;
}

.page-hero-img.img-compact {
  flex: 0 1 276px;
}

/* פריסה הפוכה: התמונה מימין והטקסט משמאל (ב-RTL הפריט הראשון מימין) */
.page-hero-split.media-right > img,
.split.media-right > img {
  order: -1;
}

.split.media-right {
  grid-template-columns: 0.9fr 1.1fr;
}

/* תקציר "על קצה המזלג" בתוך כותרת הפתיחה בעמוד האודות */
.page-hero .bio-summary {
  margin: 2rem 0 0;
  max-width: none;
}

/* פרטי התקשרות מהירים בראש עמוד יצירת הקשר */
.contact-quick {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 1.1rem;
}

.contact-quick li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-quick .contact-icon {
  width: 40px;
  height: 40px;
}

.contact-quick a {
  font-weight: 600;
  text-decoration: none;
}

.contact-quick a:hover {
  text-decoration: underline;
}

/* כותרת פתיחה לעמודים הפנימיים */
.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(0.5rem, 2vw, 1.5rem);
  background: radial-gradient(ellipse 55% 80% at 90% 0%, rgba(122, 59, 82, 0.07), transparent 70%);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 680px;
}

/* ---------- כרטיסיות – צפות, רכות, ללא מסגרות ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-flow), box-shadow 0.5s var(--ease-flow);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* כרטיסייה לחיצה – הקישור בכותרת נמתח על כל הכרטיסייה */
.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 1;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.card-meta li {
  padding-block: 6px;
  border-top: 1px solid rgba(122, 59, 82, 0.08);
}

.card-meta strong {
  color: var(--color-text);
}

/* ---------- עמוד השירותים – 6 כרטיסיות עם אייקון ---------- */
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* אייקון בצורת אבן חלוקה – הד לאבנים המאוזנות שבתמונה הראשית */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 46% 54% 52% 48% / 56% 46% 54% 44%;
  background: var(--color-gold-tint);
  color: var(--color-gold);
  font-size: 1.45rem;
  transition: background-color 0.5s var(--ease-flow), color 0.5s var(--ease-flow), border-radius 0.8s var(--ease-flow);
}

.services-grid .card:hover .service-icon {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 54% 46% 48% 52% / 46% 56% 44% 54%;
}

.services-grid .card h3 {
  color: var(--color-accent);
  font-size: 1.45rem;
}

.services-grid .card p {
  font-size: 1.05rem;
  line-height: 1.85;
}

@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- רקע מקצועי בעמוד האודות – תקציר בעמודת קריאה אחת ---------- */
.bio-summary {
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.6rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.bio-summary h2 {
  color: var(--color-accent);
  font-size: clamp(1.5rem, 2.6vw, 1.8rem);
}

/* קו זהב דק מתחת לכותרת */
.bio-summary h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 0.8rem;
  border-radius: 2px;
  background: var(--color-gold);
}

.bio-summary p {
  font-size: 1.1rem;
  line-height: 1.9;
}

.bio-summary p:last-child {
  margin-bottom: 0;
}

/* ---------- טקסט הזמנה בעמוד הבית – עמודת קריאה נוחה עם קו זהב ---------- */
.intro {
  max-width: 780px;
  margin-inline: auto;
  border-inline-start: 2px solid var(--color-gold);
  padding-inline-start: clamp(1.5rem, 4vw, 2.5rem);
}

.intro p {
  font-size: 1.2rem;
  line-height: 1.95;
  margin-bottom: 1.4em;
}

.intro p:first-child {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.5rem);
  line-height: 1.85;
  color: var(--color-text);
}

/* ---------- רשימה עם סימונים (עלים קטנים) ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 0 70% 0 70%;
  background: var(--color-gold);
}

/* ---------- רצועת הנעה לפעולה ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(122, 59, 82, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 70% at 0% 0%, rgba(197, 160, 89, 0.13), transparent 70%),
    var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(3.5rem, 7vw, 5.5rem) 24px;
  box-shadow: var(--shadow);
}

.cta p {
  color: var(--color-muted);
  max-width: 560px;
  margin-inline: auto;
}

.cta .btn-group {
  justify-content: center;
}

/* ---------- קישור ליצירת קשר מעל הכותרת התחתונה (בכל העמודים) ---------- */
.contact-strip {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  border-top: 1px solid var(--color-gold-tint);
}

.contact-strip p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-strip a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.contact-strip a:hover {
  color: var(--color-accent-dark);
}

/* ---------- תמונות פתיחה בעמודים הפנימיים ---------- */
/* עמוד השירותים – תמונה רחבה מעל הכותרת */
.page-banner {
  max-width: 960px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  aspect-ratio: 16 / 7;
  object-position: center 62%;
}

/* עמוד הסדנאות – תמונה ממורכזת מתחת לטקסט */
.workshops-img {
  max-width: 720px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  aspect-ratio: 4 / 3;
}

/* ---------- עמוד הבית: "למי הטיפול יכול להתאים?" – באנר רך וממורכז ---------- */
.target-audience {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.target-audience-inner {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, var(--color-gold-tint), transparent 70%),
    var(--color-soft);
  border-radius: 28px;
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.target-audience h2 {
  color: var(--color-accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 0;
}

/* קו זהב קטן מתחת לכותרת */
.target-audience h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 0.9rem auto 0;
  border-radius: 2px;
  background: var(--color-gold);
}

.target-audience p {
  font-size: clamp(1.1rem, 1.6vw, 1.22rem);
  line-height: 1.95;
  margin: 0;
}

/* ---------- עמוד סדנאות והרצאות ---------- */
.workshops-content {
  max-width: 800px;
  margin-inline: auto;
}

.workshop-block + .workshop-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--color-gold-tint);
}

.workshop-block h2 {
  color: var(--color-accent);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.workshop-block h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 0.8rem;
  border-radius: 2px;
  background: var(--color-gold);
}

.workshop-block p {
  font-size: 1.15rem;
  line-height: 1.95;
  margin-bottom: 0;
}

/* ---------- תקציר השירותים בעמוד הבית ---------- */
.services-grid .card p a {
  text-decoration: none;
  font-weight: 700;
}

/* ---------- עמוד יצירת קשר וטופס ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

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

.contact-details li {
  padding-block: 14px;
  border-bottom: 1px solid rgba(122, 59, 82, 0.08);
}

.contact-details strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* פרטי התקשרות עם אייקון עגול לצד כל פרט */
.contact-details.with-icons li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold-tint);
  color: var(--color-accent);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details a {
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-social-title {
  margin: 2rem 0 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form-privacy {
  margin-top: 14px;
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.required {
  color: var(--color-error);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease-flow), background-color 0.3s var(--ease-flow), box-shadow 0.3s var(--ease-flow);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: 0 6px 20px rgba(122, 59, 82, 0.08);
}

/* מספר טלפון ואימייל נכתבים משמאל לימין */
.form-field input[type="tel"],
.form-field input[type="email"] {
  direction: ltr;
  text-align: right;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.95rem;
  margin: 6px 0 0;
}

.form-note {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* תיבת סימון לאישור דיוור */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.6rem;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0.2em 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-consent label {
  font-size: 1rem;
  cursor: pointer;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--color-soft);
}

.form-status:empty {
  display: none;
}

/* ---------- עמודי טקסט (הצהרת נגישות, תקנון) ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}

/* עמוד תקנון – עמודה ממורכזת ברוחב 800px */
.legal {
  max-width: 800px;
}

.legal-page .page-hero h1 {
  max-width: none;
}

.legal h2 {
  padding-top: 1.4em;
  border-top: 1px solid var(--color-gold-tint);
}

.legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- כותרת תחתונה ---------- */
.site-footer {
  background: var(--color-sand);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 1rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.site-footer p {
  margin: 0;
}

/* ---------- התאמה לטאבלט ולנייד ---------- */
@media (max-width: 860px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro p,
  .intro p:first-child {
    font-size: 1.125rem;
  }

  /* בנייד: הטקסט למעלה והקשת מתחתיו, במרכז */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-text {
    max-width: none;
  }

  .hero-media {
    max-width: 340px;
    margin-top: 1rem;
  }

  /* כותרת עם תמונה: בנייד התמונה יורדת מתחת לטקסט */
  .page-hero-split {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero-img {
    flex: none;
    align-self: center;
  }

  .standard-img-size {
    max-width: 340px;
  }

  /* 40% פחות גם בנייד: 340px ← 204px */
  .standard-img-size.img-compact {
    max-width: 204px;
  }

  /* בנייד: הטקסט קודם, והתמונה מתחתיו */
  .page-hero-split.media-right > img,
  .split.media-right > img {
    order: 0;
  }

  .split.media-right {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    inset-inline-start: 50%;
    bottom: -1.25rem;
    transform: translateX(50%); /* מרכוז בכיוון ימין-לשמאל */
    font-size: 1.05rem;
  }

  /* תפריט נייד – מופעל רק כש-JavaScript זמין; בלעדיו התפריט פשוט מוצג */
  .has-js .menu-toggle {
    display: inline-flex;
  }

  .has-js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--color-bg);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .has-js .site-nav.is-open {
    display: block;
  }

  .has-js .site-nav ul {
    flex-direction: column;
  }

  .has-js .site-nav a {
    padding: 12px 16px;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    min-height: 76px;
  }

  /* בנייד: לוגו מימין, ובצד שמאל האייקונים ולידם כפתור התפריט */
  .header-contact {
    order: 2;
    margin-inline-start: auto;
  }

  .has-js .menu-toggle {
    order: 3;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.0625rem;
  }

  .container {
    padding-inline: 20px;
  }

  .logo-mark {
    height: 42px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- כיבוד העדפה להפחתת תנועה ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .card:hover,
  .btn:hover,
  .social-links a:hover {
    transform: none;
  }
}

/* =========================================================
   תפריט נגישות (נבנה ב-js/main.js ומופיע בכל העמודים)
   גדלי הרכיב ב-px כדי שהגדלת הטקסט לא תדחוף אותו מחוץ למסך
   ========================================================= */

/* פוקוס בולט גם על רקעים כהים – טבעת בהירה סביב המסגרת */
:focus-visible {
  box-shadow: 0 0 0 5px var(--color-surface);
}

.a11y-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  direction: rtl;
}

.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-on-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
}

.a11y-toggle:hover {
  background: var(--color-accent-dark);
}

.a11y-toggle svg {
  width: 30px;
  height: 30px;
}

.a11y-panel {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 290px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 18px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-family: inherit;
  font-size: 19px;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.a11y-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.a11y-size span {
  flex: 1;
}

.a11y-panel button {
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.a11y-panel button:hover {
  border-color: var(--color-accent);
}

.a11y-size button {
  min-width: 44px;
  font-weight: 700;
}

.a11y-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.a11y-options button {
  width: 100%;
  text-align: right;
}

.a11y-options button[aria-pressed="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.a11y-options button[aria-pressed="true"]::before {
  content: "✓ ";
}

.a11y-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 15px;
}

.a11y-footer a {
  color: var(--color-accent);
}

/* ---------- מצבי התצוגה ---------- */

/* ניגודיות גבוהה – רקע שחור, טקסט לבן וקישורים צהובים */
html.a11y-contrast {
  --color-bg: #000;
  --color-surface: #000;
  --color-soft: #000;
  --color-sand: #000;
  --color-text: #fff;
  --color-muted: #fff;
  --color-accent: #ffeb3b;
  --color-accent-dark: #fff176;
  --color-accent-soft: #ffeb3b;
  --color-gold: #ffeb3b;
  --color-gold-tint: rgba(255, 235, 59, 0.2);
  --color-on-accent: #000;
  --color-input-border: #fff;
  --color-error: #ff8a80;
}

html.a11y-contrast body,
html.a11y-contrast .page-hero,
html.a11y-contrast .site-header,
html.a11y-contrast .section {
  background: #000 !important;
}

html.a11y-contrast .card,
html.a11y-contrast .bio-summary {
  border: 1px solid #fff;
}

/* ניגודיות הפוכה ומונוכרום – מוחלים על תוכן העמוד בלבד, לא על תפריט הנגישות */
html.a11y-invert body > *:not(.a11y-widget) {
  filter: invert(1) hue-rotate(180deg);
}

html.a11y-invert body > *:not(.a11y-widget) img {
  filter: invert(1) hue-rotate(180deg); /* התמונות נשארות בצבעים המקוריים */
}

html.a11y-invert body {
  background: #000;
}

html.a11y-mono body > *:not(.a11y-widget) {
  filter: grayscale(1);
}

html.a11y-invert.a11y-mono body > *:not(.a11y-widget) {
  filter: invert(1) hue-rotate(180deg) grayscale(1);
}

/* הדגשת קישורים */
html.a11y-links a:not(.a11y-widget a) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  background: #fff59d !important;
  color: #000 !important;
  outline: 2px solid #000;
}

/* גופן קריא */
html.a11y-font body,
html.a11y-font h1,
html.a11y-font h2,
html.a11y-font h3,
html.a11y-font p,
html.a11y-font a,
html.a11y-font li,
html.a11y-font button,
html.a11y-font input,
html.a11y-font textarea,
html.a11y-font label {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.03em !important;
  word-spacing: 0.08em;
}

/* עצירת אנימציות */
html.a11y-no-motion {
  scroll-behavior: auto;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-no-motion .card:hover,
html.a11y-no-motion .btn:hover,
html.a11y-no-motion .social-links a:hover {
  transform: none;
}

@media (max-width: 480px) {
  .a11y-widget {
    bottom: 14px;
    left: 14px;
  }
}

@media print {
  .a11y-widget {
    display: none;
  }
}
