/* ============================================================
   واصل الصفا للتقنية — Static Site Styles
   Formal & Clean | Light default | Minimal green accent
   ============================================================ */

:root {
  --accent: #059669;
  --accent-dim: #047857;
  --accent-subtle: rgba(5, 150, 105, 0.08);
  --accent-border: rgba(5, 150, 105, 0.22);
  --brand-lime: #cdfc54;
  /* أزرار الإجراء بلون الهوية (الأخضر الفاتح) مع نص داكن للوضوح */
  --btn-bg: #cdfc54;
  --btn-bg-hover: #bdf02f;
  --btn-text: #0f172a;

  --bg-main: #f8f9fa;
  --bg-white: #ffffff;
  --bg-section: #f1f3f5;
  --bg-nav: rgba(255, 255, 255, 0.94);

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.10);

  --radius: 6px;
  --radius-lg: 12px;
  --font: 'Cairo', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --container: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #10b981; --accent-dim: #059669;
    --accent-subtle: rgba(16, 185, 129, 0.09); --accent-border: rgba(16, 185, 129, 0.22);
    --bg-main: #0d1117; --bg-white: #161b27; --bg-section: #111622; --bg-nav: rgba(13, 17, 23, 0.94);
    --border: #232a35; --border-strong: #333b47;
    --text-primary: #e6edf3; --text-secondary: #9aa4af; --text-muted: #6e7781;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.35); --shadow-md: 0 8px 28px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #10b981; --accent-dim: #059669;
  --accent-subtle: rgba(16, 185, 129, 0.09); --accent-border: rgba(16, 185, 129, 0.22);
  --bg-main: #0d1117; --bg-white: #161b27; --bg-section: #111622; --bg-nav: rgba(13, 17, 23, 0.94);
  --border: #232a35; --border-strong: #333b47;
  --text-primary: #e6edf3; --text-secondary: #9aa4af; --text-muted: #6e7781;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35); --shadow-md: 0 8px 28px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; color: var(--text-primary); }
