/* ==========================================================================
   UNIFIED SITE FOOTER (css/footer.css)
   Parchment Aesthetic & Theme Swatch Compatibility
   ========================================================================== */

.site-footer {
  width: 100%;
  background: var(--ui-surface);
  border-top: 1px solid var(--ui-line);
  color: var(--ui-ink);
  margin-top: 4rem;
  box-sizing: border-box;
  font-family: var(--font-ui, sans-serif);
  border-top: 5px solid #c99c3d;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 6rem 2.25rem 10rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  box-sizing: border-box;
}

/* Brand Column */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ui-ink);
}

.footer-brand-logo .brand-logo-icon img {
  height: 170px;
  width: auto;
  display: block;
}

.footer-brand-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ui-ink);
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ui-muted);
  margin: 0;
}

.footer-cta-wrap {
  margin-top: 6px;
}

.footer-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 140ms ease;
}

/* Nav Columns */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col-heading {
  font-family: var(--font-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ui-accent-strong);
  margin: 0 0 14px 0;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-family: var(--font-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ui-muted);
  text-decoration: none;
  transition: color 130ms ease, transform 130ms ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--ui-accent);
  transform: translateX(2px);
}

/* Sub-strip */
.footer-substrip {
  border-top: 1px solid var(--ui-line);
  background: var(--ui-surface-2);
  padding: 14px 1.5rem;
  box-sizing: border-box;
}

.footer-substrip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ui-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive / Mobile Optimization
   ========================================================================== */

/* Tablets & Small Laptops */
@media (max-width: 820px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2.5rem 1.5rem; /* Resets the unbalanced desktop 10rem/6rem padding */
    text-align: center;
  }

  .footer-col-brand {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-brand-logo {
    justify-content: center;
  }

  .footer-brand-logo .brand-logo-icon img {
    height: 140px; /* Scaled down slightly to fit smaller screens better */
    margin: 0 auto;
  }

  .footer-nav-grid {
    text-align: center;
  }

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

  .footer-link-list {
    align-items: center;
  }
}

/* Mobile Phones */
@media (max-width: 580px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-logo .brand-logo-icon img {
    height: 120px;
  }

  /* Vertical hover animation instead of horizontal shift for centered lists */
  .footer-link:hover {
    transform: translateY(-2px);
  }
}