/* El Waha Recovery — design system. Dark green + gold, RTL. */
:root {
  --bg: #0c1510;
  --bg-raised: #111d17;
  --bg-card: #17261f;
  --bg-band: #1d3329;
  --ink: #f4efe6;
  --ink-soft: #c9d1c6;
  --gold: #c9ad5c;
  --gold-bright: #dcc479;
  --gold-ink: #0c1510;
  --line: rgba(201, 173, 92, 0.22);
  --line-soft: rgba(244, 239, 230, 0.10);
  --wa: #0f7a40;
  --wa-hover: #0c6a37;

  --font-head: 'El Messiri', 'Cairo', serif;
  --font-body: 'Cairo', system-ui, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --r-sm: .5rem; --r-md: .875rem; --r-lg: 1.5rem;
  --shadow-1: 0 2px 6px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.22);
  --shadow-2: 0 4px 10px rgba(0,0,0,.3), 0 24px 56px rgba(0,0,0,.38);

  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.1875rem, 1.05rem + .6vw, 1.4rem);
  --t-h3: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  --t-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --t-h1: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.9 var(--font-body);
  direction: rtl; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--gold-bright); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #3a6b55 var(--bg); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c4a3c; border: 3px solid var(--bg); border-radius: 8px; }

.skip { position: absolute; inset-inline-start: var(--s4); top: -4rem; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: var(--s3) var(--s5); border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--s3); }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(12, 21, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: 76rem; margin: 0 auto; padding: 0 var(--s5); height: var(--nav-h); display: flex; align-items: center; gap: var(--s5); }
.logo { display: flex; align-items: center; gap: var(--s3); font: 700 1.5rem/1 var(--font-head); color: var(--gold-bright); text-decoration: none; margin-inline-end: auto; }
.logo svg { width: 1.7rem; height: 1.7rem; }
.logo:hover { color: var(--gold-bright); }
.nav-links { display: flex; gap: var(--s1); align-items: center; }
.nav-links a { display: block; padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--ink-soft); text-decoration: none; font-size: .975rem; font-weight: 500; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: rgba(244, 239, 230, .06); }
.nav-links a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { white-space: nowrap; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.menu-btn .icon { width: 1.4rem; height: 1.4rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 3.25rem; padding: .7rem 1.6rem; border-radius: var(--r-md); border: 1.5px solid transparent; font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 20px rgba(201, 173, 92, .22); }
.btn-gold:hover { background: var(--gold-bright); color: var(--gold-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-sm { min-height: 2.6rem; padding: .4rem 1.1rem; font-size: .95rem; border-radius: var(--r-sm); }
.btn .num { direction: ltr; unicode-bidi: isolate; }

/* ---------- layout ---------- */
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--s5); }
.section { padding: var(--s9) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 42rem; margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { margin-top: var(--s4); font-size: var(--t-lead); color: var(--ink-soft); line-height: 1.8; }
.section-head.center { margin-inline: auto; text-align: center; }
.rule { height: 1px; background: linear-gradient(to left, transparent, var(--line), transparent); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s8) 0 var(--s9); background: radial-gradient(60rem 36rem at 85% 0%, rgba(37, 74, 58, .55), transparent 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s8); align-items: center; }
.hero h1 { font-size: var(--t-h1); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lead { margin-top: var(--s5); font-size: var(--t-lead); color: var(--ink-soft); max-width: 36rem; line-height: 1.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: .975rem; }
.hero-facts li { display: flex; align-items: center; gap: var(--s2); }
.hero-facts li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); }
.arch { position: relative; margin: 0; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-2); }
.arch::before { content: ""; position: absolute; inset: calc(var(--s4) * -1); border: 1px solid var(--line); border-radius: 999px 999px calc(var(--r-lg) + 1rem) calc(var(--r-lg) + 1rem); pointer-events: none; }

