:root {
  --lps-footer-navy: #061924;
  --lps-footer-navy-2: #0c2b3a;
  --lps-footer-navy-3: #104354;
  --lps-footer-cream: #fbf4df;
  --lps-footer-gold: #ead28f;
  --lps-footer-sage: #7ea39a;
  --lps-footer-sage-dark: #416f66;
  --lps-footer-mist: #dcebec;
  --lps-footer-ink: #09233a;
  --lps-footer-white: #ffffff;
}

.lps-site-footer,
.lps-site-footer * {
  box-sizing: border-box;
}

.lps-site-footer {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.90);
  font-family: inherit;
  background:
    radial-gradient(circle at 84% 0%, rgba(234, 210, 143, 0.20), transparent 30%),
    radial-gradient(circle at 16% 24%, rgba(126, 163, 154, 0.18), transparent 34%),
    linear-gradient(180deg, var(--lps-footer-navy-2) 0%, var(--lps-footer-navy) 68%, #031018 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -16px 42px rgba(0, 0, 0, 0.18);
}

.lps-site-footer a {
  color: inherit;
  text-decoration: none;
}

.lps-site-footer a:hover,
.lps-site-footer a:focus-visible {
  color: var(--lps-footer-cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lps-site-footer__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lps-site-footer__scene::before,
.lps-site-footer__scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.lps-site-footer__scene::before {
  height: 150px;
  opacity: 0.72;
  background:
    linear-gradient(155deg, transparent 0 18%, rgba(22, 72, 83, 0.52) 18.3% 35%, transparent 35.3%),
    linear-gradient(205deg, transparent 0 12%, rgba(29, 86, 91, 0.44) 12.3% 30%, transparent 30.3%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.lps-site-footer__scene::after {
  height: 72px;
  opacity: 0.54;
  filter: blur(14px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(224, 241, 241, 0.22), transparent 68%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.lps-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.28fr) minmax(190px, 0.62fr) minmax(310px, 1fr);
  gap: clamp(28px, 4vw, 76px);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 0 34px;
}

.lps-site-footer__brand-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 520px;
}

.lps-site-footer__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--lps-footer-cream);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background:
    radial-gradient(circle at 50% 38%, rgba(249, 243, 223, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(32, 91, 104, 0.98), rgba(5, 23, 32, 0.99));
  border: 1px solid rgba(249, 243, 223, 0.42);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.055),
    inset 0 1px 10px rgba(255, 255, 255, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.lps-site-footer__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(234, 210, 143, 0.33);
}

.lps-site-footer__mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lps-site-footer__mark span {
  position: relative;
  z-index: 1;
}

.lps-site-footer__brand-copy strong,
.lps-site-footer__links h2,
.lps-site-footer__contact h2 {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.lps-site-footer__brand-copy em {
  display: block;
  max-width: 430px;
  color: rgba(251, 244, 223, 0.78);
  font-size: 15px;
  line-height: 1.7;
  font-style: normal;
}

.lps-site-footer__links h2,
.lps-site-footer__contact h2 {
  margin-bottom: 18px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lps-footer-gold);
}

.lps-site-footer__links ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lps-site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.lps-site-footer__links a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(234, 210, 143, 0.72);
  box-shadow: 0 0 12px rgba(234, 210, 143, 0.22);
}

.lps-site-footer__contact {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.lps-site-footer__contact-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lps-site-footer__contact-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.lps-site-footer__contact-row span {
  display: block;
  margin-bottom: 5px;
  color: rgba(234, 210, 143, 0.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lps-site-footer__contact-row a,
.lps-site-footer__contact-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
}

.lps-site-footer__contact-row > a {
  font-size: 20px;
  font-weight: 900;
  color: var(--lps-footer-cream);
}

.lps-site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.lps-site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lps-site-footer__button:hover,
.lps-site-footer__button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.lps-site-footer__button--primary {
  color: #082336 !important;
  background: var(--lps-footer-cream);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lps-site-footer__button--ghost {
  color: var(--lps-footer-cream) !important;
  border: 1px solid rgba(249, 243, 223, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.lps-site-footer__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 20px;
  padding: 14px 18px;
  color: rgba(251, 244, 223, 0.88);
  border: 1px solid rgba(234, 210, 143, 0.24);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.lps-site-footer__notice strong {
  white-space: nowrap;
  color: var(--lps-footer-gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lps-site-footer__notice span {
  font-size: 13px;
  line-height: 1.5;
}

.lps-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.lps-site-footer__credit a {
  color: rgba(251, 244, 223, 0.74);
}

.lps-site-footer--dark-story {
  background:
    radial-gradient(circle at 74% -5%, rgba(234, 210, 143, 0.18), transparent 28%),
    linear-gradient(180deg, #08131c 0%, #0a1a26 56%, #040b10 100%);
}

.lps-site-footer--white-clinical {
  color: #17383a;
  background: linear-gradient(180deg, #fbf8ef 0%, #eef6f4 100%);
  border-top-color: rgba(65, 111, 102, 0.18);
}

.lps-site-footer--white-clinical .lps-site-footer__scene {
  opacity: 0.24;
}

.lps-site-footer--white-clinical .lps-site-footer__brand-copy strong,
.lps-site-footer--white-clinical .lps-site-footer__links h2,
.lps-site-footer--white-clinical .lps-site-footer__contact h2 {
  color: #123f43;
  text-shadow: none;
}

.lps-site-footer--white-clinical .lps-site-footer__brand-copy em,
.lps-site-footer--white-clinical .lps-site-footer__links a,
.lps-site-footer--white-clinical .lps-site-footer__contact-row a,
.lps-site-footer--white-clinical .lps-site-footer__contact-row p {
  color: #23464c;
}

.lps-site-footer--white-clinical .lps-site-footer__contact,
.lps-site-footer--white-clinical .lps-site-footer__notice {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(65, 111, 102, 0.18);
  color: #23464c;
}

.lps-site-footer--white-clinical .lps-site-footer__bottom {
  color: #466267;
  border-top-color: rgba(65, 111, 102, 0.18);
}

.lps-site-footer--minimal-ink {
  background: #0a202b;
}

.lps-site-footer--minimal-ink .lps-site-footer__scene {
  display: none;
}

@media (max-width: 980px) {
  .lps-site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .lps-site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .lps-site-footer__inner,
  .lps-site-footer__notice,
  .lps-site-footer__bottom {
    width: min(100% - 28px, 1240px);
  }

  .lps-site-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .lps-site-footer__brand-link {
    flex-direction: column;
  }

  .lps-site-footer__notice,
  .lps-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin */
.lps-footer-admin__intro {
  max-width: 860px;
  color: #4b5f64;
  font-size: 15px;
}

.lps-footer-admin__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.lps-footer-admin__card {
  padding: 22px;
  border: 1px solid #d9e4e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 63, 67, 0.06);
}

.lps-footer-admin__card--wide {
  grid-column: 1 / -1;
}

.lps-footer-admin__card h2 {
  margin: 0 0 16px;
  color: #123f43;
}

.lps-footer-admin__field {
  margin: 0 0 16px;
}

.lps-footer-admin__field label {
  display: block;
  margin-bottom: 6px;
  color: #193c40;
  font-weight: 700;
}

.lps-footer-admin__field--checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lps-footer-admin input[type="text"],
.lps-footer-admin input[type="url"],
.lps-footer-admin textarea,
.lps-footer-admin select {
  width: 100%;
  max-width: 100%;
  border-color: #c9d9d6;
  border-radius: 9px;
}

.lps-footer-admin__media-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.lps-footer-admin__media-preview {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px dashed #9db8b1;
  border-radius: 50%;
  background: #f4faf8;
  color: #617a7a;
  font-size: 11px;
  text-align: center;
}

.lps-footer-admin__media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lps-footer-admin__links {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.lps-footer-admin__link-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.65fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e9e7;
  border-radius: 12px;
  background: #f8fbfa;
}

.lps-footer-admin__new-tab {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .lps-footer-admin__grid {
    grid-template-columns: 1fr;
  }

  .lps-footer-admin__link-row {
    grid-template-columns: 1fr;
  }
}
