.footer {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 40px;
  margin-top: 60px;
  height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
  background: transparent;
}

/* Full-bleed wave background */
.footer__background {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130vw;          /* always span the viewport width */
  height: 300px;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.footer__background svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0); /* GPU hint */
  display: block;
}

/* --- Ensure content appears above the waves --- */
.footer__top,
.footer__bottom {
  position: relative;
  z-index: 1;
}

/* --- Top Section --- */
.footer__top {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.footer__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 25px;
}

.footer__contact {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer__email {
  color: #1a1a1a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer__email:hover {
  color: #111827;
}

/* --- Bottom Section --- */
.footer__bottom {
  color: #ffffff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
}

.footer__copy {
  margin: 0;
}

.footer__copy a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer__copy a:hover {
  color: #111827;
}

.footer__links {
  display: flex;
  gap: 20px;
  padding-right: 90px;
}

.footer__links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #111827;
}

/* --- Responsive Section --- */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__title {
    font-size: 1.8rem;
  }

  .footer__subtitle {
    font-size: 1rem;
  }
}
