/* ==========================================================================
   Aref Bushaqar — Advocate & Legal Consultant
   White and gold, modern and serious.
   ========================================================================== */

:root {
  --white: #ffffff;
  --mist: #f8f4ec;
  --gold: #b08d57;
  --gold-2: #cdb184;
  --gold-deep: #8a6a3a;
  --ink: #1f1b16;
  --text: #2b2620;
  --muted: #6f675c;
  --line: rgba(138, 106, 58, .2);

  /* names used by the shared form / chat / reveal styles */
  --brand: var(--gold-deep);
  --brand-2: var(--gold);
  --steel: var(--gold-2);
  --navy-800: var(--ink);
  --ivory: var(--mist);
  --paper: var(--white);

  --f-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 86px;
}
html[lang="ar"] {
  --f-display: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --f-body: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.8; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
html[lang="ar"] body { font-size: 17px; line-height: 1.95; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--gold-deep); color: #fff; padding: 10px 16px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
html[lang="ar"] .display { font-weight: 700; letter-spacing: 0; line-height: 1.45; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); margin-bottom: .7em; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border: 1px solid var(--bd, var(--gold)); background: var(--bg, transparent); color: var(--fg, var(--gold-deep)); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .4s var(--ease), border-color .4s; }
html[lang="ar"] .btn { letter-spacing: 0; font-size: .98rem; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover-bg, var(--gold-deep)); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .5s var(--ease-out); }
[dir="rtl"] .btn::before { --o: right; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--hover-fg, #fff); border-color: var(--hover-bg, var(--gold-deep)); }
.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: #fff; --hover-bg: var(--ink); }
.btn--line { --bg: transparent; --bd: var(--gold); --fg: var(--gold-deep); --hover-bg: var(--gold); }
.btn--white { --bg: #fff; --bd: #fff; --fg: var(--gold-deep); --hover-bg: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .74rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.arrow { display: inline-block; width: 26px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); vertical-align: middle; }
.arrow::after { content: ""; position: absolute; inset-inline-end: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-inline-end: 1px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .arrow::after { transform: rotate(-45deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; color: var(--gold-deep); font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .link-arrow { letter-spacing: 0; font-size: 1rem; }
.link-arrow:hover .arrow { width: 42px; }

/* ---------- Logo (uploaded image or name in type) ---------- */
.logo-img { max-height: 54px; width: auto; }
.logo-type { display: inline-flex; align-items: center; gap: 14px; }
.logo-type__mark { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-deep); font-weight: 700; font-size: 1rem; letter-spacing: .04em; position: relative; }
.logo-type__mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); }
.logo-type__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-type__text strong { font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.logo-type__text small { font-size: .74rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .logo-type__text small { letter-spacing: 0; font-size: .82rem; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 500; background: #fff; display: grid; place-items: center; align-content: center; gap: 24px; transition: clip-path .8s var(--ease-out), visibility 0s .9s; clip-path: inset(0 0 0 0); }
.preloader__mark { width: 74px; height: 74px; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-deep); font-weight: 700; font-size: 1.3rem; opacity: 0; transform: translateY(12px); animation: pl-in .8s var(--ease-out) .1s forwards; }
.preloader__line { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__line span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: pl-bar 1s var(--ease) .2s forwards; }
[dir="rtl"] .preloader__line span { transform-origin: right; }
.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes pl-in { to { opacity: 1; transform: none; } }
@keyframes pl-bar { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.header { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: height .4s var(--ease), border-color .4s, transform .5s var(--ease); }
.header.is-scrolled { --header-h: 72px; border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav__link { position: relative; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding-block: 8px; transition: color .3s; }
html[lang="ar"] .nav__link { letter-spacing: 0; font-size: 1rem; }
.nav__link::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .45s var(--ease-out); }
[dir="rtl"] .nav__link::after { --o: right; }
.nav__link:hover, .nav__link.is-active { color: var(--gold-deep); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .82rem; font-weight: 700; color: var(--gold-deep); transition: background .3s, color .3s; }
.lang-switch:hover { background: var(--gold); color: #fff; }
html[lang="en"] .header .lang-switch { font-family: "Cairo", sans-serif; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; padding: 0; color: var(--ink); }
.burger span { position: absolute; inset-inline: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; background: #fff; color: var(--ink); clip-path: circle(0 at var(--cx, 100%) 0); transition: clip-path .8s var(--ease-out); visibility: hidden; }
[dir="rtl"] .drawer { --cx: 0%; }
.drawer.is-open { clip-path: circle(150% at var(--cx, 100%) 0); visibility: visible; }
.drawer__inner { height: 100%; display: flex; flex-direction: column; gap: 28px; padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer__nav a { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 1.4rem; font-weight: 600; color: var(--text); transition: color .3s, padding .4s var(--ease-out); }
.drawer__nav a::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 0; height: 2px; background: var(--gold); transform: translateY(-50%); transition: width .4s var(--ease-out); }
.drawer__nav a.is-active, .drawer__nav a:hover { color: var(--gold-deep); padding-inline-start: 22px; }
.drawer__nav a.is-active::before, .drawer__nav a:hover::before { width: 12px; }
.drawer__chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .5; }
[dir="rtl"] .drawer__chev { transform: scaleX(-1); }
.drawer__actions { display: grid; gap: 12px; }
.drawer__quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.drawer__quick a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border: 1px solid var(--gold); color: var(--gold-deep); font-weight: 600; }
.drawer__quick svg, .drawer__lang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.drawer__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.drawer__lang { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 20px; background: var(--mist); color: var(--gold-deep); font-weight: 600; }
.drawer__nav a, .drawer__actions, .drawer__foot { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), color .3s, padding .4s var(--ease-out); }
.drawer.is-open .drawer__nav a, .drawer.is-open .drawer__actions, .drawer.is-open .drawer__foot { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s), calc(.2s + var(--i) * .06s), 0s, 0s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(50px, 7vw, 90px)) 0 clamp(70px, 8vw, 110px); overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero__bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; pointer-events: none; }
.hero__bg i { border-inline-start: 1px solid rgba(176, 141, 87, .1); }
.hero__bg i:last-child { border-inline-end: 1px solid rgba(176, 141, 87, .1); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); margin-bottom: 14px; }
html[lang="ar"] .hero__name { line-height: 1.35; letter-spacing: 0; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.hero__name .line > span { text-wrap: balance; }
.hero__role { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; color: var(--gold-deep); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.hero__role::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; margin-bottom: 22px; }
.hero__license { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); max-width: 56ch; font-weight: 600; color: var(--ink); font-size: .98rem; margin-bottom: 34px; }
.hero__license svg { width: 22px; height: 22px; flex: none; margin-top: 3px; fill: none; stroke: var(--gold-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__badge { position: absolute; inset-inline-start: -28px; bottom: 34px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(31, 27, 22, .3); padding: 18px 22px; display: flex; align-items: center; gap: 14px; max-width: 250px; }
.hero__badge strong { font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--gold-deep); letter-spacing: -.04em; font-family: "Manrope", sans-serif; }
.hero__badge span { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Portrait: uploaded photo, or a monogram card until one exists */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; background: var(--mist); }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
[dir="rtl"] .portrait::before { inset: 18px 18px -18px -18px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--empty { display: grid; place-items: center; align-content: center; gap: 18px; background: linear-gradient(160deg, #fff 0%, var(--mist) 60%, #efe5d3 100%); border: 1px solid var(--line); text-align: center; padding: 24px; }
.portrait__mono { width: 42%; aspect-ratio: 1; display: grid; place-items: center; border: 1.5px solid var(--gold); color: var(--gold-deep); font-weight: 700; font-size: clamp(2rem, 4vw, 3.4rem); position: relative; }
.portrait__mono::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); }
.portrait__name { font-weight: 700; color: var(--ink); font-size: 1rem; }
.portrait--mini { width: 64px; aspect-ratio: 1; flex: none; }
.portrait--mini::before { display: none; }
.portrait--mini .portrait__name { display: none; }
.portrait--mini .portrait__mono { width: 100%; border: 0; font-size: 1rem; }
.portrait--mini .portrait__mono::after { display: none; }
.portrait--mini.portrait--empty { padding: 0; }

/* ---------- Facts ---------- */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 16px; padding: 30px 24px; border-inline-start: 1px solid var(--line); }
.fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact strong { font-family: "Manrope", sans-serif; font-weight: 300; font-size: 3rem; line-height: 1; color: var(--gold-deep); letter-spacing: -.04em; }
.fact svg { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.fact span { font-weight: 600; color: var(--ink); font-size: .96rem; line-height: 1.5; }

/* ---------- About teaser ---------- */
.about-teaser__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-teaser__text p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.section-head .display { margin-bottom: 16px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; max-width: none; }

/* ---------- Career journey ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.journey::before { content: ""; position: absolute; top: 27px; inset-inline: 12.5%; height: 1px; background: var(--line); }
.journey::after { content: ""; position: absolute; top: 27px; inset-inline-start: 12.5%; width: 75%; height: 1px; background: var(--gold); transform: scaleX(var(--progress, 0)); transform-origin: var(--o, left); transition: transform .2s linear; }
[dir="rtl"] .journey::after { --o: right; }
.journey__step { text-align: center; position: relative; z-index: 1; }
.journey__dot { width: 54px; height: 54px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--gold); color: var(--gold-deep); font-weight: 700; font-family: "Manrope", sans-serif; margin-bottom: 22px; transition: background .4s, color .4s; }
.journey__step:hover .journey__dot { background: var(--gold); color: #fff; }
.journey__step h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.journey__step p { color: var(--muted); font-size: .95rem; max-width: 28ch; margin-inline: auto; }

/* ---------- Practice areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.areas--three { grid-template-columns: repeat(3, 1fr); }
.area { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 34px 30px; background: #fff; transition: background .5s var(--ease); overflow: hidden; }
.area::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .6s var(--ease-out); }
[dir="rtl"] .area::after { --o: right; }
.area:hover { background: var(--mist); }
.area:hover::after { transform: scaleX(1); }
.area__num { position: absolute; top: 30px; inset-inline-end: 30px; font-size: .78rem; color: var(--gold); font-weight: 700; font-family: "Manrope", sans-serif; }
.area__icon { width: 44px; height: 44px; color: var(--gold-deep); margin-bottom: auto; }
.area__icon svg, .svc-detail__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); margin: 54px 0 10px; line-height: 1.35; }
.area p { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.area__more { display: inline-flex; align-items: center; gap: 12px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
html[lang="ar"] .area__more { letter-spacing: 0; font-size: .92rem; }
.area:hover .arrow { width: 42px; }
.area--cta { background: var(--gold); color: #fff; }
.area--cta:hover { background: var(--gold-deep); }
.area--cta .area__icon, .area--cta h3, .area--cta .area__more { color: #fff; }
.area--cta p { color: rgba(255, 255, 255, .85); }
.area--cta::after { background: #fff; }

/* ---------- Services list ---------- */
.offer__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.offer__head { position: sticky; top: calc(var(--header-h) + 30px); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; border-top: 1px solid var(--line); }
.offer li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.offer__n { flex: none; font-family: "Manrope", sans-serif; font-weight: 700; font-size: .82rem; color: var(--gold); padding-top: 3px; }

/* ---------- Notable matters ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { position: relative; padding: 36px 32px; border: 1px solid var(--line); background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(31, 27, 22, .35); }
.case__line { display: block; width: 46px; height: 2px; background: var(--gold); margin-bottom: 26px; }
.case h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.case p { color: var(--muted); font-size: .96rem; margin: 0; }
.cases__note { margin: 34px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }

/* ---------- Vision ---------- */
.vision { background: var(--gold-deep); color: #fff; padding-block: clamp(80px, 10vw, 130px); position: relative; overflow: hidden; }
.vision::before { content: "“"; position: absolute; top: -40px; inset-inline-start: 6%; font-family: Georgia, serif; font-size: 22rem; line-height: 1; color: rgba(255, 255, 255, .1); }
.vision__inner { position: relative; text-align: center; max-width: 900px; }
.vision .eyebrow { color: #fff; }
.vision .eyebrow::before, .vision .eyebrow::after { background: rgba(255, 255, 255, .6); }
.vision blockquote { margin: 0 0 30px; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.7; font-weight: 400; color: rgba(255, 255, 255, .92); }
html[lang="ar"] .vision blockquote { font-weight: 500; line-height: 1.9; }
.vision__sign { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .86rem; }
html[lang="ar"] .vision__sign { letter-spacing: 0; font-size: 1rem; }
.vision__sign::before { content: ""; width: 34px; height: 1px; background: rgba(255, 255, 255, .6); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--mist); border-top: 1px solid var(--line); padding-block: clamp(60px, 8vw, 100px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band .display { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 8vw, 110px)) 0 clamp(50px, 6vw, 80px); background: linear-gradient(180deg, #fff, var(--mist)); border-bottom: 1px solid var(--line); }
.page-hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); max-width: 22ch; margin-bottom: 16px; }
html[lang="ar"] .page-hero__title { letter-spacing: 0; line-height: 1.4; }
.page-hero__text { max-width: 60ch; color: var(--muted); font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--gold-deep); }

/* ---------- Profile page ---------- */
.bio { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.bio__side { position: sticky; top: calc(var(--header-h) + 30px); }
.bio__facts { margin-top: 40px; border-top: 1px solid var(--line); }
.bio__facts li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.bio__facts strong { font-family: "Manrope", sans-serif; font-weight: 300; font-size: 2.2rem; color: var(--gold-deep); line-height: 1; }
.bio__facts li:not(:first-child)::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.bio__body .display { margin-bottom: 24px; }
.bio__body > p { color: var(--muted); font-size: 1.05rem; }
.qual { margin-top: 50px; padding: 36px; background: var(--mist); border-inline-start: 3px solid var(--gold); }
.qual > p { color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; border-top: 1px solid var(--line); margin-bottom: 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.checklist__tick { flex: none; width: 22px; height: 22px; border: 1px solid var(--gold); border-radius: 50%; margin-top: 4px; position: relative; }
.checklist__tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep); transform: rotate(45deg); }

/* ---------- Practice-area page ---------- */
.svc-detail { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.svc-detail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.svc-detail__icon { width: 60px; height: 60px; color: var(--gold-deep); }
.svc-detail__num { font-family: "Manrope", sans-serif; font-weight: 700; color: var(--gold); }
.svc-detail__intro { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.65; color: var(--ink); font-weight: 500; margin-bottom: 50px; }
.svc-detail__signature { display: flex; align-items: center; gap: 18px; margin-top: 50px; padding: 22px; border: 1px solid var(--line); background: var(--mist); }
.svc-detail__signature strong { display: block; color: var(--ink); }
.svc-detail__signature span { color: var(--muted); font-size: .92rem; }
.svc-detail__side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { background: #fff; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 40px 80px -50px rgba(31, 27, 22, .35); }
.side-card > p { color: var(--muted); font-size: .95rem; }
.side-card__or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .85rem; }
.side-card__or::before, .side-card__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--mist); padding: 140px 0 80px; }
.notfound__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1.5px solid var(--gold); color: var(--gold-deep); font-weight: 700; margin-bottom: 20px; }
.notfound__code { font-family: "Manrope", sans-serif; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--gold); opacity: .2; display: block; }
.notfound .display { margin: -24px 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--mist); border-top: 1px solid var(--line); padding-top: clamp(60px, 8vw, 100px); color: var(--muted); font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: clamp(30px, 5vw, 70px); padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__logo { margin-bottom: 22px; }
.footer__logo .logo-img { max-height: 70px; }
.footer__brand p { max-width: 34ch; }
.footer h3 { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
html[lang="ar"] .footer h3 { letter-spacing: 0; font-size: .98rem; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--gold-deep); }
.footer__more { color: var(--gold-deep); font-weight: 600; }
.socials { display: flex; gap: 16px; margin-top: 20px; font-size: .85rem; }
.socials a { border-bottom: 1px solid var(--line); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-block: 26px calc(100px + env(safe-area-inset-bottom)); font-size: .82rem; }
.footer__credit a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid var(--line); }

