/************** Footer Section — Inverse of Navbar **************/

/* Dark surface to contrast with light links */
footer {
  padding: 5rem 7% 0;
  background: rgb(255,255,255);
}

/* Container + top hairline */
.footer-container {
  border-top: 2px solid rgb(var(--gray-600));
  padding: 4rem 3% 6rem;
}

/* Top row (logo left, columns right) */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Right-side columns wrapper */
.footer-top-section {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 4rem;
}

/* Column titles—lighter for contrast */
.footer-top-links h6 {
  font-weight: 500;
  color: rgb(var(--gray-900)); /* lighter than navbar’s dark scheme */
  font-size: var(--font-size-l);
  margin: 0;
}

/* Column nav + reset list */
.footer-top-links nav {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-top-links nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-top-links nav ul li {
  padding: 0.3rem 0;
}

/* LINKS — opposite of navbar:
   default = light grey, hover/active = near-white */
.footer-top-links nav a {
  text-decoration: none;
  font-weight: 400;
  color: rgb(var(--gray-500)); /* default light grey */
  font-size: var(--font-size-s);
  transition: color 0.25s ease;
  cursor: pointer;
}
.footer-top-links nav a:hover,
.footer-top-links nav a:focus {
  color: rgb(var(--gray-900)); /* hover near-white */
}

/* Bottom row (icons left, copyright right) */
.footer-bottom {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Social icon buttons — tuned for dark surface */
.social-media-links {
  display: flex;
  gap: 10px;
}
.social-media-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;

  border: 0.15rem solid rgb(var(--gray-300)); /* lighter ring */
  border-radius: 50%;
  color: rgb(var(--gray-300)); /* icon = light grey */
  font-size: var(--font-size-3xl);
  text-decoration: none;

  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social-media-links a:hover,
.social-media-links a:focus {
  background: rgb(var(--gray-100)); /* invert on hover */
  color: rgb(var(--gray-900)); /* dark icon on light bg */
  border-color: rgb(var(--gray-100));
  outline: none;
}

/* Copyright — keep subtle but readable */
.footer-bottom-section h6 {
  color: rgb(var(--gray-300));
  font-size: var(--font-size-xs);
  font-weight: 400;
  margin: 0;
}

/************** Responsiveness **************/
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .footer-top {
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-top-section {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}
