/**
 * REATS · Community Hub (/community)
 * Mobile-first · RTL · Premium conversion layout
 */

.ch-page {
  --ch-pad: clamp(14px, 4vw, 28px);
  --ch-radius: clamp(16px, 3vw, 22px);
  --ch-ink: #0c3c1e;
  --ch-muted: #3d5c45;
  --ch-accent: #1a5c32;
  --ch-wa: #25d366;
  --ch-site-width: 95%;
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* Hero */
.ch-hero {
  position: relative;
  min-height: clamp(420px, 72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 clamp(20px, 4vw, 32px);
  width: 100%;
}

.ch-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #1a4d35;
}

.ch-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(217, 232, 154, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.ch-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 6vw, 56px) var(--ch-pad) clamp(36px, 7vw, 64px);
  color: #fff;
  box-sizing: border-box;
}

.ch-hero__crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  color: rgba(255, 255, 255, 0.92);
}

.ch-hero__crumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.ch-hero__kicker {
  margin: 0 0 10px;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.ch-hero__title {
  margin: 0 0 clamp(12px, 2.5vw, 18px);
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.ch-hero__lead {
  margin: 0 0 clamp(20px, 4vw, 28px);
  max-width: 38em;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.ch-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.ch-btn {
  min-height: 48px;
  justify-content: center;
  white-space: normal;
  line-height: 1.3;
}

.ch-btn--ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
}

.ch-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

@media (min-width: 560px) {
  .ch-hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.ch-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2.5vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-hero__stats li {
  padding: clamp(12px, 2.5vw, 16px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  text-align: center;
}

.ch-hero__stats strong {
  display: block;
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.ch-hero__stats span {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  opacity: 0.9;
}

@media (max-width: 400px) {
  .ch-hero__stats {
    grid-template-columns: 1fr;
  }
}

/* מתחת ל-Hero בלבד — 95% כמו שאר האתר */
.ch-body {
  width: var(--ch-site-width);
  max-width: min(1216px, 95%);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px) var(--ch-pad) clamp(40px, 6vw, 72px);
  box-sizing: border-box;
}

.ch-section {
  margin-bottom: clamp(40px, 7vw, 64px);
}

.ch-section__head {
  margin-bottom: clamp(20px, 4vw, 28px);
  max-width: 36em;
}

.ch-section__head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  color: var(--ch-ink);
  line-height: 1.2;
}

.ch-section__head p {
  margin: 0;
  color: var(--ch-muted);
  line-height: 1.55;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.ch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(26, 92, 50, 0.1);
  color: var(--ch-accent);
  border: 1px solid rgba(26, 92, 50, 0.15);
}

.ch-pill--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #128c3e;
  border-color: rgba(37, 211, 102, 0.25);
}

/* Platform cards */
.ch-platform-grid {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

@media (min-width: 720px) {
  .ch-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ch-platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: var(--ch-radius);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background: var(--ch-platform-bg, linear-gradient(135deg, #2f7d4f, #0c3c1e));
  box-shadow: 0 12px 40px rgba(12, 60, 30, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ch-platform-card__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.ch-platform-card__icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.ch-platform-card__icon svg {
  width: 28px;
  height: 28px;
}

.ch-platform-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch-platform-card__count {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.92;
}

.ch-platform-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  color: #fff;
}

.ch-platform-card p {
  margin: 0;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  line-height: 1.5;
  opacity: 0.94;
  flex: 1;
}

.ch-platform-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .ch-platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(12, 60, 30, 0.28);
  }
}

.ch-platform-card--featured {
  min-height: 300px;
}

@media (min-width: 900px) {
  .ch-platform-card--featured {
    grid-row: span 1;
  }
}

/* WhatsApp */
.ch-section__head--whatsapp {
  max-width: 42em;
}

.ch-whatsapp {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--ch-radius);
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.08) 0%, rgba(236, 244, 221, 0.5) 100%);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.ch-wa-grid {
  display: grid;
  gap: clamp(12px, 2.5vw, 16px);
}

@media (min-width: 600px) {
  .ch-wa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ch-wa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ch-wa-grid .ch-wa-card:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

.ch-wa-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: start;
  padding: clamp(14px, 3vw, 18px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(12, 60, 30, 0.1);
  text-decoration: none;
  color: var(--ch-ink);
  box-shadow: 0 4px 16px rgba(11, 48, 26, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ch-wa-card__icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  color: var(--ch-wa);
}

.ch-wa-card__icon svg {
  width: 24px;
  height: 24px;
}

.ch-wa-card__text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.ch-wa-card__text span {
  display: block;
  font-size: 0.88rem;
  color: var(--ch-muted);
  line-height: 1.45;
  margin-top: 4px;
}

.ch-wa-card__cta {
  grid-column: 2;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ch-wa);
}

@media (hover: hover) {
  .ch-wa-card:hover {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.12);
    transform: translateY(-2px);
  }
}

/* Newsletter */
.ch-newsletter__shell {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--ch-radius);
  background: linear-gradient(145deg, #0c3c1e 0%, #1a5c32 55%, #2f7d4f 100%);
  color: #fff;
  box-shadow: 0 16px 48px rgba(12, 60, 30, 0.2);
}

@media (min-width: 768px) {
  .ch-newsletter__shell {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.ch-newsletter__copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: #fff !important;
  line-height: 1.25;
}

.ch-newsletter__copy p {
  margin: 0 0 16px;
  line-height: 1.55;
  opacity: 0.94;
}

.ch-newsletter__trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.88rem;
  opacity: 0.9;
}

.ch-newsletter__form-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
}

.ch-newsletter__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.ch-newsletter__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ch-newsletter__row input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  color: var(--ch-ink);
  box-sizing: border-box;
}

