/* Standalone global public navigation and bilingual footer enhancement. */
:root {
  --ram-footer-bg: #050505;
  --ram-footer-card: #0c0c0c;
  --ram-footer-ink: #f4f1ea;
  --ram-footer-muted: #9c9a95;
  --ram-footer-line: rgba(255, 255, 255, 0.14);
}

[data-ram-global-footer-source="true"] {
  display: none !important;
}

.ram-global-footer {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(3.5rem, 7vw, 7rem) max(5vw, 1.25rem) clamp(7rem, 10vw, 9rem);
  overflow: hidden;
  border-top: 1px solid var(--ram-footer-line);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.07), transparent 24rem),
    linear-gradient(145deg, #111 0%, var(--ram-footer-bg) 45%, #030303 100%);
  color: var(--ram-footer-ink);
  direction: rtl;
  font-family: inherit;
}

.ram-global-footer::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.025) 48%, transparent 72%);
  content: "";
  pointer-events: none;
}

.ram-global-footer *,
.ram-global-footer *::before,
.ram-global-footer *::after {
  box-sizing: border-box;
}

.ram-global-footer__top,
.ram-global-footer__bottom {
  position: relative;
  width: min(100%, 86rem);
  margin-inline: auto;
}

.ram-global-footer__top {
  display: grid;
  grid-template-columns: minmax(17rem, 1.35fr) minmax(18rem, 1fr) minmax(15rem, 0.75fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.ram-global-footer__eyebrow,
.ram-global-footer__en,
.ram-global-footer__coordinates {
  direction: ltr;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
}

.ram-global-footer__eyebrow {
  margin: 0 0 1.4rem;
  color: var(--ram-footer-muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.ram-global-footer__wordmark {
  display: inline-block;
  margin-inline-start: -0.08em;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.095em;
  text-decoration: none;
}

.ram-global-footer__brand h2 {
  margin: 1.9rem 0 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 500;
}

.ram-global-footer__statement,
.ram-global-footer__location {
  max-width: 30rem;
  margin: 0.8rem 0 0;
  color: var(--ram-footer-muted);
  font-size: 0.88rem;
  line-height: 2;
}

.ram-global-footer__heading {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
}

.ram-global-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
}

.ram-global-footer__link {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ram-footer-ink);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ram-global-footer__link:hover,
.ram-global-footer__link:focus-visible,
.ram-global-footer__link[data-ram-active="true"] {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  transform: translateX(-0.2rem);
}

.ram-global-footer__link:focus-visible,
.ram-global-footer__wordmark:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.ram-global-footer__fa {
  font-size: 0.78rem;
  white-space: nowrap;
}

.ram-global-footer__en {
  color: var(--ram-footer-muted);
  font-size: 0.52rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ram-global-footer__contact > .ram-global-footer__link {
  margin-top: 0.35rem;
}

.ram-global-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--ram-footer-line);
  color: var(--ram-footer-muted);
  direction: ltr;
}

.ram-global-footer__bottom small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* One route, one active item: neutralize the permanent account emphasis in the compiled dock. */
[class*="mobileDock__"] a {
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

[class*="mobileDock__"] a[data-ram-active="true"] {
  background: #f5f2ec !important;
  color: #0a0a0a !important;
}

[class*="mobileDock__"] a[data-ram-active="true"] svg {
  color: #0a0a0a !important;
  stroke: currentColor !important;
}

header a[data-ram-active="true"],
[class*="mobileMenu__"] a[data-ram-active="true"] {
  color: #fff !important;
}

header a[data-ram-active="true"]::after,
[class*="mobileMenu__"] a[data-ram-active="true"]::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.35rem;
  background: currentColor;
  content: "";
}

@media (max-width: 960px) {
  .ram-global-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .ram-global-footer__brand {
    grid-column: 1 / -1;
  }

  .ram-global-footer__wordmark {
    font-size: clamp(5rem, 18vw, 9rem);
  }
}

@media (max-width: 620px) {
  .ram-global-footer {
    padding: 4rem 1.15rem 9rem;
  }

  .ram-global-footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ram-global-footer__brand {
    grid-column: auto;
  }

  .ram-global-footer__links {
    grid-template-columns: 1fr;
  }

  .ram-global-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    direction: rtl;
  }

  .ram-global-footer__coordinates {
    direction: ltr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ram-global-footer__link {
    transition: none;
  }
}
