/* ── Social Links (used in footer) ── */
.social-links{display:flex;gap:8px;flex-wrap:wrap}
.social-link{width:38px;height:38px;border-radius:50%;background:var(--bg-alt);border:1.5px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text3);font-size:.78rem;font-weight:700;text-decoration:none;transition:var(--transition)}
.social-link:hover{background:var(--primary);border-color:var(--primary);color:#fff;transform:translateY(-2px)}

/* ── Footer ── */
.footer{background:var(--bg-dark);padding:64px 0 28px;border-top:1px solid rgba(255,255,255,.05)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-brand .logo{margin-bottom:14px}
.footer-brand .logo-text{color:#fff !important; font-size:1.32rem !important}
.footer-brand p{color:#64748b;font-size:.85rem;line-height:1.7;margin-bottom:20px}
.footer-col h4{font-size:.85rem;font-weight:700;color:#e2e8f0;margin-bottom:16px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.footer-col ul li,.footer-col ul a{font-size:.82rem;color:#64748b;text-decoration:none;transition:color .2s}
.footer-col ul a:hover{color:#a5b4fc}
.footer-badge{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;color:#64748b;margin-top:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:5px 12px;border-radius:99px}
.footer-badge .badge-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 6px var(--green)}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:.78rem;
  color:#475569;
  flex-wrap:wrap;
  gap:8px
}

/* ── Responsive ── */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:640px){
  .footer-grid{grid-template-columns:1fr}
}
/* ───────────────── MOBILE FOOTER FIX ───────────────── */
@media (max-width: 768px){

  .footer{
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .footer-grid{
    display:flex !important;
    flex-direction:column;
    gap:40px;
  }

  .footer-brand{
    max-width:100%;
  }

  .footer-brand img{
    height:48px;
    width:auto;
  }

  .footer-brand p{
    margin-top:22px;
    font-size:1rem;
    line-height:1.8;
  }

  .footer-social{
    margin-top:24px;
    gap:14px;
  }

  .footer-social a{
    width:48px;
    height:48px;
    font-size:1rem;
  }

  .footer-col{
    width:100%;
  }

  .footer-col h4{
    font-size:1.1rem;
    margin-bottom:18px;
  }

  .footer-col ul{
    gap:14px;
  }

  .footer-col ul li a{
    font-size:1rem;
  }

 .footer-bottom{
  margin-top:40px;
  padding-top:24px;

  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  gap:12px !important;

  text-align:left !important;
}

.footer-bottom-links{
  display:flex !important;
  align-items:center !important;
  flex-direction:row !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}

}
@media (max-width: 768px){

  .footer-logo img,
  .footer-brand img,
  .footer-brand .logo img{
    height: 70px !important;
    width: auto !important;
    object-fit: contain;
  }

}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.footer-bottom-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:#94a3b8;
  text-decoration:none;
  font-size:.85rem;
  transition:.25s ease;
}

.footer-bottom-links a:hover{
  color:#fff;
  border-color:rgba(99,102,241,.45);
  background:rgba(99,102,241,.12);
  transform:translateY(-2px);
}
.footer-bottom-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer-bottom-links button{
  background:none;
  border:none;
  color:#8a98aa;
  cursor:pointer;
  font-size:.85rem;
  padding:0;
  transition:.25s ease;
}
.footer-bottom-links button:hover{
  color:#807c7c;
}

.footer-dialog{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9999;
  align-items:center;
  justify-content:center;
}

.footer-dialog.active{
  display:flex;
}

.footer-dialog-box{
  width:90%;
  max-width:420px;
  background:#fff;
  color:#111827;
  border-radius:18px;
  padding:28px;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}

.footer-dialog-box h3{
  margin-bottom:12px;
  color:#111827;
}

.footer-dialog-box p{
  color:#4b5563;
}

.footer-dialog-close{
  position:absolute;
  top:12px;
  right:14px;
  border:none;
  background:none;
  font-size:28px;
  cursor:pointer;
}
.footer-dialog-box{
  max-height:80vh;
  overflow-y:auto;
}
#footerDialogText{
  white-space:pre-line;
  line-height:1.8;
}
.footer-bottom-links button{
  appearance:none !important;
  -webkit-appearance:none !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  color:#8a98aa !important;
  cursor:pointer;
  font-size:.85rem;
  font-family:inherit;
  padding:0 !important;
}

.footer-bottom-links button:hover{
  color:#ffffff !important;
}

/* ✅ MAKE HOMEPAGE FOOTER SAME AS GLOBAL FOOTER ON MOBILE */
@media (max-width: 768px) {
  .footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .footer-bottom-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: auto !important;
  }

  .footer-bottom-links button,
  .footer-bottom-links a {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
  }
}
/* Footer dialog open near footer + lock page feel */
body.footer-dialog-open{
  overflow:hidden;
}

.footer-dialog{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(10px);
  z-index:999999;
  align-items:flex-end;
  justify-content:center;
  padding:24px;
}

.footer-dialog.active{
  display:flex;
}

.footer-dialog-box{
  width:100%;
  max-width:720px;
  max-height:72vh;
  overflow-y:auto;
  background:#ffffff;
  color:#111827;
  border-radius:24px 24px 0 0;
  padding:0;
  position:relative;
  box-shadow:0 -24px 80px rgba(0,0,0,.38);
}

.footer-dialog-box h3{
  position:sticky;
  top:0;
  background:#ffffff;
  z-index:2;
  padding:26px 34px 18px;
  margin:0;
  font-size:1.35rem;
  font-weight:800;
  color:#0f172a;
  border-bottom:1px solid #e5e7eb;
}

.footer-dialog-box p{
  padding:28px 34px 36px;
  margin:0;
  color:#475569;
  font-size:.98rem;
  line-height:1.85;
  white-space:pre-line;
}

.footer-dialog-close{
  position:sticky;
  top:18px;
  float:right;
  margin:18px 22px 0 0;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:#f1f5f9;
  color:#0f172a;
  font-size:24px;
  cursor:pointer;
  z-index:3;
  transition:.25s ease;
}

.footer-dialog-close:hover{
  background:#4f46e5;
  color:#fff;
}

.footer-dialog-box::-webkit-scrollbar{
  width:6px;
}

.footer-dialog-box::-webkit-scrollbar-track{
  margin:18px 0;
  background:transparent;
}

.footer-dialog-box::-webkit-scrollbar-thumb{
  background:#6366f1;
  border-radius:999px;
  border:2px solid transparent;
}

body.footer-dialog-open{
  overflow:hidden;
}

/* FINAL: Same WhatsApp button on all pages */
#globalWhatsappFloat,
.whatsapp-float{
  position:fixed !important;
  right:24px !important;
  bottom:24px !important;

  width:64px !important;
  height:64px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:#25D366 !important;
  border-radius:50% !important;

  border:none !important;
  outline:none !important;

  box-shadow:0 8px 25px rgba(0,0,0,.25) !important;
  z-index:2147483647 !important;

  overflow:hidden !important;
  padding:0 !important;
  margin:0 !important;

  animation:none !important;
  transform:none !important;
}

#globalWhatsappFloat::before,
#globalWhatsappFloat::after,
.whatsapp-float::before,
.whatsapp-float::after{
  display:none !important;
  content:none !important;
}

#globalWhatsappFloat img,
.whatsapp-float img{
  width:34px !important;
  height:34px !important;
  max-width:34px !important;
  max-height:34px !important;

  object-fit:contain !important;

  border:none !important;
  outline:none !important;
  box-shadow:none !important;

  animation:none !important;
  transform:none !important;
}
/* GOD++ WHATSAPP FLOAT BUTTON */
#globalWhatsappFloat,
.whatsapp-float{
  position:fixed !important;
  right:28px !important;
  bottom:28px !important;

  width:66px !important;
  height:66px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:
    radial-gradient(circle at 30% 25%, #5cff95 0%, #25D366 42%, #0fa84a 100%) !important;

  border-radius:50% !important;
  z-index:2147483647 !important;

  box-shadow:
    0 12px 34px rgba(0,0,0,.32),
    0 0 0 0 rgba(37,211,102,.55),
    inset 0 2px 8px rgba(255,255,255,.35),
    inset 0 -8px 16px rgba(0,0,0,.16) !important;

  overflow:visible !important;
  text-decoration:none !important;

  transform:none !important;
  animation: waFloat 3.2s ease-in-out infinite, waPulse 2.2s ease-out infinite !important;
}

/* Outer glowing ring */
#globalWhatsappFloat::before,
.whatsapp-float::before{
  content:"" !important;
  position:absolute !important;
  inset:-9px !important;
  border-radius:50% !important;
  background:rgba(37,211,102,.18) !important;
  border:1px solid rgba(37,211,102,.35) !important;
  z-index:-1 !important;
  animation: waRing 2.2s ease-out infinite !important;
}

/* Shine highlight */
#globalWhatsappFloat::after,
.whatsapp-float::after{
  content:"" !important;
  position:absolute !important;
  top:10px !important;
  left:14px !important;
  width:22px !important;
  height:10px !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.45) !important;
  filter:blur(2px) !important;
  transform:rotate(-25deg) !important;
  pointer-events:none !important;
}

#globalWhatsappFloat img,
.whatsapp-float img{
  width:35px !important;
  height:35px !important;
  max-width:35px !important;
  max-height:35px !important;
  object-fit:contain !important;
  z-index:2 !important;

  filter:
    drop-shadow(0 3px 5px rgba(0,0,0,.22))
    brightness(1.05) !important;

  animation: waIconShake 3.5s ease-in-out infinite !important;
}

#globalWhatsappFloat:hover,
.whatsapp-float:hover{
  animation: waHoverPulse 1.4s ease-out infinite !important;
  transform:scale(1.1) translateY(-4px) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.38),
    0 0 30px rgba(37,211,102,.55),
    inset 0 2px 8px rgba(255,255,255,.42),
    inset 0 -8px 16px rgba(0,0,0,.16) !important;
}

#globalWhatsappFloat:hover img,
.whatsapp-float:hover img{
  animation: waIconHover .75s ease-in-out infinite !important;
}

/* Animations */
@keyframes waFloat{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-7px);
  }
}

