/* ==========================================================================
   asas — site styles
   Palette: Ink #0A1A2F · Studio blue #2F5FA6 · Steel #DDE6F0
   Display: Thmanyah Serif Text · Body: IBM Plex Sans Arabic / Inter
   ========================================================================== */

@font-face {
  font-family: "Thmanyah Serif Text";
  src: url("fonts/thmanyah-serif-text-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Text";
  src: url("fonts/thmanyah-serif-text-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Text";
  src: url("fonts/thmanyah-serif-text-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Text";
  src: url("fonts/thmanyah-serif-text-black.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink-deep: #0A1A2F;
  --accent: #1E40AF;
  --accent-deep: #1E3A8A;
  --sand: #DDE6F0;

  --ground: var(--sand);
  --ink: var(--ink-deep);
  --ink-soft: #2F4157;
  --ink-faint: #4A5D76;
  --paper: #EDF2F8;
  --card: #F4F8FC;
  --accent-soft: #DCE7F5;
  --accent-text: #1E4272;
  --field: var(--ink-deep);
  --field-ink: #E4EBF4;
  --line: rgba(10, 26, 47, .13);
  --line-strong: rgba(10, 26, 47, .24);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: "Thmanyah Serif Text", "Times New Roman", serif;

  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --nav-h: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --r-xs: 12px;
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 40px;
  --pill: 999px;
}

html[data-theme="dark"] {
  --ground: var(--ink-deep);
  --ink: #E4EBF4;
  --ink-soft: #AEBED2;
  --ink-faint: #8CA0B8;
  --paper: #0D1E33;
  --card: #10243C;
  --accent-soft: #182B45;
  --accent-text: #BFDBFE;
  --field: #040D18;
  --field-ink: #E4EBF4;
  --line: rgba(228, 235, 244, .14);
  --line-strong: rgba(228, 235, 244, .28);
}
html[data-theme="dark"] .intro,
html[data-theme="dark"] .pricing,
html[data-theme="dark"] .contact { background: #0F2138; }
html[data-theme="dark"] .menu-sheet { background: #0F2138; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* the lerp scroller below drives scrollTop itself */
html.has-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--sans-ar); font-size: 17px; line-height: 1.8; }

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.process-head :focus-visible,
.footer :focus-visible { outline-color: #fff; }

.skip {
  position: fixed;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ground);
  font-size: 14px;
  border-radius: var(--pill);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.03;
  text-wrap: balance;
}
html[lang="ar"] .display {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.34;
}

.section { padding-block: clamp(72px, 9vw, 128px); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section-head h2 { font-size: clamp(36px, 4.5vw, 64px); max-width: 16ch; }
.lede {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
  padding-bottom: 4px;
}
html[lang="ar"] .lede { line-height: 1.9; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent-soft);
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; flex: none; }
@media (hover: hover) { .btn:hover { background: var(--ink); color: var(--ground); transform: translateY(-2px); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 16.5px; }
.btn-solid { --btn-bg: var(--accent); --btn-ink: #fff; }

@media (hover: hover) { .btn-solid:hover { background: var(--accent-deep); color: #fff; } }
html[data-theme="dark"] .btn { --btn-bg: #162A44; --btn-ink: #E4EBF4; }

@media (hover: hover) { html[data-theme="dark"] .btn:hover { background: #E4EBF4; color: var(--ink-deep); } }
html[data-theme="dark"] .btn-solid { --btn-bg: #E4EBF4; --btn-ink: var(--ink-deep); }

@media (hover: hover) { html[data-theme="dark"] .btn-solid:hover { background: #fff; color: var(--ink-deep); } }
.btn-light { --btn-bg: #fff; --btn-ink: var(--ink-deep); }

@media (hover: hover) { .btn-light:hover { background: var(--ink-deep); color: #fff; } }
.btn-ghost { --btn-bg: transparent; --btn-ink: var(--ink); }

@media (hover: hover) { .btn-ghost:hover { background: var(--ink); color: var(--ground); } }
.btn-outline { --btn-bg: var(--accent-soft); --btn-ink: var(--ink); }

@media (hover: hover) { .btn-outline:hover { background: var(--ink); color: var(--ground); } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.arrow-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.arrow-link { text-decoration: none; }
.arrow-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.arrow-link:hover, .text-link:hover { color: var(--accent-text); }
@media (hover: hover) { .arrow-link:hover svg { transform: translateX(4px); } }
html[dir="rtl"] .arrow-link svg { transform: rotate(180deg); }
@media (hover: hover) { html[dir="rtl"] .arrow-link:hover svg { transform: rotate(180deg) translateX(4px); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  color: var(--ink);
  overflow-x: clip;
  transition: background .3s ease, color .25s ease;
}
.nav-inner > * {
  transition: transform .55s var(--ease), opacity .45s ease;
}
.nav.is-tucked { pointer-events: none; }
.nav.is-tucked .brand { transform: translateX(-124%); opacity: 0; }
.nav.is-tucked .nav-links,
.nav.is-tucked .nav-tools { transform: translateX(124%); opacity: 0; }
html[dir="rtl"] .nav.is-tucked .brand { transform: translateX(124%); }
html[dir="rtl"] .nav.is-tucked .nav-links,
html[dir="rtl"] .nav.is-tucked .nav-tools { transform: translateX(-124%); }
.nav:focus-within { pointer-events: auto; }
.nav:focus-within .brand,
.nav:focus-within .nav-links,
.nav:focus-within .nav-tools { transform: none; opacity: 1; }
.is-home .nav {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  color: #E4EBF4;
}
.is-home .nav.is-scrolled,
.nav.is-scrolled { background: var(--ground); color: var(--ink); }
.nav.is-tucked,
.nav.is-scrolled.is-tucked { background: transparent; }
.nav:focus-within,
.nav.is-scrolled:focus-within { background: var(--ground); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
/* Logo colours — from the brand PNG: navy #031130, off-white #F2F6FB, blue #185DF1 */
:root { --logo-ink: #031130; --logo-blue: #185DF1; }
html[data-theme="dark"] { --logo-ink: #F2F6FB; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--logo-ink); padding-block: 6px; margin-block: -6px; }
.brand-mark { width: 21px; height: auto; color: var(--logo-ink); }
.brand-mark rect { fill: var(--logo-blue); }
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.02em;
  padding-top: 2px;
}
.brand-word i { font-style: normal; color: var(--logo-blue); }

/* Language-aware lockup — Latin on English, official Arabic wordmark on Arabic */
html:not([lang="ar"]) .brand-word-ar { display: none; }
html[lang="ar"] .brand-word-en { display: none; }
html[lang="ar"] .brand-word-ar {
  display: inline-block;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
  padding-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a {
  font-size: 15px;
  color: currentColor;
  opacity: .74;
  position: relative;
  padding-block: 6px;
  transition: opacity .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
@media (hover: hover) { .nav-links a:hover::after { transform: scaleX(1); } }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  color: currentColor;
  opacity: .78;
  transition: opacity .2s ease;
}
@media (hover: hover) { .icon-btn:hover { opacity: 1; transform: none; background: none; } }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#langBtn { width: auto; min-width: 38px; padding-inline: 6px; font-size: 14px; font-weight: 500; }
.nav-cta {
  font-size: 15px;
  margin-inline-start: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity .2s ease;
}
.nav-cta:hover { opacity: .7; }
@media (max-width: 900px) { .nav-account { display: none; } }
.lang-en { display: none; }
html[lang="en"] .lang-ar { display: none; }
html[lang="en"] .lang-en { display: inline; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  position: relative;
  color: currentColor;
}
.menu-btn span {
  position: absolute;
  inset-inline: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { bottom: 16px; }

/* ---------- header: three pills ---------- */
:root{--pill-bg:rgba(244,248,252,.97);--pill-ink:var(--ink-deep);--pill-line:rgba(10,26,47,.12);--pill-hover:rgba(47,95,166,.14)}
html[data-theme="dark"]{--pill-bg:rgba(16,36,60,.96);--pill-ink:#E4EBF4;--pill-line:rgba(228,235,244,.18);--pill-hover:rgba(228,235,244,.12)}
.hdr{position:fixed;inset:0 0 auto 0;z-index:100;padding:16px var(--pad);pointer-events:none}
.hdr-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;max-width:var(--max);margin-inline:auto}
.pill{pointer-events:auto;display:flex;align-items:center;gap:2px;height:54px;padding-inline:8px;border-radius:var(--pill);background:var(--pill-bg);color:var(--pill-ink);box-shadow:0 0 0 1px var(--pill-line),0 10px 28px -20px rgba(10,26,47,.55);transition:transform .65s var(--ease),opacity .4s ease}
.pill-l{justify-self:start;padding-inline:20px}
.pill-r{justify-self:end}
.hdr .nav-links{gap:2px}
.hdr .nav-links a{padding:9px 15px;border-radius:var(--pill);opacity:.82;transition:background .25s,opacity .25s}
.hdr .nav-links a::after{display:none}
.hdr .nav-links a:hover,.hdr .nav-links a[aria-current="true"]{opacity:1;background:var(--pill-hover)}
.hdr-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;margin-inline-start:4px;border-radius:var(--pill);background:var(--accent);color:#fff;font-size:15px;font-weight:500;white-space:nowrap;transition:background .25s,transform .35s var(--ease)}
@media (hover: hover) { .hdr-cta:hover{background:var(--accent-deep);transform:translateY(-1px)} }
html[data-theme="dark"] .hdr-cta{background:#E4EBF4;color:var(--ink-deep)}

@media (hover: hover) { html[data-theme="dark"] .hdr-cta:hover {background:#fff} }
.hdr .icon-btn,.hdr .menu-btn{border-radius:50%}
.hdr .icon-btn:hover{background:var(--pill-hover)}
.pill-l{--out:-160%}
.pill-r{--out:160%}
html[dir="rtl"] .pill-l{--out:160%}
html[dir="rtl"] .pill-r{--out:-160%}
.hdr.is-tucked .pill-l,.hdr.is-tucked .pill-r{transform:translateX(var(--out));opacity:0;pointer-events:none}
.hdr.is-tucked .pill-m{transform:translateY(-8px) scale(.96)}
/* keyboard focus keeps the side pills visible; a tap or click that merely
   leaves focus on a button (e.g. the mobile menu button) must not pin the header open */
.hdr:has(:focus-visible) .pill-l,.hdr:has(:focus-visible) .pill-r{transform:none;opacity:1;pointer-events:auto}
@media (max-width:900px){
  .hdr{padding-top:12px}
  .pill{height:50px}
  .hdr-in{display:flex;justify-content:space-between}
  .hdr .pill-m{position:fixed;top:12px;left:50%;transform:translate(-50%,-190%);opacity:0;pointer-events:none}
  .hdr.is-tucked .pill-m{transform:translate(-50%,0);opacity:1;pointer-events:auto}
}

/* ---------- drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
.drawer-close { font-size: 15px; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.drawer-links { display: flex; flex-direction: column; margin-top: clamp(24px, 6vh, 60px); flex: 1; }
.drawer-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(12px, 1.8vh, 20px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
html[lang="ar"] .drawer-links a { font-weight: 700; letter-spacing: 0; line-height: 1.35; font-size: clamp(34px, 7.2vw, 50px); }
.drawer-links a:hover { color: var(--accent-text); }
.drawer-foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); flex: none; }
.drawer-foot .btn { width: 100%; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.drawer-meta a, .drawer-meta button { text-decoration: underline; text-underline-offset: 3px; }
.drawer-meta a:hover, .drawer-meta button:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: #E4EBF4;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(48px, 8vh, 88px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.hero-title {
  font-size: clamp(54px, 10vw, 152px);
  line-height: .88;
  letter-spacing: -.045em;
  max-width: none;
  text-wrap: balance;
}
.hero-title .hero-line { display: block; }
.hero-line-1 { color: #E4EBF4; }
.hero-line-2 { color: #9DBBEA; }
html[lang="ar"] .hero-title {
  font-size: clamp(42px, 8.4vw, 128px);
  line-height: 1.2;
  letter-spacing: 0;
}
html[lang="ar"] .hero-line-1 { color: #E4EBF4; }
html[lang="ar"] .hero-line-2 { color: #9DBBEA; }

/* Word-by-word entrance. Arabic is split on spaces only, so the joined
   letterforms are never broken. */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: .16em;
  margin-block: -.16em;
}
.hw > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(112%);
  opacity: 0;
  transition: transform 1.05s var(--ease), opacity .55s ease, color .35s ease;
  transition-delay: calc(var(--i, 0) * 65ms + 120ms);
  will-change: transform;
}
/* Arabic glyphs carry deeper descenders than the Latin faces, and the mask
   is tight — give them room below without changing the line box (negative
   margins cancel the extra padding). */
html[lang="ar"] .hw {
  padding-block: .16em .34em;
  margin-block: -.16em -.34em;
}
.hero-title.is-in .hw > i { transform: none; opacity: 1; }
/* pointer proximity lifts the word with the separate `translate` property,
   so it never fights the entrance transform */

/* ---------- intro ---------- */
.intro {
  background: var(--sand);
  color: var(--ink);
  padding-block: clamp(72px, 9vw, 128px);
}
.intro-lead {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 40ch;
  text-wrap: pretty;
}
html[lang="ar"] .intro-lead { line-height: 1.62; max-width: 38ch; }
.intro-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: clamp(48px, 6vw, 80px);
}
.intro-cols p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
}
html[lang="ar"] .intro-cols p { font-size: 16.5px; line-height: 1.85; }
.intro-cols strong { color: var(--ink); font-weight: 600; }

/* ---------- services ---------- */
.services {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(72px, 9vw, 128px);
}
.menu-sheet {
  max-width: 860px;
  margin-inline: auto;
  background: var(--sand);
  color: var(--ink);
  border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(24px, 3.2vw, 36px);
}
.menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  margin-bottom: clamp(24px, 2.6vw, 28px);
}
.menu-title { font-size: clamp(34px, 4vw, 56px); }
.menu-head p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 30ch; }
html[lang="ar"] .menu-head p { line-height: 1.8; }
.menu-group + .menu-group { margin-top: clamp(30px, 4vw, 48px); }
.menu-group-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(16px, 4vw, 48px);
  align-items: baseline;
  padding-block: clamp(10px, 1.3vw, 15px);
}
.menu-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
html[lang="ar"] .menu-item h3 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.menu-note {
  grid-column: 1;
  grid-row: 2;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 3px;
}
html[lang="ar"] .menu-note { line-height: 1.8; }
.menu-price {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  font-size: 16px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-action {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--accent-text);
  padding: 0;
}
.menu-action:hover { color: var(--ink); }

/* ---------- pricing ---------- */
.pricing {
  background: var(--sand);
  padding-block: clamp(72px, 9vw, 128px);
  color: var(--ink);
}
.pricing-head h2 { max-width: 17ch; }
.pricing-note {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.7vw, 40px);
  background: var(--card);
  color: var(--ink);
  border: 0;
  border-radius: clamp(24px, 2.4vw, 34px);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), background 200ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(10, 26, 47, 0.4); }
}
html[data-theme="dark"] .plan { background: #152C49; }
.plan-featured { background: var(--accent); color: #fff; }
html[data-theme="dark"] .plan-featured { background: var(--accent); color: #fff; }
.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.plan h3 { font-size: clamp(26px, 2.3vw, 33px); }
.plan-tag { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.plan-featured .plan-tag { color: rgba(255, 255, 255, .88); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: clamp(22px, 2.4vw, 32px);
}
.plan-price b {
  font-size: clamp(48px, 4.6vw, 70px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.plan-price .cur { font-size: 15px; color: var(--ink-soft); }
.plan-featured .plan-price .cur { color: rgba(255, 255, 255, .86); }
.plan-once { margin-top: 8px; font-size: 14px; color: var(--ink-faint); }
.plan-featured .plan-once { color: rgba(255, 255, 255, .82); }
.plan-for {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plan-featured .plan-for { color: rgba(255, 255, 255, .9); }
.plan-list {
  display: grid;
  gap: 9px;
  margin-top: clamp(22px, 2.2vw, 30px);
  margin-bottom: 30px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-inline-start: 19px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
html[lang="ar"] .plan-list li { line-height: 1.8; }
.plan-list li::before {
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent-text);
}
.plan-featured .plan-list li { color: rgba(255, 255, 255, .94); }
.plan-featured .plan-list li::before { color: rgba(255, 255, 255, .72); }
.plan .btn { width: 100%; margin-top: auto; }
.plan-featured .btn { background: #fff; color: var(--ink-deep); }

/* Standard is the main plan: wider, taller than its neighbours, bigger price.
   Wide screens only; stacked layouts keep equal cards. */
@media (min-width: 981px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, 1fr); }
  .plan-featured {
    margin-block: -22px;
    padding: clamp(32px, 3.4vw, 52px) clamp(28px, 3vw, 46px);
  }
  .plan-featured h3 { font-size: clamp(30px, 2.7vw, 40px); }
  .plan-featured .plan-price b { font-size: clamp(58px, 5.8vw, 92px); }
  .plan-featured .plan-list { gap: 11px; }
}

@media (hover: hover) { .plan-featured .btn:hover { background: var(--ink-deep); color: #fff; } }

.pricing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 16px;
  color: var(--ink-soft);
}
.pricing-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pricing-actions .btn { min-height: 48px; padding: 11px 22px; font-size: 15px; }

/* ---------- process ---------- */
.process {
  background: var(--ink-deep);
  color: #E4EBF4;
  padding-block: clamp(72px, 9vw, 128px);
  overflow: clip;
}
.proc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 56px;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.process-head h2 { font-size: clamp(36px, 4.8vw, 70px); max-width: 15ch; }
html[lang="ar"] .process-head h2 { line-height: 1.32; }
.process-lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  color: rgba(228, 235, 244, .76);
  max-width: 44ch;
  margin-top: 22px;
}
html[lang="ar"] .process-lede { line-height: 1.88; }

.proc-day {
  flex: none;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 14px;
  text-align: start;
}
.proc-day-label, .proc-day-of { font-size: 15px; color: rgba(228, 235, 244, .6); }
.proc-day-num {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(88px, 11vw, 168px);
  line-height: .85;
  min-width: 2ch;
  text-align: start;
  font-variant-numeric: tabular-nums;
  color: #9DBBEA;
}
html[lang="ar"] .proc-day-num { font-weight: 700; line-height: 1; }
.proc-day-label { grid-column: 1; grid-row: 1; align-self: end; }
.proc-day-of { grid-column: 1; grid-row: 2; align-self: start; }

.proc-steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}
/* the track: a hairline that fills as you scroll */
.proc-steps::before, .proc-steps::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  height: 2px;
  border-radius: 2px;
}
.proc-steps::before { width: 100%; background: rgba(228, 235, 244, .16); }
.proc-steps::after { width: calc(var(--p) * 100%); background: #9DBBEA; box-shadow: 0 0 18px rgba(157, 187, 234, .7); }

.proc-step {
  position: relative;
  padding: 42px clamp(16px, 1.6vw, 24px) clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  opacity: .72;
  transition: opacity .5s ease, background .5s ease, border-color .5s ease, transform .6s var(--ease);
}
.proc-step.is-on { opacity: 1; }
.proc-step.is-now {
  background: rgba(157, 187, 234, .09);
  border-color: rgba(157, 187, 234, .28);
  transform: translateY(-6px);
}
.proc-dot {
  position: absolute;
  top: 0;
  /* centred on the start edge of the text block (the step's own padding) */
  inset-inline-start: calc(clamp(16px, 1.6vw, 24px) - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid rgba(228, 235, 244, .35);
  transition: background .4s ease, border-color .4s ease, transform .5s var(--ease), box-shadow .4s ease;
}
.proc-step.is-on .proc-dot { background: #9DBBEA; border-color: #9DBBEA; }
/* the active card lifts 6px; the dot drops 6px so it stays on the track */
.proc-step.is-now .proc-dot { transform: translateY(6px) scale(1.35); box-shadow: 0 0 0 6px rgba(157, 187, 234, .22); }
.proc-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 5.4vw, 84px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(228, 235, 244, .5);
  transition: color .5s ease, -webkit-text-stroke-color .5s ease;
}
.proc-step.is-now .proc-num { color: #9DBBEA; -webkit-text-stroke-color: #9DBBEA; }
.proc-chip {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(228, 235, 244, .28);
  font-size: 13.5px;
  color: rgba(228, 235, 244, .85);
  font-variant-numeric: tabular-nums;
}
.proc-step h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.3; margin-top: 14px; }
.proc-step p { font-size: 15.5px; line-height: 1.6; color: rgba(228, 235, 244, .74); margin-top: 8px; }
html[lang="ar"] .proc-step p { line-height: 1.85; }

/* Pinned mode (set from JS when the whole block fits the viewport): the
   section becomes a tall runway and its content sticks while the day counter
   climbs. Releasing the pin hands scrolling back to the page. */
.process.is-pinned {
  padding-block: 0;
  height: calc(100vh + var(--pin-run, 220vh));
  height: calc(100svh + var(--pin-run, 220vh));
  overflow: visible; /* sticky needs a non-clipping ancestor chain */
}
.process.is-pinned .proc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;   /* clear the fixed header */
  padding-bottom: 24px;
  box-sizing: border-box;
  overflow: clip;
}
.process.is-pinned .proc-head { margin-bottom: clamp(28px, 5vh, 64px); }

@media (max-width: 980px) {
  .proc-head { flex-direction: column; align-items: flex-start; }
  .proc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .proc-steps::before, .proc-steps::after { display: none; }
  .proc-step { padding-top: 30px; }
  .proc-dot { top: 8px; }
}
@media (max-width: 560px) {
  .proc-steps { grid-template-columns: 1fr; }
}

/* ---------- faq ---------- */
.faq {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(64px, 8vw, 112px);
}
.faq-list {
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-body { overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  min-height: 44px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color 200ms var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .55;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); opacity: .9; }
.faq-item p {
  max-width: 68ch;
  padding-bottom: 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
html[lang="ar"] .faq-item p { line-height: 1.9; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.faq-more {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: 15.5px;
  color: var(--ink-soft);
}
.faq-more .text-link { margin-inline-start: 4px; }

/* ---------- contact ---------- */
.contact {
  background: var(--sand);
  color: var(--ink);
  padding-block: clamp(72px, 9vw, 128px);
}
.contactTitle {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22ch;
}
html[lang="ar"] .contactTitle { line-height: 1.5; font-weight: 700; }
.contact-lede {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}
html[lang="ar"] .contact-lede { line-height: 1.85; }

.contact-wa {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(18px, 2.4vw, 32px);
  margin-block: clamp(26px, 3.8vw, 44px) clamp(26px, 3.4vw, 40px);
  padding: clamp(22px, 2.8vw, 34px) clamp(22px, 3.2vw, 40px);
  border-radius: clamp(22px, 2.2vw, 30px);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background .25s ease, transform .5s cubic-bezier(.22, 1.1, .32, 1);
}
.contact-wa:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (hover: hover) { .contact-wa:hover { background: #2F5FD0; filter: brightness(1.08); } }
/* the reveal class would otherwise force its slow .8s transition on hover */
.contact-wa.will-reveal { transition: opacity .8s var(--ease), background .25s ease, transform .5s cubic-bezier(.22, 1.1, .32, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .contact-wa.will-reveal:hover, .contact-wa:hover { transform: scale(1.01); } }
@media (prefers-reduced-motion: no-preference) { .contact-wa.will-reveal:active, .contact-wa:active { transform: scale(0.99); transition-duration: 120ms; } }
.contact-wa-icon {
  display: grid;
  place-items: center;
  width: clamp(44px, 4vw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: background .3s ease, color .3s ease, transform .45s var(--ease);
}
.contact-wa-icon svg { width: 56%; height: 56%; fill: currentColor; }
@media (hover: hover) { .contact-wa:hover .contact-wa-icon { background: #fff; color: #2F5FD0; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .contact-wa:hover .contact-wa-icon { transform: scale(1.1) rotate(-6deg); } }
.contact-wa-text { display: grid; gap: 2px; min-width: 0; }
.contact-wa-label {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
html[lang="ar"] .contact-wa-label { letter-spacing: 0; }
.contact-wa-num {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.contact-wa-arrow {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
  transition: transform .35s var(--ease), opacity .2s ease, background .3s ease, color .3s ease;
}
html[dir="rtl"] .contact-wa-arrow { transform: scaleX(-1); }
@media (hover: hover) { .contact-wa:hover .contact-wa-arrow { opacity: 1; background: #fff; color: #2F5FD0; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .contact-wa:hover .contact-wa-arrow { transform: translate(3px, -3px); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { html[dir="rtl"] .contact-wa:hover .contact-wa-arrow { transform: scaleX(-1) translate(3px, -3px); } }

.contact-alt {
  display: grid;
  gap: 14px;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}
.contact-alt-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.contact-alt-key {
  flex: 0 0 auto;
  min-width: 68px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
html[lang="ar"] .contact-alt-key { letter-spacing: 0; }
.contact-alt-row a {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact-alt-row a:hover { color: var(--accent-text); }
.contact-foot {
  margin-top: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.contact-fine {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 46ch;
}

/* ---------- footer ---------- */
.footer {
  background: var(--accent-deep);
  color: var(--sand);
  overflow: clip;
}
/* ---------- footer signal: the first column, beside the link columns ---------- */
.footer-body {
  padding-block: clamp(52px, min(6.2vw, 8vh), 92px) clamp(30px, min(5.4vw, 5.6vh), 72px);
  border-top: 1px solid rgba(221, 230, 240, .16);
}
.signal-col .signal-mail {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  max-width: 100%;
  padding-block: 2px 0;
  font-size: clamp(16.5px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--sand);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.signal-col .signal-mail > span { min-width: 0; }
.signal-col .signal-mail svg {
  width: .72em;
  height: .72em;
  flex: none;
  align-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.signal-col .signal-mail:hover { color: #fff; }
@media (hover: hover) { .signal-col .signal-mail:hover svg { transform: translate(2px, -2px); } }
.signal-note {
  margin-top: 10px;
  max-width: 33ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(221, 230, 240, .88);
}
html[lang="ar"] .signal-note { font-size: 15.5px; line-height: 1.8; max-width: 34ch; }
.signal-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.signal-col .signal-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(221, 230, 240, .22);
  border-radius: 50%;
  color: var(--sand);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.signal-col .signal-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal-col .signal-icon:hover { background: var(--sand); border-color: var(--sand); color: var(--ink-deep); }

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr));
  gap: 0;
}
/* hairline between Signal / Pages / Studio / Contact / Legal */
.footer-cols > div {
  min-width: 0;
  padding-inline: clamp(14px, 2.2vw, 34px);
  border-inline-start: 1px solid rgba(221, 230, 240, .16);
}
.footer-cols > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.footer-cols > div:last-child { padding-inline-end: 0; }
.footer-cols h3 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(221, 230, 240, .88);
  margin-bottom: 10px;
}
.footer-cols a, .footer-cols button {
  display: block;
  padding-block: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sand);
  text-align: start;
}
.footer-cols button { padding-inline: 0; background: none; border: 0; width: 100%; }
/* phone + email are LTR strings: in Arabic they must still sit on the column's start (right) edge */
html[dir="rtl"] .footer-cols a[dir="ltr"] { text-align: right; }
.footer-cols a:hover, .footer-cols button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-cols a[href^="mailto"],
.footer-cols a[href^="tel"] { overflow-wrap: anywhere; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px clamp(26px, 3.4vw, 40px);
  border-top: 1px solid rgba(221, 230, 240, .16);
  font-size: 14px;
  color: rgba(221, 230, 240, .88);
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 26, 47, .74); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(92svh, 1000px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ground);
  color: var(--ink);
  padding: clamp(22px, 3.8vw, 46px);
  border-radius: var(--r-lg);
  transform: translateY(14px);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-sm .modal-card { width: min(540px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.modal-close {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--accent-soft); color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.modal-intro { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; margin-block: 12px 24px; }
html[lang="ar"] .modal-intro { line-height: 1.8; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid label { min-width: 0; }
.form-grid label > span, .coupon-field > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  appearance: none;
}
select { appearance: auto; background-image: none; padding-inline-end: 36px; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: .9; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: var(--paper);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #B42318;
  background: #FFF6F5;
}
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus {
  outline-color: #B42318;
}
html[data-theme="dark"] input[aria-invalid="true"],
html[data-theme="dark"] textarea[aria-invalid="true"] {
  border-color: #FF9B91;
  background: rgba(255, 155, 145, .08);
}
html[data-theme="dark"] input[aria-invalid="true"]:focus,
html[data-theme="dark"] textarea[aria-invalid="true"]:focus {
  outline-color: #FF9B91;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.full-label { grid-column: 1 / -1; }
.is-hidden { display: none !important; }

.coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 16px; }
.coupon .btn { min-height: 52px; }
.coupon-result { min-height: 22px; font-size: 14px; line-height: 1.5; margin-top: 7px; }
.coupon-result.success { color: #0A7A4A; }
.coupon-result.error { color: #B42318; }
html[data-theme="dark"] .coupon-result.success { color: #7EE2B0; }
html[data-theme="dark"] .coupon-result.error { color: #FF9B91; }
.coupon-price {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  font-size: 15px;
}
.coupon-price.show { display: flex; }
.coupon-price strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.form-status { min-height: 22px; font-size: 14px; line-height: 1.5; margin-block: 12px 4px; }
.form-status.success { color: #0A7A4A; }
.form-status.error { color: #B42318; }
html[data-theme="dark"] .form-status.success { color: #7EE2B0; }
html[data-theme="dark"] .form-status.error { color: #FF9B91; }
.project-submit { width: 100%; margin-top: 6px; }
.form-fine { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 10px; }

.auth-tabs { display: flex; gap: 6px; margin-block: 18px 22px; padding: 4px; background: var(--accent-soft); border: 0; border-radius: var(--pill); }
.auth-tab {
  flex: 1;
  padding: 9px 15px;
  border-radius: var(--pill);
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.auth-tab.is-on { background: var(--accent); color: #fff; }
.auth-title { font-size: clamp(30px, 4vw, 42px); }
.auth-forgot { margin-top: 18px; font-size: 14px; }
.acct-mail { font-size: 16px; color: var(--ink-soft); margin-block: 8px 20px; overflow-wrap: anywhere; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 22px 14px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 0;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink-soft);
}
.pay-total strong { font-size: 25px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 400;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--ground);
  padding: 13px 22px;
  border-radius: var(--pill);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease), visibility 0s linear .35s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s ease, transform .35s var(--ease), visibility 0s; }

/* ---------- reveal ---------- */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .hero-title { font-size: clamp(50px, 9.6vw, 120px); }
  html[lang="ar"] .hero-title { font-size: clamp(40px, 8vw, 100px); }
}

@media (max-width: 980px) {
  .hero-title { font-size: clamp(48px, 9.4vw, 92px); }
  html[lang="ar"] .hero-title { font-size: clamp(40px, 7.8vw, 80px); }
  .intro-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { max-width: 640px; }
}

@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols > .signal-col {
    grid-column: 1 / -1;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border: 0;
    border-bottom: 1px solid rgba(221, 230, 240, .16);
  }
  .footer-cols > .signal-col .signal-note { max-width: 52ch; }
  .footer-cols > div { padding-inline: clamp(12px, 3vw, 24px); }
  .footer-cols > div:nth-child(2),
  .footer-cols > div:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .footer-cols > div:nth-child(3),
  .footer-cols > div:nth-child(5) { padding-inline-end: 0; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head h2 { max-width: 20ch; }
}

@media (max-width: 760px) {
  .menu-sheet { padding: 26px 22px; }
  .menu-head { display: block; }
  .menu-head p { max-width: none; margin-top: 8px; }
  .menu-item { column-gap: 16px; }
  .menu-item h3 { font-size: 24px; }
  .menu-note { font-size: 16px; }
  .menu-price { font-size: 15px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  body { font-size: 16px; }
  html[lang="ar"] body { font-size: 16.5px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 24px; }
  .hero-title { font-size: clamp(38px, 10.6vw, 54px); line-height: .94; }
  html[lang="ar"] .hero-title { font-size: clamp(32px, 9.4vw, 46px); line-height: 1.2; }
  .intro { padding-block: 64px; }
  .intro-lead { font-size: 21px; }
  .intro-cols { gap: 24px; }
  .services, .pricing, .process, .contact { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .menu-title, .process-head h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .lede { font-size: 16px; }
  .plan { padding: 26px 22px; border-radius: 26px; }
  .plan-price b { font-size: 52px; }
  .pricing-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pricing-actions { width: 100%; justify-content: space-between; }
  .process-head h2 { font-size: clamp(32px, 8.6vw, 44px); }
  .contact-wa { margin-block: 26px 34px; }
  .contact-foot { align-items: flex-start; }
  .contact-foot .btn { width: 100%; }
  .dock { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 4px; gap: 1px; }
  .dock-link { min-height: 42px; padding-inline: 11px; font-size: 13px; }
  .dock-cta { min-height: 42px; padding-inline: 13px; font-size: 13px; gap: 5px; }
  .dock-link[href="#contact"] { display: none; }
  .footer-body { padding-block: 20px 40px; }
  .footer-legal { gap: 8px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 8px; }
  .modal-card { padding: 22px 18px 26px; max-height: 94svh; border-radius: 24px; }
  .modal-head h2 { font-size: 28px; }
  .modal-intro { font-size: 15px; }
  .coupon { grid-template-columns: minmax(0, 1fr) auto; }
  .coupon .btn { padding-inline: 16px; }
  .drawer-links { margin-top: 12px; }
}

@media (max-width: 560px) {
  .intro-cols { grid-template-columns: 1fr; gap: 22px; }
  .intro-cols p { font-size: 16px; }
  .menu-item { grid-template-columns: 1fr; }
  .menu-item h3 { grid-column: 1; grid-row: 1; font-size: 23px; }
  .menu-note { grid-column: 1; grid-row: 2; }
  .menu-price { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 6px; }
  .menu-action { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 4px; }
  .footer-places p, .footer-places a { font-size: 19px; }
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-cols > div {
    padding: 18px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(221, 230, 240, .16);
  }
  .footer-cols > .signal-col {
    padding: 0 0 18px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid rgba(221, 230, 240, .16);
  }
  .footer-cols > .signal-col .signal-note { max-width: none; }
}

@media (max-width: 480px) {
  .contact-wa {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding: 20px;
  }
  .contact-wa-icon { width: 40px; }
  .contact-wa-arrow { display: none; }
  .contact-wa-num { font-size: clamp(20px, 6vw, 26px); }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .will-reveal { opacity: 1; transform: none; }
  .arrow-link:hover svg { transform: none; }
  html[dir="rtl"] .arrow-link:hover svg { transform: rotate(180deg); }
}

/* ---------- studio menu: index + preview + order ---------- */
.menu-sheet{max-width:1000px}
.svc-wrap{--gap:clamp(24px,4vw,64px);position:relative;display:block}
.svc-list{display:grid;grid-auto-columns:minmax(0,1fr)}
.svc-sep{padding:13px 0 3px;font-size:14px;font-weight:600;color:var(--ink-soft)}
.svc-sep:first-child{padding-top:0}
.svc-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);width:calc((100% - var(--gap))*.55)}
.svc-pick{flex:1;min-width:0;display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;text-align:start;opacity:.5;transition:opacity .25s}
.svc.is-on .svc-pick,.svc-pick:hover{opacity:1}
.svc-name{font-size:clamp(19px,1.7vw,23px);line-height:1.2;min-width:0}
.svc-price{font-size:14px;color:var(--ink-soft);white-space:nowrap}
.svc-tick{flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--line-strong);display:grid;place-items:center;position:relative;transition:background .2s,border-color .2s}
.svc-tick::before{content:"";position:absolute;inset:-8px;border-radius:50%}
.svc-tick svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.5);transition:opacity .2s,transform .4s var(--ease)}
.svc-tick[aria-checked="true"]{background:var(--accent);border-color:var(--accent)}
.svc-tick[aria-checked="true"] svg{opacity:1;transform:none}
.svc-detail{position:absolute;top:0;inset-inline-end:0;width:calc((100% - var(--gap))*.45);padding:clamp(20px,2.4vw,32px);border-radius:var(--r-md);background:var(--accent-soft);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s,transform .5s var(--ease),visibility 0s .3s}
.svc.is-on .svc-detail{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.svc-big{font-size:clamp(28px,3.1vw,44px);line-height:1.05;margin-bottom:10px}
.svc-note{font-size:16.5px;line-height:1.6;color:var(--ink-soft)}
html[lang="ar"] .svc-note{line-height:1.85}
.svc-detail .text-link{margin-top:14px}
.order-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:clamp(18px,2.2vw,20px);padding-block:8px;padding-inline:24px 8px;border-radius:var(--pill);background:var(--ink-deep);color:#E4EBF4}
html[data-theme="dark"] .order-bar{background:#040D18}
.order-text{font-size:15.5px;line-height:1.45;min-width:0}
@media (max-width:860px){
  .svc-row{width:100%}
  .svc-detail{position:static;width:auto;display:none;opacity:1;visibility:visible;transform:none;margin:0 0 12px}
  .svc.is-on .svc-detail{display:block}
  .svc-pick{opacity:1}
}
@media (max-width:560px){.order-bar{border-radius:26px;flex-direction:column;align-items:stretch;padding:16px}}

/* ---------- headline word reveal ---------- */
.sw{display:inline-block;overflow:hidden;vertical-align:top;padding-block:.18em;margin-block:-.18em}
.sw>i{display:inline-block;font-style:normal;transform:translateY(118%);transition:transform .95s var(--ease);transition-delay:calc(var(--i)*60ms)}
.sw-on .sw>i{transform:none}

/* ---------- footer reveal ---------- */
html.footer-reveal body{padding-bottom:var(--fh,0px)}
html.footer-reveal main{position:relative;z-index:1;background:var(--ground);border-radius:0 0 var(--r-xl) var(--r-xl);overflow:clip}
html.footer-reveal .footer{position:fixed;inset:auto 0 0;z-index:0}
html.footer-reveal .footer-body{transform:translate3d(0,calc((1 - var(--fp,1))*-70px),0)}
html.footer-reveal .footer-body,html.footer-reveal .footer-legal{opacity:calc(.2 + .8*var(--fp,1))}

.pricing{background:var(--paper)}
html[data-theme="dark"] .pricing{background:#0C1C31}

/* ==========================================================================
   Start a project — circular takeover + stepped flow
   ========================================================================== */
/* The whole panel opens as one circle from the pressed button, then closes
   back into it (the brand-nw move). clip-path keeps the content clipped to
   the circle, so nothing fades through the edges. */
.modal-full {
  --pull: cubic-bezier(.7, 0, .2, 1);
  padding: 0;
  place-items: stretch;
  opacity: 1;
  background: linear-gradient(180deg, #1E3A8A 0%, #172554 100%);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%));
  will-change: clip-path;
  /* closing: the circle is pulled back into the button, accelerating the way
     a falling object does, and stays mounted until it has fully arrived */
  transition: clip-path .74s var(--pull), visibility 0s linear .76s;
}
.modal-full.is-open {
  clip-path: circle(var(--cr, 150vmax) at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .78s cubic-bezier(.8, 0, .12, 1), visibility 0s;
}
/* While the circle is being pre-positioned on the pressed button, the clip
   path must not animate (otherwise its centre drifts from screen centre). */
.modal-full.no-clip-anim { transition: none !important; }

.proj-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #E4EBF4;
  outline: none;
  opacity: 0;
  transform: scale(.94);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: none;
}
.modal-full.is-open .proj-shell {
  opacity: 1;
  transform: none;
  transition: opacity .3s ease .14s, transform .62s cubic-bezier(.2, .75, .2, 1) .1s;
}
/* Closing: no fade at all. The content stays fully visible and shrinks toward
   the button on exactly the same curve as the circle, so the page reads as one
   object being drawn into it. Scale tracks radius, so the content never
   leaves the circle and never outruns it. */
.modal-full.is-closing .proj-shell {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .34s cubic-bezier(.4, 0, .6, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

.proj-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px var(--pad);
  background: linear-gradient(#1E3A8A 55%, rgba(30, 58, 138, 0));
}
.proj-brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; justify-self: start; }
.proj-brand i { font-style: normal; color: #9DBBEA; }
.proj-close {
  justify-self: end;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(228, 235, 244, .28);
  color: #E4EBF4;
  transition: background .25s ease, transform .5s var(--ease), color .25s ease;
}
@media (hover: hover) { .proj-close:hover { background: #E4EBF4; color: #0A1A2F; transform: rotate(90deg); } }
.proj-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.proj-tabs { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border-radius: var(--pill); background: rgba(10, 26, 47, .35); }
.proj-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--pill);
  font-size: 14px;
  color: rgba(228, 235, 244, .7);
  transition: background .3s ease, color .3s ease;
}
html[dir="rtl"] .proj-tab { padding: 8px 8px 8px 16px; }
/* 44px tap area around the 32px pill */
.proj-tab { position: relative; }
.proj-tab::after { content: ""; position: absolute; inset: -6px -3px; }
.proj-tab b {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(228, 235, 244, .3);
  font-size: 13px; font-weight: 600;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.proj-tab.is-done { color: #E4EBF4; }
.proj-tab.is-done b { background: rgba(157, 187, 234, .28); border-color: transparent; }
.proj-tab.is-on { background: #E4EBF4; color: #0A1A2F; }
.proj-tab.is-on b { background: #1F4278; color: #fff; border-color: transparent; }
.proj-tab[disabled] { opacity: .45; pointer-events: none; }

.proj-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(20px, 4vw, 56px) var(--pad) 72px;
  align-items: start;
}
.proj-aside { position: sticky; top: 96px; }
.proj-kicker { font-size: 14px; letter-spacing: .08em; color: #9DBBEA; font-variant-numeric: tabular-nums; }
.proj-aside h2 { font-size: clamp(40px, 5.2vw, 78px); margin-top: 14px; color: #fff; max-width: 11ch; }
html[lang="ar"] .proj-aside h2 { line-height: 1.3; }
.proj-help { margin-top: 18px; font-size: 17px; line-height: 1.65; color: rgba(228, 235, 244, .78); max-width: 34ch; }
html[lang="ar"] .proj-help { line-height: 1.9; }
.proj-aside h2, .proj-help { animation: projIn .6s var(--ease) both; }
.proj-sum { margin: clamp(26px, 4vw, 48px) 0 0; display: grid; gap: 0; max-width: 360px; }
.proj-sum > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(228, 235, 244, .16); font-size: 15px; }
.proj-sum dt { color: rgba(228, 235, 244, .7); }
.proj-sum dd { margin: 0; text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; }
#sumService { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.sum-tag {
  max-width: 100%;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(157, 187, 234, .16);
  border: 1px solid rgba(157, 187, 234, .3);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}
.proj-sum [hidden] { display: none; }

.proj-form { min-width: 0; }
.pstep { display: none; }
.pstep.is-on { display: block; }
.pstep.is-on > * { animation: projIn .55s var(--ease) both; }
.pstep.is-on > *:nth-child(2) { animation-delay: .06s; }
.pstep.is-on > *:nth-child(3) { animation-delay: .12s; }
.pstep.is-on > *:nth-child(4) { animation-delay: .18s; }
@keyframes projIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* step 1: service chips */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input, .pkg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 64px; padding: 14px 20px;
  border-radius: 18px;
  border: 1.5px solid rgba(228, 235, 244, .24);
  background: rgba(10, 26, 47, .16);
  font-size: 16.5px; line-height: 1.3;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .4s var(--ease);
}
/* selection indicator: a ring that fills with a tick */
.chip span::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(228, 235, 244, .4);
  background: center / 13px no-repeat transparent;
  transition: background-color .25s ease, border-color .25s ease, transform .4s var(--ease);
}
@media (hover: hover) { .chip:hover span { background: rgba(228, 235, 244, .1); transform: translateY(-2px); } }
.chip input:checked + span { background: #E4EBF4; color: #0A1A2F; border-color: #E4EBF4; }
.chip input:checked + span::after {
  background-color: #1F4278; border-color: #1F4278; transform: scale(1.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span, .pkg input:focus-visible + .pkg-body { outline: 2px solid #fff; outline-offset: 3px; }
.chips.is-shake { animation: projShake .4s ease; }
@keyframes projShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* step 2: package cards */
.fld-l, .coupon-field > .fld-l { display: block; font-size: 14px; font-weight: 500; color: rgba(228, 235, 244, .72); margin-bottom: 8px; }
.pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pkg { position: relative; cursor: pointer; }
.pkg-body {
  position: relative;
  display: grid; gap: 4px;
  padding: 18px 20px;
  min-height: 92px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(228, 235, 244, .26);
  transition: background .25s ease, border-color .25s ease, transform .4s var(--ease), color .25s ease;
}
@media (hover: hover) { .pkg:hover .pkg-body { background: rgba(228, 235, 244, .08); transform: translateY(-2px); } }
.pkg input:checked + .pkg-body { background: #E4EBF4; color: #0A1A2F; border-color: #E4EBF4; }
.pkg-name { font-size: 17px; font-weight: 600; }
.pkg-price { font-size: 15px; font-variant-numeric: tabular-nums; opacity: .85; }
.pkg-soft { opacity: .6; }
.pkg-tag { position: absolute; top: 10px; inset-inline-end: 12px; font-style: normal; font-size: 13px; padding: 2px 8px; border-radius: var(--pill); background: #9DBBEA; color: #0A1A2F; }
.pkg input:checked + .pkg-body .pkg-tag { background: #1F4278; color: #fff; }
.pkg.is-off { cursor: not-allowed; opacity: .45; }
@media (hover: hover) { .pkg.is-off:hover .pkg-body { background: none; transform: none; } }
.proj-note { padding: 16px 18px; border-radius: var(--r-sm); background: rgba(10, 26, 47, .3); font-size: 15px; line-height: 1.6; color: rgba(228, 235, 244, .85); }
.proj-note[hidden], #pkgBlock[hidden] { display: none; }

/* fields */
.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 26px; }
.pstep[data-step="3"] .fld-row { margin-top: 0; }
.pstep[data-step="3"] .fld-row.fld-row--gap { margin-top: 16px; }
.fld { display: block; min-width: 0; }
.fld-wide { margin-top: 16px; }
.proj-form input:not([type="radio"]):not([type="checkbox"]), .proj-form select, .proj-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: rgba(10, 26, 47, .32);
  border: 1px solid rgba(228, 235, 244, .22);
  border-radius: 14px;
  color: #E4EBF4;
  font-size: 16px;
  color-scheme: dark;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.proj-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DBBEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  cursor: pointer;
}
html[dir="rtl"] .proj-form select { background-position: left 15px center; }
.proj-form select option { background: #1F4278; color: #E4EBF4; }
.proj-form textarea { min-height: 120px; resize: vertical; }
.proj-form input::placeholder, .proj-form textarea::placeholder { color: rgba(228, 235, 244, .68); }
.proj-form input:not([type="radio"]):not([type="checkbox"]):hover, .proj-form select:hover, .proj-form textarea:hover { border-color: rgba(228, 235, 244, .4); }
.proj-form input:not([type="radio"]):not([type="checkbox"]):focus, .proj-form select:focus, .proj-form textarea:focus {
  outline: none;
  border-color: #9DBBEA;
  background-color: rgba(10, 26, 47, .5);
  box-shadow: 0 0 0 4px rgba(157, 187, 234, .22);
}
.proj-form input:user-invalid, .proj-form textarea:user-invalid { border-color: #FF9B91; }

/* step 2: the whole scope, not just the first service */
.scope-review {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(228, 235, 244, .14);
  background: rgba(10, 26, 47, .3);
}
.scope-review .fld-l { margin-bottom: 10px; }
.scope-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.scope-list li {
  padding: 7px 13px;
  border-radius: var(--pill);
  background: rgba(157, 187, 234, .18);
  border: 1px solid rgba(157, 187, 234, .32);
  font-size: 14.5px;
  line-height: 1.3;
  color: #E4EBF4;
}
.scope-count { color: #9DBBEA; font-variant-numeric: tabular-nums; }
.scope-list li button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.scope-list li { transition: background .25s ease, transform .4s var(--ease); }
@media (hover: hover) { .scope-list li:hover { background: rgba(157, 187, 234, .3); transform: translateY(-1px); } }
.scope-note { margin-top: 12px; font-size: 14px; line-height: 1.55; color: rgba(228, 235, 244, .62); }
html[lang="ar"] .scope-note { line-height: 1.75; }

/* step 2: one card per picked service */
.svc-cards { display: grid; gap: 12px; margin-top: 16px; }
.svc-card {
  scroll-margin-top: 92px;
  border: 1px solid rgba(228, 235, 244, .18);
  border-radius: var(--r-md);
  background: rgba(10, 26, 47, .26);
  transition: background .3s ease, border-color .3s ease;
}
.svc-card[hidden] { display: none; }
.svc-card[open] { background: rgba(10, 26, 47, .36); border-color: rgba(157, 187, 234, .42); }
.svc-card summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  list-style: none; cursor: pointer;
  border-radius: var(--r-md);
}
.svc-card summary::-webkit-details-marker { display: none; }
.svc-card summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.svc-card-n {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(228, 235, 244, .32);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.svc-card.is-ready .svc-card-n { background: #7EE2B0; border-color: #7EE2B0; color: #0A1A2F; }
.svc-card-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; }
.svc-card-stat { flex: none; font-size: 13px; color: rgba(228, 235, 244, .65); font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: var(--pill); background: rgba(228, 235, 244, .08); }
.svc-card-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: #9DBBEA; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.svc-card[open] .svc-card-chev { transform: rotate(180deg); }
.svc-card-body { padding: 4px 18px 20px; display: grid; gap: 22px; }
.svc-card[open] .svc-card-body { animation: projIn .4s var(--ease) both; }
.svc-card .fld-row { margin-top: 0; }
.svc-card #pkgBlock .fld-row { margin-top: 14px; }
.svc-card #pkgBlock .fld-l { margin-bottom: 10px; }
.svc-card .pkgs { gap: 10px; }
.svc-card .pkg-body { min-height: 82px; padding: 14px 16px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.qwide { grid-column: 1 / -1; }
.qgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.qgroup legend { padding: 0; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { position: relative; cursor: pointer; }
.qchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.qchip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px;
  border-radius: var(--pill); border: 1.5px solid rgba(228, 235, 244, .26);
  font-size: 14.5px; line-height: 1.3;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease);
}
@media (hover: hover) { .qchip:hover span { background: rgba(228, 235, 244, .1); transform: translateY(-1px); } }
.qchip input:checked + span { background: #E4EBF4; color: #0A1A2F; border-color: #E4EBF4; }
.qchip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.fld-l.is-req::after { content: " *"; color: #9DBBEA; }
.svc-card textarea { min-height: 96px; }
.proj-form [aria-invalid="true"]:not([type="checkbox"]) { border-color: #FF9B91 !important; }
.qgroup:has(input[aria-invalid="true"]) .qchip span { border-color: #FF9B91; }
.scope-common { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(228, 235, 244, .16); }
.scope-h { font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; }
.scope-common .fld-row { margin-top: 16px; }
.svc-cards #pkgBlock[hidden] { display: none; }

.chips-hint { margin-bottom: 14px; font-size: 15px; line-height: 1.55; color: rgba(228, 235, 244, .68); }
html[lang="ar"] .chips-hint { line-height: 1.75; }

.proj-more { margin-top: 18px; border-top: 1px solid rgba(228, 235, 244, .16); padding-top: 14px; }
.proj-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #9DBBEA; }
.proj-more summary::-webkit-details-marker { display: none; }
.proj-more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 15px; line-height: 1; transition: transform .4s var(--ease); }
.proj-more[open] summary::before { transform: rotate(45deg); }
.proj-more[open] > :not(summary) { margin-top: 14px; }
.proj-form .coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.proj-apply { min-height: 54px; padding-inline: 22px; border-radius: 14px; background: rgba(228, 235, 244, .14); color: #E4EBF4; font-weight: 500; transition: background .25s ease, color .25s ease; }
.proj-apply:hover { background: #E4EBF4; color: #0A1A2F; }
.proj-form .coupon-result.success, .proj-form .form-status.success { color: #7EE2B0; }
.proj-form .coupon-result.error, .proj-form .form-status.error { color: #FF9B91; }
.proj-form .coupon-price { background: rgba(10, 26, 47, .32); }
.proj-form .form-fine { color: rgba(228, 235, 244, .55); text-align: start; margin-top: 14px; }
.proj-form .form-status { margin-top: 18px; }
.proj-form .form-status a { color: #fff; }

.proj-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.proj-next, .proj-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 30px;
  border-radius: var(--pill);
  font-size: 16.5px; font-weight: 500;
  transition: background .25s ease, color .25s ease, transform .4s var(--ease), border-color .25s ease;
}
.proj-next { background: #E4EBF4; color: #0A1A2F; }
@media (hover: hover) { .proj-next:hover { background: #fff; transform: translateY(-2px); } }
.proj-next[disabled] { opacity: .5; pointer-events: none; }
.proj-back { border: 1.5px solid rgba(228, 235, 244, .3); color: #E4EBF4; padding-inline: 22px; }
.proj-back:hover { background: rgba(228, 235, 244, .12); }
.proj-next svg, .proj-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
html[dir="rtl"] .proj-next svg, html[dir="rtl"] .proj-back svg { transform: scaleX(-1); }
.proj-nav [hidden] { display: none; }
.proj-nav .proj-next { margin-inline-start: auto; }

/* success */
.proj-done { flex: 1; display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; padding: 40px var(--pad) 80px; }
.proj-done[hidden] { display: none; }
.proj-done h2 { font-size: clamp(40px, 6vw, 84px); color: #fff; }
.proj-done p { font-size: 18px; max-width: 40ch; color: rgba(228, 235, 244, .8); line-height: 1.6; }
.proj-done .proj-next { margin-top: 12px; }
.proj-check { width: 84px; height: 84px; fill: none; stroke: #9DBBEA; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proj-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: projDraw .8s ease .1s forwards; }
.proj-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: projDraw .5s ease .7s forwards; }
@keyframes projDraw { to { stroke-dashoffset: 0; } }
.proj-shell.is-done .proj-main { display: none; }

@media (max-width: 900px) {
  .proj-main { grid-template-columns: 1fr; gap: 22px; padding-bottom: 48px; }
  .proj-aside { position: static; }
  .proj-aside h2 { font-size: clamp(34px, 9vw, 52px); max-width: none; }
  .proj-help { margin-top: 10px; font-size: 16px; }
  .proj-sum { display: none; }
  .proj-bar { grid-template-columns: auto 1fr auto; }
  .proj-tabs { justify-self: center; }
  .proj-tab span { display: none; }
  .proj-tab { padding: 4px; }
  html[dir="rtl"] .proj-tab { padding: 4px; }
  .proj-tab.is-on span { display: inline; margin-inline-end: 8px; }
}
@media (max-width: 560px) {
  .proj-brand { display: none; }
  .proj-bar { grid-template-columns: 1fr auto; }
  .pkgs, .fld-row, .qgrid { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .chip span { min-height: 56px; padding: 12px 18px; font-size: 16px; }
  .proj-nav { position: sticky; bottom: 0; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(31, 66, 120, 0), #1F4278 28%); margin-top: 8px; }
  .proj-nav .proj-next { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-full, .modal-full.is-open { clip-path: none; transition: visibility 0s; }
  .modal-full .proj-shell, .modal-full.is-closing .proj-shell { opacity: 1; transform: none; transition: none; }
  .hw > i { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ==========================================================================
   Mobile polish
   ========================================================================== */
/* the programmatic focus on the popup heading should not draw a box */
[tabindex="-1"]:focus { outline: none; }

@media (max-width: 640px) {
  /* header pills: a bit tighter so brand + menu never crowd */
  .hdr { padding-inline: 14px; }
  .pill-l { padding-inline: 16px; }
  .brand-mark { width: 19px; }
  .brand-word { font-size: 24px; }
  html[lang="ar"] .brand-word-ar { font-size: 26px; }

  /* headings: stop clipping Arabic ascenders/descenders and keep rhythm */
  .intro-lead { line-height: 1.5; }
  html[lang="ar"] .intro-lead { line-height: 1.75; }
  .section-head h2, .menu-title, .process-head h2 { text-wrap: balance; }

  /* long numbers / emails never push the layout */
  .contact-alt-row a, .footer-cols a { overflow-wrap: anywhere; }

  /* tap targets >= 44px */
  .footer-cols a, .footer-cols button { min-height: 44px; display: flex; align-items: center; }
  .svc-pick { min-height: 48px; }
  .faq-q, .faq summary { min-height: 52px; }
}

@media (max-width: 560px) {
  /* process: compact stacked cards instead of a cramped timeline */
  .proc-day { column-gap: 10px; }
  .proc-day-num { font-size: 76px; min-width: 1.6ch; }
  .proc-head { margin-bottom: 28px; gap: 20px; }
  .proc-steps { row-gap: 12px; }
  .proc-step {
    padding: 18px 18px 20px;
    opacity: 1;
    background: rgba(228, 235, 244, .045);
    border-color: rgba(228, 235, 244, .14);
  }
  .proc-step.is-now { transform: none; background: rgba(157, 187, 234, .1); border-color: rgba(157, 187, 234, .4); }
  .proc-dot { display: none; }
  .proc-num { font-size: 40px; }
  .proc-chip { margin-top: 10px; }
  .proc-step h3 { margin-top: 10px; }

  /* footer: two columns instead of one very long stack */
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .footer-cols > div { padding: 16px 0 6px; }
  .footer-cols > .signal-col { grid-column: 1 / -1; }
  /* Pages on the left; Studio and Legal stacked on the right. Contact repeats
     the email and icons right above it, so phones skip it. */
  .footer-cols > div:nth-child(2) { grid-row: span 2; }
  .footer-cols > div:nth-child(4) { display: none; }
  .footer-cols h3 { margin-bottom: 4px; }
  .signal-col .signal-icon { width: 44px; height: 44px; }
  .signal-col .signal-mail { align-items: center; }
  /* the signal block already draws the line above Pages and Studio */
  .footer-cols > div:nth-child(2), .footer-cols > div:nth-child(3) { border-top: 0; }
  .signal-actions { gap: 10px; }
  .footer-legal { padding-bottom: 28px; }

  /* WhatsApp card keeps icon and number on one tidy row */
  .contact-wa { padding: 18px; border-radius: 22px; }
  .contact-wa-label { font-size: 12.5px; }

  /* pricing and menu cards: a little less padding so text gets room */
  .menu-sheet { padding: 22px 16px; }
  .plan { padding: 24px 18px; }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
  .hero-title { font-size: clamp(34px, 10.4vw, 44px); }
  html[lang="ar"] .hero-title { font-size: clamp(30px, 9.2vw, 40px); }
  .section-head h2, .menu-title, .process-head h2 { font-size: clamp(28px, 8.4vw, 34px); }
  .plan-price b { font-size: 46px; }
  .btn-lg { padding-inline: 20px; font-size: 16px; }
  .hdr-cta { padding-inline: 14px; font-size: 14px; }
}

/* footer links that are forced LTR (phone, email) must still line up with the rest in Arabic */
html[dir="rtl"] .footer-cols a[dir="ltr"] { justify-content: flex-end; }

/* spam trap field: off-screen for people and screen readers, visible to bots */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- account popup: a real panel, not a form floating on the hero ---------- */
.modal-backdrop {
  background: rgba(4, 12, 24, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.modal-sm .modal-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
}
/* one field per row: email and password are too long to sit side by side here */
#authModal .form-grid { grid-template-columns: minmax(0, 1fr); }
#authModal .project-submit { width: 100%; margin-top: 6px; }
.modal-close { border: 1px solid var(--line-strong); }
.modal-close svg { width: 20px; height: 20px; }
