/*
  ETECHTICS SOFTWARE SOLUTIONS — Footer
  ----------------------------------------
  Light footer: brand column (logo, tagline, email, social), then
  Company, Services and Specializations link columns, and a bottom
  bar with copyright left and legal links right. Back-to-top button. Depends on css/tokens.css.
*/

.site-footer {
  position: relative;
  overflow: hidden;
  background: #F4F8FC;
  color: var(--color-body-text);
  padding-block: 80px 0;
  border-top: 1px solid var(--color-border);
}

/* Decorative shapes (matching the inner page banner) */
.site-footer::before {
  content: "";
  position: absolute;
  left: calc((100% - var(--container-max)) / 2 - 80px);
  top: 38%;
  width: 44px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFD9C9 0%, #FBC7D4 70%);
  filter: blur(1px);
  opacity: 0.8;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: calc((100% - var(--container-max)) / 2 - 60px);
  top: 92px;
  width: 26px;
  height: 26px;
  background:
    linear-gradient(var(--accent-5), var(--accent-5)) center / 4px 100% no-repeat,
    linear-gradient(var(--accent-5), var(--accent-5)) center / 100% 4px no-repeat;
  border-radius: 2px;
  transform: rotate(20deg);
  opacity: 0.9;
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-5);
}

/* Brand column */
.footer__logo { display: inline-block; }
.footer__logo img {
  display: block;
  height: 52px;
  width: auto;
}
.footer__tagline {
  margin: var(--space-3) 0 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body-text);
}
.footer__email {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}
.footer__email:hover,
.footer__email:focus-visible {
  color: var(--color-blue-600);
  text-decoration: none;
}

.footer__social {
  display: flex;
  gap: 0.7rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E3ECF7;
  color: var(--color-navy);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--color-navy);
  color: #ffffff;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 17px;
  height: 17px;
}

/* Link columns */
.footer__col { padding-top: 6px; }
.footer__heading {
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--color-navy);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer__list li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.4;
}
.footer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  background: var(--color-orange);
}
.footer__list a {
  font-size: 15px;
  color: var(--color-body-text);
  transition: color var(--transition-fast);
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--color-blue-600);
  text-decoration: none;
}

/* Bottom bar: copyright left, legal links right */
.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: 64px;
  padding-block: var(--space-4);
  border-top: 1px solid #DCE3EC;
  font-size: 13px;
  color: var(--color-muted);
}
.footer__copy {
  margin: 0;
  letter-spacing: 0.02em;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__legal a {
  color: var(--color-muted);
  transition: color var(--transition-fast);
}
.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--color-blue-600);
  text-decoration: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-orange);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background var(--transition-fast);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-orange-600);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1399px) {
  .site-footer::before,
  .site-footer::after {
    display: none;
  }
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .site-footer {
    padding-top: var(--space-6);
  }
  .footer__grid {
    gap: var(--space-4);
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom {
    margin-top: var(--space-5);
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Clean footer pattern: no decorative shapes */
.site-footer::before,
.site-footer::after { display: none; }
/* Keep the legal links clear of the fixed back-to-top button */
@media (max-width: 1320px) {
  .footer__bottom { padding-right: 64px; }
}
