/* New Hope Liuhe Egypt · option A «علف صح» — the equation */
:root {
  --green: #2E9B3A;
  --deep: #1E7A2E;
  --forest: #123D1C;
  --sun: #EE6A24;
  --sun-2: #F7A03A;
  --cream: #FBF7EE;
  --sand: #F3EBD6;
  --ink: #15281A;
  --muted: #4B5D50;
  --line: #D9D1BC;
  --display: 'Lalezar', 'Readex Pro', sans-serif;
  --body: 'Readex Pro', system-ui, sans-serif;
  --cn: 'Noto Sans SC', sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --r: 6px;
  color-scheme: light;
}
:root[lang="en"] { --display: 'Archivo', 'Readex Pro', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.kicker { font-weight: 700; font-size: .9rem; color: var(--deep); letter-spacing: .02em; margin-bottom: .6em; }
[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.note { font-size: .85rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .6em 1.4em; border-radius: var(--r);
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border: 2px solid var(--green); cursor: pointer; font-family: var(--body);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--deep); }
.btn--line:hover { background: var(--deep); color: #fff; }
.btn--sun { background: var(--sun); border-color: var(--sun); }
.btn--sun:hover { background: #D4561A; border-color: #D4561A; }
.btn--sm { min-height: 44px; padding: .3em 1em; font-size: .95rem; }
.btn--wide { width: 100%; }

/* Header */
.top { background: var(--cream); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 50px; height: auto; flex: none; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__cn { font-family: var(--cn); font-weight: 900; font-size: .78rem; color: var(--deep); letter-spacing: .12em; }
.brand__name { font-family: var(--display); font-size: 1.35rem; color: var(--green); margin-top: 4px; white-space: nowrap; }
[lang="en"] .brand__name { font-weight: 900; font-stretch: 75%; letter-spacing: .02em; font-size: 1.3rem; }
.lang { display: flex; align-items: center; font-size: .95rem; font-weight: 700; border: 1px solid var(--line); border-radius: var(--r); }
.lang > * { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding-inline: 8px; text-decoration: none; }
.lang [aria-current] { background: var(--ink); color: var(--cream); border-radius: calc(var(--r) - 1px); }
.lang a:hover { color: var(--sun); }

/* Equation rail (sticky nav) */
.rail { position: sticky; top: 0; z-index: 20; background: var(--forest); color: #fff; }
.rail__in { display: flex; align-items: stretch; justify-content: space-between; gap: 4px; }
.rail a {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 56px; padding: 6px 4px; text-decoration: none; text-align: center; line-height: 1.15;
  border-bottom: 4px solid transparent; transition: border-color .3s, color .3s;
}
.rail b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
[lang="en"] .rail b { font-weight: 800; font-stretch: 80%; font-size: 1.05rem; text-transform: uppercase; }
.rail small { font-size: .72rem; opacity: .75; }
.rail__eq { align-self: center; font-family: var(--display); color: var(--sun-2); font-size: 1.6rem; line-height: 1; }
.rail a.is-on { border-bottom-color: var(--sun); color: var(--sun-2); }
.rail a:hover { color: var(--sun-2); }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 80px) clamp(40px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { /* sun quarter from the logo */
  content: ""; position: absolute; inset-inline-end: -14vw; top: -14vw; width: 38vw; height: 38vw; min-width: 240px; min-height: 240px;
  border-radius: 50%; background: radial-gradient(circle at 42% 38%, var(--sun-2), var(--sun) 70%, #E2481E); opacity: .95;
}
.hero__in { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
.eq { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--display); line-height: 1; margin-bottom: .35em; }
.eq__term { display: flex; align-items: baseline; gap: .25em; font-size: clamp(3.4rem, 13vw, 7.6rem); color: var(--deep); }
.eq__term i { font-style: normal; font-family: var(--body); font-weight: 700; font-size: .2em; color: var(--ink);
  min-width: 2.1em; height: 2.1em; display: inline-grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; transform: translateY(-.5em); }
.eq__term--2 { color: var(--green); }
.eq__term--3 { color: var(--sun); flex-wrap: wrap; }
.eq__term--3 em { font-style: normal; color: var(--ink); font-size: .55em; }
.eq__sign { font-size: clamp(2.6rem, 9vw, 5rem); color: var(--sun); line-height: .8; padding-inline-start: .45em; }
[lang="en"] .eq { text-transform: uppercase; }
[lang="en"] .eq__term { font-weight: 900; font-stretch: 72%; font-size: clamp(3rem, 12vw, 7rem); letter-spacing: -.01em; line-height: .95; }
[lang="en"] .eq__term--3 em { font-size: .5em; font-stretch: 90%; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34em; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { margin: 0; }
.crop { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Load reveal: the equation builds term by term */
@media (prefers-reduced-motion: no-preference) {
  .eq > * { opacity: 0; transform: translateY(18px); animation: up .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .eq > :nth-child(2) { animation-delay: .25s; }
  .eq > :nth-child(3) { animation-delay: .45s; }
  .eq > :nth-child(4) { animation-delay: .7s; }
  .eq > :nth-child(5) { animation-delay: .9s; }
  .draw { stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 1.6s ease-out; }
  .is-in .draw { stroke-dashoffset: 0; }
  .pin circle:first-child { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .4; } }

/* About */
.about { background: var(--sand); padding-block: clamp(48px, 7vw, 96px); }
.about__in { display: grid; gap: 36px; }
.about h2 { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--forest); margin-bottom: .5em; max-width: 18em; }
[lang="en"] .about h2 { font-weight: 800; font-stretch: 85%; }
.about p { max-width: 38em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 3px solid var(--forest); }
.facts div { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-inline-end: 12px; border-inline-end: 1px solid var(--line); }
.facts div:nth-child(even) { padding-inline-start: 16px; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; color: var(--deep); }
[lang="en"] .facts dd { font-weight: 900; font-stretch: 75%; }
.facts dd { direction: ltr; text-align: start; unicode-bidi: plaintext; }

/* Steps */
.step { padding-block: clamp(56px, 8vw, 112px); }
.step__head { display: flex; gap: clamp(14px, 3vw, 32px); align-items: flex-start; margin-bottom: clamp(28px, 4vw, 56px); }
.step__no {
  flex: none; font-family: var(--display); font-size: clamp(4.5rem, 14vw, 10rem); line-height: .8; color: var(--sun);
}
[lang="en"] .step__no { font-weight: 900; font-stretch: 70%; }
.step__head h2 { font-family: var(--display); font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1; color: var(--deep); margin-bottom: .2em; }
[lang="en"] .step__head h2 { font-weight: 900; font-stretch: 72%; text-transform: uppercase; }
.step__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 30em; margin: 0; }
.sub { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--forest); margin: clamp(40px, 6vw, 72px) 0 18px; }
[lang="en"] .sub { font-weight: 800; font-stretch: 85%; }

/* Stages growth line */
.stages { position: relative; border: 2px solid var(--forest); border-radius: var(--r); padding: 20px; background: #fff; }
.stages__line { width: 100%; height: clamp(90px, 14vw, 160px); }
[dir="rtl"] .stages__line { transform: scaleX(-1); }
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stages__list li { border-top: 3px solid var(--green); padding-top: 10px; }
.stages__list li:nth-child(2) { border-color: var(--deep); }
.stages__list li:nth-child(3) { border-color: var(--sun); }
.stages__tag { display: block; font-family: var(--display); font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.1; color: var(--forest); }
.stages__list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
[lang="en"] .stages__tag { font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.stages__list p { font-size: .95rem; margin: .4em 0 0; }
.stages .note { margin: 16px 0 0; }

/* Feed lines */
.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 2px solid var(--forest); }
.lines li { display: grid; justify-items: start; gap: 2px; padding: 18px 12px 18px 0; }
[dir="ltr"] .lines li { padding: 18px 0 18px 12px; }
.lines li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.lines svg { width: 46px; height: 46px; color: var(--green); margin-bottom: 6px; }
.lines b { font-size: 1.1rem; }
.lines span { font-size: .85rem; color: var(--muted); }

/* Green Footprint */
.green {
  margin-top: clamp(40px, 6vw, 72px); background: var(--forest); color: #fff; border-radius: var(--r);
  padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; align-items: center; overflow: hidden;
}
.green__cn { font-family: var(--cn); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; color: var(--sun-2); margin-bottom: .2em; letter-spacing: .05em; }
.green h3 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: .4em; }
[lang="en"] .green h3 { font-weight: 800; font-stretch: 85%; }
.green p { max-width: 30em; }
.bags { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 20px); align-items: end; }
.bags svg { width: 100%; height: auto; }
.bags svg:nth-child(2) { transform: translateY(-12px); }

/* Map */
.map { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: 28px; align-items: center; }
.map h3 { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3rem); color: var(--forest); margin-bottom: .3em; }
[lang="en"] .map h3 { font-weight: 800; font-stretch: 85%; }
.map__list { list-style: none; margin: 18px 0; padding: 0; counter-reset: f; columns: 2; column-gap: 20px; }
.map__list li { counter-increment: f; display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 500; }
.map__list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); flex: none; box-shadow: 0 0 0 4px rgba(238,106,36,.2); }
.map__art { position: relative; }
.map__zoom { width: 100%; height: auto; border-radius: var(--r); border: 2px solid var(--forest); }
.map__whole { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 24%; min-width: 72px; height: auto; background: #E3EEF0; border: 1px solid var(--forest); border-radius: 4px; padding: 4px; }

/* Step 2 */
.step--2 { background: #fff; border-block: 1px solid var(--line); }
.step--2 .step__head h2 { color: var(--green); }
.support { display: grid; gap: 28px; margin-bottom: 32px; }
.visit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.visit li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.visit li:first-child { border-top: 2px solid var(--forest); }
.visit span { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
[lang="en"] .visit span { font-weight: 900; }
.visit b { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.visit p { margin: 0; color: var(--muted); }
.slot { border: 2px dashed var(--line); border-radius: var(--r); background: var(--cream); display: grid; place-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.slot svg { width: min(100%, 300px); }

/* Step 3 */
.step--3 { background: var(--cream); }
.step--3 .step__head h2 { color: var(--sun); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--forest); }
.why li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.why b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: var(--forest); margin-bottom: .2em; }
[lang="en"] .why b { font-weight: 800; font-stretch: 85%; }
.why p { margin: 0; color: var(--muted); max-width: 36em; }
.slogan { margin: clamp(40px, 6vw, 72px) 0 0; font-family: var(--display); font-size: clamp(2.2rem, 7vw, 4.8rem); line-height: 1.1; color: var(--deep); }
.slogan span { display: block; font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--sun); margin-bottom: .4em; letter-spacing: .04em; }
[lang="en"] .slogan { font-weight: 900; font-stretch: 75%; }
[lang="en"] .slogan span { font-stretch: 100%; text-transform: uppercase; letter-spacing: .12em; }

/* Contact */
.contact { background: var(--green); color: #fff; padding-block: clamp(56px, 8vw, 112px); }
.contact .kicker { color: var(--sun-2); }
.contact h2 { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; margin-bottom: .35em; }
[lang="en"] .contact h2 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.contact__in { display: grid; gap: 36px; }
.ph { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.ph li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.35); font-size: .95rem; }
.ph b { color: var(--forest); background: var(--sun-2); padding: 0 8px; border-radius: 3px; font-size: .85rem; align-self: center; }
.form { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: 3px solid rgba(46,155,58,.25); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: #C8322A; }
.form__err { margin: 0; color: #A8261F; font-weight: 700; }
.form__out { border-top: 2px solid var(--line); padding-top: 14px; }
.form__msg { font-weight: 700; color: var(--deep); margin-bottom: 8px; }
.form__pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }

/* Footer */
.foot { background: var(--forest); color: #fff; padding-block: 40px; }
.foot__in { display: grid; gap: 14px; }
.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__cn { color: var(--sun-2); }
.foot__eq { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--sun-2); margin: 0; }
[lang="en"] .foot__eq { font-weight: 800; font-stretch: 85%; }
.foot__small { font-size: .85rem; opacity: .7; margin: 0; }

/* Phone tweaks */
@media (max-width: 559px) {
  .top .btn--sm { display: none; }
  .rail small { display: none; }
  .rail b { font-size: 1.05rem; }
  .lines { grid-template-columns: 1fr; }
  .lines li { padding: 14px 0 !important; border-inline-start: 0 !important; grid-template-columns: 52px 1fr; align-items: center; column-gap: 12px; }
  .lines li svg { grid-row: span 2; margin: 0; }
  .lines li + li { border-top: 1px solid var(--line); }
  .stages { padding: 14px; }
  .stages__list p { font-size: .85rem; }
  .map__list { columns: 1; }
}

/* Tablet / desktop */
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.15fr .85fr; }
  .hero__photo { margin-bottom: 1.2em; }
  .about__in { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 64px; }
  .green { grid-template-columns: 1fr 1fr; }
  .map { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .support { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 48px; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .contact__in { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide, .form__err, .form .btn, .form__out { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hero equation fit (after shot pass) */
.eq__term { white-space: nowrap; }
.eq__term--3 { flex-wrap: wrap; row-gap: 0; }
.eq__term--3 em { flex-basis: 100%; padding-inline-start: 1.25em; margin-top: .1em; }
.eq__sign { margin-block: -.12em; }
.hero::before { width: min(38vw, 420px); height: min(38vw, 420px); }
@media (max-width: 559px) {
  .hero::before { min-width: 0; min-height: 0; width: 170px; height: 170px; inset-inline-end: -70px; top: -90px; }
  [lang="en"] .eq__term { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }
}
@media (min-width: 900px) {
  .eq__term { font-size: clamp(4rem, 6.4vw, 6rem); }
  [lang="en"] .eq__term { font-size: clamp(3.6rem, 5.8vw, 5.4rem); }
  .eq__sign { font-size: 3.4rem; }
  .hero__in { align-items: center; }
  .hero__photo { margin-top: 3rem; }
}
.hero__in > * { min-width: 0; }
@media (max-width: 559px) {
  .eq__term { white-space: normal; }
  [lang="en"] .eq__term { font-size: clamp(2.2rem, 9.6vw, 3.2rem); }
}
.stages__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stages__tag { overflow-wrap: anywhere; }
@media (max-width: 559px) {
  [lang="en"] .stages__tag { font-size: 1.45rem; }
}
