/* ==============================================================================
   G TECH SOLUTIONS — SHARED SITE FOOTER
   One stylesheet + js/footer.js render an identical footer on every page.
   Self-contained: defines the few tokens it needs so it can drop into any page.
   ============================================================================== */

.site-footer-root {
  --brand-500: #3366f2;
  --brand-600: #1f47d6;
  --brand-950: #0a1738;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --radius-md: 10px;
}

/* Premium Footer */
footer.site-footer {
  background: var(--brand-950);
  color: #94a3b8;
  font-size: 13px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.footer-cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 20px;
}
.footer-cta-container {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-text h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.footer-cta-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.5;
}
.footer-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-footer-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-footer-gold:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  color: #fff;
}
.btn-footer-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-footer-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Main Footer Columns */
.footer-main-grid {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 50px 0 30px;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.2fr 1fr 1.15fr;
  gap: 40px;
}
@media (max-width: 1240px) {
  .footer-main-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .footer-main-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-main-grid { grid-template-columns: 1fr; }
}

.footer-brand-col .footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.footer-company-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 360px;
}
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
}
.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: var(--gold-400);
}
.footer-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  margin-top: 2px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col-title::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-link-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.client-portal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.client-portal-box p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}
.btn-portal-login {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-portal-login:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-500);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #040813;
  padding: 16px 20px;
}
.footer-bottom-container {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
}
.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: #cbd5e1;
}

/* ---------------------------- MOBILE ---------------------------- */
@media (max-width: 768px) {
  /* ========================================================= */
  /* MOBILE FOOTER ALIGNMENTS                                  */
  /* ========================================================= */
  /* Footer CTA Banner: Centered */
  .footer-cta-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 18px;
  }
  .footer-cta-text {
    text-align: center;
  }
  .footer-cta-text h3,
  .footer-cta-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-cta-buttons {
    justify-content: center;
    width: 100%;
  }

  /* Main Grid: 1 column on mobile */
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 24px;
  }

  /* Col 1 (G Tech Brand / About):
     Logo centered, everything else left-aligned */
  .footer-brand-col {
    text-align: left;
  }
  .footer-brand-col .footer-logo-wrap {
    display: table;
    margin: 0 auto 16px;
  }
  .footer-company-desc {
    text-align: left;
    max-width: 100%;
  }
  .footer-contact-list {
    text-align: left;
    align-items: flex-start;
  }
  .footer-contact-item {
    text-align: left;
    justify-content: flex-start;
  }

  /* Col 2 (मुख्य सेवाएँ), Col 3 (कंपनी), Col 4 (क्लाइंट पोर्टल):
     All contents completely centered */
  .footer-main-grid > div:not(.footer-brand-col) {
    text-align: center;
  }
  .footer-main-grid > div:not(.footer-brand-col) .footer-col-title {
    justify-content: center;
    text-align: center;
  }
  .footer-main-grid > div:not(.footer-brand-col) .footer-link-list {
    align-items: center;
    text-align: center;
  }
  .footer-main-grid > div:not(.footer-brand-col) .footer-link-list li {
    text-align: center;
  }
  .footer-main-grid > div:not(.footer-brand-col) .footer-link-list a {
    justify-content: center;
    text-align: center;
  }
  .footer-main-grid > div:not(.footer-brand-col) .footer-link-list a:hover {
    transform: none;
  }

  /* Client Portal Box & Socials centered */
  .client-portal-box {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }
  .client-portal-box p {
    text-align: center;
  }
  .btn-portal-login {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }

  /* Bottom Copyright Bar: Centered */
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Current page marker in the portal column */
.footer-link-list a.is-here {
  color: #e2e8f0;
  font-weight: 700;
}
.footer-link-list a.is-here::before {
  content: "› ";
  color: var(--gold-500, #f59e0b);
  font-weight: 700;
}
