@import './variables.css';

@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/tajawal/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/tajawal/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/tajawal/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/tajawal/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family-base);
  background: var(--green-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100%;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #fff;
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: var(--border-radius);
  border: 3px solid rgba(0, 0, 0, 0.1);
}




/* ════════════════════════════════════════
       HEADER
    ════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 100px;
  background: var(--white61);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  overflow: visible;
}

.header .dropdown-toggle::after {
  border-top: unset;
}

.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* ════════════════════════════════════════
       MENU BUTTON
    ════════════════════════════════════════ */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--green);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════
       NAV
    ════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--text-gray);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  position: relative;
  background: transparent;
  border: 0;
  font-family: inherit;
  padding: 0;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline-start: 0;
  width: 61%;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active::after,
.nav-item.open>.nav-link::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--green);
  font-weight: 700;
}

.nav-item {
  position: relative;
}

.nav-link .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ════════════════════════════════════════
       SUBMENU
    ════════════════════════════════════════ */
.nav-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 14px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding-bottom: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.35s cubic-bezier(.22, 1, .36, 1),
    transform 0.35s cubic-bezier(.22, 1, .36, 1),
    filter 0.35s cubic-bezier(.22, 1, .36, 1),
    visibility 0.35s cubic-bezier(.22, 1, .36, 1);
  transform-origin: top right;
}

.nav-submenu-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  overflow: hidden;
}

.nav-submenu-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-gray);
  font-size: 16px;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-submenu-item:hover {
  background: #f7f7f7;
  color: var(--green);
}

.nav-submenu-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--green);
  border-radius: 999px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.nav-submenu-item:hover::before,
.nav-submenu-item.active::before {
  transform: scaleY(1);
}

/* desktop hover */
@media (min-width: 993px) {
  .nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  .nav-dropdown:hover>.nav-link .arrow {
    transform: rotate(180deg);
    margin-top: 2px;
  }
}

/* ════════════════════════════════════════
       HEADER ICONS
    ════════════════════════════════════════ */
.header-icons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  opacity: 0.85;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn .lang-btn img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lang-btn.dropdown-toggle::after {
  display: none;
}

.lang-dropdown-menu {
  min-width: 140px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.lang-dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  text-align: start;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item:focus {
  background: #f1f5f9;
}

.lang-dropdown-menu .dropdown-item img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  margin-inline-end: 8px;
  vertical-align: middle;
}

/* ════════════════════════════════════════
       RESPONSIVE
    ════════════════════════════════════════ */
@media (max-width: 1200px) {
  .header {
    padding: 18px 48px;
  }

  .nav {
    gap: 28px;
  }

  .nav-link {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    height: 84px;
    min-height: 84px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .logo {
    order: 1;
  }

  .header-icons {
    order: 2;
    margin-inline-start: auto;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    padding: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease,
      padding 0.3s ease;
  }

  .nav.is-open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 10px;
  }

  .nav>.nav-link,
  .nav>.nav-item>.nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav>.nav-link.active,
  .nav>.nav-item.open>.nav-link,
  .nav>.nav-item>.nav-link:hover {
    background: rgba(26, 122, 94, 0.08);
    color: var(--green);
  }

  .nav-item {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    filter: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav-submenu .nav-submenu-box {
    background: #f8f8f8;
    border-radius: 14px;
    overflow: hidden;
  }

  .nav-dropdown:hover .nav-submenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    filter: blur(8px);
  }

  .nav-dropdown:hover>.nav-link .arrow {
    transform: rotate(0deg);
    margin-top: 2px;
  }

  .nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    filter: none;
    max-height: 500px;
    padding: 8px 0;
  }

  .nav-dropdown.open>.nav-link .arrow {
    transform: rotate(180deg);
    margin-top: 2px;
  }

  .nav-submenu-item {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 12px;
  }

  .logo-text {
    font-size: 17px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .header-icons {
    gap: 8px;
  }

  .nav>.nav-link,
  .nav>.nav-item>.nav-link {
    font-size: 15px;
    padding: 13px 10px;
  }

  .nav-submenu-item {
    font-size: 13px;
  }
}

.nav-link:focus,
.nav-link:hover {
  color: var(--green);
}

.nav-link img {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover>.nav-link img {
  transform: rotate(-90deg);
}

/* footer */
.site-footer {
  background: #141618;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
}

.site-footer__inner {
  padding: 96px 100px;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-about {
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 32px;
  max-width: 378px;
}

/* meta */
.footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  color: #fff;
  font-size: var(--fs-16);
  line-height: 1.5;
}

.footer-meta-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  flex: 1;
  min-width: 0;
}

.footer-meta-text a {
  font-weight: 600;
  word-break: break-word;
}

