/**
 * SecureClimate global footer.
 *
 * Phase 49G scope: footer structure and static styling only. No
 * JavaScript, no search, no header/navigation changes.
 *
 * Focus-color note: the site-wide --sc-focus-color token (Action Green)
 * has only a 2.26:1 contrast ratio against Deep Ink (per the brand kit's
 * own palette data) - below the ~3:1 minimum for a reliably visible
 * non-text focus indicator. Footer links/logo therefore use the existing
 * --sc-color-white token for their focus outline instead (14.94:1
 * against Deep Ink) - an already-approved color, not a new one,
 * substituted only where the default choice would be genuinely hard to
 * see.
 *
 * @package HelloElementorChild
 */

/* ==========================================================================
   Six-color accent strip (decorative, aria-hidden)
   ========================================================================== */

.sc-footer__spectrum {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: var(--sc-space-3); /* ~12px - a thin accent, closest existing
    spacing token to the brand kit's own 13px reference strip */
}

.sc-footer__spectrum span:nth-child(1) {
  background-color: var(--sc-color-horizon-green);
}

.sc-footer__spectrum span:nth-child(2) {
  background-color: var(--sc-color-horizon-orange);
}

.sc-footer__spectrum span:nth-child(3) {
  background-color: var(--sc-color-clear-blue);
}

.sc-footer__spectrum span:nth-child(4) {
  background-color: var(--sc-color-vivid-violet);
}

.sc-footer__spectrum span:nth-child(5) {
  background-color: var(--sc-color-sun-yellow);
}

.sc-footer__spectrum span:nth-child(6) {
  background-color: var(--sc-color-warm-coral);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sc-footer {
  background-color: var(--sc-color-deep-ink);
  color: var(--sc-color-white);
}

.sc-footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sc-content-width);
  margin: 0 auto;
  padding: var(--sc-space-7) var(--sc-container-padding-desktop);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sc-space-5);
}

.sc-footer__logo-link {
  display: inline-flex;
}

.sc-footer__logo-link:focus-visible {
  outline: var(--sc-focus-width) solid var(--sc-color-white);
  outline-offset: var(--sc-focus-offset);
}

.sc-footer__logo {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

.sc-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sc-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-footer__menu a {
  font-family: var(--sc-font-body);
  font-weight: var(--sc-font-weight-regular);
  font-size: var(--sc-text-body-size);
  line-height: var(--sc-text-body-line-height);
  color: var(--sc-color-white);
  text-decoration: underline;
}

.sc-footer__menu a:hover {
  opacity: 0.85;
}

.sc-footer__menu a:focus-visible {
  outline: var(--sc-focus-width) solid var(--sc-color-white);
  outline-offset: var(--sc-focus-offset);
}

.sc-footer__independence {
  margin: 0;
  max-width: var(--sc-heading-width); /* keeps its pre-change line length (reading width narrowed for article text) */
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-body-sm-size);
  line-height: var(--sc-text-body-sm-line-height);
  color: var(--sc-color-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .sc-footer__inner {
    padding: var(--sc-space-6) var(--sc-container-padding-tablet);
  }
}

@media (max-width: 767px) {
  .sc-footer__inner {
    padding: var(--sc-space-6) var(--sc-container-padding-mobile);
    gap: var(--sc-space-4);
  }

  .sc-footer__logo {
    width: 200px;
  }

  .sc-footer__menu {
    flex-direction: column;
    gap: var(--sc-space-3);
  }
}

/* Launch Kit minimum for the horizontal logo without slogan: 220 CSS px
   (was 200px on mobile). 220px fits the 288px content width at 320px. */
@media (max-width: 767px) {
  .sc-footer__logo {
    width: 220px;
  }
}
