/*
 * CRITICAL: All non-knowledge-center public pages use this shared premium purple footer.
 * Knowledge-center pages keep their page-specific footer palette.
 * Do not restore older page-level footer styles.
 *
 * Content/markup source of truth: scripts/site-footer.js
 * Legal/policy links must not be altered there.
 */

/* Six knowledge-center body classes are excluded — they keep page-seo-* footer palettes */
body:not(.page-seo-hair-loss):not(.page-seo-hair-growth):not(.page-seo-postpartum-hair-loss):not(.page-seo-female-hair-thinning):not(.page-seo-hormonal-hair-loss):not(.page-seo-tests-and-evaluation-for-hair-loss) {
  --footer-bg: #321540;
  --footer-text: #ffffff;
  --footer-gold-line: rgba(228, 195, 106, 0.42);

  .site-footer {
    background: linear-gradient(
      160deg,
      #24112f 0%,
      #321540 45%,
      #431b55 100%
    );
    color: #ffffff;
  }

  .site-footer::before {
    background: rgba(228, 195, 106, 0.42);
  }

  .site-footer__inner {
    width: min(100%, 1080px);
    margin-inline: auto;
  }

  .footer-top {
    direction: rtl;
  }

  .footer-section__title {
    color: #e4c36a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.35;
  }

  .footer-nav__list a,
  .footer-knowledge-center__list a,
  .footer-contact__list a,
  .footer-contact__list span,
  .footer-cta__text,
  .footer-legal__copyright {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
  }

  .footer-cta__text {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .footer-legal__copyright {
    font-weight: 600;
    font-size: 0.74rem;
  }

  .footer-legal__disclaimer {
    color: rgba(255, 255, 255, 0.82);
  }

  .footer-nav__list a:hover,
  .footer-nav__list a:focus-visible,
  .footer-knowledge-center__list a:hover,
  .footer-knowledge-center__list a:focus-visible,
  .footer-contact__list a:hover,
  .footer-contact__list a:focus-visible {
    color: #e4c36a;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .footer-divider {
    background: rgba(228, 195, 106, 0.42);
  }

  /* Social: gold fill + dark icon — never gold-on-gold */
  .footer-social__link {
    border: 1px solid rgba(228, 195, 106, 0.42);
    background: #d8b354;
    color: #24112f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  }

  .footer-social__link svg,
  .footer-social__link path {
    fill: currentColor;
    stroke: none;
    color: inherit;
  }

  .footer-social__link:hover,
  .footer-social__link:focus-visible {
    background: #e4c36a;
    color: #24112f;
    fill: #24112f;
    stroke: #24112f;
    transform: translateY(-2px);
    filter: none;
    outline: none;
  }

  /* CTA: dark text on gold (not gold-on-gold) */
  .footer-cta__button.gold-button,
  .footer-cta__button {
    color: #24112f;
    border-color: rgba(228, 195, 106, 0.42);
  }

  .footer-brand__logo {
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  body:not(.page-seo-hair-loss):not(.page-seo-hair-growth):not(.page-seo-postpartum-hair-loss):not(.page-seo-female-hair-thinning):not(.page-seo-hormonal-hair-loss):not(.page-seo-tests-and-evaluation-for-hair-loss) {
    .site-footer {
      padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-top {
      align-items: center;
    }

    .footer-nav,
    .footer-knowledge-center,
    .footer-contact {
      align-items: center;
      text-align: center;
      width: 100%;
    }

    .footer-nav__list,
    .footer-knowledge-center__list,
    .footer-contact__list {
      justify-items: center;
      width: 100%;
    }

    .footer-nav__list a,
    .footer-knowledge-center__list a,
    .footer-contact__list a,
    .footer-contact__list span {
      font-size: 0.82rem;
      line-height: 1.55;
    }

    .footer-brand__logo {
      margin-inline: auto;
    }
  }
}

@media (max-width: 560px) {
  body:not(.page-seo-hair-loss):not(.page-seo-hair-growth):not(.page-seo-postpartum-hair-loss):not(.page-seo-female-hair-thinning):not(.page-seo-hormonal-hair-loss):not(.page-seo-tests-and-evaluation-for-hair-loss) {
    .site-footer {
      padding-inline: 1rem;
      padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-top {
      gap: 0.98rem;
    }

    .footer-brand__logo {
      width: min(100%, 178px);
      max-width: 178px;
    }

    .footer-section__title {
      margin-block-end: 0.38rem;
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.35;
      color: #e4c36a;
    }

    .footer-nav__list,
    .footer-knowledge-center__list,
    .footer-contact__list {
      gap: 0.27rem;
    }

    .footer-nav__list a,
    .footer-knowledge-center__list a,
    .footer-contact__list a,
    .footer-contact__list span {
      font-size: 0.78rem;
      line-height: 1.55;
    }

    .footer-legal {
      text-align: center;
    }

    .footer-legal__copyright,
    .footer-legal__disclaimer {
      justify-self: center;
      text-align: center;
    }
  }
}
