/* ============================================================
   upgrade.css — Design upgrade override layer
   Project: עלה על הבר
   Strategy: Aliasing + scoped !important — no HTML edits required
   ============================================================ */

:root{
  /* ---------- Gold scale ---------- */
  --gold-primary:   #EBCB74;
  --gold-secondary: #C9A962;
  --gold-light:     #F5E9C8;
  --gold-accent:    #D4AF37;  /* הדגשה אסטרטגית בלבד */
  --gold-deep:      #C9A962;

  /* ---------- Neutrals ---------- */
  --bg-dark:    #0D0D0D;
  --bg-darker:  #0A0A0A;
  --bg-black:   #000000;
  --text-white: #FFFFFF;
  --text-dim:   rgba(245,233,200,0.72);

  /* ---------- Semantic ---------- */
  --positive-light: #52B957;
  --positive:       #388E3C;
  --positive-deep:  #2E7D32;
  --negative-light: #D63838;
  --negative:       #B71C1C;
  --negative-deep:  #8B0000;

  /* ---------- Dividers ---------- */
  --divider-testimonial: #555555;
  --divider-pipe:        rgba(235,203,116,0.35);

  /* ---------- Typography ---------- */
  --font-serif:       'Suez One', serif;
  --font-sans:        'Assistant', system-ui, sans-serif;
  --heading-tracking: 0.03em;
  --body-weight:      300;
  --label-weight:     400;
  --leading-body:     1.7;
  --leading-heading:  1.2;

  /* ---------- Motion ---------- */
  --ease-soft:   cubic-bezier(.2,.8,.2,1);
  --dur-fast:    200ms;
  --dur-normal:  350ms;
  --dur-slow:    700ms;

  /* ---------- Back-compat aliases ---------- */
  --gold-title:    var(--gold-accent);
  --gold-cream:    var(--gold-light);
  --btn-positive:  var(--positive-light);
  --btn-back:      var(--negative);
  --text-primary:  var(--text-white);
  --text-secondary:var(--gold-light);
  --border-gold:   rgba(235,203,116,0.35);
}

/* ---------- A11y baseline ---------- */
:focus-visible{
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Media-frame base (applied only when opted-in) ---------- */
.media-frame{
  aspect-ratio: 9 / 16;
  width: min(62%, 520px);
  margin-inline: auto;
  padding: clamp(6px, 0.9%, 12px);
  background: linear-gradient(135deg,
    var(--gold-light) 0%, var(--gold-primary) 25%,
    var(--gold-secondary) 50%, var(--gold-primary) 75%,
    var(--gold-light) 100%);
  border-radius: 4px;
  contain: layout paint;
}
.media-frame[data-ratio="10x12"]{ aspect-ratio: 10/12; }
.media-frame[data-ratio="16x9"] { aspect-ratio: 16/9;  }
.media-frame[data-ratio="4x3"]  { aspect-ratio: 4/3;   }
.media-frame[data-ratio="1x1"]  { aspect-ratio: 1/1;   }
.media-frame[data-ratio="16x10"]{ aspect-ratio: 16/10; }

.media-mat{
  padding: clamp(4px, 0.7%, 8px);
  background: var(--bg-darker);
  height: 100%;
  contain: layout paint;
}

.media-window{
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  min-width: 0; min-height: 0;
}

.media-poster, .media-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.media-poster{ z-index: 1; transition: opacity .5s ease; }
.media-poster.is-hidden{ opacity: 0; pointer-events: none; }
.media-video { z-index: 0; }

/* focus positioning */
[data-focus="top"]       .media-video, [data-focus="top"]       .media-poster { object-position: center 15%; }
[data-focus="upper"]     .media-video, [data-focus="upper"]     .media-poster { object-position: center 30%; }
[data-focus="mid-upper"] .media-video, [data-focus="mid-upper"] .media-poster { object-position: center 42%; }
[data-focus="center"]    .media-video, [data-focus="center"]    .media-poster { object-position: center 50%; }
[data-focus="mid-lower"] .media-video, [data-focus="mid-lower"] .media-poster { object-position: center 58%; }
[data-focus="lower"]     .media-video, [data-focus="lower"]     .media-poster { object-position: center 70%; }
[data-focus="bottom"]    .media-video, [data-focus="bottom"]    .media-poster { object-position: center 85%; }

/* ---------- Dividers ---------- */
.testimonial-divider{
  width: 60%; height: 1px;
  margin: 24px auto;
  background: var(--divider-testimonial);
  opacity: 0.6;
  border: none;
}
.pipe-sep{
  display: inline-block;
  padding: 0 14px;
  color: var(--divider-pipe);
  user-select: none;
}
.gold-glow-bar{
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  box-shadow: 0 0 12px rgba(212,175,55,0.35);
}

/* ---------- Brand logo ---------- */
.brand-logo{
  display: block;
  max-height: 72px;
  width: auto;
  margin-inline: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.brand-logo[data-size="lg"]{ max-height: 120px; }
.brand-logo[data-size="sm"]{ max-height: 48px; }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) ease,
              transform var(--dur-slow) ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- Gold accent text ---------- */
.gold-accent, em.gold{
  color: var(--gold-accent);
  font-style: normal;
  font-weight: 500;
}

/* ---------- Soft pulse for primary CTA ---------- */
@keyframes soft-pulse{
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,185,87,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(82,185,87,0); }
}
.btn.btn-positive.is-primary,
.btn-positive.is-primary{
  animation: soft-pulse 2.4s ease-in-out infinite;
}
/* build-trigger: 1776778022194 */