/* Hero intro choreography (elements marked data-intro rise in after the preloader) */
[data-intro] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
html[lang="ar"] .line { padding-block: .1em .3em; margin-block: -.1em -.3em; }
.line > span { display: inline-block; }
.line > [data-intro] { opacity: 1; transform: translateY(110%); }
.is-loaded [data-intro] { opacity: 1; transform: none; }
.is-loaded [data-intro="1"] { transition-delay: .3s; }
.is-loaded [data-intro="2"] { transition-delay: .42s; }
.is-loaded [data-intro="3"] { transition-delay: .56s; }
.is-loaded [data-intro="4"] { transition-delay: .7s; }
.is-loaded [data-intro="5"] { transition-delay: .84s; }
.is-loaded [data-intro="6"] { transition-delay: .98s; }

.cursor-glow { display: none; }
.consult__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.consult__intro .display { margin-bottom: 22px; }
.consult__intro > p { color: var(--muted); max-width: 44ch; }
.consult__card { background: #fff; padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -40px rgba(42, 65, 99, .28); border-top: 2px solid var(--brand); }
.consult__card > .h3 { margin-bottom: 8px; }
.consult__card > .muted { margin-bottom: 28px; }

.quick-contact { margin-top: 40px; display: grid; gap: 4px; }
.quick-contact a { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease-out); }
.quick-contact a:hover { padding-inline-start: 10px; }
.quick-contact small, .contact-cards small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .quick-contact small, html[lang="ar"] .contact-cards small { letter-spacing: 0; font-size: .85rem; }
.quick-contact b, .contact-cards b { font-weight: 500; color: var(--navy-800); font-size: 1.05rem; }
.qc__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); transition: background .4s, color .4s; }
.qc__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
a:hover > .qc__icon { background: var(--brand); color: #fff; }

.consult-form { position: relative; display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(129, 145, 163, .55); background: transparent; padding: 22px 0 10px; font-size: 1rem; border-radius: 0; outline: none;
  transition: border-color .35s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; inset-inline-start: 0; top: 22px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease-out), color .35s, font-size .35s; transform-origin: var(--o, left) top; }
