:root {
  --field: #22301a;
  --field-deep: #172210;
  --green: #435e27;
  --leaf: #7aab46;
  --accent: #8dbb57;
  --accent-text: #4c7623;
  --sand: #ece3d0;
  --paper: #f7f3ea;
  --text: #262a22;
  --muted: #5e6458;
  --light: #f4efe4;
  --light-muted: rgba(244, 239, 228, 0.72);
  --line: rgba(38, 42, 34, 0.13);
  --line-dark: rgba(244, 239, 228, 0.16);
  --head: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
  --body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --nav-h: 74px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html[lang="ar"] {
  --head: "Noto Naskh Arabic", "Fraunces", serif;
  --body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Shared type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  margin-block-end: 18px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 11.5px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow, .contact .eyebrow { color: var(--accent); }
.title, .display, .hero-title {
  font-family: var(--head);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.display { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; }
html[lang="ar"] .title, html[lang="ar"] .display, html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.5; font-weight: 600; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .label { letter-spacing: 0; font-size: 13.5px; }
.prose p + p { margin-block-start: 1em; }
.num { font-family: var(--head); font-size: 15px; color: var(--accent-text); font-variant-numeric: lining-nums; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--field-deep);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #9dc76a; }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.arrow { transition: transform 0.25s var(--ease); }
.btn.ghost { background: transparent; color: var(--light); box-shadow: inset 0 0 0 1px rgba(244, 239, 228, 0.5); }
.btn.ghost:hover { background: rgba(244, 239, 228, 0.1); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: max(20px, (100vw - 1200px) / 2);
  color: var(--light);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid, .nav.open { background: var(--field); box-shadow: 0 1px 0 var(--line-dark); }
.nav-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-brand img { width: auto; height: 46px; }
.nav-brand .logo-ar { height: 58px; }
.logo-ar, html[lang="ar"] .logo-en { display: none; }
html[lang="ar"] .logo-ar { display: block; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 14.5px; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0.8; }
.lang span { opacity: 0.5; }
.lang button { padding: 4px 2px; opacity: 0.6; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 600; color: var(--accent); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  position: absolute; inset-inline-start: 9px; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.25s, opacity 0.2s;
}
.menu-icon { top: 19px; }
.menu-icon::before, .menu-icon::after { content: ""; inset-inline-start: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.nav.open .menu-icon { background: transparent; }
.nav.open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: calc(var(--nav-h) + 60px) 40px;
  color: var(--light);
  background: var(--field-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 34, 16, 0.55) 0%, rgba(23, 34, 16, 0) 28%),
    linear-gradient(0deg, rgba(23, 34, 16, 0.92) 8%, rgba(23, 34, 16, 0.35) 55%, rgba(23, 34, 16, 0.1) 100%);
}
.hero-inner { max-width: 1200px; }
.hero .eyebrow::before { display: none; }
.hero-title { font-size: clamp(40px, 6.4vw, 86px); line-height: 1.02; max-width: 15ch; }
.hero-title .line { display: block; }
.hero-title .line:last-child { color: var(--accent); font-style: italic; }
html[lang="ar"] .hero-title { max-width: 18ch; line-height: 1.35; }
html[lang="ar"] .hero-title .line:last-child { font-style: normal; }
.hero-sub { max-width: 54ch; margin-block: 26px 34px; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--light-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block-start: clamp(48px, 8vh, 90px);
  border-block-start: 1px solid var(--line-dark);
}
.fact { padding: 20px 24px 0 0; }
html[dir="rtl"] .fact { padding: 20px 0 0 24px; }
.fact + .fact { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 24px; }
.fact dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-muted); }
html[lang="ar"] .fact dt { letter-spacing: 0; font-size: 13px; }
.fact dd { font-family: var(--head); font-size: 19px; margin-block-start: 4px; }

/* Sections */
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--field); color: var(--light); overflow: hidden; isolation: isolate; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.head { max-width: 680px; margin-block-end: 48px; }

/* About */
#about .prose { margin-block-start: 26px; color: var(--muted); font-size: 17.5px; max-width: 54ch; }
#about .prose p:first-child { color: var(--text); }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 140px 4px 4px; }
html[dir="rtl"] .about-media img { border-radius: 140px 4px 4px 4px; }
.about-media figcaption {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 34, 16, 0.78);
  color: var(--light);
  font-size: 13px;
  backdrop-filter: blur(6px);
}

