/* ═══════════════════════════════════════════════════════════════
   footer.css — AllFinanceTool Footer Styles
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

/* ── FOOTER SHELL ────────────────────────────────────────────── */
.aft-footer {
  margin-top: 80px;
  background: var(--footer-bg, #080b0f);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle top glow */
.aft-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,179,64,0.2), transparent);
}

body.aft-light .aft-footer {
  background: #f0efe9;
  border-top-color: rgba(0, 0, 0, 0.07);
}

/* ── INNER GRID ──────────────────────────────────────────────── */
.aft-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

@media (max-width: 860px) {
  .aft-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── BRAND COLUMN ────────────────────────────────────────────── */
.aft-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aft-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
  width: fit-content;
}

.aft-flogo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb340;
  box-shadow: 0 0 10px rgba(255,179,64,0.6);
  flex-shrink: 0;
}

.aft-flogo-text {
  font-family: 'Fangsong', serif;
  font-size: 1rem;
  color: var(--footer-text, #d4d8e8);
  transition: color 0.2s;
}
.aft-footer-logo:hover .aft-flogo-text { color: #ffb340; }
body.aft-light .aft-flogo-text { color: #1a1c24; }

.aft-footer-tagline {
  font-family: 'Fangsong', serif;
  font-size: 0.88rem;
  color: var(--footer-muted, #5e6580);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
body.aft-light .aft-footer-tagline { color: #888; }

/* ── DISCLAIMER BOX ──────────────────────────────────────────── */
.aft-footer-disclaimer {
  background: rgba(255,179,64,0.05);
  border: 1px solid rgba(255,179,64,0.15);
  border-left: 3px solid rgba(255,179,64,0.5);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.72;
  color: var(--footer-muted, #5e6580);
  margin-bottom: 20px;
}
body.aft-light .aft-footer-disclaimer { color: #777; }
.aft-footer-disclaimer strong { color: #ffb340; font-weight: 600; }
.aft-footer-disclaimer em { color: #ff7070; font-style: normal; font-weight: 600; }

.aft-disc-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffb340;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── SOCIAL BUTTONS ──────────────────────────────────────────── */
.aft-footer-social {
  display: flex;
  gap: 8px;
}

.aft-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--footer-muted, #5e6580);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}
.aft-social-btn:hover {
  background: rgba(255,179,64,0.12);
  border-color: rgba(255,179,64,0.35);
  color: #ffb340;
  transform: translateY(-2px);
}
body.aft-light .aft-social-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

/* ── LINK COLUMNS ─────────────────────────────────────────────── */
.aft-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .aft-footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  .aft-footer-cols {
    grid-template-columns: 1fr;
  }
}

.aft-fcol {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.aft-fcol-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffb340;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.aft-light .aft-fcol-head { border-bottom-color: rgba(0,0,0,0.07); }

.aft-fcol-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb340;
  flex-shrink: 0;
}

.aft-fcol a {
  font-size: 0.81rem;
  color: var(--footer-link, #5e6580);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.18s, padding-left 0.18s;
  padding: 2px 0;
}
.aft-fcol a:hover {
  color: #ffb340;
  padding-left: 4px;
}
body.aft-light .aft-fcol a { color: #888; }
body.aft-light .aft-fcol a:hover { color: #d4891a; }

/* ── BOTTOM BAR ──────────────────────────────────────────────── */
.aft-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body.aft-light .aft-footer-bottom { border-top-color: rgba(0,0,0,0.06); }

.aft-footer-copy {
  font-size: 0.72rem;
  color: var(--footer-muted, #4a5070);
}
body.aft-light .aft-footer-copy { color: #aaa; }

.aft-footer-legal {
  display: flex;
  gap: 18px;
}

.aft-footer-legal a {
  font-size: 0.72rem;
  color: var(--footer-muted, #4a5070);
  text-decoration: none;
  transition: color 0.18s;
}
.aft-footer-legal a:hover { color: #ffb340; }

/* ── PRINT ───────────────────────────────────────────────────── */
@media print {
  .aft-footer { display: none !important; }
}