/* =============================================
   Marketing Site Footer — UI-0107, UI-0108, UI-0109
   ============================================= */

/* --- Footer Wrapper --- */
.site-footer {
  background-color: var(--color-navy-dark, #081C2E);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
}

/* --- Footer Main Content --- */
.site-footer__main {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 24px var(--space-6) 24px;
}

/* --- 4-Column Grid Layout --- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* Logo column wider */
  gap: var(--space-8);
  margin-bottom: var(--space-3);
}

/* --- Logo Column --- */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none;
  outline: none;
  background: transparent;
}

.site-footer__logo img {
  height: 200px;
  width: 200px;
  object-fit: contain;
}

.site-footer__logo-img {
  height: 200px;
  width: 200px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 0 15px rgba(96, 180, 255, 0.25));
  flex-shrink: 0;
  border: none;
  outline: none;
  background: transparent;
}


.site-footer__logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed, 1.625);
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

/* --- Social Icons --- */
.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.site-footer__social-link:hover {
  color: var(--color-white, #FFFFFF);
  background-color: rgba(255, 255, 255, 0.08);
}

.site-footer__social-link svg {
  width: 20px; /* 20px per spec */
  height: 20px;
  fill: currentColor;
}

/* --- Link Groups --- */
.site-footer__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__group-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-1);
}

.site-footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
  line-height: var(--leading-normal, 1.5);
}

.site-footer__link:hover {
  color: var(--color-white, #FFFFFF);
}

/* --- Bottom Bar --- */
.site-footer__bottom {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-footer__bottom-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.site-footer__bottom-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__powered-by {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* =============================================
   Mobile Responsive — UI-0109
   Single column stack, no horizontal overflow
   ============================================= */
@media (max-width: 767px) {
  .site-footer__main {
    padding: 0 var(--space-5) 24px;
  }

  .site-footer__logo img,
  .site-footer__logo-img {
    height: 180px;
    width: 180px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Each link group gets 24px top margin */
  .site-footer__group {
    margin-top: 24px;
  }

  .site-footer__brand {
    margin-top: 0;
    align-items: center;
    text-align: center;
    padding-bottom: var(--space-4);
  }

  .site-footer__tagline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__social {
    justify-content: center;
    margin-top: var(--space-4);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4); /* 16px gap between bottom bar items */
  }

  .site-footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Footer — Enhanced Mobile Responsive Fixes
   -------------------------------------------------------------------------- */

/* iPad / Tablet landscape */
@media (max-width: 1023px) and (min-width: 768px) {
  .site-footer__main {
    padding: 16px var(--space-5) 16px;
  }

  .site-footer__tagline {
    max-width: 100%;
  }
}

/* Small phones (below 375px) */
@media (max-width: 374px) {
  .site-footer__main {
    padding: 16px var(--space-4) 16px;
  }

  .site-footer__logo img,
  .site-footer__logo-img {
    height: 150px;
    width: 150px;
  }


  .site-footer__logo-text {
    font-size: 0.9375rem;
  }

  .site-footer__tagline {
    font-size: 0.8125rem;
  }

  .site-footer__group-heading {
    font-size: 0.6875rem;
  }

  .site-footer__link {
    font-size: 0.8125rem;
  }

  .site-footer__bottom {
    padding: var(--space-4) var(--space-4);
  }

  .site-footer__copyright {
    font-size: 0.75rem;
  }

  .site-footer__bottom-link {
    font-size: 0.75rem;
  }

  .site-footer__bottom-links {
    gap: var(--space-3);
  }
}