p { color: var(--text-secondary); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-subtle); color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 3000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; font-weight: 700; font-size: .95rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.4;
  transition: opacity .2s, background-color .2s, border-color .2s, transform .2s;
}
.btn-dark { background: var(--text-primary); color: var(--bg-main); border-color: var(--text-primary); }
.btn-dark:hover { opacity: .86; color: var(--bg-main); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-section); color: var(--text-primary); }
.btn-accent { background: var(--btn-bg); color: var(--btn-text); }
.btn-accent:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link-underline {
  font-weight: 700; color: var(--text-primary); border-bottom: 2px solid var(--text-primary);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
}
/* blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: .92rem; color: var(--text-primary); white-space: nowrap; }
.brand-tag { font-size: .68rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; color: var(--text-secondary);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-subtle); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 12px; }
.nav-cta { padding: 9px 18px; font-size: .88rem; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--text-secondary);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.menu-btn { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .menu-btn { display: flex; }
  .nav-menu {
    position: fixed; top: 68px; inset-inline: 0; bottom: 0;
    background: var(--bg-white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 24px 40px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto;
  }
  .menu-open .nav-menu { opacity: 1; transform: none; visibility: visible; }
  .nav-links { flex-direction: column; }
  .nav-links a { font-size: 1.05rem; padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-actions { margin: 24px 0 0; justify-content: space-between; }
  .nav-cta { flex: 1; }
  body.menu-open { overflow: hidden; }
}

/* ── Sections ── */
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-section); }
.section-white { background: var(--bg-white); }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--text-secondary); letter-spacing: .4px; margin-bottom: 14px; display: block; }
.eyebrow-accent { color: var(--accent); }
.section-title { font-size: clamp(1.85rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section-intro { font-size: 1.12rem; max-width: 640px; margin-bottom: 56px; }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* ── Home hero ── */
.hero { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 88px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 26px 26px; mask-image: linear-gradient(to left, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 70%); opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.15; margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: 1.2rem; max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { max-width: 380px; margin: 0 auto; }
.hero-visual img { border-radius: 28px; box-shadow: 0 30px 60px rgba(5,150,105,.14), 0 10px 24px rgba(15,23,42,.08); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stats dt { font-size: 1.8rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.hero-stats dd { font-size: .85rem; color: var(--text-secondary); font-weight: 600; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-visual { order: -1; max-width: 200px; }
  .hero-lead { margin-inline: auto; font-size: 1.05rem; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-actions .btn { flex: 1 1 200px; }
}

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--bg-white); padding: 72px 0 60px; border-bottom: 1px solid var(--border); text-align: center; }
.page-hero.start { text-align: start; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 16px; }
.page-hero .lead { font-size: 1.12rem; max-width: 660px; margin: 0 auto; }
.page-hero.start .lead { margin: 0 0 32px; max-width: 720px; }
.page-hero.bg-image {
  background: linear-gradient(90deg, rgba(255,255,255,.93), rgba(255,255,255,.80)), url('../img/contact-bg.webp') center/cover;
  padding: 110px 0 96px;
}
:root[data-theme="dark"] .page-hero.bg-image { background: linear-gradient(90deg, rgba(22,27,39,.95), rgba(22,27,39,.86)), url('../img/contact-bg.webp') center/cover; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero.bg-image { background: linear-gradient(90deg, rgba(22,27,39,.95), rgba(22,27,39,.86)), url('../img/contact-bg.webp') center/cover; } }

.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-muted); margin-bottom: 22px; }
.page-hero.start .breadcrumb { justify-content: flex-start; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 6px; color: var(--text-muted); }

/* ── Grids & cards ── */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; transition: border-color .25s, box-shadow .25s, transform .25s; height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card-sub { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { margin-bottom: 24px; }
.card .push { margin-top: auto; }

.dash-list li { position: relative; padding-inline-start: 20px; margin-bottom: 10px; font-weight: 500; color: var(--text-primary); font-size: .95rem; }
.dash-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .85em; width: 9px; height: 2px; background: var(--accent); }
.dash-list.sm li { font-size: .88rem; margin-bottom: 7px; }
.dash-list.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
@media (max-width: 480px) { .dash-list.cols { grid-template-columns: 1fr; } }

/* Home services split */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
@media (max-width: 992px) { .split { grid-template-columns: 1fr; } }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.svc-item { padding: 40px 32px; border-bottom: 1px solid var(--border); }
.svc-item:nth-child(odd) { border-inline-end: 1px solid var(--border); }
.svc-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc-num { font-size: .8rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .svc-item:nth-child(odd) { border-inline-end: 0; } .svc-item { padding: 30px 8px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text-primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }

/* About */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box { background: var(--bg-white); border: 1px solid var(--border); padding: 30px 20px; text-align: center; border-radius: var(--radius); }
.stat-box strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.stat-box span { font-size: .9rem; font-weight: 600; color: var(--text-secondary); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.two-col p + p { margin-top: 14px; }
.timeline { max-width: 640px; margin: 0 auto; }
.timeline li { display: flex; gap: 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-size: 1.4rem; font-weight: 900; width: 72px; flex-shrink: 0; color: var(--accent); }
.timeline span { font-size: 1.08rem; color: var(--text-secondary); }

/* Products list page */
.product-box { display: flex; flex-direction: row; gap: 56px; align-items: center; margin-bottom: 40px; padding: 48px 40px; }
.product-box:last-child { margin-bottom: 0; }
.product-main { flex: 1; }
.product-main h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 16px; }
.product-main p { font-size: 1.05rem; margin-bottom: 26px; }
.product-side { width: 280px; flex-shrink: 0; border-inline-start: 1px solid var(--border); padding-inline-start: 40px; }
.product-side dl div { margin-bottom: 22px; }
.product-side dt { font-size: 2rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.product-side dd { font-size: .86rem; font-weight: 600; color: var(--text-secondary); }
.product-side .side-cta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-secondary); }
@media (max-width: 860px) {
  .product-box { flex-direction: column; align-items: stretch; gap: 28px; padding: 32px 22px; }
  .product-side { width: auto; border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--border); padding-top: 28px; }
}

/* Product detail */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.info-box { border-inline-start: 1px solid var(--border); padding-inline-start: 40px; }
@media (max-width: 860px) { .info-box { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--border); padding-top: 32px; } }
.info-box h2 { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 14px; }
.info-list li { padding: 15px 0; border-bottom: 1px solid var(--border); font-weight: 700; }
.info-list li:last-child { border-bottom: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.chip-link { background: var(--bg-white); border: 1px solid var(--border); padding: 16px 26px; border-radius: var(--radius); color: var(--text-primary); font-weight: 700; min-width: 200px; text-align: center; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }

/* Services */
.mini-label { font-size: .8rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 10px; }
.svc-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: auto; }
@media (max-width: 480px) { .svc-card .cols { grid-template-columns: 1fr; } }
.pkg-card { text-align: center; align-items: center; }
.pkg-card .dash-list { text-align: start; margin-bottom: 26px; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 52px; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 9px 22px; border-radius: var(--radius); font-weight: 700; font-size: .9rem; cursor: pointer; }
.filter-btn:hover { background: var(--bg-section); color: var(--text-primary); }
.filter-btn[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-main); border-color: var(--text-primary); }
.project-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .8rem; }
.project-head .cat { font-weight: 700; color: var(--accent); }
.project-head time { color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { background: var(--bg-section); border: 1px solid var(--border); font-size: .76rem; color: var(--text-secondary); padding: 3px 10px; border-radius: 3px; direction: ltr; }
.project.is-hidden { display: none; }

/* Forms */
.form-card { position: relative; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .form-card { padding: 28px 20px; } }
.form-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-note { font-size: .92rem; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 7px; color: var(--text-primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); background: var(--bg-main);
  border-radius: var(--radius); font-size: .95rem; color: var(--text-primary);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.field input[type="tel"] { direction: ltr; text-align: right; }
.send-row { display: flex; gap: 12px; flex-wrap: wrap; }
.send-row .btn { flex: 1 1 200px; }
.btn-wa svg { width: 20px; height: 20px; }
/* inline validation */
.field-hint { margin-top: 6px; font-size: .82rem; color: var(--text-muted, #64748b); }
.field-error { margin-top: 6px; font-size: .86rem; font-weight: 600; color: #dc2626; }
.field-hint:has(+ .field-error) { display: none; }
.field [aria-invalid="true"] { border-color: #dc2626; }
.field [aria-invalid="true"]:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.form-msg { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--accent); min-height: 1.5em; }
.form-msg.error { color: #dc2626; }
.lead-followup { margin-top: 14px; }
.turnstile-slot { margin: 4px 0 16px; min-height: 0; }
.turnstile-slot:empty { display: none; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.2rem; margin-bottom: 26px; }
.contact-info dl div { margin-bottom: 26px; }
.contact-info dt { font-size: .84rem; color: var(--text-secondary); margin-bottom: 2px; }
.contact-info dd { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); }
.contact-info dd a { color: var(--text-primary); }
.contact-info dd a:hover { color: var(--accent); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Request wizard */
.steps { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 48px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.steps li::before {
  counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-section); border: 1px solid var(--border); font-weight: 800;
}
.steps li.active { color: var(--text-primary); }
.steps li.active::before { background: var(--text-primary); color: var(--bg-main); border-color: var(--text-primary); }
.steps li.done { color: var(--text-primary); }
.steps li.done::before { content: '✓'; background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 640px) { .steps { gap: 14px; } .steps li { font-size: .72rem; max-width: 70px; text-align: center; } }
.wizard { max-width: 820px; margin: 0 auto; }
.wizard fieldset { border: 0; }
.wizard legend { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }
.js .wizard fieldset[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 15px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 700; color: var(--text-secondary); cursor: pointer; background: var(--bg-white); transition: all .2s;
}
.choice span:hover { border-color: var(--border-strong); color: var(--text-primary); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub-choices { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.sub-choices h3 { font-size: 1rem; margin-bottom: 14px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.review { background: var(--bg-section); padding: 6px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.review div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--text-secondary); font-size: .9rem; flex-shrink: 0; }
.review dd { font-weight: 700; text-align: left; white-space: pre-wrap; word-break: break-word; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 72px 0; background: #0b0f0e; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--bg-section); padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-about p { font-size: .9rem; margin: 14px 0 20px; }
.footer-col h2 { font-size: .95rem; margin-bottom: 16px; padding-bottom: 10px; position: relative; }
.footer-col h2::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 26px; height: 2px; background: var(--accent); }
.footer-col li { margin-bottom: 9px; font-size: .9rem; }
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; font-size: .9rem; color: var(--text-secondary); }
.footer-col address p { margin-bottom: 9px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; color: var(--text-secondary); }
.socials a:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-subtle); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--text-muted); }
.footer-bottom p { color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 900; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37,211,102,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .wa-float { width: 50px; height: 50px; bottom: 18px; left: 16px; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound strong { font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; display: block; }

/* Reveal animation (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   Web-design focus: showcase, gallery, lightbox, process
   ============================================================ */
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-section); border-bottom: 1px solid var(--border); direction: ltr; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.browser-bar i:first-child { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }

/* Hero showcase (stacked screenshots) */
.hero-showcase { position: relative; min-height: 400px; }
.shot { position: absolute; border-radius: 12px; overflow: hidden; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.shot img { width: 100%; height: auto; }
.shot-main { width: 92%; top: 40px; left: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.shot-back { width: 74%; top: 0; right: 0; z-index: 1; opacity: .9; }
.shot-phone { position: absolute; z-index: 3; width: 118px; height: 236px; bottom: 0; right: 4%; border-radius: 22px; border: 6px solid #0f172a; background: #0f172a; overflow: hidden; box-shadow: var(--shadow-md); }
.shot-phone img { height: 100%; width: auto; max-width: none; object-fit: cover; object-position: 78% 0; }
@media (max-width: 860px) {
  .hero-showcase { order: -1; min-height: 0; aspect-ratio: 16 / 11; max-width: 520px; width: 100%; margin: 0 auto; }
  .shot-phone { width: 84px; height: 168px; border-width: 4px; border-radius: 16px; }
}
.btn-wa { background: var(--btn-bg); color: var(--btn-text); }
.btn-wa:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Website types */
.type-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; border-top: 3px solid var(--accent); }
.type-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* Gallery */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 992px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work { margin: 0; display: flex; flex-direction: column; }
.work.is-hidden { display: none; }
.work-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-white); cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.work-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s; }
.work-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.work-shot:hover img { transform: scale(1.03); }
.work figcaption { padding: 18px 4px 0; display: flex; flex-direction: column; flex: 1; }
.work-cat { font-size: .8rem; font-weight: 700; color: var(--accent); }
.work-title { font-size: 1.15rem; margin: 4px 0 6px; }
.work p { font-size: .93rem; margin-bottom: 14px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: min(1100px, 94vw, calc((100vh - 190px) * 1.6)); margin: auto; overflow: visible; position: fixed; }
.lb-frame { position: relative; }
.lightbox::backdrop { background: rgba(5, 10, 20, .82); backdrop-filter: blur(4px); }
.lb-frame { border-radius: 12px; overflow: hidden; background: var(--bg-white); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-frame img { width: 100%; height: auto; }
.lb-text { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 4px 0; }
.lb-text h2 { color: #fff; font-size: 1.25rem; }
.lb-text p { color: rgba(255,255,255,.75); font-size: .95rem; flex-basis: 100%; order: 2; }
.lb-close { position: absolute; top: 44px; left: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(15,23,42,.75); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(15,23,42,.95); }

/* Includes list */
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .includes { grid-template-columns: 1fr; } }
.includes li { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 18px 18px; padding-inline-start: 52px; position: relative; }
.includes li::before { content: '✓'; position: absolute; inset-inline-start: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.includes strong { display: block; color: var(--text-primary); font-size: 1rem; }
.includes span { font-size: .9rem; color: var(--text-secondary); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: p; }
@media (max-width: 992px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process li { position: relative; padding-top: 64px; }
.process li::before { counter-increment: p; content: counter(p); position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--text-primary); color: var(--bg-main); font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; }
.process li::after { content: ''; position: absolute; top: 23px; inset-inline-start: 58px; inset-inline-end: -12px; height: 2px; background: var(--border); }
.process li:last-child::after { display: none; }
@media (max-width: 992px) { .process li::after { display: none; } }
.process h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* Packages */
.pkg-card { position: relative; }
.pkg-card h3 { font-size: 1.35rem; }
.pkg-card .btn { width: 100%; }
.pkg-card.featured { border: 2px solid var(--btn-bg); box-shadow: var(--shadow-md); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--btn-bg); color: var(--btn-text); font-size: .78rem; font-weight: 800; padding: 3px 14px; border-radius: 20px; white-space: nowrap; }
.chip-link small { font-weight: 500; color: var(--text-secondary); }
.work-link { font-weight: 700; font-size: .9rem; }
.work-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
.browser-bar em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--text-muted); margin-inline-start: 8px; line-height: 9px; }
a.work-shot { cursor: pointer; }

/* غلاف نصي إلى أن تُضاف لقطة الموقع */
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 10; width: 100%; padding: 16px; text-align: center;
  background: radial-gradient(circle at 1px 1px, rgba(205,252,84,.18) 1px, transparent 0) 0 0 / 18px 18px, linear-gradient(135deg, #0f172a, #1e293b); }
.cover-ph b { direction: ltr; color: var(--brand-lime); font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 800; }
.cover-ph small { color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }

/* شريط الأعمال المتحرك في الهيرو */
.marquee { position: relative; margin-top: 64px; overflow: hidden; direction: ltr;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; padding: 6px 0 10px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.marquee li { flex: 0 0 auto; width: 280px; direction: rtl; }
.marquee a { display: block; color: inherit; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow-sm); transition: transform .3s, border-color .3s; }
.marquee a:hover { transform: translateY(-4px); border-color: var(--btn-bg); color: inherit; }
.mq-shot { display: block; }
.mq-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mq-shot .cover-ph b { font-size: 1.15rem; }
.mq-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.mq-label strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-label small { font-size: .75rem; color: var(--text-muted); }
@media (max-width: 600px) { .marquee { margin-top: 44px; } .marquee li { width: 220px; } .marquee-track { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }
.dev-badge { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 800; background: var(--btn-bg); color: var(--btn-text); }
