/**
 * ===================================================================
 * בליינד אורקסטרה - Responsive CSS נקי וממוקד
 * ===================================================================
 * תיאור: התאמות רספונסיביות פשוטות ויעילות
 * גרסה: 2.0 - נקייה וממוקדת
 * ===================================================================
 */

/* ==========================================================================
   נקודות שבירה ראשיות
   ========================================================================== */

/*
  🖥️ Desktop: 1024px+
  📱 Tablet: 768px - 1023px  
  📱 Mobile: < 768px
*/

/* ==========================================================================
   🖥️ דסקטופ (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 30px;
  }
  
  /* Hero */
  .hero-logo {
    width: 350px;
    height: 350px;
  }
  
  .header-logo-image {
    height: 80px;
  }
  
  /* גריד המטרות - 5 בשורה */
  .goals-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
  
  /* המלצות - 2 עמודות */
  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  /* מדיה - 2×2 */
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  /* פוטר - 3 עמודות */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   📱 טאבלט (768px - 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }
  
  /* Hero */
  .hero {
    min-height: 90vh;
  }
  
  .hero-logo {
    width: 300px;
    height: 300px;
  }
  
  .header-logo-image {
    height: 70px;
  }
  
  /* כותרות */
  .section-title {
    font-size: 2.2rem;
  }
  
  /* גריד המטרות - 3 עמודות */
  .goals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  /* בעיה/פתרון - עמודה אחת */
  .problem-solution-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* המלצות - עמודה אחת */
  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* מדיה - עמודה אחת */
  .media-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* פוטר - עמודה אחת */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* ==========================================================================
   📱 מובייל (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
  
  /* Hero למובייל */
  .hero {
    min-height: 100vh;
    padding: 30px 15px;
  }
  
  /* לוגו ראשי - עובר למעלה */
  .hero-header-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 2rem;
    opacity: 1;
    animation: fadeIn 0.8s ease;
  }
  
  .header-logo-image {
    height: 70px;
    max-width: 90%;
  }
  
  /* לוגו עגול */
  .hero-logo {
    width: 250px;
    height: 250px;
  }
  
  /* כותרות */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* כפתורי Hero */
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 250px;
  }
  
  /* גריד המטרות - 2 עמודות */
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .goal-item {
    padding: 1.5rem 1rem;
  }
  
  .goal-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  /* טקסט עם דעיכה */
  .text-with-fade {
    padding: 1.5rem;
  }
  
  /* בעיה/פתרון - גלילה אופקית */
  .problem-solution-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 1rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .problem-solution-container::-webkit-scrollbar {
    display: none;
  }
  
  .problem-section,
  .solution-section {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 2rem 1.5rem;
  }
  
  /* המלצות */
  .testimonial {
    padding: 2rem 1.5rem;
  }
  
  /* מדיה */
  .media-item {
    padding: 2rem 1.5rem;
    min-height: 350px;
  }
  
  /* מנחה */
  .instructor-card {
    padding: 3rem 2rem;
  }
  
  .instructor-image {
    width: 150px;
    height: 150px;
  }
  
  /* פוטר */
  .site-footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
  }
  
  /* כפתורים צפים */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-btn {
    width: 55px;
    height: 55px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  /* הודעת עוגיות */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-content button {
    width: 100%;
    max-width: 200px;
  }
}

/* ==========================================================================
   📱 מובייל קטן (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Hero */
  .hero-logo {
    width: 200px;
    height: 200px;
  }
  
  .header-logo-image {
    height: 60px;
  }
  
  /* כותרות */
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  /* גריד המטרות - עמודה אחת */
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* טקסטים */
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* כפתורים */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .show-more-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  
  /* המלצות */
  .testimonial {
    padding: 1.5rem;
  }
  
  .testimonial-author {
    font-size: 1.1rem;
  }
  
  /* מדיה */
  .media-item {
    padding: 1.5rem;
    min-height: 300px;
  }
  
  .media-item-title {
    font-size: 1.1rem;
  }
  
  .media-item-text {
    font-size: 0.9rem;
  }
  
  /* מנחה */
  .instructor-card {
    padding: 2rem 1.5rem;
  }
  
  .instructor-image {
    width: 120px;
    height: 120px;
  }
  
  /* פוטר */
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-section a,
  .footer-section p {
    font-size: 0.9rem;
  }
  
  /* כפתורים צפים */
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   אוריינטציה נוף למובייל
   ========================================================================== */

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 20px;
  }
  
  .hero-header-logo {
    margin-bottom: 1rem;
  }
  
  .header-logo-image {
    height: 50px;
  }
  
  .hero-logo {
    width: 150px;
    height: 150px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   תיקונים ושיפורים
   ========================================================================== */

/* מניעת זום במובייל */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* תמיכה ב-notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .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));
  }
}

/* ביטול כפתור Astra */
.ast-scroll-top {
  display: none !important;
}

/* אנימציות בסיסיות */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* כלי עזר רספונסיביים */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}

/* גלילה חלקה */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}