/* =========================================================
   Kaskol — Light & professional theme
   ========================================================= */

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora Fallback';
  src: local('Verdana');
  size-adjust: 95%;
  ascent-override: 92%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef2ff;
  --primary-strong: #4338ca;
  --accent: #0ea5e9;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .02);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, .04), 0 12px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px -20px rgba(79, 70, 229, .25), 0 12px 28px rgba(15, 23, 42, .08);
  --container: 1180px;
  --font-sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', 'Sora Fallback', var(--font-sans);
  --font-arabic: 'Cairo', 'Tajawal', 'Segoe UI', 'Tahoma', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

body {
  max-width: 100vw;
  overflow-x: clip;
}

p, h1, h2, h3, h4, li, dd, dt {
  overflow-wrap: anywhere;
}

body {
  background:
    radial-gradient(1100px 500px at 100% -20%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(14, 165, 233, .08), transparent 60%),
    var(--bg);
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-2); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--surface-2);
  padding: .15em .4em;
  border-radius: 6px;
  font-size: .9em;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .25);
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text small {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.primary-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: .94rem;
  position: relative;
  padding: 6px 2px;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a.is-active { color: var(--text); }
.primary-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.nav-cta { color: #fff !important; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px; height: 42px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  width: 18px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: .94rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.3rem; font-size: 1rem; border-radius: 12px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(79, 70, 229, .25);
}
.btn-primary:hover { background: var(--primary-strong); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}
.btn-soft:hover { background: #e0e7ff; color: var(--primary-strong); }
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover { background: #fecaca; color: #991b1b; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #e0e7ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-stats {
  list-style: none;
  padding: 0; margin: 2.5rem 0 0;
  display: flex;
  gap: 2.4rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 1.05 / 1;
  min-height: 420px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.orb-1 { width: 280px; height: 280px; background: #c7d2fe; top: 8%; left: 8%; }
.orb-2 { width: 240px; height: 240px; background: #bae6fd; bottom: 5%; right: 5%; }
.orb-3 { width: 160px; height: 160px; background: #fde68a; top: 50%; left: 60%; opacity: .35; }
.glass {
  position: absolute;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.glass strong { font-family: var(--font-display); font-size: .92rem; color: var(--text); }
.glass span { color: var(--muted); font-size: .78rem; margin-left: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: var(--success); box-shadow: 0 0 12px rgba(5, 150, 105, .5); }
.dot-purple { background: var(--primary); box-shadow: 0 0 12px rgba(79, 70, 229, .5); }
.card-a { top: 14%; left: 4%; animation: float 6s ease-in-out infinite; }
.card-b { bottom: 22%; right: 4%; animation: float 7s ease-in-out infinite reverse; }
.card-c {
  top: 60%; left: 18%;
  background: rgba(15, 23, 42, .92);
  color: #e2e8f0;
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  animation: float 8s ease-in-out infinite;
  border-color: rgba(255,255,255,.1);
}
.card-c code {
  background: transparent;
  border: none;
  color: #a5b4fc;
  padding: 0;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head.row-between {
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: left;
  max-width: none;
  gap: 1rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Feature cards ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-xs);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 1rem;
}

/* ---------- Process ---------- */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-xs);
}
.process li span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

/* ---------- Blog cards ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: inherit;
  box-shadow: var(--shadow-xs);
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.post-cover {
  aspect-ratio: 16 / 9;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.post-body { padding: 22px; }
.post-tags { display: flex; gap: .35rem; margin-bottom: .5rem; flex-wrap: wrap; }
.post-tags span {
  font-size: .7rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  font-weight: 600;
  text-transform: uppercase;
}
.post-meta { color: var(--muted); font-size: .82rem; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 90px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero .lead { margin: 0 auto; }

/* ---------- Two col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card.pad { padding: 28px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .65rem;
  color: var(--text-2);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .35rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ---------- Members ---------- */
.member { text-align: center; }
.avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Service ---------- */
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-xs);
}
.portfolio-item:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.portfolio-cover { aspect-ratio: 16 / 10; }
.portfolio-body { padding: 22px; }
.tag {
  display: inline-block;
  font-size: .7rem;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* ---------- Tag filter ---------- */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.tag-filter a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
}
.tag-filter a:hover { color: var(--text); border-color: var(--border-strong); }
.tag-filter a.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ---------- Article ---------- */
.article { padding: 80px 0 40px; }
.article-narrow { max-width: 760px; }
.article-tags { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-tags span {
  font-size: .72rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.article-meta { color: var(--muted); font-size: .9rem; }
.article-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--border);
}
.article-body { font-size: 1.05rem; }
.article-body p { color: var(--text-2); }
.article-body h3 { margin-top: 2rem; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}
.form label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: .55rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="url"],
.form input[type="tel"],
.form input[type="password"],
.form select,
.form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted-2); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form textarea { resize: vertical; }
.form-actions { display: flex; gap: .75rem; align-items: center; }

.contact-aside h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list strong { color: var(--muted); font-weight: 500; }

/* ---------- Flash ---------- */
.flash {
  margin: 14px auto;
  max-width: var(--container);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.flash-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ---------- CTA ---------- */
.cta { padding: 60px 0 100px; }
.cta-card {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(500px 200px at 100% 100%, rgba(14, 165, 233, .25), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; margin: 0 0 .35em; }
.cta-card p { color: rgba(255, 255, 255, .85); }
.cta-card .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-card .btn-primary:hover { background: #f1f5f9; color: var(--primary-strong); }
.cta-card .btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.cta-actions { display: flex; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 60px 24px 36px;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--text); }
.newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.newsletter input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

.big-num {
  font-size: clamp(5rem, 14vw, 9rem);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1rem 0;
  font-family: var(--font-display);
  font-weight: 800;
}

.kv-pairs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
}
.kv-pairs > div { display: flex; flex-direction: column; gap: 4px; }
.kv-pairs dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.kv-pairs dd { margin: 0; color: var(--text); font-weight: 500; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35), 0 4px 10px rgba(15, 23, 42, .12);
  z-index: 60;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); color: #fff; }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---------- Language switcher button in nav ---------- */
.lang-switch {
  font-size: .82rem !important;
  padding: 6px 10px !important;
  border-radius: 8px;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  background: var(--surface);
  margin-inline-start: 4px;
  letter-spacing: .02em;
}
.lang-switch:hover { background: var(--surface-2); }

/* ---------- RTL / Arabic typography ---------- */
html[lang="ar"], html[dir="rtl"] {
  font-family: var(--font-arabic);
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="ar"] body { letter-spacing: 0; }
html[lang="ar"] .article-meta::before,
html[lang="ar"] .post-meta { direction: rtl; }
html[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.7rem; }
html[dir="rtl"] .check-list li::before { left: auto; right: 0; }
html[dir="rtl"] .primary-nav a.is-active::after { left: auto; right: 0; }
html[dir="rtl"] .whatsapp-fab { right: auto; left: 22px; }
html[dir="rtl"] .ctaservices, html[dir="rtl"] .hero-cta .btn { /* visual fine, gap handles */ }
html[dir="rtl"] code { direction: ltr; unicode-bidi: bidi-override; display: inline-block; }
html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td { text-align: right; }
html[dir="rtl"] .row-actions { justify-content: flex-start; }

@media (max-width: 700px) {
  html[dir="rtl"] .whatsapp-fab { left: 14px; right: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 70px 0 30px; }
  .hero { padding: 70px 0 50px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .grid-3, .grid-4, .portfolio-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .section-head.row-between { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 36px; }
}

@media (max-width: 700px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 40px; }
  .page-hero { padding: 56px 0 24px; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    transform: translateY(-110%);
    transition: transform .2s ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
  }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .primary-nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 10px;
    padding: 10px 14px !important;
    text-align: center;
    border-bottom: none !important;
    border-radius: 10px;
  }
  .site-header.is-open .primary-nav { transform: translateY(0); pointer-events: auto; }
  .grid-2, .grid-3, .grid-4, .portfolio-grid, .process, .form .row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-stats span { font-size: .76rem; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 18px 24px; gap: 28px; }
  .footer-bottom { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-card {
    padding: 28px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .article { padding: 56px 0 30px; }
  .article-body { font-size: 1rem; }
  .feature, .service, .post-body { padding: 22px; }
  .whatsapp-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  h1 { letter-spacing: -0.015em; }
  .lead { font-size: 1rem; }
  .btn-lg { padding: .8rem 1.2rem; font-size: .95rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats strong { font-size: 1.2rem; }
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="url"],
  .form input[type="tel"],
  .form input[type="password"],
  .form select,
  .form textarea { font-size: 16px; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
  .tag-filter { justify-content: flex-start; }
  .cta-card { padding: 22px; border-radius: 16px; }
  .feature, .service, .post-body, .card.pad { padding: 18px; }
}
