:root {
  --green: #27AE61;
  --green-dark: #1E8A4D;
  --green-darker: #16693B;
  --green-tint: #EAF7F0;
  --ink: #1C2B24;
  --muted: #5B6B62;
  --bg: #FFFFFF;
  --card: #F6FAF7;
  --border: #DFEAE3;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  text-align: right;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 0.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand .name {
  font-size: 1.35rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-tint);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--green-dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 72px 0 80px;
  text-align: center;
}

.hero img.logo {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero p.tagline {
  font-size: 1.25rem;
  opacity: .95;
  max-width: 620px;
  margin: 0 auto 28px;
}

.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}

.badge:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }

section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-darker);
  margin-bottom: 8px;
}

section p.lead {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 700px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- About ---------- */
.about { background: var(--green-tint); }

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 560px;
}

.about-head { margin-bottom: 18px; }

.about-eyebrow {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2px;
}

.about-head h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-darker);
}

.about-contact {
  list-style: none;
  display: grid;
  gap: 14px;
}

.about-contact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.about-contact li:first-child { border-top: 0; padding-top: 0; }

.about-label { color: var(--muted); font-weight: 500; }

.about-contact a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.about-contact a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.page-head {
  background: var(--green-tint);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-head h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-darker);
}

.page-head .updated {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 6px;
}

.legal {
  padding: 40px 0 64px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-darker);
  margin: 32px 0 10px;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
  color: #33423A;
}

.legal ul {
  padding-right: 24px;
  margin: 8px 0 16px;
}

.legal li { margin-bottom: 6px; }

.legal a { color: var(--green-dark); }

.note {
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-right: 4px solid var(--green);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #C9D6CE;
  padding: 32px 0;
  margin-top: 24px;
}

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

.footer-inner .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #7598eb;
  text-decoration: underline;
}

.footer-inner a:hover { color: #fff; }

/* ---------- LTR (English) overrides ---------- */
html[dir="ltr"] body { text-align: left; }

html[dir="ltr"] .legal ul {
  padding-right: 0;
  padding-left: 24px;
}

html[dir="ltr"] .note {
  border-right: 1px solid var(--border);
  border-left: 4px solid var(--green);
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .nav { flex-wrap: wrap; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }

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

  .nav-links a {
    display: block;
    padding: 12px 14px;
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 48px 0 56px; }
  .hero img.logo { width: 88px; height: 88px; }
  .hero p.tagline { font-size: 1.05rem; }
  section { padding: 40px 0; }
  section h2 { font-size: 1.5rem; }
  .page-head h1 { font-size: 1.6rem; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner .links { justify-content: center; }
}
