/*
 * LC3 Creative - site footer
 * Mobile first: 1 column -> 2 columns (>=576px) -> 4 columns (>=992px).
 * All text on the dark background meets WCAG AA contrast (>= 4.5:1).
 */

.site-footer {
  --footer-bg: #1b1e21;
  --footer-text: #e9ecef;
  --footer-muted: #b4bcc4;
  --footer-line: rgba(255, 255, 255, .12);
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: .975rem;
  line-height: 1.6;
}
/* brand accent stripe */
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--lc3-red) 0%, var(--lc3-red) 50%, var(--lc3-teal) 50%, var(--lc3-teal) 100%);
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--lc3-teal);
}
.site-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* phones: brand, then Explore + Skill set side by side, then contact */
.footer-main {
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3.5rem 0 2.5rem;
}
.footer-brand,
.footer-touch {
  grid-column: 1 / -1;
}
/* tablets: brand across the top, three columns beneath */
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-touch {
    grid-column: auto;
  }
}
/* desktop: four columns */
@media (min-width: 992px) {
  .footer-main {
    grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
    gap: 2.5rem 2rem;
    padding-top: 4.5rem;
  }
  .footer-brand {
    grid-column: auto;
    padding-right: 1.5rem;
  }
}

/* Brand column */
.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img {
  display: block;
  width: 200px;
  height: auto;
}
.footer-blurb {
  color: var(--footer-muted);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;  /* comfortable touch target */
  height: 44px;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  font-size: 1.15rem;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--lc3-teal);
  border-color: var(--lc3-teal);
  color: #000;
}

/* Link columns */
.footer-heading {
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc3-teal);
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li {
  margin-top: .25rem;
}
.footer-links a {
  display: inline-block;
  padding: .3rem 0;  /* keeps each link >= 24px tall (WCAG 2.5.8) */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0 1px;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  background-size: 100% 1px;
}

/* Contact column */
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact li {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  padding: .3rem 0;
}
.footer-contact i {
  width: 1rem;
  color: var(--lc3-teal);
  text-align: center;
}
.footer-contact .muted {
  color: var(--footer-muted);
}
.footer-cta {
  margin-top: 1.25rem;
}

/* Connect row: "Follow us" (left half) + "Find us on" (right half) */
.footer-connect {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--footer-line);
}
.footer-connect-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}
.footer-connect-label {
  margin: 0;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  color: var(--footer-muted);
}
.footer-listings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-listings img {
  display: block;
  width: 150px;
  height: auto;
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid var(--footer-line);
  border-radius: 2rem;
  font-size: .9rem;
}
.footer-pill:hover,
.footer-pill:focus-visible {
  border-color: var(--lc3-teal);
}
@media (min-width: 992px) {
  .footer-connect {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
  .footer-connect-group + .footer-connect-group {
    justify-content: flex-end;
  }
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: .875rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a,
.footer-top-link {
  padding: .35rem 0;
}
.footer-legal a {
  display: inline-block;
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

@media (max-width: 575.98px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-social a,
  .footer-pill {
    transition: background-color 200ms, border-color 200ms, color 200ms, transform 200ms;
  }
  .footer-social a:hover,
  .footer-social a:focus-visible {
    transform: translateY(-3px);
  }
  .footer-links a {
    transition: background-size 250ms cubic-bezier(.2, .7, .2, 1), color 200ms;
  }
  .footer-top-link i {
    transition: transform 200ms;
  }
  .footer-top-link:hover i {
    transform: translateY(-3px);
  }
}
