/* ==========================================================================
   קרן אילת - עיצוב מודרני, פונט אחיד Heebo, שאלות נפוצות מובחנות, אנימציות ציפה
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* מיתוג וצבעים ראשיים */
  --primary-navy: #0B192C;
  --primary-blue: #1E3E62;
  --accent-sky: #0284C7;
  --accent-cyan: #38BDF8;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --bg-slate: #F8FAFC;
  --border-light: #E2E8F0;
}

/* פונט אחיד לכל רכיבי האתר: Heebo */
*, *::before, *::after, html, body, h1, h2, h3, h4, h5, h6, input, textarea, button, select, p, span, a, label, table, th, td {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  background-color: var(--bg-slate);
  color: #1E293B;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* גרדיאנטים */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 55%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
              linear-gradient(135deg, #070F2B 0%, #0B192C 45%, #1E293B 100%);
}

.gradient-text-sky {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* אפקט כפתורים */
.btn-glow {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
}

.btn-glow-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

/* אנימציות ציפה חלקה לאלמנטים (Floating Animations) */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(-1.5deg);
  }
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinReverseSlow {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes shimmerGold {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes badgeGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.65));
  }
}

.animate-float-slow {
  animation: floatSlow 5.5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 6.5s ease-in-out infinite;
}

.animate-float-subtle {
  animation: floatSubtle 4.5s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 16s linear infinite;
}

.animate-spin-reverse-slow {
  animation: spinReverseSlow 22s linear infinite;
}

.gold-shimmer-text {
  background: linear-gradient(90deg, #F59E0B 0%, #FEF08A 35%, #FDE047 65%, #F59E0B 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 3.5s linear infinite;
}

/* אפקט אור תכלת מסתובב סביב הכפתור (Spinning Pseudo-Element Border) */
@keyframes spinGlowDisc {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glow-border-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: 1.5rem;
  padding: 2.5px;
  overflow: hidden;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 20px -4px rgba(56, 189, 248, 0.3);
}

.glow-border-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform-origin: center center;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 55%,
    rgba(56, 189, 248, 0.12) 62%,
    rgba(125, 211, 252, 0.5) 72%,
    #38bdf8 80%,
    rgba(125, 211, 252, 0.5) 88%,
    rgba(56, 189, 248, 0.12) 93%,
    transparent 100%
  );
  animation: spinGlowDisc 5s linear infinite;
  margin-top: -100%;
  margin-left: -100%;
  z-index: 0;
}

