/* footer.css */

.td-footer {
  background: var(--td-navy);
  border-top: var(--border-thin);
  position: relative;
}

/* Blueprint grid echo — same visual language as the page grid */
.td-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--td-cream) 1px, transparent 1px),
    linear-gradient(90deg, var(--td-cream) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.04;
  pointer-events: none;
}

/* ── Main row ───────────────────────────────────────────── */

.td-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 80px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.td-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-footer__logo {
  display: block;
  align-self: flex-start;
}

.td-footer__logo img {
  height: 60px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.td-footer__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 230, 0.45);
  text-transform: uppercase;
  max-width: 280px;
  line-height: 1.5;
}

/* ── Social icons ───────────────────────────────────────── */

.td-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.td-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 240, 230, 0.15);
  color: rgba(245, 240, 230, 0.5);
  text-decoration: none;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.td-footer__social-link:hover {
  border-color: var(--td-yellow);
  color: var(--td-yellow);
}

.td-footer__social-link:focus-visible {
  outline: 2px solid var(--td-yellow);
  outline-offset: 2px;
}

.td-footer__social-link svg {
  display: block;
}

/* ── Bottom strip ───────────────────────────────────────── */

.td-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 80px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  position: relative;
}

.td-footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 230, 0.3);
}

.td-footer__legal {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  row-gap: 8px;
  justify-content: center;
}

.td-footer__legal a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 230, 0.3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms var(--ease-out);
}

.td-footer__legal a:hover {
  color: var(--td-cream);
}

.td-footer__legal a:focus-visible {
  outline: 2px solid var(--td-yellow);
  outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .td-footer__main {
    padding: 40px 20px 32px;
    flex-direction: column;
    gap: 24px;
  }

  .td-footer__bottom {
    padding: 16px 20px 20px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-footer__social-link,
  .td-footer__legal a {
    transition: none;
  }
}
