
/* =========================================================
   SRB — Final Refinement Pack
   כולל:
   1) FAQ / מתי כדאי לפנות
   2) Testimonials / המלצות
   3) Contact + Footer / צור קשר + פוטר
   לטעון אחרי style.css הראשי
   ========================================================= */

/* =========================
   1) FAQ / WHEN TO CONTACT
   ========================= */

.when-bg {
  background:
    radial-gradient(circle at top right, rgba(184,144,60,0.08) 0%, transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 30%, #f6f2eb 100%);
  position: relative;
  overflow: hidden;
}

.when-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.30) 18%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at bottom left, rgba(26,47,74,0.04) 0%, transparent 24%);
  opacity: 0.9;
}

.when-bg .wrap {
  position: relative;
  z-index: 1;
}

.when-bg .section-head {
  margin-bottom: 26px;
  max-width: 820px;
}

.when-bg .section-head h2 {
  margin-bottom: 10px;
}

.when-bg .section-head p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
  color: #55697d;
}

.when-grid {
  gap: 24px;
  align-items: stretch;
}

.when-panel {
  border-radius: 28px;
  padding: 28px 24px;
  border: 1px solid rgba(223,214,201,0.94);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,247,241,0.96) 100%);
  box-shadow:
    0 14px 34px rgba(15,30,48,0.06),
    inset 0 1px 0 rgba(255,255,255,0.88);
  min-height: 100%;
}

