/* ============================================================
   رحيم منير — Rahim Munir
   Design System v2 · "Editorial White"
   Minimal · modern · premium · white-based · RTL-first
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --white:  #FFFFFF;
  --paper:  #FBFBF9;   /* near-white sections */
  --ink:    #111111;   /* near-black text */
  --ink-2:  #2E2E2E;
  --grey:   #6A6A6A;   /* secondary text */
  --grey-2: #9C9C9C;   /* faint labels */
  --line:   #E7E6E2;   /* hairlines */
  --line-2: #D8D7D2;
  --black:  #0E0E0E;   /* footer */
  --line-d: rgba(255,255,255,.14);

  --font-ar:  "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-lat: "Inter", system-ui, sans-serif;

  --fs-display: clamp(2.9rem, 6.9vw, 6.2rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.4rem);
  --fs-h2: clamp(1.55rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.05rem;
  --fs-sm: .92rem;
  --fs-xs: .76rem;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4 { font-family: var(--font-ar); color: var(--ink); font-weight: 300; line-height: 1.28; letter-spacing: -.01em; }
strong, b { font-weight: 600; color: var(--ink); }

/* ---------- Latin micro-typography ---------- */
.lat, .eyebrow { font-family: var(--font-lat); direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--grey-2);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-paper { background: var(--paper); }
.center { text-align: center; }
.rule { height: 1px; background: var(--line); border: 0; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: rgba(255,255,255,0); transition: background .4s var(--ease), border-color .4s, padding .4s;
  border-bottom: 1px solid transparent; padding-block: 1.4rem;
}
.site-header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-color: var(--line); padding-block: .9rem; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Two-weight wordmark with hairline — refined personal-brand signature */
.wordmark { display: inline-flex; flex-direction: column; gap: .46rem; line-height: 1; }
.wordmark .ar { font-family: var(--font-ar); font-weight: 300; font-size: 1.5rem; color: var(--ink); letter-spacing: -.025em; }
.wordmark .ar b { font-weight: 700; }
.wordmark .en { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-lat); direction: ltr; font-size: .58rem; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--grey); }
.wordmark .en::before { content: ""; width: 17px; height: 1px; background: currentColor; opacity: .55; }
.wordmark-lg .ar { font-size: 1.85rem; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.4rem); }
.nav-links a { font-size: .96rem; font-weight: 400; color: var(--ink-2); position: relative; padding-block: .2rem; transition: color .3s; }
.nav-links a::after { content:""; position:absolute; inset-block-end:0; inset-inline-end:0; width:0; height:1px; background:var(--ink); transition:width .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; inset-inline-start:0; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--white); display: flex; flex-direction: column; padding: 1.4rem var(--gutter); transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mm-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.mm-close { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 1.6rem; font-weight: 300; color: var(--ink); padding-block: .9rem; border-bottom: 1px solid var(--line); }
.mm-cta { margin-top: auto; display: grid; gap: .8rem; padding-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font-family: var(--font-ar); font-size: .96rem; font-weight: 500; line-height: 1;
  padding: 1.05rem 2rem; border: 1px solid transparent; border-radius: 0;
  transition: all .35s var(--ease); white-space: nowrap; cursor: pointer;
}
.btn .arw { font-family: var(--font-lat); transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(-5px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0efe9; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.2rem 2.4rem; }

/* Text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: .5rem; font-size: .96rem; font-weight: 500; color: var(--ink); position: relative; }
.tlink .arw { font-family: var(--font-lat); transition: transform .35s var(--ease); }
.tlink:hover .arw { transform: translateX(-5px); }
.tlink::after { content:""; position:absolute; inset-block-end:-3px; inset-inline-end:0; width:100%; height:1px; background:var(--line-2); transition:background .3s; }
.tlink:hover::after { background: var(--ink); }

/* ---------- Photo component (graceful fallback) ---------- */
.photo { position: relative; overflow: hidden; background: #EFEEEA; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center; }
.photo.face img { object-position: center 22%; } /* keep faces safe when cropping portraits */
.photo .ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 1.5rem;
  background: repeating-linear-gradient(135deg, #F2F1ED, #F2F1ED 14px, #EEEDE8 14px, #EEEDE8 28px); color: var(--grey); }
.photo.missing .ph { display: flex; }
.photo .ph svg { width: 34px; height: 34px; opacity: .5; }
.photo .ph .pl { font-size: var(--fs-xs); letter-spacing: .04em; max-width: 24ch; line-height: 1.6; }
.photo .ph .pf { font-family: var(--font-lat); font-size: .66rem; letter-spacing: .12em; color: var(--grey-2); }
.r-portrait { aspect-ratio: 4/5; }   /* vertical portraits */
.r-tall { aspect-ratio: 3/4; }
.r-square { aspect-ratio: 1/1; }
.r-wide { aspect-ratio: 16/9; }       /* wide hero / editorial bands */
.r-band { aspect-ratio: 16/9; }
@media (max-width: 680px){ .r-portrait { aspect-ratio: 4/5; } .r-wide, .r-band { aspect-ratio: 4/3; } }

/* ---------- Section head ---------- */
.shead { max-width: 760px; }
.shead .eyebrow { margin-bottom: 1.2rem; }
.shead h2 { font-size: var(--fs-h2); }
.shead p { color: var(--grey); font-size: var(--fs-lead); margin-top: 1.1rem; line-height: 1.8; }
.shead.center { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(7.5rem, 12vw, 9.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.hero-meta .eyebrow.alt { color: var(--grey); }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--fs-display); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; }
.hero h1 b { font-weight: 700; }
.hero .lead { font-size: var(--fs-lead); color: var(--grey); margin-top: 1.9rem; max-width: 36ch; line-height: 1.8; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure .photo { box-shadow: none; }
.hero-figure figcaption { margin-top: .9rem; font-size: var(--fs-xs); letter-spacing: .01em; color: var(--grey); display: flex; align-items: center; gap: .55rem; }
.hero-figure figcaption::before { content: ""; width: 22px; height: 1px; background: var(--line-2); flex: none; }
@media (max-width: 860px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 440px; margin-inline: auto; }
  .hero-meta { display: none; }
}

/* ---------- Pathways (no heavy cards) ---------- */
.paths { border-top: 1px solid var(--line); }
.path {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem,4vw,3rem); align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
  transition: padding-inline .4s var(--ease);
}
.path:hover { padding-inline-start: .6rem; }
.path .pnum { font-family: var(--font-lat); font-size: .8rem; letter-spacing: .1em; color: var(--grey-2); }
.path .pbody h3 { font-size: var(--fs-h3); font-weight: 400; margin-bottom: .3rem; }
.path .pbody p { font-size: var(--fs-sm); color: var(--grey); }
.path .parrow { font-family: var(--font-lat); font-size: 1.3rem; color: var(--ink); transition: transform .35s var(--ease); }
.path:hover .parrow { transform: translateX(-8px); }
@media (max-width: 620px){
  .path { grid-template-columns: auto 1fr; }
  .path .parrow { display: none; }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.v-start { align-items: start; }
.split.reverse > .s-media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.reverse > .s-media { order: 0; } }

/* ---------- Big quote ---------- */
.pull { max-width: 980px; margin-inline: auto; text-align: center; }
.pull q { quotes: none; }
.pull blockquote { font-family: var(--font-ar); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.55; color: var(--ink); letter-spacing: -.01em; }
.pull cite { display: block; font-style: normal; margin-top: 1.8rem; font-family: var(--font-lat); font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--grey-2); }

/* ---------- Lists (clean check) ---------- */
.clist { display: grid; gap: 1rem; }
.clist li { display: flex; gap: .9rem; align-items: flex-start; font-size: var(--fs-body); color: var(--ink-2); }
.clist li::before { content: ""; width: 8px; height: 8px; margin-top: .75rem; border: 1px solid var(--ink); border-radius: 50%; flex: none; }

/* ---------- Pricing rows (offerings) ---------- */
.offer { border-top: 1px solid var(--line); }
.offer-row {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1.6fr) auto auto; gap: clamp(1rem,3vw,2.5rem);
  align-items: center; padding-block: clamp(1.8rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line);
}
.offer-row .o-name { display: flex; flex-direction: column; gap: .35rem; }
.offer-row .o-name h3 { font-size: var(--fs-h3); font-weight: 500; }
.offer-row .o-name .o-dur { font-family: var(--font-lat); direction: ltr; font-size: var(--fs-xs); letter-spacing: .1em; color: var(--grey-2); text-transform: uppercase; }
.offer-row .o-desc { font-size: var(--fs-sm); color: var(--grey); }
.offer-row .o-price { font-family: var(--font-ar); font-size: 1.5rem; font-weight: 300; color: var(--ink); white-space: nowrap; }
.offer-row .o-price .cur { font-family: var(--font-lat); font-size: .8rem; letter-spacing: .08em; color: var(--grey); }
.offer-row .o-price.free { font-weight: 500; }
.offer-row .o-cta .btn { padding: .85rem 1.6rem; }
.offer-row.featured .o-name h3 { position: relative; }
.tag-soft { font-family: var(--font-lat); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: .2rem .5rem; border-radius: 100px; }
@media (max-width: 820px){
  .offer-row { grid-template-columns: 1fr auto; row-gap: .8rem; align-items: start; }
  .offer-row .o-desc { grid-column: 1 / -1; order: 3; }
  .offer-row .o-cta { grid-column: 1 / -1; order: 4; }
  .offer-row .o-cta .btn { width: 100%; }
  .offer-row .o-price { text-align: start; }
}

