/**
 * Digivayu Theme - Footer Stylesheet
 *
 * Dark footer with 4-column layout, branding, quick links,
 * social media icons, and legal/copyright bottom bar.
 *
 * @package Digivayu
 * @version 1.0.0
 */

/* ==========================================================================
   Main Footer Wrapper (Deep Blueberry Navy)
   ========================================================================== */
.site-footer {
  background-color: #010A38;
  color: rgba(246, 241, 233, 0.75);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

/* Subtle top gradient accent line */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #02115E, transparent);
  opacity: 0.8;
}

/* ==========================================================================
   Footer Grid Layout
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

/* ==========================================================================
   Column 1: Brand & Bio
   ========================================================================== */
.footer-brand .site-title,
.footer-logo-text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo-link,
.footer-brand .custom-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-link img,
.dv-footer-logo-img {
  height: 56px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Column Headings & Links
   ========================================================================== */
.footer-heading {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: rgba(246, 241, 233, 0.7);
  display: inline-block;
  padding: 4px 0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* ==========================================================================
   Social Media Icons
   ========================================================================== */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 174, 232, 0.3);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
  transition: fill var(--transition);
}

/* ==========================================================================
   Footer Bottom & Legal
   ========================================================================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  margin-top: 60px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--color-blue);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-social {
    justify-content: center;
  }

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

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