/* Footer Styles */
.footer {
  background-color: var(--primary-navy, #000053);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  color: white;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: auto;
}

/* Ensure footer items have equal flex basis for proper spacing */
.footer > * {
  flex: 1 1 0;
  min-width: 200px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  order: 3;
  text-align: right;
  align-items: flex-end;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-center {
  text-align: left;
  font-size: 0.95rem;
  order: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  order: 2;
}

.footer-link-button {
  background-color: var(--primary-navy, #000053);
  color: #ffffff;
  border: 1px solid var(--primary-navy, #000053);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.footer-link-button:hover {
  background-color: #ffffff;
  color: var(--primary-navy, #000053);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  .footer > * {
    order: 0;
    flex: 1 1 100%;
  }

  .footer-center {
    order: 1;
    text-align: left;
  }

  .footer-links {
    order: 2;
    justify-content: center;
  }

  .footer-contact {
    order: 3;
    text-align: center;
    align-items: center;
  }
}

/* Focus styles for accessibility */
.footer-link-button:focus {
  outline: 3px solid var(--accent-copper, #b66325);
  outline-offset: 2px;
}