/* ============================================================
   ClariMoney — Footer Styles
   NOTE: :root color tokens live in header.css (always loads first).
         Only footer-specific tokens are defined here.
   ============================================================ */

:root {
  --footer-bg:      #0b122a;
  --footer-surface: #111a3a;
  --footer-border:  rgba(255,255,255,0.08);
  --footer-text:    #c7d2fe;
  --footer-muted:   #8b9bbd;
  --footer-heading: #ffffff;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', 'Inter', sans-serif;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 280px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(59,130,246,0.10), transparent 100%);
  pointer-events: none;
}

.ft-footer-container {
  max-width: 1320px;
  margin: auto;
  padding: 60px 24px 30px;
}

/* ── CTA BANNER ── */
.ft-footer-cta {
  background: var(--footer-surface);
  border: 1px solid var(--footer-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.ft-footer-cta h3 {
  font-size: 1.4rem;
  color: var(--footer-heading);
  font-weight: 600;
  margin: 0;
}

.ft-footer-cta p {
  font-size: 0.9rem;
  color: var(--footer-muted);
  margin-top: 6px;
  margin-bottom: 0;
}

.ft-footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ft-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  font-family: 'Sora', 'Inter', sans-serif;
}

.ft-btn-primary {
  background: var(--grad-cta);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}

.ft-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,158,11,0.45);
}

.ft-btn-outline {
  border: 1px solid var(--footer-border);
  color: var(--footer-text);
}

.ft-btn-outline:hover { background: rgba(255,255,255,0.06); }

/* ── MAIN GRID ── */
.ft-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.ft-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.ft-footer-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  flex-shrink: 0;
}

.ft-footer-logo-mark .cm-bar {
  display: block;
  height: 4px;
  border-radius: 3px;
}
.ft-footer-logo-mark .cm-bar-top    { width: 18px; background: #FFFFFF; }
.ft-footer-logo-mark .cm-bar-mid    { width: 12px; background: #38BDF8; }
.ft-footer-logo-mark .cm-bar-bottom { width: 18px; background: #FFFFFF; }

.ft-footer-wordmark {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.ft-footer-clari {
  font-family: 'Inter', 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.ft-footer-money {
  font-family: 'Inter', 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #38BDF8;
}

.ft-footer-desc {
  font-size: 0.92rem;
  color: var(--footer-muted);
  max-width: 300px;
  line-height: 1.55;
}

.ft-footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  color: var(--footer-heading);
  font-weight: 600;
}

.ft-footer-links a {
  display: block;
  font-size: 0.88rem;
  color: var(--footer-muted);
  text-decoration: none;
  margin-bottom: 9px;
  transition: all 0.2s ease;
}

.ft-footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.ft-footer-links a.ft-footer-current {
  color: #93c5fd;
  font-weight: 600;
}

/* ── SOCIAL ── */
.ft-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ft-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--footer-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-text);
  transition: all 0.25s ease;
  border: 1px solid var(--footer-border);
  font-size: 1.1rem;
  text-decoration: none;
}

.ft-social a:hover {
  background: var(--grad-brand);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30,64,175,0.3);
}

/* ── BOTTOM BAR ── */
.ft-footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

.ft-footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.ft-footer-bottom a:hover { color: #ffffff; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ft-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .ft-footer-grid { grid-template-columns: 1fr 1fr; }
  .ft-footer-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .ft-footer-grid { grid-template-columns: 1fr; }
  .ft-footer-container { padding: 50px 16px 24px; }
  .ft-footer-cta { padding: 24px; }
}