/* ============================================
   קסם ישראל — אנימציות מורחבות
   style-animations.css
   ============================================ */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; right: 0; left: auto; /* דף עברי — הפס נמתח מימין לשמאל (דוח 11.7, 4.2) */
  height: 3px;
  width: 0%;
  background: linear-gradient(to left, var(--sand), var(--earth), var(--olive));
  z-index: 10000;
  pointer-events: none;
  border-radius: 2px 0 0 2px;
  transition: width 0.08s linear;
}

/* ===== REVIEW CAROUSEL ===== */
.review-carousel-wrap {
  position: relative;
  max-width: 600px;
  margin: 3rem auto 0;
}

.review-carousel-overflow {
  overflow: hidden;
  border-radius: 16px;
}

.review-carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px 2px;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--sand-light);
  color: var(--earth);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  line-height: 1;
  padding: 0;
}
.carousel-arrow:hover {
  background: var(--sand-light);
  box-shadow: 0 4px 20px rgba(122,92,58,0.2);
  transform: translateY(-60%) scale(1.08);
}
.carousel-prev { right: -22px; }
.carousel-next { left: -22px; }

/* Dots */
/* נגישות (תוקן 15.8.2026): הנקודות היו 8x8 פיקסל — Lighthouse דרש 24x24 לפחות
   למטרת מגע. כדי לא לשנות את העיצוב, הכפתור עצמו הוגדל ל-24x24 והנקודה
   הנראית נשארה 8x8 בעזרת padding + background-clip: content-box.
   ה-border-radius מחושב על תיבת הגבול: 12px פחות 8px padding = 4px על
   תיבת התוכן בת 8px — כלומר עיגול מושלם, בדיוק כמו קודם.
   ה-gap אופס כי ה-padding כבר יוצר את הרווח החזותי. */
.review-dots-wrap {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.4rem;
}
.review-dot {
  width: 24px; height: 24px;
  box-sizing: border-box;
  padding: 8px;
  background-clip: content-box;
  border-radius: 50%;
  background-color: var(--sand-light);
  border: none; cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, width 0.3s;
}
.review-dot.active {
  background-color: var(--earth);
  transform: scale(1.25);
  width: 38px;          /* 22px נראים + 8px padding מכל צד */
  border-radius: 12px;  /* 4px על תיבת התוכן, כמו קודם */
}

/* ===== HERO TYPEWRITER ===== */
.hero-word {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-word.fading {
  opacity: 0;
  transform: translateY(-10px);
}
.hero-word.entering {
  opacity: 0;
  transform: translateY(10px);
}

/* ===== STAT COUNTER ANIMATION ===== */
.stat-num {
  display: inline-block;
  transition: transform 0.3s ease;
}
.stat-num.pop {
  transform: scale(1.15);
}

/* ===== CARD TILT ===== */
.tour-card,
.cp-card,
.review-card,
.cal-event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform;
}

/* ===== FLOATING DECORATIVE DOTS ===== */
@keyframes floatDot {
  0%   { transform: translateY(0px) rotate(0deg);   }
  50%  { transform: translateY(-16px) rotate(90deg); }
  100% { transform: translateY(0px) rotate(0deg);   }
}

.section-float-dot {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
}

/* ===== SECTION ENTRANCE — enhanced ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO BADGE PULSE ===== */
.hero-badge {
  animation: fadeDown 0.8s ease both, badgePulse 3.5s ease 1.5s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,110,0); }
  50%       { box-shadow: 0 0 0 8px rgba(200,169,110,0.12); }
}

/* ===== TOUR CARD IMAGE ZOOM ===== */
.tour-card .tour-img {
  overflow: hidden;
}

/* ===== GALLERY ITEM SHIMMER =====
   לא חל על כרטיסי הקרוסלה התלת-ממדית (.gc-card) — ה-bounce וה-hover עם !important
   דרסו את ה-transform/transition שלה וגרמו לתנועה קופצנית. */
.gallery-item:not(.gc-card) {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}
.gallery-item:not(.gc-card):hover {
  transform: scale(1.04) translateY(-4px) !important;
}

/* ===== SCROLL-TRIGGERED SECTION LINES ===== */
.section-title::after {
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s !important;
}

/* ===== NAV LINK HOVER UNDERLINE ===== */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 1.5px;
  background: var(--sand);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ===== STATS BAR NUMBER GLOW ===== */
@keyframes statGlow {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 20px rgba(200,169,110,0.5); }
  100% { text-shadow: none; }
}
.stat-num.counted {
  animation: statGlow 0.8s ease;
}

/* ===== WA FLOAT HEARTBEAT ===== */
.wa-float {
  animation: waHeartbeat 2.8s ease-in-out 3s infinite;
}
@keyframes waHeartbeat {
  0%, 100% { transform: scale(1); }
  12%       { transform: scale(1.12); }
  24%       { transform: scale(1); }
  36%       { transform: scale(1.08); }
  48%       { transform: scale(1); }
}

/* ===== BUTTON RIPPLE ===== */
.btn-primary, .btn-wa, .tour-register-btn, .cp-btn {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-wa::before,
.tour-register-btn::before, .cp-btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn-primary:active::before, .btn-wa:active::before,
.tour-register-btn:active::before, .cp-btn:active::before {
  width: 200px; height: 200px;
  opacity: 0;
  transition: 0s;
}

/* ===== SECTION TAG DECORATION ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1.5px;
  background: var(--sand);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .carousel-prev { right: -14px; }
  .carousel-next { left: -14px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
}

/* ===== FULL EVENT CARDS ===== */
.cal-event-card.is-full,.event-card.full { cursor: not-allowed; opacity: 0.75; }
