/*=========================================
  FOOTER (FiniK Navy #0c2a4e & Gold #d3ae55 Theme)
=========================================*/
.footer {
  position: relative;
  padding: 84px 0 36px;
  background: radial-gradient(
      ellipse 60% 45% at 50% 0%,
      rgba(211, 174, 85, 0.1),
      transparent 70%
    ),
    var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

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

/*=========================================
  TOP BENTO HIGHLIGHT BAR
=========================================*/
.footer-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 64px;
}

.bento-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.bento-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(211, 174, 85, 0.14);
  color: var(--primary);
  font-size: 21px;
}

html[data-theme="light"] .bento-icon {
  color: var(--primary-dark);
}

.bento-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.bento-item small {
  font-size: 12px;
  color: var(--text-muted);
}

/*=========================================
  MAIN FOOTER GRID
=========================================*/
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.footer-logo .logo-light {
  display: none;
}

html[data-theme="dark"] .footer-logo .logo-dark {
  display: none;
}

html[data-theme="dark"] .footer-logo .logo-light {
  display: block;
}

.footer-brand p {
  max-width: 340px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* Socials (Solid Single-Color Hover) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text-on-gold);
}

/* Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heading);
  margin-bottom: 8px;
}

.footer-col a {
  width: fit-content;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

html[data-theme="light"] .footer-col a:hover {
  color: var(--primary-dark);
}

/*=========================================
  RISK DISCLAIMER
=========================================*/
.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 36px 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

.footer-disclaimer i {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 2px;
  flex-shrink: 0;
}

.footer-disclaimer p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-disclaimer strong {
  color: var(--heading);
}

/*=========================================
  BOTTOM BAR
=========================================*/
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/*=========================================
  SIGNATURE BACKGROUND WORDMARK
=========================================*/
.footer-watermark {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 13vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 0.85;
  margin-top: 36px;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(211, 174, 85, 0.16) 0%,
    transparent 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*=========================================
  RESPONSIVE
=========================================*/
@media (max-width: 1024px) {
  .footer-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 64px 0 28px;
  }

  .footer-bento {
    grid-template-columns: 1fr;
    margin-bottom: 44px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-disclaimer {
    padding: 16px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }
}