/*
 * Footer — First Temple v2
 * 2-row layout: top(logo + purpose + social), bottom(nav + legal)
 */

.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-12) 0 var(--space-6);
}

/* ============================================
   Footer Top — Logo + Purpose + Social
   ============================================ */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-10);
  }
}

/* Footer columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col--about {
  max-width: 360px;
}

/* Logo */
.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-4);
  filter: brightness(0) invert(1);
}

/* Tagline */
.footer-tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-5);
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Footer Headings
   ============================================ */
.footer-heading {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

/* ============================================
   Footer Links
   ============================================ */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: #fff;
}

/* ============================================
   Footer Contact
   ============================================ */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.contact-label {
  display: block;
  font-family: var(--font-accent);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact a:hover {
  color: #fff;
}

/* ============================================
   Footer Bottom — nav + legal + copyright
   ============================================ */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin: 0;
  letter-spacing: var(--tracking-wide);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal li {
  margin-bottom: 0;
}

.footer-legal a {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}