.glow-border-content {
  position: relative;
  border-radius: calc(1.5rem - 2.5px);
  z-index: 1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

/* כרטיסי זכוכית (Glassmorphism) */
.glass-card-dark {
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* אפקטי כרטיסים */
.track-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
  border-color: rgba(2, 132, 199, 0.4);
}

/* כרטיסי הגשה בסינון שלב 6 */
.track-apply-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

.track-apply-card.hidden-card {
  display: none !important;
}

/* לשוניות סינון מסלולים */
.filter-tab-btn {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.filter-tab-btn.active {
  background-color: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.35);
}

.filter-tab-btn.active .filter-count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* תגיות סכום */
.amount-badge {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.amount-badge-gold {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   שאלות נפוצות - עיצוב מחודש ומובחן
   ========================================================================== */
.faq-item {
  transition: all 0.25s ease-in-out;
  border-right-width: 4px;
  border-right-color: transparent;
}

.faq-item:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
}

/* מצב שאלה סגורה */
.faq-item:not(.active) {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-right: 4px solid #94A3B8;
}

/* מצב שאלה פתוחה (Active) – רקע בהיר מודרני עם טקסט ברור וקריא */
.faq-item.active {
  background-color: #FFFFFF !important;
  border-color: #0284C7 !important;
  border-right: 4px solid #0284C7 !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question-btn {
  background-color: #F0F9FF;
}

.faq-item.active .faq-question-text {
  color: #0369A1 !important;
  font-weight: 800 !important;
}

.faq-item.active .faq-icon-wrapper {
  background-color: #0284C7;
  color: #FFFFFF;
  transform: rotate(180deg);
}

.faq-icon-wrapper {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in, opacity 0.2s ease-in, padding 0.2s ease-in;
  opacity: 0;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  transition: max-height 0.4s ease-out, opacity 0.25s ease-out, padding 0.2s ease-out;
  opacity: 1;
  padding-top: 0.85rem;
  color: #334155 !important;
  border-top: 1px solid #E0F2FE !important;
}

.faq-item.active .faq-answer p,
.faq-item.active .faq-answer span,
.faq-item.active .faq-answer div,
.faq-item.active .faq-answer li {
  color: #334155 !important;
}

.faq-item.active .faq-answer strong,
.faq-item.active .faq-answer b {
  color: #0F172A !important;
}

.faq-item.active .faq-answer a {
  color: #075985 !important;
  text-decoration: underline;
  font-weight: 700;
}

/* ==========================================================================
   2026 Modern Enhancements: 3D Tilt, Scroll Reveal, Ambient Glow, Interactive Micro-interactions
   ========================================================================== */

/* אפקט 3D Tilt מתקדם לכרטיסים */
.card-3d-perspective {
  perspective: 1200px;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  will-change: transform;
}

.card-3d:hover {
  box-shadow: 0 20px 40px -12px rgba(2, 132, 199, 0.18), 0 0 0 1px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
}

/* אפקט ברק/השתקפות דינמי בעכבר */
.card-3d .card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.card-3d:hover .card-glare {
  opacity: 1;
}

/* אנימציות חשיפה בגלילה (Scroll Reveal 2026) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* כדורי זוהר אמביינט מודרניים לרקע (Ambient Glow Orbs) */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: pulseAmbient 8s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
  0% {
    transform: scale(0.9) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1) translate(15px, -15px);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.95) translate(-10px, 10px);
    opacity: 0.5;
  }
}

/* מודאל תצוגת מסמכים (Lightbox) */
.lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal.active .modal-content {
  transform: scale(1);
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.25s ease-in-out;
}

/* סקרולבר מעוצב */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

@media print {
  .no-print, header, footer, #floating-bar {
    display: none !important;
  }
}


/* ============================================================
   Fail-open: אנימציית הכניסה פועלת רק כשה-JS באמת רץ.
   אם קובץ ה-JS נחסם/לא הועלה - התוכן פשוט מוצג רגיל.
   ============================================================ */
html.js-on .reveal {
  opacity: 0;
  transform: translateY(28px);
}
html.js-on .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   הגדרות קשיחות לכרטיסי יצירת קשר שלב 1
   ============================================================ */
.contact-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: right !important;
  direction: rtl !important;
}

.contact-card-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.contact-card svg {
  display: inline-block !important;
  vertical-align: middle !important;
}



/* ============================================================
   ניגודיות קישורים בתשובות - עומד בתקן WCAG AA (4.5:1)
   ============================================================ */
.faq-answer a,
.faq-item.active .faq-answer a {
  color: #075985 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}
.faq-answer a:hover,
.faq-item.active .faq-answer a:hover {
  color: #0C4A6E !important;
}

/* ============================================================
   שער מסלולים: עד שמאשרים את התנאים המסלולים אפורים ולא לחיצים
   ============================================================ */
#tracks-gate {
  transition: opacity 0.35s ease, filter 0.35s ease;
}
#tracks-gate:not(.tracks-locked) {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}
#tracks-gate.tracks-locked {
  filter: grayscale(1);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
#tracks-gate.tracks-locked a,
#tracks-gate.tracks-locked button {
  cursor: not-allowed;
}
#tracks-lock-note {
  transition: opacity 0.25s ease;
}
#tracks-lock-note.is-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}