.when-panel.dark {
  background:
    radial-gradient(circle at top left, rgba(184,144,60,0.10) 0%, transparent 28%),
    linear-gradient(135deg, #13263d 0%, #1a2f4a 55%, #254261 100%);
  box-shadow:
    0 20px 46px rgba(15,30,48,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.when-panel h3 {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.3;
  margin-bottom: 18px;
  text-wrap: balance;
  letter-spacing: -0.3px;
}

.when-list {
  gap: 12px;
}

.when-item {
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  box-shadow: 0 6px 14px rgba(15,30,48,0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.when-panel:not(.dark) .when-item {
  background: linear-gradient(180deg, #fffdfa 0%, #f8f3eb 100%);
  border-color: rgba(223,214,201,0.88);
}

.when-panel.dark .when-item {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}

.when-item:hover {
  transform: translateY(-2px);
}

.when-panel:not(.dark) .when-item:hover {
  border-color: rgba(184,144,60,0.24);
  box-shadow: 0 10px 20px rgba(15,30,48,0.05);
}

.when-panel.dark .when-item:hover {
  transform: translateX(-4px);
  background: rgba(255,255,255,0.14);
}

.when-item-dot {
  width: 7px;
  height: 7px;
  margin-top: 9px;
  box-shadow: 0 0 0 5px rgba(184,144,60,0.12);
}

/* =========================
   2) TESTIMONIALS
   ========================= */

.testimonials-bg {
  background:
    radial-gradient(circle at top right, rgba(184,144,60,0.08) 0%, transparent 22%),
    linear-gradient(180deg, #faf8f4 0%, #f4efe7 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.26) 20%, rgba(255,255,255,0) 44%);
  opacity: 0.8;
}

.testimonials-bg .wrap {
  position: relative;
  z-index: 1;
}

.testimonials-bg .section-head {
  margin-bottom: 28px;
  max-width: 800px;
}

.testimonials-bg .section-head p {
  max-width: 720px;
  color: #55697d;
}

.midrag-highlight {
  margin-bottom: 22px;
  border-radius: 30px;
  padding: 26px 30px;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,255,255,0.08) 0%, transparent 20%),
    linear-gradient(135deg, #13263c 0%, #1b3351 58%, #27476a 100%);
  box-shadow:
    0 22px 50px rgba(15,30,48,0.14),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}

.midrag-highlight::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.midrag-highlight-inner {
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 18px 26px;
}

.midrag-badge {
  margin-bottom: 12px;
}

.midrag-highlight h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.25;
  margin-bottom: 0;
}

.midrag-link {
  min-height: 54px;
  padding: 12px 22px;
  box-shadow: 0 14px 30px rgba(15,30,48,0.16);
}

.testimonial-cards {
  gap: 18px;
  align-items: stretch;
}

.testimonial {
  border-radius: 24px;
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,248,243,0.96) 100%);
  border: 1px solid rgba(223,214,201,0.94);
  box-shadow:
    0 12px 28px rgba(15,30,48,0.05),
    inset 0 1px 0 rgba(255,255,255,0.84);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.testimonial:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(184,144,60,0.24);
  box-shadow:
    0 20px 42px rgba(15,30,48,0.08),
    0 8px 18px rgba(184,144,60,0.05);
}

.quote-mark {
  top: 16px;
  left: 16px;
  font-size: 52px;
  color: rgba(212,172,90,0.24);
}

.stars {
  margin-bottom: 12px;
}

.testimonial p {
  min-height: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #33495d;
  margin-bottom: 18px;
}

.testimonial-author {
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
  box-shadow: 0 10px 18px rgba(26,47,74,0.12);
}

.author-name {
  font-size: 14px;
}

.author-title {
  font-size: 12.5px;
}

/* =========================
   3) CONTACT + FOOTER
   ========================= */

.cta-section {
  padding-top: 8px;
  padding-bottom: 0;
}

.cta-box {
  border-radius: 30px;
  padding: 44px 44px;
  gap: 28px 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  align-items: center;
  background:
    radial-gradient(circle at 20% 50%, rgba(184,144,60,0.08) 0%, transparent 18%),
    linear-gradient(135deg, #13263d 0%, #1a2f4a 58%, #27486a 100%);
  box-shadow:
    0 24px 54px rgba(15,30,48,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -70px;
  opacity: 0.9;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.22;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta-content p {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
}

.cta-actions {
  gap: 10px;
  align-self: center;
}

.cta-actions .btn {
  min-width: 188px;
}

.cta-actions .btn-primary,
.cta-actions .btn-gold {
  background: linear-gradient(135deg, #d4ac5a, #b8903c);
  box-shadow: 0 14px 30px rgba(184,144,60,0.35);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.cta-actions .btn-primary:hover,
.cta-actions .btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(184,144,60,0.45);
}

.cta-actions .btn-outline,
.cta-actions .btn-outline-white {
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.25);
}

.cta-actions .btn-outline:hover,
.cta-actions .btn-outline-white:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

.footer {
  padding-top: 42px;
  padding-bottom: 24px;
}

.footer-grid {
  grid-template-columns: 1.45fr 0.95fr 0.95fr 1.05fr;
  gap: 28px;
  padding-bottom: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-desc {
  max-width: 40ch;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.62);
}

.footer-contact-item {
  margin-bottom: 10px;
}

.footer h2 {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.92);
}

.footer ul {
  gap: 10px;
}

.footer ul li a,
.footer-contact-item {
  font-size: 14px;
}

.footer .btn {
  min-height: 46px;
}

.footer-bottom {
  padding-top: 18px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .when-grid {
    gap: 18px;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 36px 32px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .when-bg .section-head {
    margin-bottom: 20px;
  }

  .when-panel {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .when-panel h3 {
    font-size: 24px;
  }

  .when-item {
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
    padding: 11px 14px;
  }

  .testimonials-bg .section-head {
    margin-bottom: 22px;
  }

  .midrag-highlight {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .midrag-highlight-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .midrag-highlight h3 {
    font-size: 28px;
  }

  .testimonial {
    border-radius: 20px;
    padding: 22px 18px 20px;
  }
}

@media (max-width: 640px) {
  .cta-box {
    padding: 28px 20px;
    border-radius: 22px;
    gap: 18px;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .cta-content p {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .footer {
    padding-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 22px;
  }

  .footer-desc {
    max-width: none;
  }
}
