/**
 * ANREXHUB Corporate Website
 * footer.css - Complete Footer Styling (Matches includes/footer.php 100%)
 * 
 * Features:
 * - High-contrast crisp typography (Headings in #FFFFFF, body text in #CBD5E1/#94A3B8)
 * - Brand accent blue underline on headings (.footer-heading::after)
 * - 4-Column responsive grid layout (Brand, Quick Links, Services, Contact Info)
 * - Interactive link hover animations with directional arrow shifts
 * - Contact info items with illuminated icon badges and highlighted links
 * - Configured social media row with brand-colored hover transitions
 * - Bottom copyright and legal navigation bar (Privacy, Terms, Disclaimer)
 * - Smooth animated floating Back-to-Top button (.back-to-top.is-visible)
 * - Fully mobile responsive (< 992px, < 768px, < 640px, < 480px)
 */

/* ==========================================================================
   1. SITE FOOTER WRAPPER & BACKGROUND
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0A1C2E 0%, #061122 100%);
  color: #CBD5E1;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-blue, #1677FF);
  width: 100%;
}

/* Subtle ambient radial glow in background */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(22, 119, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.footer-main {
  padding: 70px 0 50px;
  position: relative;
  z-index: 2;
}

.footer-container {
  width: 100%;
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 20px);
  box-sizing: border-box;
}

/* ==========================================================================
   2. FOOTER MAIN GRID (4 COLUMNS)
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  position: relative;
  z-index: 2;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   3. COLUMN 1: BRAND INFO & BADGES
   ========================================================================== */
.footer-brand-col {
  padding-right: 15px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  line-height: 1;
}

.footer-logo-img {
  height: 42px;
  max-height: 46px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logo:hover .footer-logo-img {
  opacity: 0.95;
  transform: scale(1.02);
}

.footer-desc {
  color: #94A3B8;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 20px 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 119, 255, 0.12);
  border: 1px solid rgba(22, 119, 255, 0.32);
  border-radius: var(--radius-pill, 50px);
  padding: 5px 14px;
  font-size: 0.8rem;
  color: #85B8FF;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-badge i {
  color: #1677FF;
  font-size: 0.88rem;
}

/* ==========================================================================
   4. FOOTER HEADINGS (FIXES INVISIBLE TEXT ISSUE: BRIGHT WHITE #FFFFFF)
   ========================================================================== */
.site-footer h3.footer-heading,
.site-footer .footer-heading,
.footer-heading {
  color: #FFFFFF !important; /* Pure crisp bright white - fully visible on dark navy */
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 22px 0;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: -0.2px;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Underline accent line with blue glow */
.site-footer h3.footer-heading::after,
.site-footer .footer-heading::after,
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #1677FF 0%, #69B1FF 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(22, 119, 255, 0.6);
}

/* ==========================================================================
   5. COLUMN 2 & 3: QUICK LINKS & SERVICES LIST
   ========================================================================== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-link {
  color: #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.22s ease-in-out;
  width: fit-content;
  line-height: 1.4;
}

.footer-link i.fa-angle-right {
  font-size: 0.8rem;
  color: var(--color-blue, #1677FF);
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-link .footer-ext-icon {
  font-size: 0.72rem;
  color: #64748B;
  margin-left: 3px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(5px);
}

.footer-link:hover i.fa-angle-right {
  color: #69B1FF;
  transform: translateX(3px);
}

.footer-link:hover .footer-ext-icon {
  color: #85B8FF;
}

/* Special connector highlight */
.footer-link.highlight {
  color: #F5BA31;
  font-weight: 700;
}

.footer-link.highlight i.fa-angle-right {
  color: #F5BA31;
}

.footer-link.highlight:hover {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(245, 186, 49, 0.5);
}

.footer-link.footer-login-link {
  color: #85B8FF;
  font-weight: 600;
}

.footer-link.footer-login-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   6. COLUMN 4: CONTACT INFO LIST
   ========================================================================== */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.footer-contact-item .contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(22, 119, 255, 0.14);
  border: 1px solid rgba(22, 119, 255, 0.32);
  color: #85B8FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.22s ease;
}

.footer-contact-item:hover .contact-icon {
  background: #1677FF;
  border-color: #1677FF;
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.45);
}

.footer-contact-item .contact-icon.wa-icon {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.38);
  color: #25D366;
}

.footer-contact-item:hover .contact-icon.wa-icon {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.contact-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #85B8FF;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

.contact-value {
  color: #E2E8F0;
  font-size: 0.92rem;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}

.contact-value.link-highlight {
  color: #E2E8F0;
  transition: color 0.2s ease;
}

.contact-value.link-highlight:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.contact-value.wa-link {
  color: #25D366;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-value.wa-link:hover {
  color: #20BA5A;
  text-decoration: underline;
}

/* ==========================================================================
   7. SOCIAL MEDIA ROW (CONFIGURED PLATFORMS)
   ========================================================================== */
.footer-social-section {
  margin-top: 45px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.footer-social-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.2px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.footer-social-link:hover {
  transform: translateY(-3px) scale(1.08);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.footer-social-link.social-facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
}

.footer-social-link.social-twitter:hover,
.footer-social-link.social-x:hover {
  background-color: #000000;
  border-color: #4A5568;
}

.footer-social-link.social-linkedin:hover {
  background-color: #0A66C2;
  border-color: #0A66C2;
}

.footer-social-link.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
}

.footer-social-link.social-youtube:hover {
  background-color: #FF0000;
  border-color: #FF0000;
}

.footer-social-link.social-whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
}

/* ==========================================================================
   8. FOOTER BOTTOM BAR: COPYRIGHT & LEGAL LINKS
   ========================================================================== */
.footer-bottom {
  background-color: #050E1A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copyright {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.footer-copyright p {
  margin: 0;
}

.footer-copyright strong {
  color: #FFFFFF;
  font-weight: 600;
}

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

.footer-legal-link {
  color: #94A3B8;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-legal-links .divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  user-select: none;
}

/* ==========================================================================
   9. FLOATING BACK-TO-TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-blue, #1677FF);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  outline: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--color-blue-hover, #0E5ECC);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (DESKTOP -> TABLET -> MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .footer-main {
    padding: 55px 0 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
  }

  .footer-brand-col {
    padding-right: 0;
  }

  .footer-social-section {
    margin-top: 35px;
    padding-top: 22px;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 0;
  }

  .footer-main {
    padding: 42px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer h3.footer-heading,
  .footer-heading {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .footer-bottom {
    padding: 18px 0;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .footer-link {
    font-size: 0.9rem;
  }

  .contact-value {
    font-size: 0.88rem;
  }

  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .footer-copyright {
    font-size: 0.82rem;
  }

  .footer-legal-link {
    font-size: 0.82rem;
  }
}