
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

/* Consistent Font Awesome arrows across desktop and mobile.
   Font Awesome 6 Free has fa-arrow-right; rotate it for NE arrows.
   Navigation arrows flip naturally with Arabic RTL. */
.ym-fa-diagonal {
  display: inline-block;
  transform: rotate(-45deg);
}

html[dir="rtl"] .ym-fa-diagonal {
  transform: rotate(-135deg);
}

html[dir="rtl"] .ym-fa-forward {
  display: inline-block;
  transform: rotate(180deg);
}

/* =========================================
   GLOBAL + NAVBAR + FOOTER
========================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

::selection {
  background: var(--saffron);
  color: var(--navy);
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

h1, h2, h3, p {
  margin-block-start: 0;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: -100px;
  inset-inline-start: 20px;
  padding: 10px 15px;
  background: var(--saffron);
  color: var(--navy);
}

.skip-link:focus {
  inset-block-start: 15px;
}

/* NAVBAR */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(27,36,53,.09);
  background: rgba(247,248,250,.97);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--navy);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 900;
  direction: ltr;
}

.brand-top {
  font-size: 1.62rem;
}

.brand-bottom {
  margin-top: 4px;
  font-size: .66rem;
  letter-spacing: .13em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 25px);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding-block: 12px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--coral);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 4px;
  height: 2px;
  background: var(--coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.language-select {
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid rgba(27,36,53,.15);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 4px;
  border-radius: 2px;
  background: var(--off-white);
  transition: transform .2s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition:
    transform .25s var(--ease),
    background .25s,
    color .25s,
    border-color .25s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--navy);
  color: var(--off-white);
}

.btn-dark:hover {
  background: var(--blue);
}

.btn-saffron {
  background: var(--saffron);
  color: var(--navy);
}

.btn-saffron:hover {
  background: var(--sand);
}

.btn-outline-light {
  border-color: rgba(247,248,250,.75);
  color: var(--off-white);
}

.btn-outline-light:hover {
  background: var(--off-white);
  color: var(--navy);
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--off-white);
}

.header-cta {
  min-height: 40px;
  padding: 9px 16px;
  font-size: .8rem;
}

/* COMMON SECTION ELEMENTS */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--saffron);
}

.eyebrow-line {
  display: inline-block;
  flex-shrink: 0;
  width: 27px;
  height: 2px;
  background: currentColor;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--coral);
  color: var(--navy);
  font-weight: 800;
  transition: gap .2s, color .2s;
}

.text-link:hover {
  gap: 28px;
  color: var(--coral);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 710px;
  margin-bottom: 0;
}

.section-intro {
  max-width: 340px;
  margin-bottom: 8px;
  font-size: .99rem;
}

/* FOOTER */

.site-footer {
  background: var(--ink);
  color: var(--off-white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 60px;
  padding-block: 75px;
}

.brand-footer {
  color: var(--off-white);
}

.footer-brand p {
  max-width: 330px;
  margin-block: 0px 12px;
  color: var(--sand);
}

.footer-city {
  color: var(--mist);
  font-size: .84rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-links h3 {
  margin-bottom: 13px;
  color: var(--saffron);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.footer-links a {
  font-size: .9rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--saffron);
}

/* =========================================
   FOOTER SOCIAL MEDIA — FONT AWESOME
========================================= */

.site-footer .footer-links .footer-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin-top: 18px;
}

.site-footer .footer-links .footer-socials > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.site-footer .footer-socials .fa-brands {
  display: inline-block;
  color: inherit;
  font-size: 26px;
  line-height: 1;
}

.site-footer .footer-links .footer-socials > a:hover,
.site-footer .footer-links .footer-socials > a:focus-visible {
  color: var(--saffron);
  transform: translateY(-3px);
}

@media (max-width: 650px) {
  .site-footer .footer-links .footer-socials {
    gap: 14px;
  }

  .site-footer .footer-links .footer-socials > a,
  .site-footer .footer-socials .fa-brands {
    font-size: 24px;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid rgba(247,248,250,.16);
  color: var(--sand);
  font-size: .79rem;
}

/* REVEAL ANIMATIONS */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .75s var(--ease),
    transform .75s var(--ease);
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1150px) {
  .header-inner { gap: 15px; }
  .site-nav { gap: 11px; }
  .nav-link { font-size: .76rem; }
}

@media (max-width: 950px) {
  .container {
    width: min(var(--container), calc(100% - 42px));
  }

  .section { padding-block: 80px; }
  .header-inner { min-height: 75px; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 22px;
    border-bottom: 1px solid var(--sand);
    background: var(--off-white);
    box-shadow: 0 18px 24px rgba(21,43,85,.1);
  }

  .site-nav.open { display: flex; }

  .nav-link {
    padding: 12px 6px;
    font-size: .98rem;
  }

  .nav-link.active::after { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .section { padding-block: 66px; }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: .67rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-intro {
    max-width: 550px;
    margin-top: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 55px;
  }

  .footer-brand { grid-column: span 2; }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

  .brand-top { font-size: 1.4rem; }
  .brand-bottom { font-size: .58rem; }
}

/* RTL */

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   REACH US BUTTON
========================================= */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 9px 18px;

  border-radius: 100px;
  white-space: nowrap;

  font-size: .8rem;
  font-weight: 800;
}

.header-cta.active {
  background: var(--coral);
  color: var(--off-white);
}

/* TABLET */

@media (max-width: 1150px) {

  .header-cta {
    display: inline-flex;
    padding: 9px 13px;
  }

}

/* MOBILE */

@media (max-width: 650px) {

  .header-inner {
    gap: 9px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-cta {
    min-height: 36px;
    padding: 8px 11px;
    font-size: .72rem;
  }

  .language-select {
    min-height: 36px;
    padding: 5px 7px;
    font-size: .72rem;
  }

}

/* SMALL MOBILE */

@media (max-width: 390px) {

  .brand-top {
    font-size: 1.18rem;
  }

  .brand-bottom {
    font-size: .48rem;
  }

  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-cta {
    padding: 7px 9px;
    font-size: .68rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

}

/* =========================================
   BRAND IMAGE LOADING — NO TEXT/IMAGE FLASH
   Text exists for accessibility/fallback but is
   invisible until API confirms no usable logo.
   Fixed dimensions prevent layout shift.
========================================= */
.site-header .brand {
  inline-size: 190px;
  min-block-size: 60px;
  justify-content: center;
}

.site-footer .brand {
  inline-size: 240px;
  min-block-size: 75px;
  justify-content: center;
}

.brand.brand-pending > .brand-top,
.brand.brand-pending > .brand-bottom {
  visibility: hidden;
}

/* In particular, never display an image before it has loaded. */
.brand img.ym-organization-logo:not(.ym-logo-ready) {
  visibility: hidden;
}

@media (max-width: 650px) {
  .site-header .brand {
    inline-size: 142px;
    min-block-size: 45px;
  }
  .site-footer .brand {
    inline-size: min(240px, 100%);
    min-block-size: 65px;
  }
}

@media (max-width: 390px) {
  .site-header .brand {
    inline-size: 110px;
    min-block-size: 40px;
  }
}
