/*
 * Footer: a gray panel (same #ededed as the navbar pill) with rounded top
 * corners closes the page. Inside it, the contact card is white with the blue
 * glow and the open ring; the bottom bar uses thin dividers. Pills are the same
 * shapes as the header buttons, with the dark gradient ("Talk to me") as the
 * primary action. The case-study footers share these classes.
 */

/* The rounded top corners show what's behind the footer: keep it white like the sections above. */
.app {
  background: #ffffff;
}

.site-footer {
  --footer-bg: #ededed;
  --footer-ink: #141414;
  --footer-eyebrow: #3d5459;
  --footer-muted: #6c7a7e;
  --footer-line: rgba(0, 0, 0, 0.09);
  --footer-card-bg: #e4e4e4;
  --footer-glow: rgba(166, 210, 223, 0.55);

  padding-top: 0;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-family: "Satoshi", sans-serif;
}

.site-footer--main {
  padding-top: 4.5rem;
}

/* Contact card */

.footer-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  width: calc(100% - 3rem);
  max-width: 73.75rem;
  margin: 0 auto 4rem;
  padding: 3.5rem;
  border: 0.0625rem solid var(--footer-line);
  border-radius: 2.5rem;
  background: var(--footer-card-bg);
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero ring, cropped by the card's top-right corner */
.footer-cta__orbit {
  position: absolute;
  z-index: -1;
  top: -11rem;
  right: -9rem;
  width: 24rem;
  height: 24rem;
  border: 0.09375rem solid rgba(20, 20, 20, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.footer-cta__copy {
  max-width: 36rem;
}

.footer-cta__eyebrow {
  margin: 0;
  color: var(--footer-eyebrow);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.footer-cta__title {
  margin: 1.125rem 0 0;
  color: var(--footer-ink);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.footer-cta__text {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: #4a5355;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.footer-cta__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.footer-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.875rem;
  padding: 0 1.375rem;
  border-radius: 1.4375rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.footer-cta__button:hover {
  transform: translateY(-0.0625rem);
}

/* Primary: the dark "Talk to me" gradient */
.footer-cta__button--dark {
  background: linear-gradient(114deg, #2d2d2d 12%, #777777 100%);
  color: #ffffff;
}

.footer-cta__button--dark:hover {
  filter: brightness(0.94);
}

/* Secondary: the light "Resume" gradient */
.footer-cta__button--light {
  border: 0.0625rem solid var(--footer-line);
  background: linear-gradient(134deg, #f8f8f8 22%, #c8c8c8 100%);
  color: var(--footer-ink);
}

.footer-cta__button--light:hover {
  filter: brightness(0.96);
}

.footer-cta__button:focus-visible,
.site-footer__back-to-top:focus-visible,
.site-footer__social-link:focus-visible {
  outline: 0.125rem solid #141414;
  outline-offset: 0.1875rem;
}

/* Bottom bar */

.site-footer__divider {
  width: calc(100% - 3rem);
  max-width: 73.75rem;
  margin: 0 auto;
  background-color: var(--footer-line);
}

/* Case-study footers have no contact card: give the divider some room above. */
.site-footer:not(.site-footer--main) .site-footer__divider {
  margin-top: 1.5rem;
  background-color: transparent;
}

.site-footer__inner {
  max-width: calc(73.75rem + 3rem);
  padding: 2.5rem 1.5rem 3rem;
}

.site-footer__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.site-footer__profile {
  align-items: center;
}

.site-footer__name {
  color: var(--footer-ink);
  font-size: 1.1875rem;
  font-weight: 500;
}

.site-footer__role {
  color: var(--footer-muted);
  font-size: 1rem;
}

.site-footer__back-to-top {
  align-self: center;
  height: 2.875rem;
  padding: 0 1.25rem 0 1rem;
  border: 0.0625rem solid var(--footer-line);
  border-radius: 1.4375rem;
  background: #ffffff;
  color: var(--footer-ink);
  font-size: 1rem;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.site-footer__back-to-top:hover,
.site-footer__back-to-top:focus-visible {
  border-color: rgba(0, 0, 0, 0.16);
  background: #f7f7f7;
  color: var(--footer-ink);
}

.site-footer__back-icon {
  color: inherit;
}

.site-footer__copyright {
  color: var(--footer-muted);
  font-size: 0.9375rem;
}

/* Social icons inside a white pill */
.site-footer__social {
  gap: 0.5rem;
  padding: 0.375rem;
  border: 0.0625rem solid var(--footer-line);
  border-radius: 62.4375rem;
  background: #ffffff;
}

@media (max-width: 64rem) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem;
  }

  .footer-cta__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 56.25rem) {
  .site-footer {
    border-radius: 2rem 2rem 0 0;
  }

  .site-footer--main {
    padding-top: 2.5rem;
  }

  .footer-cta {
    width: calc(100% - 2rem);
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    border-radius: 2rem;
  }

  .footer-cta__orbit {
    top: -7rem;
    right: -8rem;
    width: 18rem;
    height: 18rem;
  }

  .footer-cta__title {
    font-size: 2rem;
  }

  .footer-cta__actions {
    width: 100%;
  }

  .footer-cta__button {
    flex: 1 1 0;
  }

  .site-footer__divider {
    width: calc(100% - 2rem);
  }

  .site-footer__inner {
    padding: 2rem 1rem 2.5rem;
  }

  .site-footer__back-to-top {
    height: 2.5rem;
    padding: 0 0.875rem 0 0.75rem;
    font-size: 0.875rem;
  }
}

/* Social icons: brand colors by default (the "-hover" images); hover just lifts them */
.site-footer .site-footer__social-icon--default {
  opacity: 0;
}

.site-footer .site-footer__social-icon--hover {
  opacity: 1;
}

.site-footer .site-footer__social-link:hover,
.site-footer .site-footer__social-link:focus-visible {
  transform: translateY(-0.125rem);
}
