/* ==========================================================================
   Footer — aligned with page + navbar
   ========================================================================== */

.site-footer{
  margin-top: 96px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(17,21,27,.94),
    rgba(15,19,25,.96)
  );
}

/* Match container behavior everywhere else */
.footer-inner{
  display: grid;

  /* Brand + nav share the container width */
  grid-template-columns: 260px 1fr;

  column-gap: 48px;
  row-gap: 40px;

  align-items: start;
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */

.footer-brand{
  display: grid;
  gap: 8px;
}

.footer-name{
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.footer-tagline{
  color: var(--muted);
  font-size: .9rem;
}

.footer-copy{
  margin-top: 6px;
  font-size: .82rem;
  color: rgba(170,180,195,.7);
}

/* --------------------------------------------------------------------------
   Nav — USE WIDTH, don’t hug left
   -------------------------------------------------------------------------- */

.footer-nav{
  display: grid;

  /* Let columns breathe across container */
  grid-template-columns: repeat(5, minmax(140px, 1fr));

  column-gap: 40px;
  row-gap: 24px;

  align-items: start;
}


.footer-nav > .footer-col:nth-child(2){
  margin-left: -8px; /* adjust: -8px to -24px as needed */
}

/* 3rd column (FEATURES) right */
.footer-nav > .footer-col:nth-child(3){
  margin-left: 8px; /* tweak as needed */
}
/* Headings */
.footer-col h4{
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(200,210,225,.85);
}

/* Links */
.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-col a{
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
}

.footer-col a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* ======================================================================
   FOOTER LINK COLOR HARD WALL (protect from global <a> gold)
   ====================================================================== */

/* Brand block (logo/name/tagline link) */
.site-footer .footer-brand-link,
.site-footer .footer-brand-link:visited{
  color: var(--text) !important;   /* keep Mythogin white */
  text-decoration: none;
}

.site-footer .footer-brand-link:hover,
.site-footer .footer-brand-link:focus-visible{
  color: var(--text) !important;   /* do NOT turn gold/white swap */
  text-decoration: none;
}

/* Footer nav links stay muted/white (not global gold) */
.site-footer .footer-nav a,
.site-footer .footer-nav a:visited{
  color: var(--muted) !important;
  text-decoration: none;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible{
  color: var(--text) !important;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive — collapse LATE and cleanly
   -------------------------------------------------------------------------- */

@media (max-width: 1100px){
  .footer-nav{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
  }
}

@media (max-width: 820px){
  .footer-inner{
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .footer-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (max-width: 520px){
  .footer-nav{
    grid-template-columns: 1fr;
  }

  @media (max-width: 360px){
  .footer-inner{
    column-gap: 24px;
  }
}
}