/* ---------- principles (why us) ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s8); align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + var(--s5)); }
.principles li { display: grid; grid-template-columns: 1fr; padding: var(--s5) 0; border-bottom: 1px solid var(--line-soft); }
.principles li:first-child { padding-top: 0; }
.principles li:last-child { border-bottom: 0; }
.principles h3 { font-size: var(--t-h3); color: var(--gold-bright); }
.principles p { margin-top: var(--s2); color: var(--ink-soft); max-width: 34rem; }

/* ---------- steps (timeline) ---------- */
.steps { counter-reset: step; position: relative; max-width: 52rem; margin-inline: auto; }
.steps::before { content: ""; position: absolute; inset-block: 1.75rem; inset-inline-start: 1.7rem; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--line-soft)); }
.step { position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s5); padding-bottom: var(--s6); }
.step:last-child { padding-bottom: 0; }
.step-n { counter-increment: step; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold-bright); font: 700 1.35rem/1 var(--font-head); position: relative; z-index: 1; }
.step-n::before { content: counter(step, arabic-indic); }
.step h3 { font-size: var(--t-h3); padding-top: .55rem; }
.step p { margin-top: var(--s2); color: var(--ink-soft); }
.steps-foot { text-align: center; margin-top: var(--s7); }

/* ---------- photo strip ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 11rem; gap: var(--s3); }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--bg-card); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic a:nth-child(2), .mosaic a:nth-child(3) { grid-column: span 3; }
.mosaic a:nth-child(4), .mosaic a:nth-child(5), .mosaic a:nth-child(6) { grid-column: span 2; }
.more { margin-top: var(--s6); display: flex; justify-content: center; }

/* ---------- article rows ---------- */
.rows li { border-top: 1px solid var(--line-soft); }
.rows li:last-child { border-bottom: 1px solid var(--line-soft); }
.rows a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s5); padding: var(--s5) var(--s3); text-decoration: none; color: var(--ink); transition: background .25s; }
.rows a:hover { background: rgba(244, 239, 230, .04); }
.rows h3 { font-size: var(--t-h3); }
.rows p { color: var(--ink-soft); font-size: 1rem; margin-top: var(--s1); }
.rows .icon { color: var(--gold); transition: transform .25s var(--ease); }
.rows a:hover .icon { transform: translateX(-6px); }

