/* ============================================================
   PROFESSIONAL FOOTER
   ============================================================ */

.site-footer {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events: none;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  padding-block: clamp(72px, 10vw, 100px);
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Footer headings */
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 1;
}

/* Footer links */
.footer-grid a {
  color: #d4e5f7;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.4rem 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.footer-grid a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-grid a:hover {
  color: var(--primary-blue);
}

.footer-grid a:hover::after {
  width: 100%;
}

/* Footer brand section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.footer-brand .brand__name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-brand .brand__name b {
  -webkit-text-fill-color: transparent;
}

.footer-brand .brand__tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a0c5e0;
  opacity: 1;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--steel-200);
  line-height: 1.75;
  max-width: 40ch;
  opacity: 1;
}

/* Footer paragraphs and text */
.footer-grid p {
  font-size: 0.93rem;
  color: #d4e5f7;
  line-height: 1.7;
  opacity: 1;
  margin: 0;
}

/* Footer bar */
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #8fb5d8;
}

.footer-bar a {
  color: #d4e5f7;
  transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.footer-bar a:hover {
  color: var(--primary-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-grid {
    gap: 2.5rem;
  }

  .footer-brand .brand__name {
    font-size: 1.5rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-grid a::after {
    transition: none;
  }
}

/* Fix selection visibility - don't make text transparent on select */
::selection {
  background: var(--primary-blue);
  color: var(--white);
  text-shadow: none;
}

::-moz-selection {
  background: var(--primary-blue);
  color: var(--white);
}
