/**
 * NextGen TechEdge Solutions - Centralized Reusable Footer Component Styles
 * Light-theme enterprise typography, 5-column responsive grid, accessible focus states
 */

.site-footer {
  background: #ffffff;
  padding: clamp(52px, 5.5vw, 76px) 0 32px;
  border-top: 1px solid var(--border-light, #e2e8f0);
  color: var(--text-body, #334155);
  font-family: inherit;
  position: relative;
  z-index: 10;
}

.site-footer .container {
  max-width: var(--container-width, 1320px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

/* 5-Column Responsive Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.15fr 1.15fr 1.15fr 0.95fr;
  gap: clamp(24px, 2.5vw, 42px);
  margin-bottom: clamp(36px, 4vw, 52px);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Column 1: Brand & Heritage */
.footer-col-brand {
  max-width: 340px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.90rem;
  color: var(--text-muted, #64748b);
  line-height: 1.65;
  margin: 0 0 12px 0;
}

.footer-positioning {
  font-size: 0.85rem;
  color: var(--brand-purple, #8426b0);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 18px 0;
}

.footer-cta-wrap {
  margin-top: 4px;
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient-subtle, rgba(132, 38, 176, 0.08));
  color: var(--brand-purple, #8426b0);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(132, 38, 176, 0.18);
  transition: all 0.25s ease;
}

.footer-cta-link:hover,
.footer-cta-link:focus-visible {
  background: var(--brand-gradient, linear-gradient(135deg, #8426b0 0%, #b81c8c 50%, #df414c 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(132, 38, 176, 0.28);
  transform: translateY(-1px);
}

.footer-cta-link .footer-arrow {
  transition: transform 0.2s ease;
}

.footer-cta-link:hover .footer-arrow {
  transform: translateX(4px);
}

/* Headings for Columns 2-5 */
.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px 0;
  position: relative;
  display: inline-block;
}

/* Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  line-height: 1.45;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-purple, #8426b0);
  transform: translateX(3px);
  text-decoration: none;
  outline: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--brand-purple, #8426b0);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-link-highlight {
  color: var(--brand-purple, #8426b0) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.footer-link-highlight:hover {
  color: var(--brand-coral, #df414c) !important;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-light, #e2e8f0);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom-links a {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  color: var(--brand-purple, #8426b0);
}

.footer-sep {
  color: var(--border-light, #cbd5e1);
  font-size: 0.8rem;
  user-select: none;
}

/* Responsive Breakpoints */
@media (max-width: 1240px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: 600px;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links a {
    padding: 4px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
}

/* Print Optimization */
@media print {
  .site-footer {
    background: #ffffff !important;
    border-top: 1px solid #000 !important;
    color: #000 !important;
  }
  .footer-cta-wrap {
    display: none !important;
  }
}
