/* ═══════════════════ FOOTER MAIN ═══════════════════ */
.site-footer {
  background: #0b0f1c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(124, 58, 237, 0.5), transparent);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 18px;
}

/* ═══════════════════ FOOTER TOP ═══════════════════ */
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: start;
}

/* ─── Column 1: Brand ─── */
.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-brand .footer-logo {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 12px;
}

/* ─── Trust Badges ─── */
.trust-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.trust-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.02em;
}

.trust-badge:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

/* ─── Social Icons ─── */
.footer-social {
  display: flex;
  gap: 7px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.48);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(79, 70, 229, 0.22);
  border-color: rgba(79, 70, 229, 0.42);
  color: #818cf8;
  transform: translateY(-2px);
}

/* ─── Column 2: Tools ─── */
.footer-col-tools {
  padding-top: 6px; /* Tools heading niche */
}

.footer-col-tools h4 {
  margin-bottom: 16px; /* Extra space below heading */
  color: #60a5fa !important; /* Tools - Blue */
}

.footer-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.footer-tools-cat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 3px;
}

.footer-tools-cat a {
  font-size: 0.75rem !important;
  margin-bottom: 2px !important;
}

.footer-view-all {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #818cf8 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.footer-view-all:hover {
  color: #a5b4fc !important;
  transform: translateX(4px) !important;
}

.footer-view-all::after {
  content: '→';
  transition: transform 0.2s ease;
}

.footer-view-all:hover::after {
  transform: translateX(3px);
}

/* ─── Column 3 & 4: Company & Legal ─── */
.footer-col {
  padding-top: 6px; /* Sabhi columns ko same top padding */
  display: flex;
  flex-direction: column;
}

/* ─── HEADING COLOURS (Professional) ─── */
.footer-col-company h4 { 
  color: #94a3b8 !important; /* Company - Slate Gray */
}

.footer-col-company {
  margin-left: 60px;
}

.footer-col-legal h4 { 
  color: #64748b !important; /* Legal - Dark Slate */
}

/* ─── Common Heading Style ─── */
.footer-col h4,
.footer-col-tools h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px; /* Extra space below heading */
}

.footer-col a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.44);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-col a:hover {
  color: #818cf8;
  transform: translateX(3px);
}

/* ═══════════════════ NEWSLETTER ═══════════════════ */
.footer-newsletter {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.newsletter-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-icon {
  font-size: 1.4rem;
}

.newsletter-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.newsletter-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  width: 200px;
  transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.newsletter-form button {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* ═══════════════════ FOOTER BOTTOM ═══════════════════ */
.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.5;
  margin: 0;
}

.footer-made {
  font-size: 0.65rem !important;
  opacity: 0.65;
}

.footer-heart {
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  56% { transform: scale(1); }
}

/* ═══════════════════ BACK TO TOP ═══════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #4f46e5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.48);
}

/* ═══════════════════ WHATSAPP ═══════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 72px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.40);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 899;
}

.whatsapp-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.whatsapp-btn:hover {
  background: #20ba5a;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  transform: scale(1.10);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  background: #0b0f1c;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #0b0f1c;
  border-right: none;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-btn.visible::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: whatsapp-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ═══════════════════ COOKIE BANNER ═══════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  width: min(760px, calc(100% - 32px));
  background: #0b0f1c;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 9998;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner.hide {
  transform: translateX(-50%) translateY(140px);
  opacity: 0;
  pointer-events: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: cookiebounce 2.5s ease-in-out infinite;
}

@keyframes cookiebounce {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.cookie-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
  margin: 0;
}

.cookie-desc strong {
  color: rgba(255, 255, 255, 0.75);
}

.cookie-desc a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

.cookie-desc a:hover {
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn-decline {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.cookie-btn-accept {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
  }
  .footer-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-company {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .footer-newsletter {
    padding: 14px 16px;
  }
  .newsletter-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-form input {
    flex: 1;
    width: auto;
  }
  .newsletter-form button {
    flex-shrink: 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    padding: 28px 16px 14px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-logo-img {
    height: 70px;
  }
  .footer-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-badges {
    gap: 6px;
  }
  .trust-badge {
    font-size: 0.50rem;
    padding: 2px 8px;
  }
  .back-to-top {
    bottom: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
  }
  .whatsapp-btn {
    width: 42px;
    height: 42px;
    bottom: 68px;
    right: 14px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  .cookie-banner {
    bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-btns {
    width: 100%;
  }
  .cookie-btn-decline,
  .cookie-btn-accept {
    flex: 1;
    text-align: center;
  }
  .footer-col-company {
    margin-left: 0 !important;
  }
}

@media (max-width: 400px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}