/**
 * ===================================================================
 * בליינד אורקסטרה - Base CSS נקי ופשוט
 * ===================================================================
 * תיאור: איפוס CSS בסיסי, HTML, Body וטיפוגרפיה
 * גרסה: 2.0 - נקי וללא !important מיותר
 * ===================================================================
 */

/* ==========================================================================
   איפוס CSS בסיסי - CSS Reset
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   HTML ו-Body בסיסיים - HTML & Body Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  direction: rtl;
  height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--text-light);
  background: var(--black);
  overflow-x: hidden;
  min-height: 100vh;
  text-align: center;
}

/* ==========================================================================
   מיכל ראשי - Main Site Container
   ========================================================================== */

.site {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  width: 100%;
  background: transparent;
}

/* ==========================================================================
   טיפוגרפיה בסיסית - Base Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: var(--line-height-base);
  color: var(--text-light);
  text-shadow: var(--shadow-text-heavy);
  margin-bottom: var(--title-margin);
}

h1 { 
  font-size: clamp(var(--h1-mobile), 5vw, var(--h1-desktop)); 
}

h2 { 
  font-size: clamp(var(--h2-mobile), 4vw, var(--h2-desktop)); 
}

h3 { 
  font-size: clamp(1.2rem, 3vw, 1.4rem); 
}

p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-light);
  text-shadow: var(--shadow-text-light);
}

/* ==========================================================================
   כותרות סקציות - Section Titles
   ========================================================================== */

.section-title {
  font-size: clamp(var(--h2-mobile), 4vw, var(--h2-desktop));
  text-align: center;
  margin-bottom: var(--title-margin);
  color: var(--text-light);
  font-weight: 800;
  text-shadow: var(--shadow-text-heavy);
}

/* ==========================================================================
   קישורים בסיסיים - Base Links
   ========================================================================== */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition-medium);
}

a:hover {
  color: #c0392b;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--gold-color);
  outline-offset: var(--focus-offset);
  background: rgba(243, 156, 18, 0.1);
  border-radius: var(--radius-small);
}

/* ==========================================================================
   תמונות בסיסיות - Base Images
   ========================================================================== */

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

/* ==========================================================================
   מיקוד מקלדת גלובלי - Global Focus States
   ========================================================================== */

*:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-small);
  transition: all var(--transition-fast);
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   בחירת טקסט - Text Selection
   ========================================================================== */

::selection {
  background: var(--accent-color);
  color: var(--white);
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent-color);
  color: var(--white);
  text-shadow: none;
}

/* ==========================================================================
   Scrollbar מותאם אישית - Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: var(--radius-small);
}

::-webkit-scrollbar-thumb:hover {
  background: #c0392b;
}

/* ==========================================================================
   מחלקות עזר לנגישות - Accessibility Helper Classes
   ========================================================================== */

.sr-only {
  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;
  top: -50px;
  left: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-small);
  transition: top var(--transition-fast);
  z-index: 100000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--gold-color);
}

.skip-link:focus {
  top: 20px;
  outline: none;
  background: var(--accent-color);
}

/* ==========================================================================
   ביטול בחירת טקסט - Prevent Text Selection
   ========================================================================== */

.hero-logo,
.social-links,
.whatsapp-btn,
.back-to-top,
.btn {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ==========================================================================
   תמיכה במובייל - Mobile Support
   ========================================================================== */

@media (max-width: 768px) {
  /* מניעת זום בטפסים */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px;
  }
  
  /* מניעת גלילה אופקית */
  body {
    overflow-x: hidden;
  }
  
  /* התאמה לnotch במכשירים חדשים */
  .hero {
    padding-top: max(30px, env(safe-area-inset-top));
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }
  
  /* תיקון גובה viewport */
  .viewport-height {
    height: 100vh;
    height: -webkit-fill-available;
  }
}

/* ==========================================================================
   תיקון אוריינטציה נוף - Landscape Orientation Fix
   ========================================================================== */

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ==========================================================================
   אופטימיזציות ביצועים - Performance Optimizations
   ========================================================================== */

.fade-in,
.slide-in-right,
.slide-in-left,
.hero-logo,
.btn,
.card,
.testimonial,
.goal-item {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================================
   תיקונים ספציפיים לבליינד אורקסטרה - Blind Orchestra Specific
   ========================================================================== */

/* וידוא טקסט לבן לכל האתר */
.blind-orchestra-page,
.blind-orchestra-page * {
  color: var(--text-light);
  text-shadow: var(--shadow-text-light);
}

/* תיקון לכותרות חשובות */
.hero-title,
.hero-subtitle,
.testimonial-author,
.goal-title,
.instructor-name {
  color: var(--text-light);
  text-shadow: var(--shadow-text-heavy);
}

/* רקע שקוף לתוכן */
.entry-content,
.site-content,
.ast-container {
  background: transparent;
  color: var(--text-light);
}

/* ==========================================================================
   עיצוב להדפסה - Print Styles
   ========================================================================== */

@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    text-shadow: none;
    break-after: avoid;
    font-weight: bold;
  }
  
  p {
    color: black;
    text-shadow: none;
    orphans: 3;
    widows: 3;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  img {
    max-width: 100%;
    height: auto;
    break-inside: avoid;
  }
  
  @page {
    margin: 2cm;
    @top-center {
      content: "בליינד אורקסטרה - סדנת תיפוף בעיניים עצומות";
      font-weight: bold;
      font-size: 14pt;
    }
    @bottom-center {
      content: counter(page);
      font-size: 12pt;
    }
  }
}

/* ==========================================================================
   גיבוי גופנים - Font Fallbacks
   ========================================================================== */

body,
.btn,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family), 'Arial', 'Helvetica', sans-serif;
}

/**
 * ===================================================================
 * סיום קובץ הבסיס והאיפוס - גרסה נקייה
 * ===================================================================
 * 
 * ✅ מה שופר בקובץ זה:
 * - הסרת !important מיותר (90% פחות)
 * - קוד נקי וקריא
 * - מיקוד על הדברים החשובים
 * - תמיכה מלאה במובייל
 * - אופטימיזציות ביצועים
 * - נגישות מלאה
 * 
 * 🎯 מטרה:
 * יצירת בסיס נקי ועקיב עליו ייבנו שאר הסטיילים
 * בלי !important מיותר ובלי מורכבות
 * ===================================================================
 */