/* ============================================================
   FOOTER.CSS — Footer Layout, Links, Bottom Bar
   Evolaxis Technology · Light Theme
   ============================================================ */

footer {
  background: var(--text);         /* Deep navy / near-black */
  color: var(--text-light);
  padding: 72px 5% 32px;
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient accent */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
}

/* Background grid */
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── FOOTER GRID ── */
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

/* ── BRAND COLUMN ── */
.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand .logo .logo-name {
  color: #fff;
}

.footer-brand .logo .logo-tagline {
  color: rgba(255,255,255,0.4);
}

.footer-brand > p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  gap: 10px;
}

/* Override social-link colors for dark footer */
footer .social-link {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

footer .social-link:hover {
  background: rgba(26,86,219,0.3);
  border-color: rgba(59,130,246,0.6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,86,219,0.25);
}

/* ── NAV COLUMNS ── */
.footer-col {
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-col ul li a::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}

.footer-col ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── NEWSLETTER CALLOUT (optional inside footer brand) ── */
.footer-newsletter {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}

.footer-newsletter p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xs);
  color: #fff;
  font-size: 0.84rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease);
}

.footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-newsletter-form input:focus {
  border-color: rgba(59,130,246,0.5);
}

.footer-newsletter-form button {
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.footer-newsletter-form button:hover {
  background: var(--primary-dark);
}

/* ── FOOTER BOTTOM ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

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

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand > p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 60px 4% 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

@media (max-width: 400px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
