/* Footer Styles */
.site-footer {
  background-color: var(--color-navy);
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-section p {
  margin-bottom: 1rem;
  color: #bdc3c7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--color-coral);
  transform: translateY(-2px);
}

.footer-logo {
  text-align: center;
  margin: 1rem 0;
  padding: 0.5rem;
}

.footer-logo img {
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-logo img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer-logo a {
  display: inline-block;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

/* Marketing layout footer disclaimer — WCAG 4.5:1 on bg-dark / navy */
.marketing-site-footer .marketing-footer-disclaimer,
body.marketing-page footer .marketing-footer-disclaimer {
  color: #cbd5e1 !important;
  font-size: max(0.75rem, 12px);
  line-height: 1.5;
  opacity: 1 !important;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.footer-legal a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.divider {
  color: #7f8c8d;
  padding: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .divider {
    display: none;
  }
}

/* Dark mode: lift hardcoded grays so they stay readable on the
   darker navy background. */
:root[data-theme="dark"] .footer-section p,
:root:not([data-theme="light"]):not([data-theme="dark"]) .footer-section p {
  color: #d1d5db;
}

:root[data-theme="dark"] .footer-links a,
:root:not([data-theme="light"]):not([data-theme="dark"]) .footer-links a {
  color: #d1d5db;
}

:root[data-theme="dark"] .footer-legal,
:root:not([data-theme="light"]):not([data-theme="dark"]) .footer-legal {
  color: #9ca3af;
}

:root[data-theme="dark"] .footer-legal a,
:root:not([data-theme="light"]):not([data-theme="dark"]) .footer-legal a {
  color: #d1d5db;
}

:root[data-theme="dark"] .divider,
:root:not([data-theme="light"]):not([data-theme="dark"]) .divider {
  color: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  .footer-section p {
    color: #d1d5db;
  }

  .footer-links a {
    color: #d1d5db;
  }

  .footer-legal {
    color: #9ca3af;
  }

  .footer-legal a {
    color: #d1d5db;
  }

  .divider {
    color: #9ca3af;
  }
}
