/* עמוד מחזון להדמיה והטמעת AI - נבנה על styles.css של האתר */

.site-footer a { color: #DCE8EB; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- פתיחה: ערימת כרטיסים בתלת ממד ---------- */

.stack {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  perspective: 1400px;
}
.stack-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(12deg + var(--rx, 0deg))) rotateY(calc(-16deg + var(--ry, 0deg)));
  transition: transform .7s var(--ease);
}
.stack-card {
  position: absolute;
  margin: 0;
  width: 56%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid var(--paper);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 34px 60px -30px #254b5f85, 0 8px 18px -10px #254b5f40;
  transition: transform .7s var(--ease);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.stack-back {
  top: 3%;
  right: 6%;
  transform: translate3d(calc((.3 + var(--sp, 0)) * 40px), calc((.3 + var(--sp, 0)) * -22px), -80px) rotateZ(5deg);
}
.stack-front {
  bottom: 3%;
  left: 6%;
  transform: translate3d(calc((.3 + var(--sp, 0)) * -40px), calc((.3 + var(--sp, 0)) * 22px), 80px) rotateZ(-4deg);
}
.stack-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
}
.stack-cube {
  position: absolute;
  top: -3%;
  left: -1%;
  width: 27%;
  transform: translateZ(170px);
  filter: drop-shadow(0 24px 22px #254b5f45);
  animation: cube-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .js .stack { animation: depth-enter 1.1s .2s var(--ease) both; }
  .stack-inner.auto-sway { animation: stack-sway 10s ease-in-out infinite; }
}

@keyframes cube-float { 0%, 100% { translate: 0 4px; } 50% { translate: 0 -12px; } }
@keyframes stack-sway {
  0%, 100% { transform: rotateX(10deg) rotateY(-14deg); }
  50% { transform: rotateX(7deg) rotateY(-3deg); }
}

@media (max-width: 939px) {
  .stack { width: min(100% - 24px, 420px); }
  .stack-card { width: 58%; }
  .stack-back { right: 4%; }
  .stack-front { left: 4%; }
  .stack-cube { top: 2%; left: 4%; width: 21%; transform: translateZ(80px); }
}

/* ---------- הדרך: חמישה שלבים ---------- */

.steps { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecd593, #bba16a);
  color: var(--ink);
  font-family: var(--font-latin);
  font-weight: 600;
  box-shadow: 0 8px 16px -8px #8d795399, inset 0 1px 0 #ffffff99;
}
.step h3 { font-size: 1.2rem; margin-bottom: .35em; }
.step p { margin: 0; font-size: 1rem; line-height: 1.65; }

@media (min-width: 940px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 49px;
    inset-inline: 4%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
  }
}

/* ---------- הסדנה ---------- */

.offer-grid { display: grid; gap: 56px; align-items: center; }
.offer-visual { position: relative; width: min(100% - 30px, 400px); margin-inline: auto; perspective: 1100px; }
.offer-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--surface-raised);
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform .9s var(--ease);
}
.offer-visual:hover .offer-photo { transform: rotateY(0) rotateX(0); }
.offer-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.offer-icon {
  position: absolute;
  z-index: 2;
  top: -9%;
  left: -9%;
  width: 36%;
  filter: drop-shadow(0 20px 20px #254b5f45);
  animation: cube-float 6s ease-in-out infinite;
}
.offer-text h3 { font-size: 1.25rem; margin: 6px 0 12px; }
.check-list { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-inline-start: 34px; color: var(--ink); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .3em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--aqua-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23294D59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (min-width: 940px) {
  .offer-grid { grid-template-columns: .9fr 1.1fr; gap: 88px; }
}

/* ---------- ליווי למשרד ---------- */

.format { display: grid; gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.format li {
  padding: 20px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #294D59, #3a6372);
  color: #DCE8EB;
  box-shadow: var(--surface-raised);
}
.format strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.25; color: var(--lotus); }

.topics { display: grid; gap: 20px; }
.topic {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.topic-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold);
}
.topic h3 { font-size: 1.2rem; margin-bottom: .4em; }
.topic p { margin: 0; font-size: 1rem; }

.studio-end {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #edf4f5, #f6f8f4);
}
.studio-end h3 { margin-bottom: .3em; }
.studio-end p { margin: 0; }
.studio-end .btn { justify-self: start; }

@media (min-width: 700px) {
  .format { grid-template-columns: repeat(3, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .topics { grid-template-columns: repeat(3, 1fr); }
  .studio-end { grid-template-columns: 1fr auto; gap: 40px; }
}

.about-text .btn { margin-top: 18px; }

/* הטיית הכרטיסים מוגדרת ב-styles.css וב-site.js לכל העמודים */
