:root {
  color-scheme: light;
  --ink: #17352f;
  --muted: #5e706c;
  --paper: #fbfaf4;
  --card: rgba(255, 255, 255, 0.84);
  --green: #0f6a5a;
  --green-dark: #103b35;
  --mint: #bde8d9;
  --orange: #ed8b46;
  --line: rgba(16, 59, 53, 0.14);
  --shadow: 0 24px 70px rgba(16, 59, 53, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(189, 232, 217, 0.85), transparent 32rem),
    radial-gradient(circle at 96% 60%, rgba(237, 139, 70, 0.12), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

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

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img { display: block; height: 40px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch button {
  min-width: 50px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--green-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--green-dark);
  border-radius: 12px 12px 12px 4px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(16, 59, 53, 0.18); }
.btn-primary { color: #fff; background: var(--green-dark); }
.btn-ghost { color: var(--green-dark); background: rgba(255, 255, 255, 0.7); }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--orange);
  content: "";
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 {
  font-family: "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 70px);
  line-height: 1.04;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
}

.section { padding: 56px 0 0; }

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}

.section > p.intro { max-width: 720px; margin: 0; color: var(--muted); }

/* Landing */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: center;
  padding-top: 34px;
}

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

.channel-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px 28px 28px 9px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.channel-card h2 { margin: 0 0 14px; font-size: 22px; }

.channel-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.channel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.channel-list .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.channel-list li:nth-child(2) .dot { background: var(--orange); }
.channel-list li:nth-child(3) .dot { background: #3b6fd8; }
.channel-list li:nth-child(4) .dot { background: #26a5e4; }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.tile {
  padding: 24px;
  border-top: 3px solid var(--mint);
  border-radius: 4px 4px 18px 18px;
  background: rgba(255, 255, 255, 0.66);
}

.tile:nth-child(2) { border-color: var(--orange); }
.tile:nth-child(3) { border-color: var(--green); }
.tile:nth-child(4) { border-color: var(--orange); }

.tile h3 { margin: 6px 0 8px; font-size: 20px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 15.5px; }
.tile .number { color: var(--green); font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.tile .tile-link { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 800; }

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px 24px 24px 8px;
  background: var(--card);
}

.company dl { display: grid; gap: 14px; margin: 0; }
.company dt { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.company dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.company .ltr { direction: ltr; unicode-bidi: isolate; }
.company p { margin: 0 0 12px; color: var(--muted); }

/* Legal documents */
.doc {
  max-width: 820px;
  padding: 26px 0 70px;
}

.doc h1 { font-size: clamp(34px, 5vw, 54px); }
.doc .meta { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.doc h2 {
  margin: 40px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 25px;
}

.doc h3 { margin: 22px 0 6px; font-size: 19px; }
.doc p, .doc li { color: #2c4843; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }

.doc .callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-inline-start: 4px solid var(--orange);
  border-radius: 4px 14px 14px 4px;
  background: rgba(237, 139, 70, 0.09);
}

html[lang="ar"] .doc .callout { border-radius: 14px 4px 4px 14px; }

.doc .contact-box {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.doc .contact-box p { margin: 4px 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  justify-content: space-between;
  margin-top: 64px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a:hover { color: var(--green); }

/* Language visibility */
[data-lang="ar"] { display: none !important; }
html[lang="ar"] [data-lang="en"] { display: none !important; }
html[lang="ar"] [data-lang="ar"] { display: revert !important; }
html[lang="ar"] .eyebrow::before { order: 2; }

@media (max-width: 860px) {
  .hero, .company { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding-top: 44px; }
}

@media (max-width: 480px) {
  .brand img { height: 32px; }
  .lang-switch button { min-width: 42px; padding-inline: 9px; }
  .btn { padding: 10px 14px; }
  .channel-card, .company { padding: 22px; }
}

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