/* ---------- Plain mini-cards for booking ---------- */
.bcards { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,2.5vw,1.6rem); }
@media (max-width: 760px){ .bcards { grid-template-columns: 1fr; } }
.bcard { border: 1px solid var(--line); padding: clamp(1.6rem,3vw,2.2rem); display: flex; flex-direction: column; gap: .5rem; transition: border-color .3s; }
.bcard:hover { border-color: var(--ink); }
.bcard .o-dur { font-family: var(--font-lat); direction: ltr; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); }
.bcard h3 { font-size: var(--fs-h3); font-weight: 500; }
.bcard .bprice { font-size: 1.3rem; font-weight: 300; color: var(--ink); margin-top: .2rem; }
.bcard .bprice .cur { font-family: var(--font-lat); font-size: .78rem; color: var(--grey); letter-spacing: .06em; }
.bcard p { font-size: var(--fs-sm); color: var(--grey); }
.bcard .btn { margin-top: auto; }

/* ---------- Calendly placeholder ---------- */
.calendly-embed { border: 1px dashed var(--line-2); background: var(--paper); padding: clamp(2.5rem,6vw,4rem); text-align: center; display: grid; place-items: center; gap: .9rem; min-height: 360px; }
.calendly-embed .ci { width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-2); border-radius: 50%; }
.calendly-embed h3 { font-size: var(--fs-h3); font-weight: 500; }
.calendly-embed p { font-size: var(--fs-sm); color: var(--grey); max-width: 460px; }
.calendly-embed code { font-family: var(--font-lat); direction: ltr; background: #efeee9; padding: .15rem .5rem; font-size: .8rem; color: var(--ink); }

/* ---------- Coming soon ---------- */
.coming { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.coming .eyebrow { margin-bottom: 1.6rem; }
.coming h1 { font-size: var(--fs-h1); font-weight: 300; }
.coming p { color: var(--grey); font-size: var(--fs-lead); margin: 1.4rem auto 0; max-width: 52ch; line-height: 1.85; }
.coming .ca { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms (minimal underline) ---------- */
.form { display: grid; gap: 1.8rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: var(--fs-sm); color: var(--ink-2); }
.field input, .field textarea, .field select {
  font-family: var(--font-ar); font-size: var(--fs-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: .7rem .1rem; width: 100%; transition: border-color .3s; text-align: right;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
@media (max-width: 600px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--fs-xs); color: var(--grey-2); }
.form-success { display: none; padding: 1.1rem 1.3rem; border: 1px solid var(--ink); font-size: var(--fs-sm); color: var(--ink); }
.form-success.show { display: block; }

/* ---------- Instagram band ---------- */
.ig-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(2rem,4vw,3rem); border: 1px solid var(--line); }
.ig-band .igl { display: flex; align-items: center; gap: 1.1rem; }
.ig-band .igi { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.ig-band .igi svg { width: 24px; height: 24px; }
.ig-band h3 { font-size: var(--fs-h3); font-weight: 500; }
.ig-band p { font-size: var(--fs-sm); color: var(--grey); }

/* ---------- Disclaimer ---------- */
.disclaimer { font-size: var(--fs-sm); color: var(--grey); max-width: 820px; line-height: 1.85; }
.disclaimer .eyebrow { display: block; margin-bottom: .8rem; color: var(--grey-2); }

/* ---------- Marks ---------- */
.facts { display: flex; gap: clamp(1.5rem,5vw,4rem); flex-wrap: wrap; }
.fact .v { font-size: 2rem; font-weight: 300; color: var(--ink); }
.fact .l { font-size: var(--fs-xs); color: var(--grey); letter-spacing: .02em; }

/* ---------- Footer (clean, light) ---------- */
.site-footer { background: var(--black); color: #B9B9B5; padding-block: clamp(3.5rem,7vw,5rem) 2rem; }
/* Wordmark on dark backgrounds — both words must read clearly */
.site-footer .wordmark .ar,
.site-footer .wordmark .ar b,
.dark-section .wordmark .ar,
.dark-section .wordmark .ar b { color: #ffffff; }
.site-footer .wordmark .en,
.dark-section .wordmark .en { color: rgba(255,255,255,.64); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: clamp(2rem,4vw,2.6rem); border-bottom: 1px solid var(--line-d); }
.f-social { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; }
@media (max-width: 620px){ .footer-main { flex-direction: column; gap: 1.8rem; } .f-social { align-items: flex-start; } }
.f-ig { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: var(--fs-sm); }
.f-ig .arw { font-family: var(--font-lat); transition: transform .35s var(--ease); }
.f-ig:hover .arw { transform: translateX(-5px); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; color: #B9B9B5; transition: all .3s; }
.socials a:hover { background: #fff; color: var(--black); border-color: #fff; }
.socials svg { width: 18px; height: 18px; }
.f-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.9rem; padding-block: 1.7rem; }
.f-nav a { font-size: var(--fs-sm); color: #B9B9B5; transition: color .3s; }
.f-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: #6F6F6B; padding-top: 1.4rem; border-top: 1px solid var(--line-d); }
.footer-bottom .lat { letter-spacing: .04em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* page top spacer for inner pages */
.page-top { padding-block: clamp(8rem, 12vw, 10rem) 0; }
.page-title { font-size: var(--fs-h1); font-weight: 300; }
.page-title + p { color: var(--grey); font-size: var(--fs-lead); margin-top: 1.2rem; max-width: 60ch; }
