/* Lamaan — Design 2 (v4, funnel)
   Near-black throughout, as in the original design; three full-bleed photo bands (hero, Corniche, coast).
   The only bright colour is WhatsApp green, plus the red unread dot on the floating button.
   Type: English headings IBM Plex Serif, English body IBM Plex Sans, all Arabic IBM Plex Sans Arabic; sentence case.
   Shared by index.html (English) and ar.html; logical properties mirror the layout for RTL.
   Motion lives in main.js (GSAP); without it, everything is visible and static. */

:root {
  --paper: #0E1117;
  --paper-2: #141821;
  --ink: #F2F3F5;
  --mute: #9BA3AF;
  --hair: rgba(255, 255, 255, .14);
  --on-light: #131A23;

  --night: #0E1117;
  --night-2: #141821;
  --on-night: #F2F3F5;
  --on-night-mute: #A8B0BB;
  --night-hair: rgba(255, 255, 255, .15);

  --wa: #25D366;
  --wa-deep: #128C4A;
  --wa-ink: #06140B;
  --alert: #E5383B;

  --latin: "IBM Plex Sans", system-ui, sans-serif;
  --arabic: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --wrap: 1180px;
  --gutter: 20px;
  --header: 68px;
  --section: clamp(48px, 6vw, 80px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* each language gets its half of the Plex pair; Arabic never takes letter-spacing */
[lang|="en"] { --body: var(--latin); --display: var(--serif); --track: -.01em; --lh-display: 1.15; }
[lang|="ar"] { --body: var(--arabic); --display: var(--arabic); --track: 0; --lh-display: 1.5; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 400; font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body:lang(ar) { line-height: 1.9; }
body.menu-open { overflow: hidden; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }

/* dark photo bands re-scope the tokens so everything inside reads light-on-dark */
.night { background: var(--night); color: var(--on-night); --mute: var(--on-night-mute); --hair: var(--night-hair); }

/* ---------- Type ---------- */
.display, .section-title, .hero-title {
  font-family: var(--display); font-weight: 600;
  letter-spacing: var(--track); line-height: var(--lh-display); text-wrap: balance;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin-bottom: clamp(24px, 3.5vw, 40px); }
.display { font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 22ch; }
:lang(ar) .display, :lang(ar) .section-title, :lang(ar) .hero-title { font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-night);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: rgba(14, 17, 23, .94); color: var(--ink); border-color: var(--hair);
}
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: var(--header); padding-inline: var(--gutter); }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark b { font-family: var(--latin); font-weight: 600; font-size: 1rem; letter-spacing: .24em; margin-inline-end: -.24em; text-transform: uppercase; line-height: 1; }
.wordmark b:lang(ar) { font-family: var(--body); font-weight: 600; font-size: 1.35rem; letter-spacing: 0; margin: 0; }
.wordmark .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }
.wordmark i { font-style: normal; font-family: var(--body); font-weight: 400; font-size: .95rem; opacity: .7; line-height: 1; }
.wordmark i:lang(en) { font-family: var(--latin); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.site-header .wordmark { justify-self: center; }
@media (max-width: 479px) { .site-header .wordmark i, .site-header .wordmark .dot { display: none; } }

.lang {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px;
  text-decoration: none; font-size: 1rem; font-weight: 400; transition: border-color .25s;
}
.lang:lang(en) { font-family: var(--latin); font-weight: 600; font-size: .72rem; letter-spacing: .12em; }
.lang:hover { border-color: currentColor; }

/* full-screen menu */
.menu { justify-self: end; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 30px; height: 22px; }
.menu .i-shut { display: none; width: 24px; height: 24px; }
.menu[open] .i-open { display: none; }
.menu[open] .i-shut { display: block; }
.menu-panel {
  position: fixed; inset: var(--header) 0 0 0; z-index: 49; overflow-y: auto;
  background: var(--paper); color: var(--ink); padding: 24px var(--gutter) 56px;
}
.menu-nav { display: grid; max-width: var(--wrap); margin-inline: auto; border-top: 1px solid var(--hair); }
.menu-nav a {
  display: block; padding-block: 22px; border-bottom: 1px solid var(--hair); text-decoration: none;
  font-family: var(--display); font-weight: 400; letter-spacing: var(--track);
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25;
}
.menu-nav a:hover { color: var(--mute); }

/* scroll progress (filled by main.js) */
.progress { display: none; }
@media (min-width: 1024px) {
  .progress { display: block; position: fixed; z-index: 40; inset-inline-end: 26px; top: 50%; width: 1px; height: 110px; transform: translateY(-50%); background: rgba(255, 255, 255, .3); mix-blend-mode: difference; }
  .progress i { display: block; height: 100%; background: #fff; transform-origin: top; transform: scaleY(.1); }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: max(520px, 100svh); overflow: hidden; display: grid; place-items: center; text-align: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 50% 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 23, .6) 0%, rgba(14, 17, 23, .38) 36%, rgba(14, 17, 23, .5) 62%, rgba(14, 17, 23, .88) 84%, var(--night) 94%); }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 960px;
  padding: calc(var(--header) + 24px) var(--gutter) 40px; display: grid; justify-items: center;
}
.hero-title .w { display: inline-block; } /* words wrapped by main.js so they arrive one by one */
.hero-title { font-size: clamp(2.2rem, 7.2vw, 4.9rem); text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
:lang(ar) .hero-title { font-size: clamp(2.3rem, 7vw, 4.6rem); }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(242, 243, 245, .9); }

/* ---------- Full-bleed photo bands ---------- */
.bleed { position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; }
.bleed-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
/* the edge fade is listed first so it sits on top: each band starts and ends on exactly the page colour */
.bleed-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(14, 17, 23, .6) 12%, transparent 30%, transparent 74%, rgba(14, 17, 23, .6) 88%, var(--night) 100%), radial-gradient(ellipse 80% 70% at 50% 50%, rgba(14, 17, 23, .45), rgba(14, 17, 23, .8)); }
.bleed-inner { position: relative; z-index: 2; max-width: 900px; padding: clamp(56px, 7vw, 96px) var(--gutter); display: grid; justify-items: center; }
.bleed-text { margin-top: 22px; max-width: 36em; font-size: 1.1rem; color: rgba(242, 243, 245, .88); }
.bleed-cta, #story { min-height: max(480px, 80svh); }
.bleed-cta .bleed-img { object-position: 30% 50%; }

