/* Shared header/footer and type rules adapted from the approved homepage. */
:root {
  --jn-black: #070707;
  --jn-ink: #11100f;
  --jn-muted: #6f6d67;
  --jn-soft: #efeee8;
  --jn-cream: #f8f7f2;
  --jn-white: #ffffff;
  --jn-line: rgba(17, 16, 15, 0.12);
  --jn-green: #044c40;
  --jn-green-2: #0d7a68;
  --jn-sage: #c4e3c1;
  --font-sans:
    "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --jn-serif: "Lora", Georgia, serif;
  --jn-sans: var(--font-sans);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--jn-ink);
  background: var(--jn-white);
  font-family: var(--jn-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}
img,
video {
  display: block;
  max-width: 100%;
}
.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.section-shell.wide {
  width: min(1320px, calc(100% - 32px));
}
.display-title {
  margin: 0;
  font-family: var(--jn-serif);
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}
.section-title {
  margin: 0;
  font-family: var(--jn-serif);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible {
  outline: 2px solid var(--jn-green-2);
  outline-offset: 4px;
}
.btn.light {
  background: var(--jn-white);
  color: var(--jn-black);
}
.btn.light:hover {
  background: var(--jn-sage);
}
.btn.dark {
  background: var(--jn-black);
  color: var(--jn-white);
}
.btn.dark:hover {
  background: var(--jn-green);
}
.btn.outline {
  border: 1px solid var(--jn-line);
  color: var(--jn-ink);
  background: transparent;
}
.btn.outline:hover {
  background: var(--jn-soft);
}
.hero-actions .btn.outline,
.dark-actions .btn.outline,
.membership-actions .btn.outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--jn-white);
}
.hero-actions .btn.outline:hover,
.dark-actions .btn.outline:hover,
.membership-actions .btn.outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.join-partners {
  position: relative;
}
.join-partners-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.join-partners-btn:hover,
.join-partners-btn[aria-expanded="true"] {
  color: var(--jn-white);
}
.join-partners-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}
.join-partners-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.join-partners-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 340px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  color: #11100f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  white-space: normal;
}
html[dir="ltr"] .join-partners-menu {
  transform: translateX(-50%);
}
.join-partners-menu[hidden] {
  display: none;
}
.join-partners-menu::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -14px;
  height: 14px;
}
.join-partner {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #11100f;
  text-decoration: none;
}
.join-partner:hover,
.join-partner:focus-visible {
  background: #f4f2ec;
}
.join-partner img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: center;
}
.join-partner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.join-partner small {
  display: block;
  margin-top: 2px;
  color: #c2477f;
  font-size: 12px;
  font-weight: 600;
}
.join-mobile-partners {
  display: none;
}
.join-mobile-panel {
  display: none;
}
.join-nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
}
.join-nav-inner {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 20px;
}
.join-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.join-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.join-links a:hover {
  color: var(--jn-white);
}
.join-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.join-lang {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.join-lang:hover {
  color: var(--jn-white);
}
.join-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--jn-white);
  align-items: center;
  justify-content: center;
}
.join-menu-btn span,
.join-menu-btn span::before,
.join-menu-btn span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.join-menu-btn span::before {
  transform: translateY(-6px);
}
.join-menu-btn span::after {
  transform: translateY(4px);
}
.hero-content .display-title {
  max-width: 760px;
  margin-inline: auto;
  color: var(--jn-white);
  font-size: clamp(46px, 5.6vw, 72px);
}
.dark-band .section-title {
  color: var(--jn-white);
  max-width: 650px;
  margin-inline: auto;
}
.join-footer .call-link {
  color: var(--jn-white);
}
.final-cta .section-title {
  max-width: 820px;
  margin-inline: auto;
}
.join-footer {
  padding: 70px 0 34px;
  color: var(--jn-white);
  background: var(--jn-black);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tag {
  max-width: 280px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}
.join-footer h3 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.join-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.join-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}
.join-footer a:hover {
  color: var(--jn-white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}
.sticky-cta .btn {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 14px;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .join-nav-inner {
    grid-template-columns: 1fr auto;
  }
  .join-links,
  .join-actions .join-login,
  .join-actions .join-lang,
  .join-actions .btn {
    display: none;
  }
  .join-menu-btn {
    display: inline-flex;
  }
  .join-mobile-panel {
    position: fixed;
    inset: 12px;
    z-index: 100;
    display: none;
    padding: 78px 24px 24px;
    border-radius: 24px;
    background: var(--jn-black);
    color: var(--jn-white);
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }
  .join-mobile-panel.open {
    display: block;
  }
  .join-mobile-partners {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }
  .join-mobile-panel a.join-partner {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #11100f;
    font-size: 15px;
    line-height: 1.35;
  }
  .join-mobile-panel a.join-partner img {
    height: 40px;
  }
  .join-mobile-panel a.join-partner strong {
    font-size: 15px;
  }
  .join-mobile-panel nav {
    display: grid;
    gap: 4px;
  }
  .join-mobile-panel a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
  .join-mobile-panel .btn {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
  }
  .join-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--jn-white);
    font-size: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .section-shell,
  .section-shell.wide {
    width: min(100% - 28px, 1120px);
  }
  .join-nav {
    padding: 18px;
  }
  .join-logo {
    display: none;
  }
  .join-nav-inner {
    display: flex;
    justify-content: flex-end;
  }
  .display-title {
    font-size: clamp(43px, 14vw, 62px);
  }
  .hero-content .display-title {
    font-size: clamp(48px, 13vw, 64px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .sticky-cta .btn {
    min-width: 118px;
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
