/* =====================================================================
   Hawiyah.co — Site-level styles
   Layered on top of colors_and_type.css. Owns nav, footer, sections,
   page chrome, motion. Component classes stay in colors_and_type.css.
   ===================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--white); }
html { overflow-x: hidden; }
body {
  font: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Language switching ----------
   Every translatable element gets a [data-lang] attr (en | ar).
   Toggling html[lang] flips visibility — no JS reflow needed. */
html[lang="en"] [data-lang="ar"] { display: none !important; }
html[lang="ar"] [data-lang="en"] { display: none !important; }
html[lang="ar"] body { font-family: var(--font-arabic); font-weight: 400; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; font-family: var(--font-arabic); }

/* ---------- Page width / container ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--page-pad-x); }
@media (max-width: 760px) { .wrap { padding: 0 28px; } }

/* ---------- Section rhythm ---------- */
section { padding: 140px 0; position: relative; }
section + section { border-top: 1px solid var(--line-dark); }
@media (max-width: 760px) { section { padding: 88px 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10,10,10,.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand .nav__symbol { height: 28px; width: auto; }
.nav__brand .nav__wordmark {
  height: 18px; width: auto; display: block;
}
html[lang="ar"] .nav__brand .nav__wordmark { height: 22px; }
.nav__links { display: flex; gap: 36px; font-size: 13px; font-weight: 300; letter-spacing: .3px; }
.nav__links a {
  color: var(--fg-muted);
  position: relative; padding-bottom: 2px;
  transition: color 250ms var(--ease-soft);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; background: var(--purple);
}
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__lang {
  display: flex; align-items: center; gap: 0; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-dark); padding: 0;
  user-select: none;
}
.nav__lang button {
  background: transparent; color: var(--fg-muted); border: 0;
  padding: 7px 12px; cursor: pointer; font: inherit; letter-spacing: inherit;
  transition: color 200ms, background 200ms;
}
.nav__lang button[aria-pressed="true"] { color: var(--fg); background: rgba(255,255,255,.06); }
.nav__lang button:hover { color: var(--fg); }
.nav__cta {
  font-size: 12.5px; font-weight: 500; color: var(--fg);
  border: 1px solid var(--line-dark);
  padding: 8px 18px; cursor: pointer;
  transition: all 250ms var(--ease-soft);
  background: transparent;
}
.nav__cta:hover { background: var(--purple); border-color: var(--purple); }
@media (max-width: 860px) {
  .nav { padding: 14px 24px; }
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 180px 0 120px;
  position: relative; overflow: hidden;
  border-top: 0 !important;
}
.hero__inner { position: relative; z-index: 2; }
.hero__orb {
  position: absolute; right: -10%; top: 8%;
  width: 720px; max-width: 70vw; opacity: .06; pointer-events: none; z-index: 1;
}
html[lang="ar"] .hero__orb { right: auto; left: -10%; }
.hero__wave {
  display: none;
}
.hero h1 {
  font-weight: 200; font-size: clamp(56px, 9vw, 128px); line-height: .96;
  letter-spacing: -0.03em; color: var(--fg); margin: 0;
}
html[lang="ar"] .hero h1 {
  font-weight: 700; font-size: clamp(48px, 8vw, 112px); line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__counter {
  margin-top: 28px;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400; color: var(--fg-muted);
}
html[lang="en"] .hero__counter { font-family: var(--font-arabic); }
html[lang="ar"] .hero__counter { font-family: var(--font-latin); font-weight: 300; }

.hero__lead {
  max-width: 540px; margin-top: 36px;
  font-size: 18px; font-weight: 300; line-height: 1.65;
  color: var(--fg-soft);
}
html[lang="ar"] .hero__lead { font-family: var(--font-arabic); font-weight: 400; font-size: 18px; line-height: 1.9; }

.hero__ctas { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section labels ---------- */
.eyebrow-row { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.eyebrow-row .rule { flex: 0 0 48px; height: 1px; background: var(--purple); }
section .lead {
  max-width: 640px; font-size: 19px; font-weight: 300; line-height: 1.65;
  color: var(--fg-soft); margin-top: 28px;
}
html[lang="ar"] section .lead { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; }

section h2 {
  font-weight: 200; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--fg); margin: 0;
  max-width: 980px;
}
html[lang="ar"] section h2 { font-weight: 700; line-height: 1.15; font-family: var(--font-arabic); }

/* ---------- Footer ---------- */
.footer {
  --mint: #16C95C;
  padding: 0 0 40px;
  border-top: 0;
  position: relative;
  overflow: hidden;
}
html:not([data-theme="light"]) .footer { background: #0A0A0A; }
/* Soft purple glow + faint grain — "noise to clarity" */
.footer::before {
  content: ""; position: absolute; left: 50%; top: -10%;
  width: 720px; height: 360px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(93,67,145,.30), transparent 70%);
  pointer-events: none; z-index: 0; filter: blur(8px);
}
html[data-theme="light"] .footer::before { background: radial-gradient(ellipse at center, rgba(93,67,145,.14), transparent 70%); }
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
.footer > .wrap { position: relative; z-index: 1; }

/* Wave signature line at the very top of the footer */
.footer__wave {
  width: 100%; height: 22px; display: block; position: relative; z-index: 1;
  margin-bottom: 72px;
  color: var(--purple); /* fallback */
}
.footer__wave svg { width: 100%; height: 100%; display: block; }

.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 56px;
}
.footer__col h4 {
  font: var(--eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 20px;
}
.footer__col a, .footer__col p {
  display: block; font-size: 14px; font-weight: 300; line-height: 1.9;
  color: var(--fg-soft); margin: 0; transition: color 220ms;
}
.footer__col a:hover { color: var(--fg); }
.footer__col a.is-mint:hover { color: var(--mint); }

/* Brand: wordmark + mint dot + Arabic lockup */
.footer__brand-line {
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.footer__wordmark { height: 32px; width: auto; display: block; }
html[lang="ar"] .footer__wordmark { height: 40px; }
.footer__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint); flex: 0 0 9px; align-self: flex-end; margin-bottom: 6px;
  box-shadow: 0 0 12px rgba(22,201,92,.7);
}
.footer__slogan {
  font-size: 13px; color: var(--fg-soft); letter-spacing: .04em;
  margin: 0 0 22px; font-weight: 300;
}
.footer__slogan .mint { color: var(--mint); }
.footer__slogan .sep { color: var(--fg-faint); margin: 0 8px; }
html[lang="ar"] .footer__slogan { font-family: var(--font-arabic); font-weight: 400; }
.footer__brand-tag { font-size: 14px; color: var(--fg-muted); max-width: 340px; line-height: 1.7; }
html[lang="ar"] .footer__brand-tag { font-family: var(--font-arabic); }
.footer__serving {
  font-size: 12.5px; color: var(--fg-muted); letter-spacing: .03em; margin: 16px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer__serving::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  flex: 0 0 6px;
}
html[lang="ar"] .footer__serving { font-family: var(--font-arabic); font-weight: 400; }

/* Legal line — single merged EN→AR row */
.footer__legal {
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.8; color: var(--fg-faint);
  letter-spacing: .015em; max-width: 920px;
}
.footer__legal .ar { font-family: var(--font-arabic); font-weight: 400; display: block; margin-top: 4px; }

.footer__base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-size: 12px; color: var(--fg-muted);
  letter-spacing: .02em;
}
.footer__base .orb { opacity: .35; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__wave { margin-bottom: 48px; }
  .footer__base { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ---------- Motion: reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ---------- Hero entrance choreography ---------- */
@keyframes hawFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hawBarIn  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hawWaveDrift { from { background-position: 0 0; } to { background-position: 200px 0; } }

.hero .fade-seq { opacity: 0; animation: hawFadeUp 900ms var(--ease-out) forwards; }
.hero .fade-seq[data-step="1"] { animation-delay: 100ms; }
.hero .fade-seq[data-step="2"] { animation-delay: 250ms; }
.hero .fade-seq[data-step="3"] { animation-delay: 420ms; }
.hero .fade-seq[data-step="4"] { animation-delay: 1150ms; }
.hero .fade-seq[data-step="5"] { animation-delay: 1300ms; }
.hero .fade-seq[data-step="6"] { animation-delay: 1450ms; }
.hero .hl { isolation: isolate; }
.hero .hl::before {
  transform: scaleX(0); transform-origin: left;
  animation: hawBarIn 700ms var(--ease-out) forwards;
  animation-delay: 900ms;
}
html[lang="ar"] .hero .hl::before { transform-origin: right; }
/* No background-drift animation: the new hero artwork is positioned, not tiled */

/* ---------- Vertical side rail (motion accent) ---------- */
.siderail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  z-index: 40; mix-blend-mode: difference; color: var(--fg-muted);
  font: 600 10px/1 var(--font-latin); letter-spacing: .35em; text-transform: uppercase;
  pointer-events: none;
}
.siderail .vert {
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.siderail .tick { width: 1px; height: 56px; background: currentColor; opacity: .5; }
html[lang="ar"] .siderail { left: auto; right: 22px; }
@media (max-width: 980px) { .siderail { display: none; } }

/* ---------- Numbered list (Process) ---------- */
.numlist { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 64px; }
.numlist__row {
  display: grid; grid-template-columns: 88px 1fr 1fr 56px;
  gap: 40px; align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
  transition: background 320ms var(--ease-soft), padding 320ms var(--ease-soft);
}
.numlist__row:last-child { border-bottom: 1px solid var(--line-dark); }
.numlist__row:hover { background: rgba(93,67,145,.06); padding-left: 16px; }
html[lang="ar"] .numlist__row:hover { padding-left: 0; padding-right: 16px; }
.numlist__num {
  font: 200 56px/1 var(--font-latin); letter-spacing: -.02em; color: var(--fg-faint);
}
.numlist__title {
  font-weight: 300; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; color: var(--fg);
}
html[lang="ar"] .numlist__title { font-weight: 500; font-family: var(--font-arabic); }
.numlist__copy { color: var(--fg-muted); font-size: 15px; font-weight: 300; line-height: 1.7; }
html[lang="ar"] .numlist__copy { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; }
.numlist__arrow { color: var(--fg-faint); font-size: 22px; align-self: center; justify-self: end; }
html[lang="ar"] .numlist__arrow { transform: scaleX(-1); }
@media (max-width: 760px) {
  .numlist__row { grid-template-columns: 64px 1fr; gap: 18px; }
  .numlist__copy, .numlist__arrow { grid-column: 1 / -1; }
  .numlist__num { font-size: 40px; }
  .numlist__title { font-size: 22px; }
}

/* ---------- Service cards ---------- */
.services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 64px;
}
.svc {
  background: var(--ink-card);
  border: 1px solid var(--line-dark);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 280ms, transform 280ms, background 280ms;
  position: relative;
  min-height: 420px;
}
.svc:hover { border-color: var(--purple); transform: translateY(-4px); }
.svc__num {
  font: 600 11px/1 var(--font-latin); letter-spacing: var(--tracking-eyebrow); color: var(--purple-light);
}
.svc__title { font-weight: 300; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--fg); margin: 0; }
html[lang="ar"] .svc__title { font-weight: 500; font-family: var(--font-arabic); }
.svc__copy { font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--fg-soft); margin: 0; flex: 1; }
html[lang="ar"] .svc__copy { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; }
.svc__feats { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-dark); }
.svc__feats li { font-size: 13px; color: var(--fg-muted); padding: 6px 0; font-weight: 300; }
html[lang="ar"] .svc__feats li { font-family: var(--font-arabic); font-weight: 400; }
.svc__feats li::before { content: "—  "; color: var(--purple-light); }
.svc__price { font: 200 32px/1 var(--font-latin); letter-spacing: -.01em; color: var(--fg); }
.svc__price small { font-size: 12px; color: var(--fg-muted); margin-left: 6px; letter-spacing: .1em; font-weight: 400; }
html[lang="ar"] .svc__price small { margin-left: 0; margin-right: 6px; }
.svc--featured { background: rgba(93,67,145,.12); border-color: var(--purple); }
.svc--featured .svc__num { color: #fff; }
.svc--featured::before {
  content: "POPULAR"; position: absolute; top: -10px; left: 28px;
  background: var(--purple); color: #fff; padding: 4px 12px;
  font: 600 10px/1 var(--font-latin); letter-spacing: .25em;
}
html[lang="ar"] .svc--featured::before { content: "الأكثر طلباً"; font-family: var(--font-arabic); font-weight: 700; letter-spacing: 0; left: auto; right: 28px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Clients strip ----------
   Refined monochrome SVGs (currentColor). Each cell is droppable: drag any
   image from your computer to replace a broken logo. Replacements persist
   in localStorage. */
.clients-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.clients-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client-logo {
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color 280ms var(--ease-soft), background 280ms var(--ease-soft);
  position: relative;
  cursor: default;
}
.client-logo:hover { background: var(--hover-purple-tint); }
.client-logo svg { height: 40px !important; width: auto !important; max-width: 100%; max-height: 40px; display: block; }

.client-logo img.client-repl {
  height: 40px; max-width: 100%; width: auto; display: block; object-fit: contain;
}
html[data-theme="light"] .client-logo img.client-repl[data-invertable="true"] { filter: invert(1); }
/* PNG embedded in logo SVGs (e.g. Freyssinet wrapper) also needs inversion */
html[data-theme="light"] .client-logo svg image { filter: invert(1); }

.client-logo.is-dragover { background: var(--purple); color: #fff; }
.client-logo.is-dragover::after {
  content: "Drop to replace";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 600 10px/1 var(--font-latin); letter-spacing: .2em; text-transform: uppercase;
  color: #fff;
  background: rgba(93,67,145,.92);
  z-index: 2; pointer-events: none;
}
html[lang="ar"] .client-logo.is-dragover::after { content: "أفلت للاستبدال"; font-family: var(--font-arabic); letter-spacing: 0; font-size: 12px; }

.client-logo .client-clear {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.55); color: #fff; border: 0; padding: 2px 6px;
  font: 600 9px/1 var(--font-latin); letter-spacing: .1em; cursor: pointer;
  opacity: 0; transition: opacity 200ms; border-radius: 0; z-index: 3;
}
html[lang="ar"] .client-logo .client-clear { right: auto; left: 4px; }
.client-logo.has-replacement:hover .client-clear { opacity: 1; }

@media (max-width: 1100px) { .clients-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .clients-strip { grid-template-columns: repeat(3, 1fr); } .client-logo { height: 72px; padding: 10px 14px; } .client-logo svg, .client-logo img.client-repl { height: 30px !important; max-height: 30px; } }
@media (max-width: 480px)  { .clients-strip { grid-template-columns: repeat(2, 1fr); } }

.clients-tone {
  margin-top: 16px;
  font-size: 12px; color: var(--fg-faint); letter-spacing: .04em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
html[lang="ar"] .clients-tone { font-family: var(--font-arabic); font-weight: 400; }

/* ---------- Sector tags (word-only, replaces client logos) ---------- */
.sector-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.sector-tag {
  border: 1px solid var(--line); padding: 14px 24px;
  font-size: 15px; color: var(--fg-soft); font-weight: 300; letter-spacing: .01em;
  transition: border-color 240ms var(--ease-soft), color 240ms var(--ease-soft), background 240ms var(--ease-soft);
}
.sector-tag:hover { border-color: var(--purple); color: var(--fg); background: var(--hover-purple-tint); }
html[lang="ar"] .sector-tag { font-family: var(--font-arabic); font-weight: 400; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface-card); border: 1px solid var(--line);
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: border-color 280ms var(--ease-soft), transform 280ms var(--ease-soft);
}
.testimonial:hover { border-color: var(--purple); transform: translateY(-2px); }
.testimonial__quote-mark {
  font: 200 80px/.7 var(--font-latin); color: var(--purple);
  letter-spacing: -.04em; margin: 0;
}
.testimonial__quote {
  font-weight: 300; font-size: 18px; line-height: 1.5; letter-spacing: -.005em;
  color: var(--fg); flex: 1; margin: 0;
}
html[lang="ar"] .testimonial__quote { font-family: var(--font-arabic); font-weight: 400; line-height: 1.85; font-size: 17px; }
.testimonial__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial__avatar {
  width: 44px; height: 44px; flex: 0 0 44px;
  background: var(--surface-elev); border: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.testimonial__avatar image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.testimonial__meta { line-height: 1.35; }
.testimonial__name {
  font-weight: 400; font-size: 15px; color: var(--fg); margin: 0; letter-spacing: -.005em;
}
html[lang="ar"] .testimonial__name { font-family: var(--font-arabic); font-weight: 500; }
.testimonial__role {
  font-size: 12px; color: var(--fg-muted); font-weight: 300; margin: 2px 0 0; letter-spacing: .01em;
}
html[lang="ar"] .testimonial__role { font-family: var(--font-arabic); font-weight: 400; }

/* ---------- FAQ Accordion ---------- */
.faq { margin-top: 64px; max-width: 900px; }
.faq__item {
  border-top: 1px solid var(--line);
  transition: background 220ms var(--ease-soft);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item[open] { background: var(--hover-purple-tint); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 24px;
  padding: 28px 24px 28px 0;
  font-weight: 300; font-size: 22px; line-height: 1.35; letter-spacing: -.01em;
  color: var(--fg);
  position: relative;
  -webkit-user-select: none; user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
html[lang="ar"] .faq__q { font-weight: 500; font-family: var(--font-arabic); font-size: 20px; }
.faq__num {
  flex: 0 0 56px;
  font: 600 11px/1 var(--font-latin); letter-spacing: var(--tracking-eyebrow);
  color: var(--purple-light); padding-top: 6px;
}
html[data-theme="light"] .faq__num { color: var(--purple); }
.faq__q-text { flex: 1; }
.faq__icon {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); position: relative; align-self: center;
  transition: border-color 220ms var(--ease-soft), background 220ms var(--ease-soft), transform 320ms var(--ease-soft);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--fg);
  transition: transform 320ms var(--ease-soft);
}
.faq__icon::before { width: 12px; height: 1px; }
.faq__icon::after { width: 1px; height: 12px; }
.faq__item[open] .faq__icon { background: var(--purple); border-color: var(--purple); }
.faq__item[open] .faq__icon::before { background: var(--fg); }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__a {
  padding: 0 24px 32px calc(56px + 24px);
  font-weight: 300; font-size: 16px; line-height: 1.75;
  color: var(--fg-soft); max-width: 760px;
}
html[lang="ar"] .faq__a { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; padding-right: calc(56px + 24px); padding-left: 24px; }
html[lang="ar"] .faq__num { padding-left: 0; padding-right: 0; }

/* ---------- Newsletter (in footer) ---------- */
.newsletter { max-width: 380px; }
.newsletter h4 {
  font: 600 11px/1 var(--font-latin); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--fg-faint); margin: 0 0 16px;
}
.newsletter__lead {
  font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--fg-muted);
  margin: 0 0 18px;
}
html[lang="ar"] .newsletter__lead { font-family: var(--font-arabic); font-weight: 400; line-height: 1.9; }
.newsletter__form {
  display: flex; align-items: stretch; border: 1px solid var(--line);
  background: var(--surface-card);
}
.newsletter__input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 12px 14px; color: var(--fg);
  font: 300 14px/1.4 var(--font-latin);
}
html[lang="ar"] .newsletter__input { font-family: var(--font-arabic); font-weight: 400; }
.newsletter__input::placeholder { color: var(--fg-faint); }
.newsletter__btn {
  background: var(--purple); color: #fff; border: 0;
  padding: 12px 20px; cursor: pointer;
  font: 500 12px/1 var(--font-latin); letter-spacing: .04em;
  transition: background 220ms;
  border-radius: 0;
}
.newsletter__btn:hover { background: #4A3577; }
.newsletter__sent {
  margin-top: 14px; font-size: 12px; color: var(--purple-light);
  letter-spacing: .02em; opacity: 0; transition: opacity 280ms;
}
.newsletter__sent.is-shown { opacity: 1; }

/* ---------- Hand-drawn graphic accents ----------
   1.4–1.5px stroke, currentColor, square caps. Used sparingly. */
.hd-sparkle, .hd-asterisk, .hd-arrow, .hd-underline {
  display: inline-block; vertical-align: middle; color: currentColor;
  pointer-events: none;
}
.hd-sparkle svg, .hd-asterisk svg, .hd-arrow svg, .hd-underline svg {
  display: block; fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

/* Decorative accent dots around eyebrow rows on key sections */
.eyebrow-row.with-accent::before {
  content: ""; width: 6px; height: 6px;
  background: var(--purple); border-radius: 50%; flex: 0 0 6px;
}
.eyebrow-row.with-accent::after {
  content: ""; width: 6px; height: 6px;
  background: currentColor; border-radius: 50%; flex: 0 0 6px; opacity: .25;
  margin-left: auto;
}
html[lang="ar"] .eyebrow-row.with-accent::after { margin-left: 0; margin-right: auto; }

/* Inline sparkle next to H2 keyword */
.h-sparkle {
  display: inline-block; width: 22px; height: 22px;
  vertical-align: super; margin: 0 6px;
  color: var(--purple);
}
.h-sparkle svg { width: 100%; height: 100%; fill: currentColor; }

/* Numbered chip badge (circular dark badge with white number) */
.num-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--ink); color: #fff;
  font: 500 13px/1 var(--font-latin); letter-spacing: .02em;
  border-radius: 50%;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .num-chip { background: var(--ink); color: var(--paper); }

/* Hand-drawn squiggly underline under a single word */
.hd-line {
  position: relative; display: inline-block;
}
.hd-line::after {
  content: ""; position: absolute;
  left: -4px; right: -4px; bottom: -6px; height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none' fill='none' stroke='%235D4391' stroke-width='1.6' stroke-linecap='round'><path d='M2 4 Q 15 1, 28 4 T 54 4 T 80 4 T 106 4 T 118 4'/></svg>");
  background-repeat: no-repeat; background-size: 100% 100%;
  opacity: .9;
}

/* Service card chip badge in corner */
.svc { padding-top: 48px; }
.svc__chip {
  position: absolute; top: 16px; left: 24px;
  width: 32px; height: 32px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 var(--font-latin); letter-spacing: .02em;
  border-radius: 50%;
  border: 2px solid var(--surface-card);
  font-variant-numeric: tabular-nums;
}
html[lang="ar"] .svc__chip { left: auto; right: 24px; }
.svc--featured .svc__chip { background: var(--purple); }
/* On the featured card, move POPULAR badge to the right so it doesn't crowd the chip */
.svc--featured::before { top: 18px; left: auto; right: 24px; }
html[lang="ar"] .svc--featured::before { right: auto; left: 24px; }
.svc--featured .svc__chip { /* chip stays top-left on featured too */ }
.svc--featured { padding-top: 64px; }

/* "Have an idea?" bold CTA block — purple slab, big type, accents */
.idea-block {
  margin-top: 96px;
  background: var(--purple);
  color: #fff;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.idea-block::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 240px; height: 240px;
  border: 1.4px solid rgba(255,255,255,.18);
  border-radius: 50%; pointer-events: none;
}
.idea-block::after {
  content: ""; position: absolute; left: -60px; bottom: -60px;
  width: 280px; height: 280px;
  border: 1.4px solid rgba(255,255,255,.10);
  border-radius: 50%; pointer-events: none;
}
.idea-block h3 {
  font-weight: 200; font-size: clamp(40px, 6vw, 72px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0; color: #fff; max-width: 760px;
  position: relative; z-index: 1;
}
html[lang="ar"] .idea-block h3 { font-weight: 700; line-height: 1.15; font-family: var(--font-arabic); }
.idea-block__sub {
  margin-top: 24px; font-size: 17px; font-weight: 300; line-height: 1.6;
  color: rgba(255,255,255,.8); max-width: 560px;
  position: relative; z-index: 1;
}
html[lang="ar"] .idea-block__sub { font-family: var(--font-arabic); font-weight: 400; line-height: 1.85; }
.idea-block__row {
  margin-top: 40px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.idea-block .btn-light {
  background: #fff; color: var(--ink); border: 0;
  padding: 14px 28px; font: 500 15px/1 var(--font-latin); letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 220ms var(--ease-soft);
}
.idea-block .btn-light:hover { transform: translateY(-2px); }
.idea-block__email {
  color: rgba(255,255,255,.85); font-size: 15px; padding: 14px 0;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3);
  transition: border-color 220ms;
}
.idea-block__email:hover { border-color: rgba(255,255,255,.85); }

/* Floating sparkle accent on the idea block */
.idea-block__spark {
  position: absolute; width: 32px; height: 32px;
  color: var(--fg-muted); pointer-events: none;
}
.idea-block__spark svg { width: 100%; height: 100%; fill: currentColor; }
.idea-block__spark--tl { top: 32px; left: 32px; }
.idea-block__spark--br { bottom: 32px; right: 32px; width: 24px; height: 24px; opacity: .5; }
@media (max-width: 760px) {
  .idea-block { padding: 56px 32px; }
}

/* ---------- Big CTA block ---------- */
.cta-block {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: url("assets/patterns/wave_purple.svg") center/cover no-repeat;
  pointer-events: none;
}
.cta-block h2 { max-width: 980px; }
.cta-block .lead { margin-top: 32px; }

/* ---------- Image slot grid (Work page) ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  margin-top: 56px;
}
.work-tile { position: relative; overflow: hidden; }
.work-tile image-slot { width: 100%; height: 100%; display: block; }
.work-tile__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; gap: 16px;
}
.work-tile__title { font-weight: 300; font-size: 20px; letter-spacing: -.01em; color: var(--fg); margin: 0; }
html[lang="ar"] .work-tile__title { font-weight: 500; font-family: var(--font-arabic); }
.work-tile__tag { font: 600 10px/1 var(--font-latin); letter-spacing: var(--tracking-eyebrow); color: var(--purple-light); text-transform: uppercase; white-space: nowrap; }
.work-tile.w-12 { grid-column: span 12; }
.work-tile.w-8  { grid-column: span 8; }
.work-tile.w-6  { grid-column: span 6; }
.work-tile.w-4  { grid-column: span 4; }
@media (max-width: 900px) {
  .work-tile.w-12, .work-tile.w-8, .work-tile.w-6, .work-tile.w-4 { grid-column: span 12; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 600 11px/1 var(--font-latin); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--fg-muted); }
html[lang="ar"] .field label { font-family: var(--font-latin); }  /* labels stay Latin caps */
.field input, .field textarea, .field select {
  background: transparent; border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--fg); padding: 14px 0 12px;
  font: 300 17px/1.4 var(--font-latin);
  border-radius: 0; outline: none;
  transition: border-color 220ms;
}
html[lang="ar"] .field input, html[lang="ar"] .field textarea, html[lang="ar"] .field select {
  font-family: var(--font-arabic); font-weight: 400;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple-light); }
.field textarea { min-height: 130px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 12px; padding-right: 28px; }
html[lang="ar"] .field select { background-position: left 4px center; padding-right: 0; padding-left: 28px; }

/* ---------- WhatsApp icon link ---------- */
.wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-soft); text-decoration: none;
  font-size: 13px; transition: color 220ms;
}
.wa-link:hover { color: #25D366; }
.wa-link svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.wa-link .wa-label { font-weight: 400; }
html[lang="ar"] .wa-link .wa-label { font-family: var(--font-arabic); font-weight: 400; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white); border: 1px solid var(--line-dark);
  padding: 10px 22px; font: 500 14px/1 var(--font-latin); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: all 250ms var(--ease-soft);
  border-radius: 0;
}
.wa-btn svg { width: 18px; height: 18px; fill: currentColor; }
.wa-btn:hover { background: #25D366; border-color: #25D366; color: #fff; }
html[data-theme="light"] .wa-btn { color: var(--ink); border-color: var(--paper-line); }
html[lang="ar"] .wa-btn .wa-label { font-family: var(--font-arabic); font-weight: 400; }

/* Tweaks panel positioning */
#tweaks-root { position: fixed; bottom: 24px; right: 24px; z-index: 100; }
