/*
 * =========================================================
 * OLYTIC SOLUTIONS - Footer Styles
 * footer.css
 *
 * Brand spec applied:
 *   - White background (light block)
 *   - 2px Gold rule across the very top
 *   - Single compact row: logo, copyright, link row
 *   - Steel for links at rest
 *   - Teal hover state on footer links
 *
 * Requires: tokens.css, typography.css
 * =========================================================
 */

.site-footer {
  background-color: #FFFFFF;
  color: var(--color-body-steel);
  position: relative;
}

/* 2px Gold rule across the top - brand header/footer spec */
.site-footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gold);
}

/* ─── Single Row ─────────────────────────────────────────── */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-6);

  max-width: var(--max-width-xl);
  margin: 0 auto;
  padding: var(--space-6) var(--space-8);
}

/* ─── Logo ───────────────────────────────────────────────── */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo__mark {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-logo__label {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-obsidian);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: color var(--transition-fast);
}

.footer-logo:hover .footer-logo__label {
  color: var(--color-teal);
}

/* ─── Copyright ──────────────────────────────────────────── */

.footer-copy {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
  white-space: nowrap;
}

/* ─── Link Row ───────────────────────────────────────────── */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;   /* push the link group to the right edge */
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-body-steel);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-teal);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

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

@media (max-width: 900px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: var(--space-6) var(--space-5);
  }

  .footer-links {
    gap: var(--space-4);
  }
}

/* ─── Screen-reader only utility ────────────────────────── */
/* (Shared with other components - defined once here if
    not already in a global utilities file) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
