/* ==========================================================================
   Footer Component - Eazy Communications (Universal & Reusable)
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: var(--color-black);
  color: var(--color-white-60);
  padding: 100px var(--section-px) 50px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Footer Top Row: Brand & About Blurb */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-white-15);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 136px;
  height: 64px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.social-icon-btn img {
  width: 18px;
  height: 18px;
}

.footer-top-text {
  font-family: var(--font-meta);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white-60);
  text-align: right;
  max-width: 536px;
}

/* Footer Middle: Navigation Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: 170px 305px 170px 170px;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
}

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

.footer-col-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 0 16px;
  min-height: 48px;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white-60);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

/* Footer Bottom: Copyright & Legal */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 157px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-white-15);
  padding: 20px 0;
  min-height: 62px;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white-60);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

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

.footer-legal-link {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  color: var(--color-white-60);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-white);
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white-60);
  opacity: 0.6;
  letter-spacing: 0.02em;
  width: 100%;
}

/* Responsive Footer */
@media (max-width: 1200px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
  }
  .footer-bottom-row {
    gap: 30px;
    justify-content: space-between;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    padding: 70px 40px 40px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-top-text {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 20px 30px;
  }

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

  .footer-col-title {
    min-height: auto;
    padding-bottom: 8px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid var(--color-white-15);
    padding-top: 24px;
  }

  .footer-bottom-row {
    display: contents;
  }

  .footer-legal-links {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-link {
    font-size: 14px;
    white-space: normal;
  }

  .footer-disclaimer {
    order: 2;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
  }

  /* Copyright positioned at the very bottom and center aligned on mobile */
  .footer-copyright {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    margin: 10px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 16px 24px;
  }

  .footer-copyright {
    font-size: 12px;
    padding-top: 16px;
  }

  .footer-legal-link {
    font-size: 13px;
  }

  .footer-disclaimer {
    font-size: 12px;
  }
}
