/* ==============================================================
   site-footer-v3.css - shared footer (Infinite Atom 3.0)
   Markup is generated by site-footer-v3.js.
   Layout: brand block + 4 link columns + legal row.
   ============================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  --footer-chat-clearance: 0px;
  border-top: 1px solid var(--border, rgba(44, 224, 199, 0.14));
  background:
    linear-gradient(180deg, rgba(9, 14, 26, 0.99), rgba(6, 10, 19, 0.995)),
    radial-gradient(circle at top left, rgba(44, 224, 199, 0.06), transparent 36%);
  color: var(--text, #C6D2E2);
}

.site-footer--admin {
  border-top-color: rgba(255, 160, 92, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 14, 10, 0.99), rgba(13, 9, 7, 0.995)),
    radial-gradient(circle at top left, rgba(255, 160, 92, 0.08), transparent 36%);
}

.site-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.25rem calc(2rem + var(--footer-chat-clearance)) 1.75rem 2rem;
}

@media (min-width: 981px) {
  .has-cosmo-site-chat .site-footer {
    --footer-chat-clearance: clamp(12rem, 20vw, 16rem);
  }
}

.site-footer__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2, #FFA05C);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2.6fr);
  gap: 2.5rem 3.5rem;
  padding-bottom: 2.25rem;
}

.site-footer__brandblock {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.site-footer__brandmark {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
}

.site-footer__brandmark img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(44, 224, 199, 0.7)) drop-shadow(0 0 8px rgba(44, 224, 199, 0.2));
  opacity: 0.95;
}

.site-footer--admin .site-footer__brandmark img {
  filter: drop-shadow(0 0 1px rgba(255, 160, 92, 0.7)) drop-shadow(0 0 6px rgba(255, 160, 92, 0.2));
}

.site-footer__brandcopy {
  display: grid;
  gap: 0.4rem;
}

.site-footer__brandcopy p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-dim, #93A1B5);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-content: start;
  width: 100%;
}

.site-footer__column h3 {
  margin: 0 0 0.85rem;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-strong, #F4F8FF);
}

.site-footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer__column a,
.site-footer__social a,
.site-footer__legal a {
  color: var(--text-dim, #93A1B5);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.site-footer__column a:hover,
.site-footer__social a:hover,
.site-footer__legal a:hover {
  color: var(--accent, #2CE0C7);
}

.site-footer--admin .site-footer__column a:hover,
.site-footer--admin .site-footer__social a:hover,
.site-footer--admin .site-footer__legal a:hover {
  color: var(--accent2, #FFA05C);
}

.site-footer__column a:focus-visible,
.site-footer__legal a:focus-visible,
.site-footer__brandmark:focus-visible {
  outline: 2px solid var(--accent, #2CE0C7);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
}

.site-footer__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.4rem;
  width: 100%;
}

.site-footer__copyright {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim, #93A1B5);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.15rem;
  width: 100%;
}

.site-footer__legal a {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .site-footer__inner {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
  }

  .site-footer__legal {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }

  .site-footer__brandmark img {
    height: 38px;
  }

  .site-footer__column h3 {
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    padding: 2rem 1rem 1.25rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 0.6rem;
  }

  .site-footer__copyright,
  .site-footer__column a,
  .site-footer__legal a {
    font-size: 0.8rem;
  }
}