/* =========  Layer 3 — Components  =========
   Date: 21/04/2026
   Strategy: Additive only — no existing rules deleted.
   All colors/fonts through Layer 1 tokens.
   Targets actual class patterns from component-audit.csv (328 matches, 61 combos).
   ========================================== */

/* --- Layer 3: Buttons — Base reset --- */
.btn{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--heading-tracking);
  border-radius: 9999px;
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  line-height: 1.3;
}

/* --- Layer 3: Primary CTA (btn-positive) --- */
.btn.btn-positive{
  background: var(--positive-light);
  color: var(--text-white);
  border: 1px solid transparent;
  padding: 0.75rem 1.75rem;
}
.btn.btn-positive:hover{
  background: var(--positive);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82,185,87,0.3);
}
.btn.btn-positive:active{
  transform: translateY(0);
}
.btn.btn-positive:focus-visible{
  outline: 2px solid var(--positive-light);
  outline-offset: 3px;
}

/* --- Layer 3: Locked / Disabled state --- */
.btn.btn-positive.locked,
.btn.btn-positive.disabled,
.btn.btn-positive[disabled]{
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Layer 3: Back button --- */
.btn.btn-back{
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--divider-default, rgba(235,203,116,0.2));
  padding: 0.65rem 1.5rem;
}
.btn.btn-back:hover{
  color: var(--text-white);
  border-color: var(--gold-primary);
  background: rgba(235,203,116,0.08);
}

/* --- Layer 3: Skip button (דלג) --- */
.btn-skip,
.btn.btn-skip{
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-soft);
}
.btn-skip:hover,
.btn.btn-skip:hover{
  color: var(--gold-primary);
}

/* --- Layer 3: Secondary button --- */
.btn.btn-secondary{
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.65rem 1.5rem;
}
.btn.btn-secondary:hover{
  background: rgba(235,203,116,0.1);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
}

/* --- Layer 3: Service CTA (svc-cta) --- */
.svc-cta{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--heading-tracking);
  border-radius: 9999px;
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
  padding: 0.65rem 1.5rem;
}
.svc-cta:hover{
  transform: translateY(-1px);
}
.svc-cta:focus-visible{
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

/* --- Layer 3: Popup buttons --- */
.popup-btn{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--heading-tracking);
  border-radius: 9999px;
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
  padding: 0.6rem 1.4rem;
}
.popup-btn:hover{
  transform: translateY(-1px);
}
.popup-btn-back{
  font-family: var(--font-sans);
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
}
.popup-btn-skip{
  font-family: var(--font-sans);
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
}

/* --- Layer 3: Modal buttons --- */
.modal-btn{
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 9999px;
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
  padding: 0.5rem 1.25rem;
}
.modal-btn:hover{
  transform: translateY(-1px);
}
.modal-close{
  transition: all var(--dur-fast) var(--ease-soft);
  cursor: pointer;
}
.modal-close:hover{
  opacity: 0.7;
}