@keyframes waPulse{
  0%{
    box-shadow:
      0 12px 34px rgba(0,0,0,.32),
      0 0 0 0 rgba(37,211,102,.55),
      inset 0 2px 8px rgba(255,255,255,.35),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
  70%{
    box-shadow:
      0 12px 34px rgba(0,0,0,.32),
      0 0 0 18px rgba(37,211,102,0),
      inset 0 2px 8px rgba(255,255,255,.35),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
  100%{
    box-shadow:
      0 12px 34px rgba(0,0,0,.32),
      0 0 0 0 rgba(37,211,102,0),
      inset 0 2px 8px rgba(255,255,255,.35),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
}

@keyframes waRing{
  0%{
    transform:scale(.82);
    opacity:.85;
  }
  70%{
    transform:scale(1.38);
    opacity:0;
  }
  100%{
    transform:scale(1.38);
    opacity:0;
  }
}

@keyframes waIconShake{
  0%,78%,100%{
    transform:rotate(0deg) scale(1);
  }
  82%{
    transform:rotate(-12deg) scale(1.05);
  }
  86%{
    transform:rotate(12deg) scale(1.05);
  }
  90%{
    transform:rotate(-8deg) scale(1.03);
  }
  94%{
    transform:rotate(8deg) scale(1.03);
  }
}

@keyframes waIconHover{
  0%,100%{
    transform:rotate(0deg) scale(1);
  }
  50%{
    transform:rotate(-8deg) scale(1.08);
  }
}

@keyframes waHoverPulse{
  0%{
    box-shadow:
      0 18px 44px rgba(0,0,0,.38),
      0 0 0 0 rgba(37,211,102,.55),
      inset 0 2px 8px rgba(255,255,255,.42),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
  70%{
    box-shadow:
      0 18px 44px rgba(0,0,0,.38),
      0 0 0 20px rgba(37,211,102,0),
      inset 0 2px 8px rgba(255,255,255,.42),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
  100%{
    box-shadow:
      0 18px 44px rgba(0,0,0,.38),
      0 0 0 0 rgba(37,211,102,0),
      inset 0 2px 8px rgba(255,255,255,.42),
      inset 0 -8px 16px rgba(0,0,0,.16);
  }
}

/* Mobile adjustment */
@media(max-width:768px){
  #globalWhatsappFloat,
  .whatsapp-float{
    width:60px !important;
    height:60px !important;
    right:18px !important;
    bottom:18px !important;
  }

  #globalWhatsappFloat img,
  .whatsapp-float img{
    width:32px !important;
    height:32px !important;
  }
}

@media (max-width: 768px) {
  .footer-dialog-close,
  .modal-close,
  .dialog-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    aspect-ratio: 1 / 1 !important;
  }
}