/* ---------- CTA band ---------- */
.band { background: var(--bg-band); border-block: 1px solid var(--line); padding: var(--s8) 0; text-align: center; }
.band h2 { font-size: var(--t-h2); max-width: 40rem; margin-inline: auto; }
.band p { margin: var(--s4) auto 0; max-width: 34rem; color: var(--ink-soft); font-size: var(--t-lead); }
.band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--bg-raised); border-top: 1px solid var(--line-soft); padding: var(--s8) 0 var(--s6); font-size: .975rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); }
.footer h2 { font: 700 1.1rem/1.3 var(--font-head); color: var(--gold-bright); margin-bottom: var(--s4); }
.footer .about { max-width: 24rem; line-height: 1.85; }
.footer ul { display: grid; gap: var(--s2); }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer .num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.copy { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-soft); font-size: .875rem; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 40; display: none; gap: var(--s3); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: rgba(12, 21, 16, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.visible { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 3rem; padding-inline: var(--s3); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.arch { animation: rise 1.2s var(--ease) .12s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links { position: absolute; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--s5) var(--s5); background: var(--bg-raised); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 860px) {
  .section { padding: var(--s8) 0; }
  .hero { padding: var(--s6) 0 var(--s8); }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .arch { max-width: 20rem; margin-inline: auto; order: -1; }
  .arch img { aspect-ratio: 1; }
  .split .section-head { position: static; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
  .mosaic a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}
@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .step { grid-template-columns: 3rem 1fr; gap: var(--s4); }
  .step-n { width: 3rem; height: 3rem; font-size: 1.15rem; }
  .steps::before { inset-inline-start: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- inner pages ---------- */
.page-head { padding: var(--s8) 0 var(--s7); background: radial-gradient(60rem 24rem at 85% -10%, rgba(201, 173, 92, .09), transparent 70%), linear-gradient(180deg, var(--bg-raised), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: var(--t-h1); max-width: 46rem; }
.page-head .lead { margin-top: var(--s4); font-size: var(--t-lead); color: var(--ink-soft); max-width: 40rem; line-height: 1.85; }
.page-head .article-meta { color: var(--gold-bright); font-weight: 600; margin-bottom: var(--s3); }
.page-head .hero-cta { margin-top: var(--s6); }
.page-body { padding: var(--s8) 0; }
.page-body + .page-body { padding-top: 0; }
.note { color: var(--ink-soft); max-width: 40rem; }

/* faq */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s2); cursor: pointer; list-style: none; font: 600 var(--t-h3)/1.5 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); font: 400 1.4rem/1 var(--font-body); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq details p { padding: 0 var(--s2) var(--s5); color: var(--ink-soft); max-width: 42rem; }

/* contact */
.tap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.tap { display: flex; align-items: center; gap: var(--s5); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-card); text-decoration: none; color: var(--ink); transition: border-color .25s, transform .25s var(--ease); }
.tap:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.tap .icon { width: 2.2rem; height: 2.2rem; color: var(--gold-bright); }
.tap strong { display: block; font: 700 var(--t-h3)/1.3 var(--font-head); }
.tap .v { display: block; margin-top: var(--s1); color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; text-align: start; }
.addr { margin-top: var(--s5); padding: var(--s6); border: 1px solid var(--line-soft); border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.addr h2 { font-size: var(--t-h3); }
.addr p { margin-top: var(--s2); color: var(--ink-soft); }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s3); }
.gallery button { padding: 0; border: 0; background: var(--bg-card); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--ink); }
.lb::backdrop { background: rgba(6, 11, 8, .92); }
.lb-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: var(--s7) var(--s5); }
.lb img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: var(--r-md); object-fit: contain; }
.lb button { position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(12, 21, 16, .85); color: var(--ink); cursor: pointer; }
.lb button:hover { border-color: var(--gold); color: var(--gold-bright); }
.lb-close { top: var(--s4); inset-inline-start: var(--s4); }
.lb-prev { inset-inline-start: var(--s4); top: 50%; }
.lb-next { inset-inline-end: var(--s4); top: 50%; }

/* article reading layout */
.article-body { max-width: 44rem; margin-inline: auto; padding: var(--s8) var(--s5); }
.article-body h2 { font-size: var(--t-h2); margin: var(--s8) 0 var(--s4); }
.article-body h3 { font-size: var(--t-h3); margin: var(--s6) 0 var(--s3); color: var(--gold-bright); }
.article-body p { margin-top: var(--s4); line-height: 2; }
.article-body ul { list-style: disc; padding-inline-start: var(--s6); margin-top: var(--s4); }
.article-body li { margin-top: var(--s2); line-height: 1.9; }
.article-body a:not(.btn) { color: var(--gold-bright); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.article-body a:not(.btn):hover { color: var(--ink); }
.article-cta { margin: var(--s8) 0; padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-band); }
.article-cta p { margin-top: 0; font-size: var(--t-lead); }
.cta-group { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.related-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.related-links a:not(.btn) { padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.related-links a:not(.btn):hover { border-color: var(--gold); color: var(--gold-bright); }

/* blog list */
.rows .meta { font-size: .9rem; color: var(--ink-soft); margin-top: var(--s1); }
.empty { color: var(--ink-soft); padding: var(--s7) 0; }

@media (max-width: 860px) {
  .tap-grid { grid-template-columns: 1fr; }
  .page-head { padding: var(--s7) 0 var(--s6); }
  .page-body { padding: var(--s7) 0; }
  .article-body { padding: var(--s7) var(--s5); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-prev, .lb-next { top: auto; bottom: var(--s4); }
}
@media (max-width: 520px) {
  .cta-group .btn { width: 100%; }
}

.article-body .cover { width: 100%; border-radius: var(--r-md); margin-bottom: var(--s5); }