/* the one WhatsApp button on the page */
.btn-cta {
  margin-top: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px 0 22px; border-radius: 999px;
  background: var(--on-night); color: var(--on-light); text-decoration: none;
  font-family: var(--body); font-weight: 500; font-size: 1.02rem;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn-cta svg { width: 24px; height: 24px; color: var(--wa-deep); flex: none; }
.btn-cta:hover { background: #fff; transform: translateY(-2px); }
.btn-cta:active { transform: translateY(0); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section, .services { border-top: 1px solid var(--hair); }

/* 3. What you get */
.chapter { display: grid; gap: 32px; align-items: center; }
.chapter + .chapter { margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 6vw; }
  .chapter-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .chapter-flip .lens { order: 2; }
}
.lens {
  width: min(76vw, 400px); aspect-ratio: 1; max-width: 100%; justify-self: center;
  border-radius: 50%; overflow: hidden;
  outline: 1px solid var(--hair); outline-offset: 8px;
}
.lens img { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { max-width: 34em; min-width: 0; }
.chapter-copy h3 { font-family: var(--display); font-weight: 500; letter-spacing: var(--track); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; }
.chapter-copy > p { margin-top: 12px; color: var(--mute); }
.list { margin-top: 22px; border-top: 1px solid var(--hair); }
.list li { padding-block: 11px; border-bottom: 1px solid var(--hair); font-size: .98rem; }

/* 4. How it works */
.steps { display: grid; border-top: 1px solid var(--hair); }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; align-content: start; gap: 16px; padding-block: 24px; border-bottom: 1px solid var(--hair); }
.steps .num { font-family: var(--latin); font-weight: 300; font-size: 1.9rem; line-height: 1.1; color: var(--mute); }
.steps h3 { font-family: var(--display); font-weight: 500; letter-spacing: var(--track); font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.35; }
.steps p { margin-top: 6px; color: var(--mute); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 0; }
  .steps li { grid-template-columns: 1fr; gap: 14px; padding-block: 24px 0; border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .32); }
}

/* 5. FAQ */
.faq-grid { display: grid; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .faq-grid .section-title { position: sticky; top: calc(var(--header) + 32px); align-self: start; }
}
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary, .policy summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding-block: 16px; font-size: 1.06rem; font-weight: 400; line-height: 1.45;
}
.faq-list summary::-webkit-details-marker, .policy summary::-webkit-details-marker { display: none; }
.plus { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); flex: none; transition: transform .3s var(--ease), border-color .25s; }
.plus svg { width: 16px; height: 16px; }
summary:hover .plus { border-color: currentColor; }
details[open] > summary .plus { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--mute); max-width: 40em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); border-top: 1px solid var(--hair); padding-block: 48px 96px; font-size: .97rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; } }
.footer-about p { margin-top: 14px; max-width: 24em; color: var(--mute); }
.footer-head { font-family: var(--body); font-weight: 500; font-size: 1rem; margin-bottom: 10px; }
.footer-col { display: grid; gap: 4px; align-content: start; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--latin); font-weight: 500; font-size: 1.08rem; justify-self: start; overflow-wrap: anywhere; }
.contact-link svg { width: 20px; height: 20px; flex: none; }
.contact-link:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer-line { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.footer-line svg { width: 20px; height: 20px; flex: none; }
.legal span { color: var(--mute); }
.legal span:first-of-type { color: var(--on-night); }

.policies { margin-top: 44px; border-top: 1px solid var(--hair); }
.policy { border-bottom: 1px solid var(--hair); }
.policy summary { font-size: 1rem; }
.policy-body { display: grid; gap: 10px; padding-bottom: 24px; max-width: 46em; color: var(--mute); font-size: .95rem; }
.policy-body a { color: var(--on-night); }

.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; color: var(--mute); font-size: .875rem; }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-night); }
.footer-base a:lang(en) { font-family: var(--latin); font-weight: 600; font-size: .72rem; letter-spacing: .12em; }

/* ---------- Floating WhatsApp: a circle on every screen, with an unread dot ---------- */
.wa-float {
  position: fixed; z-index: 60; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
  transition: background-color .25s, transform .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: ""; position: absolute; top: 1px; inset-inline-end: 1px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--alert); border: 2px solid #fff;
}
.wa-float:hover { transform: translateY(-3px); }
@media (min-width: 768px) { .wa-float { inset-inline-end: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }

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