:root {
  --olive: #2e5e3b;
  --olive-dark: #203f29;
  --sand: #e8d9c5;
  --gold: #d9a441;
  --off-white: #f8f7f4;
  --terracotta: #c96b5c;
  --ink: #172018;
  --muted: #5f685e;
  --card: #ffffff;
  --line: rgba(46, 94, 59, 0.16);
  --shadow: 0 18px 50px rgba(32, 63, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--olive);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--olive);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
  font-size: 0.95rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switcher button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--olive);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  color: #fff;
  background: var(--olive);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  padding: 58px 0 42px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--olive-dark);
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  max-width: 680px;
}

.hero-card {
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 164, 65, 0.22), transparent 34%),
    linear-gradient(145deg, #fff, #f0eadf);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-align: center;
}

.hero-card img {
  width: min(280px, 82%);
  height: auto;
  object-fit: contain;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 94, 59, 0.2);
}

.button.secondary {
  background: #fff;
  color: var(--olive);
  border: 1px solid var(--line);
  box-shadow: none;
}

.content,
.page-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  padding: 48px 0 18px;
}

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

.card,
.policy-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(32, 63, 41, 0.08);
}

.card {
  padding: 22px;
}

.card h2,
.policy-section h2 {
  margin: 0 0 10px;
  color: var(--olive-dark);
  font-size: 1.18rem;
}

.card p,
.policy-section p,
.policy-section li {
  color: var(--muted);
}

.policy-section {
  margin: 18px 0;
  padding: 26px;
}

.policy-section ul {
  margin: 8px 0 0;
  padding-inline-start: 24px;
}

.notice {
  border-inline-start: 5px solid var(--gold);
  background: #fff8ea;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--olive-dark);
  font-weight: 750;
}

.danger {
  border-inline-start-color: var(--terracotta);
  background: #fff3f0;
}

.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: #fff3f0;
  color: var(--terracotta);
  font-weight: 900;
}

.footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  text-align: center;
}

[data-lang] {
  display: none;
}

body.lang-ar [data-lang="ar"],
body.lang-en [data-lang="en"] {
  display: block;
}

body.lang-ar {
  direction: rtl;
}

body.lang-en {
  direction: ltr;
}

body.lang-ar .nav-links {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

body.lang-ar .actions,
body.lang-ar .nav {
  direction: rtl;
}

body.lang-en .actions,
body.lang-en .nav {
  direction: ltr;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-switcher {
    margin-inline-start: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 34px;
  }

  .hero-card {
    order: -1;
    padding: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding: 20px;
    border-radius: 20px;
  }
}
