/* ===== SHARED FOOTER STYLES — EliteMindRX ===== */
/* Source of truth for footer across ALL pages (task #2205754) */

/* ── Footer wrapper ── */
.emrx-footer {
  padding: 60px 0 0;
  background: #0A0A0A;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-blue: #0054E4;
  --f-gray-400: #A3A3A3;
  --f-gray-600: #525252;
  --f-border: rgba(255,255,255,0.08);
}

/* ── Main grid: 4 nav columns + newsletter column ── */
.emrx-footer .footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--f-border);
}

/* ── Logo + tagline (first col spans full width on mobile) ── */
.emrx-footer .footer-brand {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--f-border);
  margin-bottom: 8px;
}
.emrx-footer .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.emrx-footer .footer-brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.emrx-footer .footer-brand-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.emrx-footer .footer-brand-tagline {
  font-size: 0.9rem;
  color: var(--f-gray-400);
  line-height: 1.6;
  max-width: 420px;
}

/* ── Navigation columns ── */
.emrx-footer .footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--f-gray-400);
  margin-bottom: 16px;
}
.emrx-footer .footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 5px 0;
  transition: color 0.2s ease;
  line-height: 1.4;
}
.emrx-footer .footer-col a:hover {
  color: #fff;
}
.emrx-footer .footer-col a .price-tag {
  font-size: 0.75rem;
  color: var(--f-gray-400);
  margin-left: 6px;
}

/* ── Newsletter column ── */
.emrx-footer .footer-newsletter {
  display: flex;
  flex-direction: column;
}
.emrx-footer .footer-newsletter h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--f-gray-400);
  margin-bottom: 8px;
}
.emrx-footer .footer-newsletter p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}
.emrx-footer .newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.emrx-footer .newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.emrx-footer .newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}
.emrx-footer .newsletter-form input:focus {
  border-color: var(--f-blue);
  background: rgba(255,255,255,0.12);
}
.emrx-footer .newsletter-form button {
  padding: 10px 20px;
  background: var(--f-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.emrx-footer .newsletter-form button:hover {
  background: #003EA8;
  transform: translateY(-1px);
}

/* ── Social icons bar ── */
.emrx-footer .footer-social-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--f-border);
}
.emrx-footer .footer-social-bar .social-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--f-gray-400);
  margin-right: 8px;
}
.emrx-footer .footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.emrx-footer .footer-social-icon:hover {
  background: rgba(0,84,228,0.25);
  border-color: rgba(0,84,228,0.5);
  transform: translateY(-2px);
}
.emrx-footer .footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.8);
}
.emrx-footer .footer-social-icon:hover svg {
  fill: #fff;
}

/* ── Bottom bar ── */
.emrx-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--f-gray-400);
  flex-wrap: wrap;
  gap: 12px;
}
.emrx-footer .footer-bottom-links {
  display: flex;
  gap: 24px;
}
.emrx-footer .footer-bottom-links a:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .emrx-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .emrx-footer .footer-brand {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .emrx-footer .footer-brand-tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .emrx-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .emrx-footer .footer-brand {
    grid-column: 1;
  }
  .emrx-footer .newsletter-form {
    flex-direction: column;
  }
  .emrx-footer .newsletter-form input,
  .emrx-footer .newsletter-form button {
    width: 100%;
  }
  .emrx-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .emrx-footer .footer-social-bar {
    justify-content: center;
    flex-wrap: wrap;
  }
}