/* --- Layer 3: Home / CTA-home buttons --- */
.btn-home,
.cta-home-btn{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--heading-tracking);
  border-radius: 9999px;
  transition: all var(--dur-normal) var(--ease-soft);
  cursor: pointer;
}
.btn-home:hover,
.cta-home-btn:hover{
  transform: translateY(-1px);
}
.btn-home:focus-visible,
.cta-home-btn:focus-visible{
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

/* --- Layer 3: Dividers — lux-line base --- */
.lux-line{
  border: none;
  height: 1px;
  background: var(--divider-testimonial);
  opacity: 0.5;
  margin-block: 1rem;
}
.lux-line-sep{
  opacity: 0.4;
}
.lux-line-title{
  background: var(--gold-primary);
  opacity: 0.35;
  height: 1px;
}
.lux-line-body{
  opacity: 0.3;
}
.lux-line-highlight{
  background: var(--gold-accent);
  opacity: 0.5;
  height: 2px;
}
.lux-line-cards{
  opacity: 0.3;
}

/* --- Layer 3: Category / Package dividers --- */
.cat-divider{
  border: none;
  height: 1px;
  background: var(--divider-testimonial);
  opacity: 0.4;
  margin-block: 0.75rem;
}
.pkg-hero-divider{
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.5;
  margin-block: 1rem;
}

/* --- Layer 3: Labels & Chips — base typography --- */
.stat-label,
.toggle-label,
.cards-label,
.btn-label,
.section-label{
  font-family: var(--font-sans);
  font-weight: var(--label-weight);
  letter-spacing: var(--heading-tracking);
}

/* --- Layer 3: Badge system --- */
.package-badge,
.card-badge,
.cat-badge{
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: var(--heading-tracking);
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* --- Layer 3: Tag system --- */
.recommended-tag,
.optional-tag,
.highlight-tag,
.svc-upgrade-tag,
.card-title-tag{
  font-family: var(--font-sans);
  font-weight: var(--label-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* --- Layer 3: Card CTA label --- */
.card-cta-label{
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--heading-tracking);
  transition: color var(--dur-fast) var(--ease-soft);
}

/* --- Layer 3: Navigation — Bottom nav --- */
.bottom-nav{
  font-family: var(--font-sans);
}
.bottom-nav-inner{
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-row{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-counter{
  font-family: var(--font-sans);
  font-weight: var(--label-weight);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Layer 3: Gallery dots --- */
.gallery-dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gallery-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-soft);
}
.gallery-dot:hover{
  background: var(--gold-primary);
}
.gallery-dot.active{
  background: var(--gold-accent);
  transform: scale(1.25);
}

/* --- Layer 3: Arrows --- */
.cta-arrow,
.select-arrow{
  transition: transform var(--dur-fast) var(--ease-soft);
  cursor: pointer;
}
.cta-arrow:hover,
.select-arrow:hover{
  transform: scale(1.15);
}

/* --- Layer 3: Global hover transition — fallback only for elements without specific rules --- */
button:not([class*="btn"]):not([class*="cta"]):not([class*="popup-"]):not([class*="modal-"]),
a[role="button"]:not([class*="btn"]):not([class*="cta"]){
  transition: all var(--dur-normal) var(--ease-soft);
}

/* --- Layer 3: Focus-visible reinforcement (global a11y) --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* --- Layer 3: Fix #4 — Hero content centering + video position --- */
.hero-frame-grid > .hero-content-frame {
  justify-content: center !important;
}

.hero-frame-grid > video.hero-video,
.hero-frame-grid > .hero-video-poster {
  object-position: center center !important;
}

/* =========  End Layer 3 Components  ========= */

/* =========  Layer 4 — Motion  =========
   Date: 22/04/2026
   Strategy: additive, respects prefers-reduced-motion
   ======================================== */

/* --- Layer 4: Reveal on scroll --- */
.reveal,
[data-reveal]{
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-normal) var(--ease-soft),
    transform var(--dur-normal) var(--ease-soft);
  will-change: opacity, transform;
}
.reveal.is-visible,
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* --- Layer 4: Stagger — list items --- */
.reveal-stagger > *{
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--dur-normal) var(--ease-soft),
    transform var(--dur-normal) var(--ease-soft);
}
.reveal-stagger.is-visible > *{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay: 300ms; }

/* --- Layer 4: Slide transitions (between 33 slides) --- */
.slide-enter,
[class*="slide-"].entering{
  opacity: 0;
  transform: translateX(16px);
}
.slide-enter.is-active,
[class*="slide-"].entered{
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity var(--dur-normal) var(--ease-soft),
    transform var(--dur-normal) var(--ease-soft);
}

/* --- Layer 4: Focus transition smoothing --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  transition: outline var(--dur-fast) var(--ease-soft),
              outline-offset var(--dur-fast) var(--ease-soft);
}

/* --- Layer 4: prefers-reduced-motion (a11y) --- */
@media (prefers-reduced-motion: reduce){
  .reveal,
  [data-reveal],
  .reveal-stagger > *,
  .slide-enter,
  [class*="slide-"].entering{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========  End Layer 4 Motion  ========= */