.ch-newsletter__row .btn {
  min-height: 48px;
  width: 100%;
}

@media (min-width: 480px) {
  .ch-newsletter__row {
    flex-direction: row;
  }

  .ch-newsletter__row input {
    flex: 1;
    min-width: 0;
  }

  .ch-newsletter__row .btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.ch-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.ch-flash {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.ch-flash--ok {
  background: rgba(255, 255, 255, 0.2);
}

.ch-flash--err {
  background: rgba(220, 60, 60, 0.25);
}

/* Benefits */
.ch-benefits-grid {
  display: grid;
  gap: clamp(14px, 3vw, 18px);
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .ch-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ch-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ch-benefit-card {
  padding: clamp(18px, 3.5vw, 22px);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(12, 60, 30, 0.1);
  box-shadow: 0 4px 20px rgba(11, 48, 26, 0.05);
}

.ch-benefit-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(26, 92, 50, 0.1);
  color: var(--ch-accent);
  margin-bottom: 12px;
}

.ch-benefit-card__icon svg {
  width: 22px;
  height: 22px;
}

.ch-benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ch-ink);
}

.ch-benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ch-muted);
  line-height: 1.5;
}

/* Testimonials */
.ch-voices-track {
  display: flex;
  gap: clamp(14px, 3vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.ch-voice-card {
  flex: 0 0 min(300px, 88vw);
  scroll-snap-align: start;
  margin: 0;
  padding: clamp(20px, 4vw, 26px);
  border-radius: var(--ch-radius);
  background: #fff;
  border: 1px solid rgba(12, 60, 30, 0.1);
  box-shadow: 0 8px 28px rgba(11, 48, 26, 0.08);
}

.ch-voice-card p {
  margin: 0 0 14px;
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  line-height: 1.55;
  color: var(--ch-ink);
}

.ch-voice-card footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ch-muted);
}

@media (min-width: 900px) {
  .ch-voices-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }

  .ch-voice-card {
    flex: none;
    width: auto;
  }
}

/* Supplier strip */
.ch-supplier {
  margin-bottom: clamp(32px, 5vw, 48px);
  padding-inline: 0;
}

.ch-supplier .supplier-hub-card {
  margin-inline: 0;
}

/* FAQ */
.ch-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ch-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(12, 60, 30, 0.12);
  background: #fff;
  overflow: hidden;
}

.ch-faq-item summary {
  padding: clamp(14px, 3vw, 18px) clamp(16px, 3.5vw, 20px);
  font-weight: 700;
  color: var(--ch-ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ch-faq-item summary::-webkit-details-marker {
  display: none;
}

.ch-faq-item summary::after {
  content: '+';
  margin-inline-start: auto;
  font-size: 1.2rem;
  color: var(--ch-accent);
  font-weight: 400;
}

.ch-faq-item[open] summary::after {
  content: '−';
}

.ch-faq-item p {
  margin: 0;
  padding: 0 clamp(16px, 3.5vw, 20px) clamp(16px, 3vw, 20px);
  color: var(--ch-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Bottom CTA */
.ch-bottom-cta__shell {
  text-align: center;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px);
  border-radius: var(--ch-radius);
  background: linear-gradient(135deg, rgba(236, 244, 221, 0.9) 0%, rgba(143, 183, 163, 0.35) 100%);
  border: 1px solid rgba(12, 60, 30, 0.12);
}

.ch-bottom-cta__shell h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--ch-ink);
}

.ch-bottom-cta__shell p {
  margin: 0 0 22px;
  max-width: 32em;
  margin-inline: auto;
  color: var(--ch-muted);
  line-height: 1.55;
}

.ch-bottom-cta__shell .btn {
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .ch-platform-card,
  .ch-wa-card {
    transition: none;
  }
}
