/* =========================================================
   SITE FOOTER — global on every page
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg, #152B45);
  color: #B9C6D3;
  isolation: isolate;
}

/* Thin orange gradient accent on top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  z-index: 2;
}

/* Decorative soft orbs */
.site-footer::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 159, 218, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

/* ---------- Grid ---------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Brand column ---------- */
.site-footer__brand-col { min-width: 0; }

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
  transition: opacity 0.2s;
}
.site-footer__brand:hover { opacity: 0.85; }

.site-footer__logo {
  height: 42px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), #DD6E10);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(244, 131, 31, 0.35);
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-footer__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #93A5B7;
  max-width: 320px;
}

/* ---------- Column headings + lists ---------- */
.site-footer__col { min-width: 0; }

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 18px;
  padding-bottom: 0;
  position: relative;
}

.site-footer__heading::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 10px;
  background: var(--orange);
  border-radius: 2px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list li {
  font-size: 13.5px;
  line-height: 1.55;
}

.site-footer__list a,
.site-footer__list .site-footer__text {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #B9C6D3;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  word-break: break-word;
}

.site-footer__list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.site-footer__icon {
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ---------- Bottom bar ---------- */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 12.5px;
  color: #7C8FA1;
}

.site-footer__copy { color: #7C8FA1; }

.site-footer__powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #93A5B7;
}

.site-footer__powered strong {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer__powered a {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.site-footer__powered a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- Entrance animation (JS adds .is-visible) ---------- */
.site-footer__grid > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.site-footer.is-visible .site-footer__grid > * {
  opacity: 1;
  transform: translateY(0);
}
.site-footer.is-visible .site-footer__grid > *:nth-child(1) { transition-delay: 0.05s; }
.site-footer.is-visible .site-footer__grid > *:nth-child(2) { transition-delay: 0.12s; }
.site-footer.is-visible .site-footer__grid > *:nth-child(3) { transition-delay: 0.19s; }
.site-footer.is-visible .site-footer__grid > *:nth-child(4) { transition-delay: 0.26s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .site-footer__inner { padding: 52px 20px 0; }
  .site-footer__grid {
    gap: 32px;
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  /* Brand spans full width on tablet, then 3 columns below */
  .site-footer__brand-col { grid-column: 1 / -1; padding-bottom: 8px; }
}

@media (max-width: 820px) {
  .site-footer__inner { padding: 44px 18px 0; }
  .site-footer__grid {
    gap: 32px 24px;
    padding-bottom: 36px;
  }
  .site-footer__desc { max-width: none; }
}

@media (max-width: 600px) {
  .site-footer__inner { padding: 40px 16px 0; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }
  .site-footer__brand-col { grid-column: auto; }
  .site-footer__brand { margin-bottom: 14px; }
  .site-footer__logo,
  .site-footer__mark { height: 38px; }
  .site-footer__mark { width: 38px; height: 38px; font-size: 15px; }
  .site-footer__desc { font-size: 13px; }
  .site-footer__heading { font-size: 11px; margin-bottom: 14px; }
  .site-footer__list { gap: 8px; }
  .site-footer__list li { font-size: 13px; }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    gap: 10px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-footer__grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .site-footer__list a:hover { transform: none; }
}