/* ==========================================================================
   Footer — Full (Desktop) / Accordion (Mobile), per Wireframe v4 §1
   ========================================================================== */

.site-footer {
  background: var(--color-navy-900);
  color: rgba(255,255,255,0.72);
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); }
}

.site-footer__brand { color: var(--color-white); }
.site-footer__brand .site-header__logo { color: var(--color-white); margin-bottom: var(--space-3); }
.site-footer__tagline { font-size: var(--fs-ui); max-width: 32ch; }

.site-footer h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin-bottom: var(--space-3);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: rgba(255,255,255,0.72); font-size: var(--fs-ui); }
.site-footer a:hover { color: var(--color-white); }

.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-size: var(--fs-meta);
  font-family: var(--font-mono);
}
.site-footer__legal a { color: rgba(255,255,255,0.55); }

/* --- Minimal variant: Landing Pages --- */
.site-footer--minimal {
  padding-block: var(--space-5);
  margin-top: var(--space-6);
}
.site-footer--minimal .site-footer__legal {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  justify-content: center;
}

/* --- LP Sticky mobile CTA — always-visible reminder to return to the form --- */
.lp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-fab);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 16px rgba(11,30,61,0.08);
}
@media (max-width: 899px) {
  .lp-sticky-cta { display: block; }
  body.has-lp-sticky-cta { padding-bottom: 76px; } /* avoid content hidden behind the bar */
}

/* --- Mobile: collapse footer nav groups into accordions --- */
@media (max-width: 767px) {
  .footer-group[data-collapsible] > h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-3) 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 0;
  }
  .footer-group[data-collapsible] ul { display: none; padding-bottom: var(--space-3); }
  .footer-group[data-collapsible].is-open ul { display: block; }
  .footer-group[data-collapsible] .chevron { transition: transform var(--duration-fast) var(--ease-standard); }
  .footer-group[data-collapsible].is-open .chevron { transform: rotate(180deg); }
}

/* --- WhatsApp floating button, v3 §24 / v5 §5 --- */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4); /* בצד שמאל כדי לא להתנגש עם CTA-ים בצד ימין ב-RTL */
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fab);
  animation: fab-pulse 600ms var(--ease-standard) 1s 1;
}
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
