/* ═══════════════════════════════════════════════
   landing.css — generic ACF landing pages (page-landing.php)
   Blocks: hero / feature_cards / cta_banner / faq / content_table
   Requires: main.css + typography.css (variables, .isr-container, .isr-btn-*)
   ═══════════════════════════════════════════════ */

.isr-lp-page { overflow-x: hidden; }
.isr-lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* ── Hero ─────────────────────────────────────────── */
.isr-lp-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%);
  text-align: center;
}
.isr-lp-hero .isr-container { max-width: 860px; }
.isr-lp-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  color: var(--slate);
  margin: 0 0 var(--space-lg);
}
.isr-lp-hero-text {
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--gray);
  margin: 0 0 var(--space-xl);
}

/* ── Section rhythm ───────────────────────────────── */
.isr-lp-section { padding: clamp(40px, 5vw, 72px) 0; }
.isr-lp-section:nth-of-type(even) { background: var(--bg-warm); }
.isr-lp-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--slate);
  text-align: center;
  margin: 0 0 var(--space-xl);
  line-height: var(--lh-snug);
}
.isr-lp-section-title + .isr-lp-section-title { margin-top: calc(-1 * var(--space-md)); }
.isr-lp-lead {
  max-width: 760px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--gray);
  text-align: center;
}

/* ── Media + text ─────────────────────────────────── */
.isr-lp-mt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}
.isr-lp-mt--end .isr-lp-mt-media { order: 2; }
.isr-lp-mt-img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
.isr-lp-mt-text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--slate);
  margin: 0 0 var(--space-md);
}
.isr-lp-mt-text p { font-size: var(--text-base); line-height: var(--lh-body); color: var(--gray); margin: 0; }

/* ── Feature cards ────────────────────────────────── */
.isr-lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
/* Explicit desktop column counts (ACF field "מספר עמודות בדסקטופ") */
.isr-lp-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.isr-lp-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.isr-lp-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
.isr-lp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}
.isr-lp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.isr-lp-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  height: auto;
}
.isr-lp-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--slate);
  margin: var(--space-md) var(--space-lg) var(--space-xs);
}
.isr-lp-card p {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--gray);
  margin: 0 var(--space-lg) var(--space-lg);
}

/* ── CTA banner ───────────────────────────────────── */
.isr-lp-cta { padding: clamp(40px, 5vw, 64px) 0; text-align: center; }
.isr-lp-cta--slate { background: var(--slate); }
.isr-lp-cta--mint  { background: var(--mint); }
.isr-lp-cta--white { background: var(--white); border-block: 1px solid var(--border); }
.isr-lp-cta-inner { max-width: 680px; }
.isr-lp-cta h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-extrabold);
  margin: 0 0 var(--space-sm);
}
.isr-lp-cta p { font-size: var(--text-base); margin: 0 0 var(--space-lg); }
.isr-lp-cta--slate h2 { color: var(--white); }
.isr-lp-cta--slate p  { color: rgba(255,255,255,.8); }
.isr-lp-cta--mint h2  { color: var(--slate); }
.isr-lp-cta--mint p   { color: var(--mint-dark); }
.isr-lp-cta--white h2 { color: var(--slate); }
.isr-lp-cta--white p  { color: var(--gray); }

/* ── FAQ ──────────────────────────────────────────── */
.isr-lp-faq-list { max-width: 860px; margin: 0 auto; }
.isr-lp-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-default);
}
.isr-lp-faq-item[open] { border-color: var(--cyan); }
.isr-lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
}
.isr-lp-faq-q::-webkit-details-marker { display: none; }
.isr-lp-faq-q h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--slate);
  margin: 0;
}
.isr-lp-faq-q::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--gray-muted);
  transition: transform var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default);
}
.isr-lp-faq-item[open] .isr-lp-faq-q::after { transform: rotate(45deg); color: var(--cyan); }
.isr-lp-faq-a { padding: 0 var(--space-lg) var(--space-md); }
.isr-lp-faq-a p {
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--gray);
  margin: 0;
}
.isr-lp-faq-a a { color: var(--cyan-text); }

/* ── Content table ────────────────────────────────── */
.isr-lp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}
.isr-lp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.isr-lp-table th,
.isr-lp-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: right;
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  border-bottom: 1px solid var(--border);
}
.isr-lp-table th { background: var(--bg-warm); font-weight: var(--fw-semibold); color: var(--slate); }
.isr-lp-table td { color: var(--gray); }
.isr-lp-table tbody tr:last-child td { border-bottom: none; }
.isr-lp-badge { display: block; margin: 0 auto; height: auto; max-width: 160px; }

/* ── Tablet: 3/4-col grids drop to 2 (must precede the 768 rule below) ── */
@media (max-width: 900px) {
  .isr-lp-cards--cols-3,
  .isr-lp-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {
  .isr-lp-cards,
  .isr-lp-cards--cols-2,
  .isr-lp-cards--cols-3,
  .isr-lp-cards--cols-4 { grid-template-columns: 1fr; }
  .isr-lp-mt-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .isr-lp-mt-media { order: -1 !important; }
}
@media (max-width: 480px) {
  .isr-lp-actions { flex-direction: column; width: 100%; }
  .isr-lp-actions .isr-btn { width: 100%; text-align: center; }
}
