/* ============================================================
   עמוד אודות (page-about.php) - לפי הפיגמה. בסיס #f5f5f5.
============================================================ */
.abt-section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 600; /* יונתن P1-5: 600 דיפולט */
  color: var(--color-ink, #1a1714);
  line-height: 1.25;
  margin: 0;
}
.abt-section-sub {
  font-size: 1.0625rem;
  color: #5a5a5a;
  line-height: 1.6;
  max-width: 640px;
  margin: 12px 0 0;
}
.abt-section-head { margin-bottom: var(--space-10, 2.5rem); text-align: right; }
.abt-section-head--center { text-align: center; }
.abt-section-head--center .abt-section-sub { margin-inline: auto; }

/* 1. HERO */
.abt-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr; /* RTL: col1=right=text, col2=left=image */
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.abt-hero__media { order: 2; }
.abt-hero__media img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 24px;
}
.abt-hero__title { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 700; color: var(--color-ink, #1a1714); line-height: 1.12; margin: 0 0 var(--space-5, 1.25rem); text-wrap: balance; }
.abt-hero__sub { font-size: 1.1875rem; color: #4a4a4a; line-height: 1.65; max-width: 520px; text-wrap: pretty; }

/* 2. THREE DIVISION CARDS */
.abt-divs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* מתג E-R&D כבוי -> שני כרטיסים בלבד: 2 עמודות במקום 3 ריקות. */
.abt-divs__grid--two {
  grid-template-columns: repeat(2, 1fr);
}
.abt-div-card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 40px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  text-align: right;
}
.abt-div-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.abt-div-card__tag { font-family: var(--font-en, sans-serif); font-size: .875rem; font-weight: 700; color: #242424; text-transform: uppercase; }
.abt-div-card__icon { line-height: 0; }
.abt-div-card__icon img { width: 44px; height: 44px; }
.abt-div-card__title { font-size: 1.375rem; font-weight: 600; color: var(--color-ink, #1a1714); margin: 0 0 12px; }
.abt-div-card__body { font-size: .9375rem; color: #4a4a4a; line-height: 1.6; margin: 0 0 20px; flex: 1; }
/* Figma: outlined pill button, no arrow */
.abt-div-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-ink, #1a1714);
  text-decoration: none;
  padding: 11px 26px;
  border: 1px solid rgba(26,23,20,.35);
  border-radius: 999px;
  transition: background-color var(--dur-fast, .2s) var(--ease, ease), color var(--dur-fast, .2s) var(--ease, ease), border-color var(--dur-fast, .2s) var(--ease, ease);
}
.abt-div-card__link:hover { background: var(--color-ink, #1a1714); color: #fff; border-color: var(--color-ink, #1a1714); }

/* 3. STORY (text + image) */
.abt-story__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr; /* RTL: text right, image left */
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.abt-story__media { order: 2; }
.abt-story__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; }
.abt-story__eyebrow { display: block; font-size: 1rem; color: #6b6b6b; margin-bottom: 8px; }
.abt-story__title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; color: var(--color-ink, #1a1714); line-height: 1.25; margin: 0 0 var(--space-6, 1.5rem); }
.abt-story__text p { font-size: 1rem; color: #4a4a4a; line-height: 1.75; margin: 0 0 var(--space-5, 1.25rem); }
.abt-story__text p:last-child { margin-bottom: 0; }

/* 4. TEAM */
.abt-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.abt-member__photo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, #ececec, #d9d9d9);
}
.abt-member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abt-member__placeholder { width: 100%; height: 100%; }
.abt-member__name { font-size: 1.1875rem; font-weight: 700; color: #fff; margin: 0; }
.abt-member__role { font-size: .8125rem; color: rgba(255,255,255,.85); margin: 2px 0 0; }

/* front (default state) */
.abt-member__front {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  transition: opacity .25s ease;
}
.abt-member__toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff; color: #1a1714;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
@media (hover: hover) {
  .abt-member__toggle:hover { transform: scale(1.08); }
}
.abt-member__toggle:focus-visible { outline: 3px solid var(--color-cta, #c3e85b); outline-offset: 2px; }

/* back (expanded state, glass blur over the photo) - slides up like a drawer */
.abt-member__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 22px;
  text-align: center;
  background: rgba(18, 18, 18, .42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* clean crossfade - the blur layer fades in place (no transform = no backdrop-filter jank) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
/* content rises together from below (towards the + action point) - clean, no cascade */
.abt-member__back > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.abt-member__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff; color: #1a1714;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  transition: transform .15s ease;
}
@media (hover: hover) {
  .abt-member__close:hover { transform: scale(1.08); }
}
.abt-member__close:focus-visible { outline: 3px solid var(--color-cta, #c3e85b); outline-offset: 2px; }
.abt-member__bio {
  font-size: .875rem;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
  margin: 6px 0 0;
}
.abt-member__linkedin {
  display: inline-flex;
  color: #fff;
  margin-top: 14px;
  transition: color .15s ease;
}
.abt-member__linkedin:hover { color: var(--color-cta, #c3e85b); }

/* open - clean crossfade; content rises in with a soft stagger */
.abt-member.is-open .abt-member__front { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.abt-member.is-open .abt-member__back { opacity: 1; pointer-events: auto; }
.abt-member.is-open .abt-member__back > * { opacity: 1; transform: translateY(0); transition-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  .abt-member__back,
  .abt-member__back > * { transition-duration: .01s; }
}

/* 5. VALUES 2x3 */
.abt-values__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.abt-value {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 36px;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .07); /* כרטיס לבן קריא על רקע #f5f5f5 */
}
.abt-value__icon { display: inline-flex; width: 88px; height: 59px; margin-bottom: 16px; }
.abt-value__icon svg { width: 100%; height: 100%; }
.abt-value__title { font-size: 1.25rem; font-weight: 600; color: var(--color-ink, #1a1714); margin: 0 0 10px; }
.abt-value__body { font-size: .9375rem; color: #4a4a4a; line-height: 1.6; margin: 0; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .abt-hero__grid,
  .abt-story__grid { grid-template-columns: 1fr; }
  .abt-hero__media,
  .abt-story__media { order: 0; }
  .abt-divs__grid { grid-template-columns: 1fr; }
  .abt-team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* כרטיסי צוות: aspect-ratio במקום גובה פתוח (היה ~700px ריק) */
  .abt-member__photo {
    aspect-ratio: 3/4;
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .abt-values__grid { grid-template-columns: 1fr; }
  .abt-team__grid { grid-template-columns: 1fr; max-width: none; }
}
