/* ===========================================================================
   FOOTER
=========================================================================== */
#footer {
  /* Tweak gradient placement here (or override on the element) */
  --footer-grad-x: 70%;
  --footer-grad-y: 28%;
  --footer-grad-size: 120% 100%;
  position: relative;
  overflow: hidden;
  padding: var(--space-12) var(--space-10);
  color: var(--color-white);
  background: var(--color-near-black); /* solid fallback under the gradient layer */
}

/* Gradient lives on ::before so size/position can be adjusted independently */
#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    var(--footer-grad-size) at var(--footer-grad-x) var(--footer-grad-y),
    var(--color-near-black) 16%,
    var(--color-navy) 58%,
    var(--color-tint) 100%
  );
}

#footer .container {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: var(--space-6);
}

.footer-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 360px;
}

.footer-blurb {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-white);
  max-width: 320px;
}

.footer-regulated {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-regulated-label {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.64);
}

.footer-regulated-logo {
  width: 168px;
  height: auto;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-col h4 {
  margin-bottom: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-white);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-col a {
  font-size: var(--text-md);
  line-height: var(--space-3);
  color: rgba(255,255,255,0.64);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-col--contact {
  min-width: 176px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-body);
  line-height: var(--space-3);
  color: rgba(255,255,255,0.64);
}

.footer-contact-phone a {
  font-weight: 600;
  color: var(--color-white);
}

.footer-contact-email a {
  color: #a6cc9b;
}

.footer-contact-email a:hover {
  opacity: 0.75;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer-logo-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
}

.footer-logo-mark {
  width: 168px;
  height: auto;
  flex-shrink: 0;
}

.footer-wordmark {
  width: 100%;
  max-width: 976px;
  height: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-copyright,
.footer-copyright a,
.footer-legal a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.3);
}

.footer-copyright a:hover,
.footer-legal a:hover {
  color: rgba(255,255,255,0.64);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 992px) {
  #footer {
    padding: var(--space-8) var(--space-3);
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-logo-group {
    gap: var(--space-3);
  }

  .footer-logo-mark {
    width: var(--space-5);
  }
}

@media (max-width: 576px) {
  .footer-cols {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
  }
}
