:root {
  --navy: #071633;
  --navy-soft: #0d2555;
  --blue: #1457ff;
  --blue-dark: #0d43c7;
  --blue-soft: #eaf1ff;
  --gold: #d4a017;
  --ink: #14213d;
  --muted: #64748b;
  --line: #dbe4f0;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --page: #f4f7fb;
  --sidebar-width: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Cairo", Arial, sans-serif;
}

body.site-page {
  min-height: 100vh;
  background: var(--page);
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
}

.site-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin 0.25s ease;
}

.lang-ar .site-main {
  margin-right: var(--sidebar-width);
}

.lang-en .site-main {
  margin-left: var(--sidebar-width);
}

.page-container,
.site-footer-inner {
  width: min(calc(100% - 32px), 1200px);
  margin: 0 auto;
}

.legal-container {
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
}

.menu-toggle {
  position: fixed;
  top: 16px;
  z-index: 40;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 22, 51, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.mobile-language-switch {
  position: fixed;
  top: 16px;
  z-index: 24;
  display: none;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 22, 51, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.lang-ar .mobile-language-switch {
  left: 16px;
}

.lang-en .mobile-language-switch {
  right: 16px;
}

.mobile-language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-language-switch button.is-active {
  background: #fff;
  color: var(--navy);
}

.lang-ar .menu-toggle {
  right: 16px;
}

.lang-en .menu-toggle {
  left: 16px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgba(7, 22, 51, 0.45);
}

.site-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top, rgba(212, 160, 23, 0.18), transparent 32%),
    linear-gradient(180deg, #071633 0%, #091b3f 100%);
  color: #fff;
  box-shadow: 0 0 36px rgba(7, 22, 51, 0.18);
}

.lang-ar .site-sidebar {
  right: 0;
  direction: rtl;
  text-align: right;
}

.lang-en .site-sidebar {
  left: 0;
  direction: ltr;
  text-align: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  padding: 5px;
}

.language-switch {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button.is-active {
  background: #fff;
  color: var(--navy);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-links {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.side-nav a:hover {
  transform: translateX(2px);
}

.lang-ar .side-nav a:hover {
  transform: translateX(-2px);
}

.sidebar-social {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.sidebar-social a:hover {
  color: #fff;
}

.page-main {
  flex: 1;
  padding: 36px 0 64px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: clamp(20px, 3vw, 36px);
}

.page-copy {
  font-size: 1.02rem;
  line-height: 1.9;
}

.page-copy h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.3;
  font-weight: 800;
}

.page-copy h2,
.section-title {
  margin: 28px 0 14px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 800;
}

.page-copy p,
.page-copy ul {
  margin: 0 0 16px;
}

.page-copy ul {
  padding-inline-start: 24px;
}

.page-copy li + li {
  margin-top: 6px;
}

.legal-copy {
  font-size: 1rem;
}

.legal-copy p {
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.legal-copy p:empty {
  display: none;
}

.legal-copy .legal-section-title {
  margin-top: 28px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.5;
  font-weight: 800;
}

.legal-copy .legal-subsection-title {
  color: var(--navy-soft);
  font-size: 1.08rem;
  font-weight: 700;
}

.lang-panel[data-lang="ar"] {
  direction: rtl;
  text-align: right;
}

.lang-panel[data-lang="en"] {
  direction: ltr;
  text-align: left;
}

.action-link,
.primary-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.action-link,
.primary-button {
  background: var(--blue);
  color: #fff;
}

.action-link:hover,
.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-link {
  color: var(--navy);
  background: var(--blue-soft);
}

.early-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(212, 160, 23, 0.18), transparent 28%),
    linear-gradient(135deg, #071633 0%, #0d2d70 56%, #071633 100%);
  color: #fff;
  padding: clamp(30px, 5vw, 68px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy {
  max-width: 620px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  padding: 6px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
  font-weight: 800;
}

.hero p {
  margin: 0 0 26px;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-preview {
  justify-self: end;
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 24px;
}

.hero-preview-grid {
  display: grid;
  gap: 14px;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  color: #f8d46b;
  background: rgba(212, 160, 23, 0.16);
  font-weight: 700;
}

.preview-panel {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.preview-panel strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.preview-list {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.value-section,
.cta-section {
  padding: clamp(28px, 4vw, 52px) 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.value-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
}

.value-card p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.cta-panel h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.84);
}

.site-footer-inner {
  display: grid;
  gap: 18px;
  padding: 30px 0;
}

.social-links,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a,
.footer-contact a {
  text-decoration: none;
}

.social-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.62);
}

.lang-ar .site-footer-inner {
  direction: rtl;
  text-align: right;
}

.lang-en .site-footer-inner {
  direction: ltr;
  text-align: left;
}

.social-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.social-facebook {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 21v-8h2.75l.41-3H13.5V8.08c0-.87.24-1.46 1.49-1.46H16.8V3.94c-.31-.04-1.37-.14-2.61-.14-2.58 0-4.35 1.58-4.35 4.48V10H6.92v3h2.92v8h3.66Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 21v-8h2.75l.41-3H13.5V8.08c0-.87.24-1.46 1.49-1.46H16.8V3.94c-.31-.04-1.37-.14-2.61-.14-2.58 0-4.35 1.58-4.35 4.48V10H6.92v3h2.92v8h3.66Z'/%3E%3C/svg%3E");
}

.social-tiktok {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 4c.34 1.96 1.48 3.32 3.5 3.95v3.06a8.25 8.25 0 0 1-3.46-.8v5.02c0 3.42-2.78 6.19-6.2 6.19a6.2 6.2 0 0 1 0-12.4c.4 0 .8.04 1.18.11v3.16a3.18 3.18 0 1 0 2.04 2.97V4h2.94Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 4c.34 1.96 1.48 3.32 3.5 3.95v3.06a8.25 8.25 0 0 1-3.46-.8v5.02c0 3.42-2.78 6.19-6.2 6.19a6.2 6.2 0 0 1 0-12.4c.4 0 .8.04 1.18.11v3.16a3.18 3.18 0 1 0 2.04 2.97V4h2.94Z'/%3E%3C/svg%3E");
}

.social-linkedin {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.5 8.25A1.75 1.75 0 1 1 6.5 4.75a1.75 1.75 0 0 1 0 3.5ZM5 19V10h3v9H5Zm5 0V10h2.88v1.23h.04c.4-.76 1.39-1.57 2.86-1.57 3.06 0 3.62 2.01 3.62 4.62V19h-3v-4.18c0-1 0-2.28-1.39-2.28-1.4 0-1.61 1.09-1.61 2.21V19h-3Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.5 8.25A1.75 1.75 0 1 1 6.5 4.75a1.75 1.75 0 0 1 0 3.5ZM5 19V10h3v9H5Zm5 0V10h2.88v1.23h.04c.4-.76 1.39-1.57 2.86-1.57 3.06 0 3.62 2.01 3.62 4.62V19h-3v-4.18c0-1 0-2.28-1.39-2.28-1.4 0-1.61 1.09-1.61 2.21V19h-3Z'/%3E%3C/svg%3E");
}

@media (min-width: 720px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-language-switch {
    display: inline-flex;
  }

  .drawer-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-sidebar {
    width: min(82vw, 300px);
    transition: transform 0.25s ease;
  }

  .lang-ar .site-sidebar {
    transform: translateX(100%);
  }

  .lang-en .site-sidebar {
    transform: translateX(-100%);
  }

  .drawer-open .site-sidebar {
    transform: translateX(0);
  }

  .drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .lang-ar .site-main,
  .lang-en .site-main {
    margin: 0;
  }

  .hero-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    justify-self: stretch;
    width: 100%;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-container,
  .legal-container,
  .site-footer-inner {
    width: min(calc(100% - 32px), 100%);
  }

  .page-main {
    padding: 72px 0 40px;
  }

  .page-card {
    border-radius: 14px;
  }

  .page-copy {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .hero {
    padding: 84px 0 34px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .cta-panel {
    align-items: stretch;
  }

  .cta-panel a {
    width: 100%;
  }
}