.footer-meta li img {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.footer-meta li:hover img {
  transform: scale(1.08) translateY(-1px);
}

.footer-meta a {
  color: #f0ebe2;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-meta a:hover {
  color: var(--gold);
}

.footer-title {
  position: relative;
  color: #f6efe2;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  padding-bottom: 12px;
  display: flex;
  gap: 6px;
}

.footer-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 85%;
  height: 1px;
  background: #FFE2C6;
}

/* contact */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  font-size: var(--fs-18);
  line-height: 1.5;
}

.footer-contact-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.footer-contact-text a {
  word-break: break-word;
}

.footer-contact-text span {
  word-break: break-word;
}

.footer-contact li img {
  object-fit: contain;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-contact li:hover img {
  transform: scale(1.08) translateY(-1px);
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: var(--gold);
}

/* links */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-18);
  line-height: 1.5;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

/* divider */
.footer-divider {
  margin-block: 24px;
  border-top: 1px dashed #FAD59A;
  opacity: 0.95;
}

.footer-bottom {
  color: #FFE3E5;
  font-size: var(--fs-16);
  line-height: 1.8;
  opacity: 0.95;
}

.footer-brand-link {
  position: relative;
  color: #FFE3E5;
  font-weight: 500;
  text-underline-offset: 4px;
  display: inline-block;
  transition: transform .25s ease, color .25s ease;
}

/* hover animation */
.footer-brand-link:hover {
  color: var(--gold);
  transform: scale(0.9);
}

/* social */
.footer-social {
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  width: 32px;
  height: 32px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  background: #fff;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(213, 173, 81, 0.18);
  background: #f7f1e6;
}

.social-btn:hover img {
  transform: scale(1.08);
}

.footer-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.4px;
}

.social-label--linkedin {
  color: #0a66c2;
  font-size: 14px;
}

.social-label--snap {
  color: #ffe600;
  font-size: 11px;
}

.footer-support-links a {
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-16);
  line-height: 1.5;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-support-links li {
  margin-bottom: 10px;
}

.footer-support-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-support-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-inline-end: 8px;
  flex-shrink: 0;
}

.social-btn img[alt="tiktok"] {
  width: 16px;
  height: 16px;
  object-fit: contain;
}


.footer-social {
  display: flex;
  gap: 10px;
}

@media (max-width: 991.98px) {
  .site-footer__inner {
    padding: 48px 20px max(7.5rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
  }

  .footer-info-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 8px;
  }

  .footer-info-head .footer-logo {
    margin-bottom: 0 !important;
  }

  .footer-info-head .footer-logo img {
    margin-inline: auto;
  }

  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    gap: 12px;
    row-gap: 14px;
  }

  .footer-block.footer-brand {
    text-align: center;
  }

  .footer-about {
    max-width: none;
    margin-inline: auto;
    margin-bottom: 24px;
  }

  .footer-brand .footer-meta {
    text-align: start;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .footer-meta li {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(250, 213, 154, 0.12);
  }

  .footer-meta li img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-top: 2px;
  }

  .footer-meta-text {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }

  .footer-meta-text span {
    font-size: 0.92em;
    line-height: 1.35;
    opacity: 0.92;
  }

  .footer-meta-text a {
    font-size: 1.05em;
    line-height: 1.3;
  }

  .footer-support-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
  }

  .footer-support-links li {
    margin-bottom: 0;
  }

  .footer-support-links a {
    justify-content: center;
  }

  .footer-title {
    justify-content: center;
  }

  .footer-title::before {
    inset-inline-start: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(240px, 70%);
  }

  .footer-block:has(> .footer-contact) {
    text-align: start;
  }

  .footer-block .footer-contact {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .footer-contact li {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: start;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(250, 213, 154, 0.12);
  }

  .footer-contact li img {
    width: 26px;
    height: 26px;
    margin-top: 2px;
  }

  .footer-contact-text {
    font-size: 0.95em;
    line-height: 1.4;
  }

  .footer-contact-text a {
    font-weight: 600;
  }

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

  .footer-block:has(.footer-link-columns) {
    text-align: start;
  }

  .footer-link-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
  }

  .footer-link-columns > [class*="col-"] {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .footer-link-columns .footer-links {
    text-align: start;
  }

  .footer-link-columns .footer-links li {
    margin-bottom: 8px;
  }

  .footer-link-columns .footer-links li:last-child {
    margin-bottom: 0;
  }

  .footer-link-columns .footer-links a {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(250, 213, 154, 0.12);
    font-size: 0.95em;
    line-height: 1.35;
    word-break: break-word;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-bottom {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .site-footer__inner {
    padding: 40px 16px max(7.5rem, calc(5rem + env(safe-area-inset-bottom, 0px)));
  }
}


/*LTR*/
html[dir="ltr"] img[alt="arrow-left"] {
  transform: scaleX(-1);
}

/*LTR*/