/* FOOTER SECTION */
.footer-section {
  position: relative;
  width: 100%;
  padding: 80px 6em;
  background: url('../images/footer-bg.jpg') center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  font-family: "Hanken Grotesk", sans-serif;
  align-items: center;
  /* Parallax will be applied via JS transform */
  will-change: transform;  /* Hint for performance */
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(3 0 107 / 52%) 0%, rgb(3 0 107 / 74%) 30%, rgb(3 0 107) 60%, rgba(3, 0, 107, 1) 100%
  );
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  text-align: center;
  /* Initial state: Hidden for animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;  /* Faster */
}

.footer-container.animate {
  /* Triggered state: Fade in and slide up */
  opacity: 1;
  transform: translateY(0);
}

/* Download Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #06087b;
  border: 1px solid #51F36F;
  border-radius: 50px;
  padding: 20px 40px;
  font-weight: 100;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 50px #51F36F66;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 10px auto 90px;
  max-width: fit-content;
  /* Initial state: Hidden */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, background-color 0.3s ease, box-shadow 0.3s ease;  /* Faster */
}

.footer-container.animate .download-btn {
  /* Triggered state: Slide up and fade in */
  opacity: 1;
  transform: translateY(0);
}

.download-btn img {
  width: 24px;
  height: 24px;
}

.download-btn:hover,
.download-btn:focus {
  background: #1b1e1c;
  color: #06087b;
  /* box-shadow: 0 0 40px #51F36F; */
  outline: none;
  color: #fff;
}

/* Footer Content Columns */
.footer-content {
  display: flex;
  justify-content: space-between;
  /* Removed gap: 60px; to allow percentage-based widths */
  text-align: left;
  max-width: 100%;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #4ff36f;
  padding: 20px 0;
  /* Initial state: Hidden */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;  /* Faster */
}

.footer-container.animate .footer-content {
  /* Triggered state: Slide up and fade in */
  opacity: 1;
  transform: translateY(0);
}

/* 1st column (left contact): 25% */
.footer-content .footer-column:nth-child(1) {
  flex: 0 0 25%;
}

/* 2nd column (center contact): 25% */
.footer-content .footer-column:nth-child(2) {
  flex: 0 0 25%;
}

/* Spacer: 10% */
.footer-spacer {
  flex: 0 0 10%;
}

/* 3rd column (terms): 30% */
.footer-content .footer-column:nth-child(4) {
  flex: 0 0 30%;
}

.contact-column p.footer-contact-info-text {
  font-size: 15px;
  margin-bottom: 24px;
  color: #c9d1ff;
  max-width: 380px;
  line-height: 1.4;
}

/* Agent logos */
.footer-logo {
  max-width: 150px;
  margin-bottom: 24px;
}

/* Agent list */
.agent-list .agent {
  margin-bottom: 20px;
  color: #c9d1ff;
  font-size: 0.9rem;
  line-height: 16PX;
}

.agent-list .agent p:first-child {
  font-weight: 900;
  margin-bottom: 4px;
  color: #FFF;
}

.agent-list .agent p {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Agent name hover */
.agent-name {
  color: #FFF; /* Matches the existing strong color */
  transition: color 0.3s ease;
  cursor: pointer;
}

.agent-name:hover,
.agent-name:focus {
  color: #51F36F;
  outline: none;
}

/* Agent phone (clickable) */
.agent-phone {
  color: #c9d1ff; /* Matches surrounding text */
  text-decoration: none;
  transition: color 0.3s ease;
}

.agent-phone:hover,
.agent-phone:focus {
  color: #51F36F;
  outline: none;
  text-decoration: underline; /* Optional: Add underline on hover for clarity */
}

.agent-list .agent a {
  color: #c9d1ff;
  text-decoration: none;
  font-style: none;
  transition: color 0.3s ease;
}

.agent-list .agent a:hover,
.agent-list .agent a:focus {
  color: #51F36F;
  outline: none;
}

/* Terms column text */
.terms-column p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #c9d1ff;
  padding: 0 20px;
  margin-block-start: 0;
}

.terms-column {
  border-left: 2px solid #4ff36f;
}

.terms-column p strong {
  color: #ffffff;
}

/* Footer disclaimer */
.footer-disclaimer {
  max-width: 100%;
  margin: 0 auto;
  font-size: 0.65rem;
  color: #6c78a1;
  line-height: 1.5;
  border-top: 1px solid #4ff36f;
  padding-top: 24px;
  text-align: left;
  /* Initial state: Hidden */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;  /* Faster */
}

.footer-container.animate .footer-disclaimer {
  /* Triggered state: Slide up and fade in */
  opacity: 1;
  transform: translateY(0);
}

.footer-disclaimer p {
  margin-bottom: 12px;
}

.footer-disclaimer .copyright {
  margin-top: 24px;
  font-weight: 600;
  color: #a1b1ff;
}

.footer-disclaimer .footer-link {
  color: #51F36F;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-disclaimer .footer-link:hover,
.footer-disclaimer .footer-link:focus {
  text-decoration: underline;
  outline: none;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    padding: 0 10px;
  }
  .none {
    display: none;
  }

  .download-btn {
    padding: 12px 30px;
    font-size: 1rem;
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-column {
    min-width: auto;
    flex: 1 1 auto; /* Reset to auto for stacking on mobile */
  }

  .footer-spacer {
    display: none; /* Hide spacer on mobile since columns stack */
  }

  .footer-logo {
    max-width: 120px;
  }

  .agent-list .agent {
    font-size: 0.85rem;
  }

  .terms-column p {
    font-size: 0.82rem;
  }

  .footer-disclaimer {
    font-size: 0.6rem;
  }
  /* Disable animations and parallax on mobile */
  .footer-container,
  .download-btn,
  .footer-content,
  .footer-disclaimer {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .footer-section {
    will-change: auto;
  }
}