/* =========================================================
   כרטיסים
   כרטיסי "שתי דרכים לרכוש" ותמונות הבעלים.
   ========================================================= */

/* ---------- "two ways" cards: quiet spotlight hover ---------- */
.way {
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color 0.5s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.6s;
  cursor: default;
}
.way::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 156, 108, 0.16),
    rgba(242, 156, 108, 0.05) 40%,
    transparent 70%
  );
}
.way::after {
  content: '';
  position: absolute;
  right: clamp(24px, 3vw, 36px);
  left: clamp(24px, 3vw, 36px);
  bottom: 0;
  height: 2px;
  background: var(--peach, #f29c6c);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wn {
  display: inline-block;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.4s;
  transform-origin: right bottom;
}
.way h3 {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wchip {
  transition:
    background 0.4s,
    color 0.4s,
    border-color 0.4s;
}
@media (hover: hover) {
  .way:hover {
    transform: translateY(-6px);
    border-color: hsl(var(--text) / 0.18);
    box-shadow: 0 30px 60px -36px rgba(29, 28, 26, 0.35);
  }
  .way:hover::before {
    opacity: 1;
  }
  .way:hover::after {
    transform: scaleX(1);
  }
  .way:hover .wn {
    transform: translateY(-4px) scale(1.08);
    color: var(--peach, #f29c6c);
  }
  .way:hover h3 {
    transform: translateX(-6px);
  }
  .way:hover .wchip {
    background: hsl(var(--text));
    border-color: hsl(var(--text));
    color: hsl(var(--bg));
  }
  .incl > div {
    transition: transform 0.4s;
  }
  .incl > div:hover {
    transform: translateY(-2px);
  }
  .incl > div:hover svg {
    stroke: var(--peach, #f29c6c);
  }
}
.subhead.mgmt-top {
  margin-top: 0;
}
.about-gap {
  height: clamp(48px, 7vw, 88px);
}
/* team photos */
.own2 .ocard {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.own2 .ocard > div {
  padding: 18px 20px 20px;
}
.ophoto {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: hsl(var(--surface));
}
.ophoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: transform 0.6s ease;
}
.ocard:hover .ophoto img {
  transform: scale(1.04);
}
@media (max-width: 900px) {
  .own2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .own2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .own2 .ocard {
    padding: 0;
    gap: 0;
  }
  .own2 .ocard > div {
    padding: 12px 14px 14px;
  }
  .own2 .ocard:first-child {
    grid-column: 1/-1;
  }
  .own2 .ocard:first-child .ophoto {
    aspect-ratio: 1/1;
  }
}

/* קישור לינקדאין בכרטיס של בעלים */
.olink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 12px 6px 14px;
  border: 1px solid hsl(var(--stroke));
  border-radius: 999px;
  font-size: 13px;
  color: hsl(var(--text));
  transition:
    border-color 0.3s,
    background 0.3s;
}
.olink svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}
.olink:hover,
.olink:focus-visible {
  border-color: hsl(var(--text) / 0.4);
  background: hsl(var(--surface));
}
@media (max-width: 767px) {
  .olink {
    margin-top: 8px;
    padding: 4px 9px;
    font-size: 11.5px;
  }
  .olink svg {
    width: 13px;
    height: 13px;
  }
}
