/* ============================================================
   Logi Brand System - CSS Variables
   כל הצבעים, הפונטים והמרווחים של המותג במקום אחד.
   לשנות כאן בלבד - השאר באתר ישתנה אוטומטית.
   ============================================================ */

/* ---- Futurism (מותג Logi) - self-hosted web font ----
   woff2 בלבד (נתמך בכל דפדפן מודרני). קבצי ה-woff של Bold/Light נשארים
   ב-public/fonts כי ComingSoon.astro (דף הבית המוקפא) מפנה אליהם ישירות.
   ExtraLight (200) הוסר - לא היה בשימוש בשום מקום באתר. */
@font-face {
  font-family: 'Futurism';
  src: url('/fonts/Futurism-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Futurism';
  src: url('/fonts/Futurism-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Futurism';
  src: url('/fonts/Futurism-Bold.woff2') format('woff2'),
       url('/fonts/Futurism-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Futurism';
  src: url('/fonts/Futurism-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
/* Alias so the brand SVG logos (font-family:"Futurism-Bold") resolve too */
@font-face {
  font-family: 'Futurism-Bold';
  src: url('/fonts/Futurism-Bold.woff2') format('woff2'),
       url('/fonts/Futurism-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ===== פלטת המותג הרשמית (colors.pdf, 2026-08-23 - הקודים המדויקים) =====
     הצבעים הקודמים כאן נדגמו בעבר ידנית מתוך Canva ויצאו לא מדויקים.
     colors.pdf הוא מקור האמת היחיד - 10 קודים, בלי גיוון נוסף. */
  --dark:      #183324;   /* ירוק כהה ביותר - כותרות, טקסט ראשי, רצועות CTA */
  --green:     #0d4f27;   /* ירוק עשיר - משני לכהה, טקסט קטן על בהיר (AA) */
  --cta-band-bg: var(--dark);  /* רצועות CTA - אותו ירוק כהה, בלי קוד שלישי */
  --mint:      #5baf81;   /* מנטה חי - accent ראשי, סמל, כפתורים */
  --mint-text: var(--dark); /* טקסט קטן על רקע בהיר - ניגודיות מקסימלית */
  --mint-soft: #a7d3ba;   /* מנטה רך - רקעים, בלוקים */
  --mint-pale: #b4efcb;   /* מנטה בהיר ביותר - רקעי הובר/תגיות עדינים */
  --sand:      #e0ddd1;   /* בז'/חול - רקעים חמים */
  --coral:     #ff8383;   /* קורל */
  --pink:      #ffabd1;   /* ורוד */
  --orange:    #ff9f48;   /* כתום */
  --red:       #b23942;   /* אדום */
  --cream:     #e0ddd1;   /* רקע אתר - זהה ל-sand, אין גוון קרוב ללבן ב-10 הקודים */
  --border:    color-mix(in srgb, var(--mint-soft) 35%, white);  /* גבול עדין - דילול של המנטה הרכה */
  --value:     var(--green);   /* טקסט משני ירוק */
  --white:     #ffffff;

  /* Text */
  --text-primary:   var(--dark);
  --text-secondary: var(--value);
  /* הוכהה 10.9.2026. הערך הקודם, #5a7a6e, נתן 3.47:1 על הקרם - נכשל ב-AA
     בכמעט כל מסך באתר, כולל ה-CRM והאזור האישי שיורשים את הטוקן הזה.
     #46604f נותן 5.07:1 על הקרם, 6.89:1 על לבן ו-6.55:1 על רקע כותרת טבלה. */
  --text-muted:     #46604f;

  /* Fonts - כל האתר ב-Futurism, בלי גיבוי צד-שלישי; תו שחסר (כמו ✓) נופל לפונט המערכת */
  --font-body:    'Futurism', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Futurism', sans-serif;

  /* ===== סולם טיפוגרפי אחד לכל האתר =====
     השורש הוא 18px, כלומר 1rem = 18px בכל מקום.
     לפני 10.9.2026 ל-h1 לא היה כלל גודל בכלל: הוא נפל ל-2em של הדפדפן (36px)
     בזמן ש-h2 הגיע ל-43.2px, אז כותרת העמוד הייתה קטנה מכותרות המשנה שלה.
     ארבע השכבות (שיווק, משפט, כניסה, אפליקציה) בוחרות מדרגות מהסולם הזה
     במקום להמציא לעצמן גדלים. אף שכבה לא מגדירה גודל כותרת מחוץ לכאן. */
  --fs-hero:    clamp(2.35rem, 6vw, 3.55rem);   /* 42-64  כותרת הירו בשיווק, ורק שם */
  --fs-title:   clamp(1.85rem, 4vw, 2.35rem);   /* 33-42  כותרת מסמך: משפט, הזמנה, 404 */
  --fs-section: clamp(1.4rem, 2.8vw, 1.75rem);  /* 25-31  כותרת חלק בשיווק */
  --fs-panel:   1.62rem;                        /* 26     כותרת מסך; נקרא רק באפליקציה, ששורשה 16px */
  --fs-sub:     1.2rem;                         /* 22     h3, וכותרת חלק במסמך משפטי */
  --fs-lead:    1.05rem;                        /* 19     h4, כותרת קטע באפליקציה, פסקת פתיחה */
  --fs-small:   0.88rem;                        /* 16 */
  --fs-micro:   0.78rem;                        /* 14     eyebrow, כיתובים */

  /* Layout */
  --max-width: 1140px;
  --measure: 68ch;          /* אורך שורה נוח לקריאה רצופה - עמודי המשפט */
  --section-pad: clamp(60px, 8vw, 100px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --tap: 44px;              /* יעד מגע מינימלי בטלפון */

  /* Transitions + Motion (Phase 2) */
  --transition: all 0.2s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.45s;

  /* Shadows - עומק ירקרק עדין, לא אפור גנרי */
  --shadow-sm: 0 2px 8px rgba(24, 51, 36, 0.05);
  --shadow-md: 0 10px 28px -8px rgba(24, 51, 36, 0.10);
  --shadow-lg: 0 24px 48px -20px rgba(24, 51, 36, 0.16);
}

/* ============================================================
   Reset + Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.75;
  letter-spacing: 0.005em;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--mint); }

/* Form controls do not inherit the page face by default. Nothing visible was wrong -
   the only bare button on the site is the hamburger, which holds no text - but it did
   compute to Arial, and the next text button added anywhere would have rendered in it. */
button, input, select, textarea { font-family: inherit; }

/* Touch targets. Measured at 390px before this: the hamburger was 40x32, the method
   page's diagram nodes 56x36, and the CRM's approve/decline links 57x37. The rule is
   scoped to coarse pointers so a mouse-driven layout keeps its compact spacing. */
/* לפי רוחב וגם לפי מצביע מגע: מסך צר הוא מסך צר, גם אם יש עכבר. */
@media (max-width: 719px), (pointer: coarse) {
  button, .btn, a.btn, summary, [role="button"] { min-height: var(--tap); }
  .mobile-toggle { min-width: var(--tap); min-height: var(--tap); }
  /* Inline links inside running text stay inline - stretching those would break the
     paragraph. Only links that stand alone as an action get the target. */
  nav a, .footer-grid a, .legal-links a, .nf-actions a, .sec-link, .contact-method,
  .footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--dark); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-title); line-height: 1.14; }
h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-sub); }
h4 { font-size: var(--fs-lead); }
/* עמוד שיווקי עם הירו מלא מרים את ה-h1 שלו למדרגה הגדולה. עמוד מסמך
   (משפט, 404) נשאר ב-fs-title, שגדול מ-fs-section ולכן ההיררכיה נכונה בשניהם. */
.page-hero h1, .page-hero2 h1, .hero h1, .method-hero h1 { font-size: var(--fs-hero); line-height: 1.1; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section--alt  { background: var(--white); }
.section--sand { background: color-mix(in srgb, var(--sand) 50%, white); }   /* חול עדין */
.section--mint { background: var(--mint-pale); }   /* מנטה עדין */
.section--dark { background: var(--dark); color: var(--white); }

/* תווית-על אחידה מעל כותרות (eyebrow) - נוכחות מותג עקבית בכל העמודים */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mint-text);
  margin-bottom: 10px;
}

/* הרמת כרטיס אחידה ב-hover (Phase 2) */
.lift { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* reveal עדין לסקשנים - מופעל רק כש-JS זמין (html.js) כדי שבלי JS הכל גלוי */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--dark);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--mint) 85%, black);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 175, 129, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--mint);
  color: var(--mint);
}
/* כפתור כהה - לרקעים בהירים */
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: color-mix(in srgb, var(--dark) 85%, white);
  color: var(--white);
  transform: translateY(-2px);
}
/* כפתורים לרקעים כהים (CTA band) */
.btn-light {
  background: var(--cream);
  color: var(--dark);
}
.btn-light:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(24, 51, 36, 0.08);
  border-color: var(--mint);
}
.card--highlight {
  border-color: var(--mint);
  background: linear-gradient(135deg, rgba(91, 175, 129, 0.07) 0%, var(--white) 100%);
}

/* ============================================================
   Brand mark
   ============================================================ */
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-mark img { height: 32px; width: auto; }

/* ============================================================
   Divider
   ============================================================ */
/* ============================================================
   Accessibility - focus-visible (WCAG 2.2 AA)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}
/* suppress outline on mouse/touch (only show on keyboard) */
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   Motion preferences (WCAG 2.3)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Enhanced hover animations on interactive elements
   ============================================================ */
/* Nav links and icon-bearing links get a subtle scale on hover */
.btn:hover {
  transform: translateY(-2px);
}
/* Cards get a lifted glow */
.card:hover {
  box-shadow: 0 16px 40px rgba(24, 51, 36, 0.10);
}
/* Secondary card links */
.sec-card {
  transition: var(--transition);
}
.sec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(24, 51, 36, 0.08);
  border-color: var(--mint);
}
