/* Footer */
.footer {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.2fr;
  gap: var(--space-10);
  padding: var(--space-20) 0 var(--space-12);
  align-items: start;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-8);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-12) 0 var(--space-8);
  }
}

/* Footer Brand */
.footer-brand {
  max-width: 340px;
}

/* Footer columns: `.footer-nav` and `.footer-contact` are grid cells that hold
   the link list and the contact rows. They had no rules of their own, so they
   relied entirely on the grid - these keep their inner blocks aligned. */
.footer-nav,
.footer-contact {
  min-width: 0;
}
.footer-contact .footer-nav-title { text-align: start; }

.footer-description {
  max-width: 32ch;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-500);
  border-radius: var(--radius-lg);
  color: var(--navy-900);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-display);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-logo-tagline {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 400;
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 320px;
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  color: var(--gray-400);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.social-link .icon {
  width: 20px;
  height: 20px;
}

/* Footer Navigation */
.footer-nav-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold-500);
  width: fit-content;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav-link {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: all var(--transition-fast);
  padding: var(--space-1) 0;
}

.footer-nav-link:hover {
  color: var(--gold-500);
  transform: translateX(-4px);
}

/* Footer Contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-300);
  line-height: 1.6;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  color: var(--gold-500);
}

.footer-contact-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.footer-contact-value {
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-contact-item:hover .footer-contact-value {
  color: var(--gold-500);
}

/* Footer CTA */
.footer-cta {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-cta-desc {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.footer-cta-btn.primary {
  background: var(--gold-500);
  color: var(--navy-900);
}

.footer-cta-btn.primary:hover {
  background: var(--gold-400);
  transform: translateX(-4px);
}

.footer-cta-btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--navy-600);
}

.footer-cta-btn.secondary:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--navy-800);
}

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

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

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

.footer-legal-link {
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--gold-500);
}

.footer-contact-icon svg {
  width: 20px;
  height: 20px;
}

/* Real brand logo: black artwork becomes white on navy via invert + screen */
.footer-logo-img {
  height: 54px;
}
.footer-logo-img.logo-navy {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Brand logo image (white on footer navy) */
.footer-logo-img {
  height: 68px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}
.footer-logo-fallback {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-500);
  border-radius: var(--radius-lg);
  color: var(--navy-900);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer-social {
    gap: var(--space-2);
  }
}