/* ahmedbuild — site styles */
:root {
  --violet: #5B33E8;
  --violet-dark: #4A26CF;
  --lavender: #B9A7FF;
  --lime: #D4F24A;
  --ink: #16131F;
  --ink-2: #1E1A2B;
  --line-dark: #2E2A3B;
  --muted: #5A5668;
  --muted-dark: #A39DBA;
  --tint: #F1EEFB;
  --deep: #2A1A6E;
  --border: #E6E3EE;
  --white: #FFFFFF;

  --font-latin: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-latin);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.8; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.section:not(.section-dark) :focus-visible,
.form :focus-visible { outline-color: var(--violet); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.latin { font-family: var(--font-latin); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.wordmark {
  font-family: var(--font-latin); font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white); text-decoration: none; direction: ltr; unicode-bidi: isolate;
}
.wordmark:hover { color: var(--white); }
.wordmark span { color: var(--lavender); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--tint); text-decoration: none; font-size: 16px; font-weight: 500; padding-block: 12px; }
.nav a:hover { color: var(--white); }
.nav a.btn-lime, .nav a.btn-lime:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--lime); font-weight: 600; }
.nav .lang-switch { font-family: var(--font-arabic); }
html[lang="ar"] .nav .lang-switch { font-family: var(--font-latin); }

.menu-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line-dark); color: var(--white);
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid var(--line-dark); padding: 8px 24px 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; font-size: 16px; padding: 10px 20px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #E2FA6E; color: var(--ink); }
.btn-ghost { border-color: var(--lavender); color: var(--white); font-weight: 600; }
.btn-ghost:hover { background: rgba(185,167,255,.12); color: var(--white); }
.btn-ghost-white { border-color: var(--white); color: var(--white); font-weight: 600; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-violet { background: var(--violet); color: var(--white); }
.btn-violet:hover { background: var(--violet-dark); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--white); }
.section-violet { background: var(--violet); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 48px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--violet); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
html[lang="ar"] .h2 { line-height: 1.3; letter-spacing: 0; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background-color: var(--ink); color: var(--white); overflow: hidden;
  background-image: url("../img/hero-pattern.svg"); background-repeat: no-repeat;
  background-position: left top; background-size: 1440px 640px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(22,19,31,.82) 0%, rgba(22,19,31,.55) 45%, rgba(22,19,31,0) 75%);
}
html[dir="rtl"] .hero::before {
  background: linear-gradient(to left, rgba(22,19,31,.82) 0%, rgba(22,19,31,.55) 45%, rgba(22,19,31,0) 75%);
}
@media (max-width: 760px) { .hero::before, html[dir="rtl"] .hero::before { background: rgba(22,19,31,.8); } }
.hero-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 80px 104px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chip {
  align-self: flex-start; padding: 7px 14px; border-radius: 999px; border: 1px solid #3A3355;
  background: var(--ink); color: var(--lavender); font-size: 14px; font-weight: 500;
}
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; }
html[lang="ar"] .hero h1 { font-size: clamp(42px, 5.6vw, 78px); line-height: 1.2; letter-spacing: 0; }
.hero-sub { max-width: 560px; font-size: 20px; line-height: 1.55; color: #D9D4E8; }
html[lang="ar"] .hero-sub { line-height: 1.75; }
.hero-proof { font-size: 15px; color: var(--muted-dark); }
.hero .btn-row { margin-top: 8px; }

.photo-card { flex: 1 1 300px; max-width: 420px; }
.photo-card picture img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.photo-card figcaption {
  background: var(--violet); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 18px 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.photo-card .name { font-size: 18px; font-weight: 700; }
.photo-card .domain { font-family: var(--font-latin); font-size: 15px; color: var(--tint); direction: ltr; }

/* ---------- Cards ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-white { background: var(--white); border-color: transparent; }
.card h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
html[lang="ar"] .card h3 { font-size: 21px; }
.card p { font-size: 16px; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.step-num { font-family: var(--font-latin); font-size: 36px; font-weight: 700; color: var(--violet); letter-spacing: -0.02em; line-height: 1; }

/* ---------- CTA band ---------- */
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-copy p { font-size: 19px; color: var(--tint); }
.cta-actions { flex: 1 1 280px; }
.section-violet.section { padding-block: 96px; }

/* ---------- About ---------- */
.about-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about-photo { flex: 1 1 300px; max-width: 440px; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-title { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
html[lang="ar"] .page-title { line-height: 1.25; letter-spacing: 0; }
.about-copy p.body { font-size: 19px; line-height: 1.65; color: #3E3A4C; }
html[lang="ar"] .about-copy p.body { line-height: 1.9; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: 15px; font-weight: 600; }
.pill-outline { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 16px; font-weight: 500; font-family: var(--font-latin); }

/* ---------- Contact ---------- */
.contact-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.contact-head .lead { font-size: 19px; }
.contact-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form { flex: 999 1 540px; min-width: 0; border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #D5D0E2; border-radius: var(--radius-sm);
  color: var(--ink); background: var(--white); width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form-status { font-size: 16px; font-weight: 600; min-height: 1.6em; }
.form-status.is-success { color: #1F6B3A; }
.form-status.is-error { color: #B42318; }

.channels { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.channel { text-decoration: none; border: 1px solid var(--border); color: var(--ink); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.channel:hover { border-color: var(--lavender); color: var(--ink); }
.channel-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.channel-dark:hover { color: var(--white); border-color: var(--violet); }
.channel .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--violet); font-family: var(--font-latin); }
.channel-dark .label { color: var(--lime); }
.channel .value { font-size: 20px; font-weight: 600; font-family: var(--font-latin); }
.channel-dark .value { font-size: 22px; direction: ltr; unicode-bidi: isolate; }
.channel .note { font-size: 15px; color: var(--muted-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { font-size: 15px; color: var(--muted-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--tint); text-decoration: none; font-size: 15px; padding-block: 12px; }
.footer-links a:hover { color: var(--white); }
.footer-rule { height: 1px; background: var(--line-dark); }
.copyright { font-size: 14px; color: var(--muted-dark); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 96px; }

@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .hero-inner { padding-block: 56px 72px; gap: 40px; }
  .form { padding: 22px; }
  .about-intro { gap: 40px; }
}