[dir="rtl"] .field label { --o: right; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static { transform: translateY(-22px) scale(.8); color: var(--brand-2); }
.field::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .5s var(--ease-out); }
[dir="rtl"] .field::after { --o: right; }
.field:focus-within::after { transform: scaleX(1); }
.field--select select { cursor: pointer; padding-inline-end: 28px; }
.field--select::before { content: ""; position: absolute; inset-inline-end: 4px; top: 30px; width: 8px; height: 8px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input { border-color: #b3261e; }

.pref { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pref legend { font-size: .85rem; color: var(--muted); margin-bottom: 10px; padding: 0; width: 100%; }
.pref label { cursor: pointer; }
.pref input { position: absolute; opacity: 0; pointer-events: none; }
.pref span { display: inline-block; padding: 8px 18px; border: 1px solid rgba(129, 145, 163, .55); font-size: .88rem; transition: all .3s; border-radius: 40px; }
.pref input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pref input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 4px; flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-error { color: #b3261e; font-size: .9rem; margin: 0; }

.form-success { position: absolute; inset: -6px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; animation: fadein .6s var(--ease-out); }
.form-success[hidden] { display: none; }
.form-success h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: var(--navy-800); margin: 24px 0 10px; }
html[lang="ar"] .form-success h3 { font-weight: 700; }
.form-success p { color: var(--muted); max-width: 32ch; }
.form-success__icon svg { width: 76px; height: 76px; fill: none; stroke: var(--brand); stroke-width: 1.5; }
.form-success__icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease-out) forwards; }
.form-success__icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease-out) .7s forwards; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-cards li > a, .contact-cards li > div { display: block; background: var(--paper); padding: 30px; transition: background .4s; }
.contact-cards li > a:hover { background: #fff; }
.contact-cards .qc__icon { margin-bottom: 18px; }
.contact-cards__num { display: block; width: max-content; }
.contact-cards__num + .contact-cards__num { margin-top: 4px; }
.contact-cards__num:hover b { color: var(--brand-2); }
.contact-cards__hours { margin-top: 10px; text-transform: none !important; letter-spacing: 0 !important; }
.map { height: 460px; filter: grayscale(1) contrast(1.05) brightness(.95); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Chat widget (replaces the floating WhatsApp / call buttons) ---------- */

.chat { --chat-red: #d93a3a; position: fixed; z-index: 120; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-end: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out) 1.2s, transform .6s var(--ease-out) 1.2s; font-family: var(--f-body); }
.is-loaded .chat { opacity: 1; transform: none; }
.is-loaded.is-locked .chat { opacity: 0; pointer-events: none; transition-delay: 0s; }

.chat__launcher { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 18px 40px -12px rgba(42, 65, 99, .6), 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .4s var(--ease-out), background .3s; }
.chat__launcher:hover { transform: translateY(-3px); background: var(--brand-2); }
.chat__launcher::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--steel); animation: chat-ring 2.8s var(--ease) infinite; }
.chat.is-open .chat__launcher::before { animation: none; opacity: 0; }
@keyframes chat-ring { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.chat__ico { position: absolute; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out), opacity .3s; }
.chat__ico--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat__ico--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__ico--close { opacity: 1; transform: none; }

.chat__badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--chat-red); color: #fff; font: 700 .75rem/22px "Manrope", sans-serif; text-align: center; border: 2px solid #fff; animation: badge-pop .5s var(--ease-out); }
.chat__badge[hidden] { display: none; }
@keyframes badge-pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

