/* --------------------------
   Stitch Footer
--------------------------- */

#footer-stitch {
  /* match your theme vars if you want */
  --stitch-secondary: var(--dark-background-color, #ffba43);
  --stitch-text: #bababa;
  --stitch-divider: var(--dark-background-color, #ffba43  );

  padding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
  position: relative;
  z-index: 1;
}

#footer-stitch .cs-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#footer-stitch .cs-top {
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--dark-background-color);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#footer-stitch .cs-logo {
  width: 10.5rem;
  height: auto;
  display: block;
  text-decoration: none;
}

#footer-stitch .cs-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

#footer-stitch .cs-ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0.5rem;
  column-gap: clamp(1.75rem, 4vw, 2.5rem);
}

#footer-stitch .cs-li {
  list-style: none;
}

#footer-stitch .cs-link {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.5em;
  text-decoration: none;
  margin: 0;
  color: var(--nav-text-color, #000000);
  display: block;
  transition: color 0.3s ease;
}

#footer-stitch .cs-link:hover {
  color: var(--stitch-secondary);
}

#footer-stitch .cs-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#footer-stitch .cs-social {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

#footer-stitch .cs-social-li {
  list-style: none;
}

#footer-stitch .cs-social-link {
  width: 2rem;
  height: 2rem;
  background-color: var(--nav-text-color, #ffba43);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#footer-stitch .cs-social-link:hover {
  background-color: var(--nav-active-text, #ffba43);
}

#footer-stitch .cs-social-icon {
  width: 0.75rem;
  height: auto;
  display: block;
  opacity: 0.8;
}

#footer-stzitch .cs-social-link:hover .cs-social-icon {
  opacity: 1;
}

#footer-stitch .cs-copyright {
  font-size: 1rem;
  line-height: 1.5em;
  margin: 0;
  color: var(--nav-text-color, #ffba43);
  display: block;
  text-align: center;
}

#footer-stitch .cs-copyright-link,
#footer-stitch .cs-designedby-link {
  font-size: inherit;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

#footer-stitch .cs-copyright-link:hover,
#footer-stitch .cs-designedby-link:hover {
  color: var(--dark-background-color, #ffba43);
}

#footer-stitch .cs-divider {
  margin: 0 0.5rem;
  color: var(--dark-background-color, #ffba43);
}

#footer-stitch .cs-background {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
}

#footer-stitch .cs-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--background-color, #ffffff);
  opacity: 0.96;
  z-index: 1;
}

#footer-stitch .cs-background img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Tablet+ */
@media only screen and (min-width: 48rem) {
  #footer-stitch .cs-top {
    flex-direction: row;
    justify-content: space-between;
  }

  #footer-stitch .cs-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  #footer-stitch .cs-copyright {
    text-align: right;
  }
}
