@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-ar-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-lat-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2027, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-ar-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-lat-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2027, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-ar-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-lat-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2027, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plex-ar-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plex-lat-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2027, U+20AC;
}

:root {
  --bg: #f6f3ee;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-strong: #efeae3;
  --line: rgba(32, 28, 26, 0.12);
  --ink: #1c1917;
  --muted: #6a635d;
  --plum: #b45c98;
  --sage: #3d8f68;
  --radius: 24px;
  --header: 76px;
  --shadow: 0 18px 50px rgba(40, 30, 36, 0.08);
  --grad: linear-gradient(120deg, #d08bb8, #8ec9a8);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(208, 139, 184, 0.18), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(142, 201, 168, 0.14), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--muted); }
ul, ol { margin: 0; padding: 0; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 80;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.lede { font-size: 1.08rem; max-width: 40rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn, .filters button, .menu-toggle { touch-action: manipulation; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-primary { background: var(--grad); color: #1c1917; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--panel-strong); }
.text-link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(61, 143, 104, 0.45);
}
.section-more { margin-top: 28px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header);
  backdrop-filter: blur(18px);
  background: rgba(246, 243, 238, 0.88);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 1.15rem; }
.brand-copy small { color: var(--muted); font-size: 0.75rem; }

.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}
.mobile-menu {
  display: none;
  padding: 8px 16px 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
}

.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 10% auto auto 20%;
  width: 280px;
  height: 280px;
  background: var(--grad);
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-meta { display: flex; gap: 28px; margin: 0; }
.hero-meta dt { font-size: 0.75rem; color: var(--muted); }
.hero-meta dd { margin: 0; font-weight: 600; }
.hero-visual { position: relative; min-height: 420px; }
.orb {
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 40%),
    var(--grad);
  box-shadow: var(--shadow);
}
.orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.float-card span { display: block; color: var(--sage); font-size: 0.78rem; }
.float-card strong { display: block; }
.card-a { top: 28px; inset-inline-start: 0; }
.card-b { bottom: 48px; inset-inline-end: 0; }

.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7) 40%, transparent); }
.section-head { max-width: 36rem; margin-bottom: 36px; }
.section-head h2,
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

.page-hero { padding: 56px 0 10px; }
.bento,
.cards-3,
.work-grid {
  display: grid;
  gap: 18px;
}
.bento { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.work-grid { grid-template-columns: repeat(2, 1fr); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel .index { color: var(--plum); font-weight: 700; font-size: 0.9rem; }

.work-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(208, 139, 184, 0.4); }
.work-media { background: #ece7e0; aspect-ratio: 16 / 10; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px; }
.work-body h2, .work-body h3 { margin-bottom: 8px; }
.accent-sage:hover { border-color: rgba(142, 201, 168, 0.45); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--plum);
  font-weight: 700;
}

.cta-band { padding: 20px 0 90px; }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(208, 139, 184, 0.16), rgba(142, 201, 168, 0.12)),
    var(--bg-soft);
  border: 1px solid var(--line);
}
.cta-inner p { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.feature-list, .ticks, .tags, .footer-links, .contact-facts { list-style: none; }
.feature-list li, .ticks li { margin-bottom: 12px; color: var(--muted); }
.ticks li { padding-inline-start: 18px; position: relative; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; margin-bottom: 14px; }
.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.quote-panel { font-size: 1.15rem; color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button.is-active {
  background: var(--grad);
  color: var(--ink);
  border-color: transparent;
}

.contact-layout { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 24px; }
.brief-form, .contact-aside .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.brief-form label, .brief-form .grid-2 { display: block; margin-bottom: 16px; }
.brief-form span { display: block; margin-bottom: 6px; font-weight: 600; }
.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.brief-form input[aria-invalid="true"],
.brief-form select[aria-invalid="true"],
.brief-form textarea[aria-invalid="true"] { border-color: #f0a3a3; }
.brief-form small { color: #f0a3a3; display: block; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; }
.alert.success { background: rgba(61, 143, 104, 0.12); color: #2d6d50; }
.alert.error { background: rgba(240, 163, 163, 0.12); color: #f0a3a3; }
.contact-facts li { margin-bottom: 16px; }
.contact-facts span { display: block; color: var(--muted); font-size: 0.82rem; }
.contact-facts p { margin: 0; color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-lead { margin-top: 16px; max-width: 36ch; }
.site-footer h2 { font-size: 1rem; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.fine { color: var(--muted); font-size: 0.85rem; }

.wa-fab {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  inset-inline-end: max(20px, env(safe-area-inset-inline-end, 20px));
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 30;
}

.empty-filter { text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu.is-open { display: block; }
  .hero-grid, .bento, .cards-3, .work-grid, .steps, .split, .contact-layout, .footer-grid, .cta-inner, .grid-2, .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
  .span-2 { grid-column: auto; }
  .hero-visual { min-height: 360px; }
  .cta-inner { justify-items: start; }
  .hero-actions, .header-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .work-card { animation: none; transition: none; }
}