/* Activities */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-num {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--head);
  font-size: 14px;
  color: var(--accent-text);
}
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--head); font-weight: 500; font-size: 25px; line-height: 1.2; }
html[lang="ar"] .card-title { font-weight: 600; }
.card-text { margin-block: 10px 22px; color: var(--muted); }
.card-use {
  margin-block-start: auto;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-use::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.flows { margin-block-start: 44px; display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: start; }
#flows { display: grid; gap: 10px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-step { padding: 7px 16px; border-radius: 999px; background: var(--paper); font-size: 14.5px; font-weight: 500; }
.flow-step:first-child { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.flow-step:last-child { background: var(--field); color: var(--light); }
.flow-arrow { color: var(--accent-text); }

/* Land band */
.band { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.band-media { min-height: 560px; position: relative; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-text { padding: clamp(64px, 9vw, 120px) max(20px, (100vw - 1200px) / 2) clamp(64px, 9vw, 120px) clamp(40px, 6vw, 96px); align-self: center; }
html[dir="rtl"] .band-text { padding-inline: clamp(40px, 6vw, 96px) max(20px, (100vw - 1200px) / 2); }
.band-copy { margin-block: 24px 40px; color: var(--muted); font-size: 17.5px; max-width: 52ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-block-start: 2px solid var(--field); padding-block-start: 16px; }
.step-title { font-family: var(--head); font-weight: 500; font-size: 21px; margin-block: 4px 6px; }
.step-text { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Growth */
.growth-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; z-index: -1; mix-blend-mode: luminosity; }
.growth-copy { margin-block-start: 24px; color: var(--light-muted); font-size: 17.5px; max-width: 50ch; }
.growth-list { display: grid; gap: 0; }
.growth-item { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding-block: 24px; border-block-end: 1px solid var(--line-dark); }
.growth-item:first-child { border-block-start: 1px solid var(--line-dark); }
.growth-item .num { color: var(--accent); }
.growth-item p { font-family: var(--head); font-size: clamp(21px, 2.1vw, 27px); line-height: 1.3; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block-start: 1px solid var(--line); }
.why-item { padding: 28px 28px 8px 0; }
html[dir="rtl"] .why-item { padding: 28px 0 8px 28px; }
.why-item + .why-item { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.why-item p { margin-block-start: 14px; font-size: 16.5px; }

/* Contact */
.contact { background: var(--field-deep); color: var(--light); padding-block: clamp(80px, 11vw, 140px); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact-text { margin-block: 24px 34px; color: var(--light-muted); font-size: 17.5px; max-width: 50ch; }
.contact-card { border: 1px solid var(--line-dark); border-radius: 6px; padding: 30px; }
.contact-office { font-family: var(--head); font-size: 22px; }
.contact-lines { margin-block-start: 20px; display: grid; gap: 14px; }
.contact-line dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-muted); }
html[lang="ar"] .contact-line dt { letter-spacing: 0; font-size: 13px; }
.contact-line a { border-block-end: 1px solid rgba(141, 187, 87, 0.55); }
.contact-line a:hover { color: var(--accent); }

/* Footer */
.footer { background: var(--field-deep); color: var(--light); border-block-start: 1px solid var(--line-dark); padding-block: 36px 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-brand img { height: 56px; }
.footer-brand .logo-ar { height: 76px; }
.footer-parent { font-size: 14px; color: var(--light-muted); }
.footer-parent:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block-start: 24px; font-size: 13px; color: var(--light-muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet and phone */
@media (max-width: 1020px) {
  .why { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .nav { gap: 16px; }
  .menu-btn { display: block; }
  .lang { margin-inline-start: auto; }
  .nav-links {
    position: absolute;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--field);
    box-shadow: 0 1px 0 var(--line-dark);
    display: none;
    font-size: 17px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding-block: 12px; border-block-end: 1px solid var(--line-dark); }
  .split, .contact-inner, .band, .cards { grid-template-columns: 1fr; }
  .band-media { min-height: 0; aspect-ratio: 16 / 10; }
  .band-text, html[dir="rtl"] .band-text { padding: 64px 20px; }
  .about-media img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr; }
  .fact, html[dir="rtl"] .fact, .fact + .fact { padding: 14px 0; border-inline-start: 0; border-block-end: 1px solid var(--line-dark); }
  .flows { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-brand img { height: 38px; }
  .nav-brand .logo-ar { height: 50px; }
  .why { grid-template-columns: 1fr; }
  .why-item, html[dir="rtl"] .why-item, .why-item + .why-item { border-inline-start: 0; padding: 22px 0; border-block-end: 1px solid var(--line); }
  .card-body { padding: 22px; }
}
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .lang { gap: 4px; }
}
