﻿/* ============================
   FOOTER – Unified CTA + Footer
   ============================ */

/* ── Main footer wrapper ── */
.site-footer {
  background: linear-gradient(180deg, #000000 0%, #070a14 40%, #0b0f1c 70%, #000000 100%);
  color: var(--text-dark-muted);
  position: relative;
  overflow: hidden;
}

/* ── CTA area inside footer ── */
.footer-cta-area {
  padding: var(--section-pad) 24px;
  position: relative;
}

/* ── Inline CTA block at top of footer ── */
.footer-cta-block {
  text-align: center;
  padding: 72px 24px 56px;
}

.footer-cta-block h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #fff;
  margin-bottom: 10px;
}

.footer-cta-block p {
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Animated glowing divider ── */
.footer-divider {
  display: flex;
  justify-content: center;
  padding: 0;
}

.footer-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(79, 110, 247, .08) 15%,
      rgba(79, 110, 247, .35) 50%,
      rgba(79, 110, 247, .08) 85%,
      transparent 100%);
  position: relative;
}

.footer-divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(123, 149, 255, .6) 50%,
      transparent 100%);
  transform: translateY(-50%);
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {

  0%,
  100% {
    opacity: .3;
    filter: blur(0px);
  }

  50% {
    opacity: 1;
    filter: blur(1px);
  }
}

/* ── Footer content — FULL VIEWPORT WIDTH ── */
.footer-inner {
  width: 100%;
  padding: 64px 48px 36px;
}

/* ── Logo with orbiting dots ── */
.footer-logo-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 52px;
  position: relative;
  overflow: visible;
}

/* Orbit canvas — injected and positioned by footer.js */
.footer-orbit-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Footer logo — magnetic pull via JS */
.footer-logo-link {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  transform: translate(var(--mx), var(--my));
  transition: transform .4s var(--ease-bounce);
  will-change: transform;
}

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

@keyframes footerLetterWave {
  0% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-3px);
  }

  70% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0);
  }
}

.footer-tagline {
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  margin-top: -12px;
  text-align: center;
  letter-spacing: .02em;
  position: relative;
  z-index: 2;
}

/* ── Horizontal link strip — FULL WIDTH ── */
.footer-links-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 52px;
  flex-wrap: wrap;
  position: relative;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.footer-group-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 14px;
}

.footer-group-links {
  display: flex;
  gap: 24px;
  position: relative;
}

/* Footer link styles — color cascade + scale */
.footer-group-links a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  padding: 6px 24px;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease),
    text-shadow .4s var(--ease),
    letter-spacing .4s var(--ease);
}

/* Individual letter styling for cascade */
.footer-group-links a .footer-letter {
  display: inline-block;
  transition: color .3s var(--ease), transform .35s var(--ease);
  will-change: color, transform;
}

/* Color cascade keyframe — horizontal sweep */
@keyframes footerColorCascade {
  0% {
    color: var(--text-dark-muted);
    transform: translateY(0);
  }

  30% {
    color: #818CF8;
    transform: translateY(-2px);
  }

  60% {
    color: #fff;
    transform: translateY(-1px);
  }

  100% {
    color: #fff;
    transform: translateY(0);
  }
}

/* Hover: scale up + glow */
.footer-group-links a:hover {
  transform: scale(1.08);
  text-shadow: 0 0 14px rgba(79, 110, 247, .3);
}

/* Active/click: quick press */
.footer-group-links a:active {
  transform: scale(.96);
  transition-duration: .1s;
}

/* Vertical separators between groups */
.footer-link-separator {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, .08) 50%,
      transparent 100%);
  align-self: center;
}

/* ── Bottom bar — 3 columns ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-copyright {
  font-size: .78rem;
  color: rgba(255, 255, 255, .9);
  flex: 1;
}

.footer-made {
  font-size: .78rem;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .03em;
  flex: 1;
  text-align: center;
}

.footer-heart {
  display: inline-block;
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.footer-socials {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease),
    background .3s var(--ease),
    border-color .3s var(--ease),
    box-shadow .3s var(--ease),
    transform .3s var(--ease-bounce);
  will-change: transform;
}

/* Shimmer sweep on social icons */
.footer-social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, .2) 40%,
      rgba(255, 255, 255, .35) 50%,
      rgba(255, 255, 255, .2) 60%,
      transparent 80%);
  transform: translateX(-120%);
  transition: none;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.footer-social-icon:hover::before {
  animation: socialShimmer .6s var(--ease) forwards;
}

@keyframes socialShimmer {
  to {
    transform: translateX(120%);
  }
}

/* Glow ring behind social icon */
.footer-social-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--gradient-1);
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.footer-social-icon:hover::after {
  opacity: .45;
  animation: socialGlowPulse 2s ease-in-out infinite;
}

@keyframes socialGlowPulse {

  0%,
  100% {
    opacity: .45;
    filter: blur(8px);
  }

  50% {
    opacity: .25;
    filter: blur(12px);
  }
}

.footer-social-icon:hover {
  color: #fff;
  background: rgba(79, 110, 247, .15);
  border-color: rgba(79, 110, 247, .3);
  box-shadow: 0 4px 20px rgba(79, 110, 247, .25);
  transform: translateY(-3px) scale(1.08);
}

.footer-social-icon:active {
  transform: translateY(1px) scale(.95);
  transition-duration: .1s;
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 2;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-inner {
    padding: 48px 24px 32px;
  }

  .footer-links-strip {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .footer-link-separator {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, .08) 50%,
        transparent 100%);
  }

  .footer-link-group {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom .footer-socials {
    justify-content: center;
  }

  .footer-contact-strip {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Contact Info Strip ── */
.footer-contact-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 0 36px;
  margin-top: 48px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .01em;
  line-height: 1;
}

/* Plain text items (e.g. address) */
.footer-contact-item span {
  color: rgba(255, 255, 255, .8);
}

/* Standalone pin icon (address item) */
.footer-contact-item>svg {
  flex-shrink: 0;
  opacity: .9;
}

/* Email & phone links */
.footer-contact-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .3s var(--ease), transform .35s var(--ease-bounce), text-shadow .3s var(--ease);
}

.footer-contact-item a:hover {
  color: rgba(160, 190, 255, 1);
  transform: translateX(4px);
  text-shadow: 0 0 16px rgba(100, 140, 255, .4);
}

/* Icon inside anchor */
.footer-contact-item a svg {
  flex-shrink: 0;
  opacity: .85;
  transition: opacity .3s var(--ease), transform .35s var(--ease-bounce), filter .3s var(--ease);
}

.footer-contact-item a:hover svg {
  opacity: 1;
  transform: translateX(-2px);
  filter: drop-shadow(0 0 5px rgba(130, 160, 255, .55));
}