/* ═══════════════════════════════════════════
   MODAL, FLOATING WHATSAPP & FOOTER
   ═══════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 16, 22, 0.72); backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative;
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease-out-expo);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  transition: all 0.25s ease;
}
.modal__close:hover { background: var(--clr-accent-pop); color: #fff; border-color: var(--clr-accent-pop); }
.modal__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-accent-pop); margin-bottom: 0.5rem; }
.modal__title { font-family: var(--ff-heading); font-size: 1.75rem; margin-bottom: 1rem; }
.modal__desc { color: var(--clr-text-muted); margin-bottom: 1.5rem; }
.modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.5rem;
}
.modal__meta span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clr-text-muted); }
.modal__meta strong { font-size: 0.9rem; }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  animation: whatsappPulse 2.8s infinite;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5); }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%      { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Footer */
.footer { padding: 2rem 0; border-top: 1px solid var(--clr-border); }
.footer__container { display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.85rem; color: var(--clr-text-muted); }
.footer__back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer__back-to-top svg { width: 18px; height: 18px; }
.footer__back-to-top:hover { background: var(--clr-accent-pop); border-color: var(--clr-accent-pop); color: #fff; }

@media (max-width: 768px) {
  .modal__meta { grid-template-columns: 1fr; }
}
