/*
 * أرقى للدعاية والتسويق — static template
 * Dark elegant glass bento: deep navy, cyan accent, green-gold highlight.
 * Breakpoints: sm 640px · md 768px · lg 1024px
 */

:root {
  --background: oklch(0.24 0.06 243);
  --foreground: oklch(0.96 0.02 240);
  --card: oklch(0.28 0.06 243);
  --glass: oklch(0.28 0.06 243);
  --muted: oklch(0.33 0.06 243);
  --muted-foreground: oklch(0.78 0.05 240);
  --accent: oklch(0.72 0.13 222);
  --accent-foreground: oklch(0.17 0.05 243);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(0.38 0.07 243);
  --gold: oklch(0.75 0.16 158);
  --surface-light: oklch(0.99 0.006 240);
  --on-light: oklch(0.32 0.06 245);
  --on-light-muted: oklch(0.52 0.05 244);

  --font-arabic: "IBM Plex Sans Arabic", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ring: inset 0 0 0 1px color-mix(in oklch, var(--border) 60%, transparent);
  --ring-white: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  --ring-accent: inset 0 0 0 1px color-mix(in oklch, var(--accent) 40%, transparent);
}

/* Alternate background themes — set data-bg="..." on <body> */
[data-bg="midnight"] { --background: oklch(0.24 0.012 260); --card: oklch(0.28 0.012 260); --glass: oklch(0.28 0.012 260); --muted: oklch(0.33 0.012 260); --border: oklch(0.38 0.022 260); }
[data-bg="royal"]    { --background: oklch(0.24 0.09 265);  --card: oklch(0.28 0.09 265);  --glass: oklch(0.28 0.09 265);  --muted: oklch(0.33 0.09 265);  --border: oklch(0.38 0.1 265); }
[data-bg="ocean"]    { --background: oklch(0.24 0.07 215);  --card: oklch(0.28 0.07 215);  --glass: oklch(0.28 0.07 215);  --muted: oklch(0.33 0.07 215);  --border: oklch(0.38 0.08 215); }
[data-bg="teal"]     { --background: oklch(0.24 0.06 195);  --card: oklch(0.28 0.06 195);  --glass: oklch(0.28 0.06 195);  --muted: oklch(0.33 0.06 195);  --border: oklch(0.38 0.07 195); }
[data-bg="emerald"]  { --background: oklch(0.24 0.06 165);  --card: oklch(0.28 0.06 165);  --glass: oklch(0.28 0.06 165);  --muted: oklch(0.33 0.06 165);  --border: oklch(0.38 0.07 165); }
[data-bg="forest"]   { --background: oklch(0.24 0.05 145);  --card: oklch(0.28 0.05 145);  --glass: oklch(0.28 0.05 145);  --muted: oklch(0.33 0.05 145);  --border: oklch(0.38 0.06 145); }
[data-bg="violet"]   { --background: oklch(0.24 0.07 300);  --card: oklch(0.28 0.07 300);  --glass: oklch(0.28 0.07 300);  --muted: oklch(0.33 0.07 300);  --border: oklch(0.38 0.08 300); }
[data-bg="burgundy"] { --background: oklch(0.24 0.07 15);   --card: oklch(0.28 0.07 15);   --glass: oklch(0.28 0.07 15);   --muted: oklch(0.33 0.07 15);   --border: oklch(0.38 0.08 15); }
[data-bg="bronze"]   { --background: oklch(0.24 0.05 60);   --card: oklch(0.28 0.05 60);   --glass: oklch(0.28 0.05 60);   --muted: oklch(0.33 0.05 60);   --border: oklch(0.38 0.06 60); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-arabic);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { position: relative; min-height: 100vh; overflow-x: clip; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.page { position: relative; padding-top: 4rem; padding-bottom: 6rem; }
[id] { scroll-margin-top: 6rem; }

/* Ambient glows */
.glow { position: absolute; pointer-events: none; border-radius: 50%; }
.glow-1 {
  top: -13rem; right: -12%; width: 640px; height: 640px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  filter: blur(120px);
  animation: glow-pulse 9s var(--ease) infinite;
}
.glow-2 {
  top: 42%; left: -16%; width: 560px; height: 560px;
  background: color-mix(in oklch, var(--gold) 8%, transparent);
  filter: blur(130px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgb(0 0 0 / 0.1);
  background: color-mix(in oklch, var(--surface-light) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo img { height: 2.25rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; color: var(--on-light-muted); }
.main-nav a { transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--on-light); }
.main-nav a.active { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-light); cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 767px) {
  .nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--surface-light);
    border-bottom: 1px solid rgb(0 0 0 / 0.1);
    padding: 0.5rem 1.5rem 1rem;
    font-size: 1rem;
  }
  .nav-open .main-nav a { padding-block: 0.75rem; border-bottom: 1px solid rgb(0 0 0 / 0.06); }
  .nav-open .main-nav a:last-child { border-bottom: 0; }
}
@media (min-width: 768px) {
  .logo img { height: 2.75rem; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: var(--background); position: relative; }
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 2.5rem; font-size: 0.875rem; color: var(--muted-foreground); text-align: center;
}
.footer-logo {
  display: inline-flex; align-items: center; border-radius: 1rem; padding: 0.5rem 0.875rem;
  background: linear-gradient(to bottom right, #fff, #f0f9ff);
  box-shadow: 0 4px 6px -1px rgb(14 165 233 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.6);
}
.footer-logo img { height: 1.75rem; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--foreground); }
@media (min-width: 768px) { .site-footer .container { flex-direction: row; text-align: start; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; line-height: 1.25; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-sm { padding: 0.5rem 1.25rem; }
.btn-lg { padding: 0.875rem 2rem; }
.btn-xl { padding: 1rem 2rem; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { background: color-mix(in oklch, var(--accent) 85%, transparent); }
.btn-outline { background: var(--card); color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.btn-ghost { color: var(--accent); border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent); }
.btn-ghost:hover { background: color-mix(in oklch, var(--accent) 10%, transparent); }
.btn-cta { overflow: hidden; }
.btn-cta > span { position: relative; z-index: 1; }
.btn-cta .sheen {
  position: absolute; inset-block: 0; left: -33%; width: 33%; z-index: 0;
  background: rgb(255 255 255 / 0.4); transform: skewX(-12deg);
  animation: sheen 3.6s var(--ease) infinite;
}
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border-radius: 24px; box-shadow: var(--ring); }
.glass {
  background: color-mix(in oklch, var(--glass) 60%, transparent);
  border-radius: 28px; box-shadow: var(--ring-white);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.glass-sm {
  background: color-mix(in oklch, var(--glass) 50%, transparent);
  border-radius: 24px; box-shadow: var(--ring-white);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.panel-gradient {
  border-radius: 32px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  background: linear-gradient(to bottom right,
    color-mix(in oklch, var(--accent) 15%, transparent),
    color-mix(in oklch, var(--glass) 60%, transparent),
    color-mix(in oklch, var(--gold) 10%, transparent));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.r-28 { border-radius: 28px; }
a.card, a.glass, a.glass-sm { display: block; transition: box-shadow 0.2s; }
a.card:hover, a.glass:hover, a.glass-sm:hover { box-shadow: var(--ring-accent); }
.media { overflow: hidden; border-radius: 24px; box-shadow: var(--ring-white); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.zoom { overflow: hidden; }
.zoom img { transition: transform 0.5s; }
a:hover .zoom img { transform: scale(1.05); }

.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.xsmall { font-size: 0.75rem; }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.display { font-family: var(--font-display); font-weight: 700; }
.text-accent { color: var(--accent); }
.text-accent-faint { color: color-mix(in oklch, var(--accent) 30%, transparent); }
.text-gold { color: var(--gold); }
.lead { line-height: 1.625; color: var(--muted-foreground); text-wrap: pretty; }
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }
.h-hero { font-size: 2.25rem; line-height: 1.18; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.h-page { font-size: 2.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.h-cta { font-size: 1.875rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.h-cta-sm { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.h-section { font-size: 1.5rem; font-weight: 700; }
.num-xl { font-size: 3rem; line-height: 1; }
.num-lg { font-size: 2.25rem; line-height: 1.1; }
.num-md { font-size: 1.875rem; line-height: 1.2; }
.link-back { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.link-back:hover { color: var(--foreground); }
.more { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.chip { display: inline-block; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.chip.muted { color: var(--muted-foreground); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.measure { max-width: 42rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

@media (min-width: 768px) {
  .h-hero { font-size: 3.75rem; }
  .h-page, .h-cta { font-size: 3rem; }
  .h-cta-sm { font-size: 2.25rem; }
}

/* Spacing */
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.stack-5 > * + * { margin-top: 1.25rem; }

/* ---------- Layouts ---------- */
.grid { display: grid; gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Home */
.hero-intro { padding: 2rem; }
.hero-side { display: grid; grid-template-rows: minmax(16rem, 1fr) auto; gap: 1rem; }
.hero-side .media { position: relative; }
.hero-side .media img { position: absolute; inset: 0; }
.stat-card { gap: 2rem; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.pillars-head { display: flex; align-items: center; justify-content: space-between; padding: 2rem; }
.numbers { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; }
.cta-section { padding: 2.5rem; text-align: center; }
.cta-section .lead { max-width: 44ch; margin-inline: auto; }
.thumb img { aspect-ratio: 7 / 9; }
.thumb figcaption { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.thumb .media { border-radius: 20px; }

@media (min-width: 640px) {
  .sm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hero-intro { padding: 3rem; }
  .cta-section { padding: 4rem; }
  .md-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-7-5 { grid-template-columns: 7fr 5fr; }
  .lg-8-4 { grid-template-columns: 8fr 4fr; }
}

/* Listing cards */
.card-img-3x2 img { aspect-ratio: 3 / 2; }
.card-img-7x9 img { aspect-ratio: 7 / 9; }

/* Detail pages */
.detail-hero { align-items: center; }
.detail-hero .media { border-radius: 28px; }
.detail-hero .media img { aspect-ratio: 4 / 3; }
.cap { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
.cap p { line-height: 1.625; text-wrap: pretty; }
.cap .display { font-size: 0.875rem; color: var(--accent); }
.work-cover { border-radius: 28px; }
.summary { font-size: 1.125rem; line-height: 1.625; text-wrap: pretty; }
@media (min-width: 1024px) { .sticky-aside { position: sticky; top: 7rem; } }
.aside-stack > * + * { margin-top: 1rem; }
.next-work { display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem; }
.next-work img { width: 6rem; height: 7rem; flex-shrink: 0; border-radius: 1rem; object-fit: cover; }
.next-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; }

/* Video showcase */
.video { position: relative; overflow: hidden; border-radius: 20px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.video-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--card); cursor: pointer; }
.video-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-btn:hover img { transform: scale(1.03); }
.video-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in oklch, var(--background) 85%, transparent), color-mix(in oklch, var(--background) 25%, transparent), transparent); }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 14%; pointer-events: none; }
.video-play span {
  display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-foreground); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  transition: transform 0.3s;
}
.video-btn:hover .video-play span { transform: scale(1.1); }
.video-play svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.video-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem; pointer-events: none; }
.video-hint { display: none; border-radius: 999px; padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; background: color-mix(in oklch, var(--background) 70%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); backdrop-filter: blur(4px); }
.video-tag { border-radius: 999px; padding: 0.375rem 0.75rem; font-size: 11px; font-weight: 600; background: color-mix(in oklch, var(--accent) 90%, transparent); color: var(--accent-foreground); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-caption { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
@media (min-width: 640px) { .video-hint { display: inline-block; } }
@media (min-width: 768px) { .video-play span { width: 5rem; height: 5rem; } .video-play svg { width: 1.75rem; height: 1.75rem; } }

/* Contact form */
.contact-form { display: grid; gap: 0.75rem; max-width: 42rem; margin: 2rem auto 0; text-align: right; }
.field {
  width: 100%; border: 1px solid var(--border); border-radius: 1rem; padding: 0.75rem 1rem;
  background: color-mix(in oklch, var(--background) 60%, transparent);
  font-size: 0.875rem; color: var(--foreground); transition: border-color 0.2s;
}
.field::placeholder { color: var(--muted-foreground); }
.field:focus { outline: none; border-color: var(--accent); }
.field[aria-invalid="true"] { border-color: var(--destructive); }
select.field {
  appearance: none; -webkit-appearance: none; padding-left: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9bcd3' 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: left 1rem center; background-size: 1rem;
}
select.field option { background: var(--card); }
.contact-form .full { grid-column: 1 / -1; }
.form-thanks { max-width: 28rem; margin: 2rem auto 0; padding: 1.5rem; font-size: 0.875rem; background: var(--card); border-radius: 1rem; box-shadow: var(--ring-accent); }
@media (min-width: 640px) { .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.info-card { padding: 1.75rem; }
.info-card .value { margin-top: 0.5rem; font-weight: 700; direction: ltr; unicode-bidi: plaintext; }

/* Toast */
.toast-wrap { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 0.5rem; width: min(92vw, 24rem); pointer-events: none; }
.toast {
  padding: 0.875rem 1.125rem; border-radius: 0.875rem; font-size: 0.875rem; font-weight: 500;
  background: var(--surface-light); color: var(--on-light); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  border-inline-start: 4px solid var(--gold); animation: rise 0.4s var(--ease) both;
}
.toast.error { border-inline-start-color: var(--destructive); }

/* 404 */
.not-found { display: flex; min-height: 60vh; align-items: center; justify-content: center; text-align: center; }
.not-found h1 { font-size: 4.5rem; font-weight: 700; line-height: 1; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(220%) skewX(-12deg); } }
.rise { animation: rise 0.6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
