/* ============================================
   FOOTER - Modern footer matching site design
   ============================================ */

.footer {
  position: relative;
  background: linear-gradient(180deg, #0f2e5c 0%, #0a1942 100%);
  color: var(--color-text-muted-on-dark);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Brand column */
.footer-col.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: var(--space-xl);
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-logo:hover .footer-logo-text {
  color: #ffffff;
}

.footer-logo:hover .footer-logo-accent {
  color: var(--color-accent);
}

.footer-logo-text {
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: color 0.2s ease;
}

.footer-logo-accent {
  color: var(--color-accent-hover);
  transition: color 0.2s ease;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--color-text-muted-on-dark);
  line-height: 1.55;
  margin: 0 0 var(--space-lg) 0;
  max-width: 28ch;
}

/* Button: no bg default, gradient slides in left-to-right on hover */
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: transparent;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: color 0.35s ease;
}

.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.footer-cta:hover {
  color: var(--color-text-on-dark);
}

.footer-cta:hover::before {
  transform: scaleX(1);
}

/* Column headings: match CTA label accent */
.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-lg) 0;
}

/* Lists */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: var(--space-sm);
}

.footer-list a {
  color: var(--color-text-muted-on-dark);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--color-accent);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent-hover);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-link:hover .footer-contact-icon {
  color: var(--color-accent);
  transform: scale(1.08);
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
}

.footer-contact a {
  word-break: break-word;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-xl);
  text-align: center;
}

.disclaimer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 var(--space-md) 0;
}

.disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto var(--space-md) auto;
}

.disclaimer a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.disclaimer a:hover {
  color: var(--color-accent);
}

.disclaimer strong {
  color: var(--color-text-on-dark);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-soft-on-dark);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-col.footer-brand {
    max-width: none;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-tagline {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
  }

  .footer-list {
    text-align: center;
  }
}