.chat__teaser { position: relative; max-width: 290px; animation: chat-up .5s var(--ease-out); }
.chat__teaser[hidden] { display: none; }
.chat__teaser-body { display: flex; gap: 12px; align-items: center; text-align: start; background: #fff; border: 0; padding: 14px 16px; border-radius: 16px; border-end-end-radius: 4px; box-shadow: 0 20px 50px -18px rgba(42, 65, 99, .45); cursor: pointer; color: var(--text); font-size: .92rem; line-height: 1.5; }
.chat__teaser-body b { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.chat__teaser-x { position: absolute; top: -10px; inset-inline-start: -10px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; z-index: 1; }

.chat__panel { width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100svh - 130px)); background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(42, 65, 99, .6), 0 0 0 1px rgba(42, 65, 99, .08); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: chat-up .45s var(--ease-out); }
[dir="rtl"] .chat__panel { transform-origin: bottom left; }
.chat__panel[hidden] { display: none; }
@keyframes chat-up { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--brand); color: #fff; }
.chat__avatar { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; }
.chat__avatar svg { width: 24px; }
.chat__avatar--sm { width: 38px; height: 38px; background: var(--brand); border: 0; }
.chat__avatar--sm svg { width: 20px; }
.chat__online { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.chat__who { flex: 1; min-width: 0; line-height: 1.35; }
.chat__who b { display: block; font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__who small { font-size: .78rem; opacity: .75; }
.chat__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; position: relative; flex: none; }
.chat__close:hover { background: rgba(255, 255, 255, .2); }
.chat__close span { position: absolute; left: 11px; right: 11px; top: 17px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.chat__close span + span { transform: rotate(-45deg); }

.chat__log { flex: 1; overflow-y: auto; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--ivory); scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 82%; animation: msg-in .35s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg p { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; }
.msg--bot p { background: #fff; color: var(--text); border-end-start-radius: 4px; box-shadow: 0 1px 2px rgba(42, 65, 99, .08); }
.msg--me { align-self: flex-end; }
.msg--me p { background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.msg--typing { display: flex; gap: 4px; padding: 14px 16px; background: #fff; border-radius: 16px; border-end-start-radius: 4px; width: max-content; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: typing 1.1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg__link { display: inline-block; margin-top: 6px; padding: 8px 14px; border-radius: 20px; background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; }
.msg__links { display: flex; flex-wrap: wrap; gap: 6px; }
.msg__links .msg__link { margin-top: 6px; }
.msg__tick { display: block; width: 26px; height: 26px; margin-top: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.msg__tick::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 12px; background: var(--ivory); max-height: 190px; overflow-y: auto; }
.chat__chips[hidden], .chat__chips:empty { display: none; }
.chat__chips .chip { border: 1px solid var(--steel); background: #fff; color: var(--brand); border-radius: 20px; padding: 7px 14px; font-size: .86rem; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s; animation: msg-in .35s var(--ease-out); }
.chat__chips .chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat__chips .chip--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat__chips .chip--primary:hover { background: var(--brand-2); border-color: var(--brand-2); }

.chat__input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat__input input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 22px; padding: 0 16px; font-size: 16px; outline: none; background: #fff; transition: border-color .2s; }
.chat__input input:focus { border-color: var(--brand-2); }
.chat__input input:disabled { background: var(--ivory); }
.chat__input button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.chat__input button:disabled { opacity: .35; cursor: default; }
.chat__input button svg { width: 20px; height: 20px; fill: currentColor; }
[dir="rtl"] .chat__input button svg { transform: scaleX(-1); }
.chat__secure { margin: 0; padding: 0 12px 10px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.chat__secure svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--mask { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.reveal--mask img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
.reveal--mask.is-in { clip-path: inset(0 0 0 0); }
.reveal--mask.is-in img { transform: scale(1); }
.intro__media.reveal--mask { clip-path: none; }
.intro__media.reveal--mask img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out), transform 1.8s var(--ease-out); }
.intro__media.reveal--mask.is-in img { clip-path: inset(0 0 0 0); }

/* Word-by-word heading reveal (words wrapped by main.js). */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--wi) * 35ms); }
[data-split].is-in .w > span { transform: none; }
[data-split].reveal { opacity: 1; transform: none; }


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .fact { border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__grid, .about-teaser__grid, .offer__grid, .bio, .svc-detail, .consult__grid, .section-head--split { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; width: 100%; margin-inline: auto; order: -1; }
  .offer__head, .bio__side, .svc-detail__side { position: static; }
  .bio__side { max-width: 440px; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .journey::before, .journey::after { display: none; }
  .cases, .areas--three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html[lang="ar"] body { font-size: 16px; }
  .areas, .offer, .checklist, .field-row, .journey, .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child, .fact:nth-child(3) { border-inline-start: 0; padding: 22px 0; }
  .area { min-height: 0; padding: 30px 24px; }
  .area h3 { margin-top: 34px; }
  .hero__media { max-width: 300px; }
  .hero__badge { inset-inline-start: -8px; bottom: 18px; padding: 14px 16px; }
  .hero__badge strong { font-size: 2rem; }
  .hero__actions .btn { width: 100%; }
  .portrait::before { inset: 12px -12px -12px 12px; }
  [dir="rtl"] .portrait::before { inset: 12px 12px -12px -12px; }
  .logo-type__text small { display: none; }
  .logo-type__mark { width: 42px; height: 42px; font-size: .9rem; }
  .footer__top { grid-template-columns: 1fr; }
  .qual { padding: 26px 20px; }
  .chat { inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chat.is-open { inset: 0; padding: 0; }
  body.chat-open { overflow: hidden; }
  .chat.is-open .chat__panel { width: 100%; height: 100%; border-radius: 0; }
  .chat.is-open .chat__launcher { display: none; }
  .chat__teaser { max-width: calc(100vw - 100px); }
  .map { height: 340px; }
}
@media (hover: none) { .chat__launcher:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, [data-intro], .line > [data-intro] { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
}
