/* ============================================================
   TopRank Healthcare — Dynamic Footer Styles
   Shared across all pages via footer.js
   ============================================================ */

.site-footer {
  background: #0B1528;
  color: #94A3B8;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-primary, 'Inter', sans-serif);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1565C0 0%, #22C55E 50%, #FF6B35 100%);
}

/* ── Footer Pre-CTA Strip ── */
.footer-cta-strip {
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.15), rgba(34, 197, 94, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-cta-text h3 {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.footer-cta-text p {
  color: #94A3B8;
  font-size: 0.88rem;
  margin: 0;
}
.footer-cta-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #FFFFFF;
}
.footer-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-btn-call:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* ── Main Footer Grid ── */
.footer-main {
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.02em;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: #1565C0;
  border-radius: 2px;
}

/* ── Brand Column ── */
.footer-brand-logo {
  display: inline-block;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.footer-logos-dual {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-main {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-divider {
  width: 1.5px;
  height: 26px;
  background: #E2E8F0;
  display: block;
  flex-shrink: 0;
}
.footer-logo-agilus {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand-desc {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 18px;
}
.footer-partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 214, 0, 0.12);
  border: 1px solid rgba(255, 214, 0, 0.3);
  color: #FFE082;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.footer-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 3px 10px;
  border-radius: 6px;
}

/* ── Links Column ── */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-item a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link-item a:hover {
  color: #60A5FA;
  transform: translateX(3px);
}
.footer-link-price {
  color: #4ADE80;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
}

/* ── NAP / Contact Column ── */
.footer-nap-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nap-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-nap-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60A5FA;
  font-size: 0.9rem;
}
.footer-nap-content strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.78rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-nap-content a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nap-content a:hover {
  color: #60A5FA;
}

/* ── Bottom Bar ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.8rem;
  color: #64748B;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  margin: 0;
  line-height: 1.6;
}
.footer-bottom-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom-nav a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-nav a:hover {
  color: #94A3B8;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-cta-btns {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-nav {
    justify-content: center;
  }
}
