/* Asem Alabtah — static stylesheet
   Design tokens ported 1:1 from the original Tailwind theme. */

:root {
  --background: 40 20% 99%;
  --foreground: 162 32% 12%;
  --card: 0 0% 100%;
  --primary: 162 47% 13%;
  --primary-foreground: 40 30% 97%;
  --secondary: 156 24% 96%;
  --muted-foreground: 162 10% 42%;
  --accent: 40 51% 46%;
  --accent-foreground: 0 0% 100%;
  --brand: 161 51% 24%;
  --border: 158 16% 89%;
  --ring: 161 51% 24%;
  --radius: 0.75rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

html[dir='rtl'] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { flex-shrink: 0; }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- shared layout ---------- */

.container {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 6rem; }

@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

/* ---------- decorative backgrounds ---------- */

.mesh {
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, hsl(161 40% 88% / 0.55), transparent 60%),
    radial-gradient(45rem 32rem at 5% 20%, hsl(40 45% 88% / 0.35), transparent 65%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(hsl(var(--border) / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding-inline: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, filter 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--brand)); }

.btn-primary-lg { box-shadow: 0 10px 15px -3px hsl(162 47% 13% / 0.18); }

.btn-outline {
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--secondary)); }

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn-accent:hover { filter: brightness(1.1); }

.btn-ondark {
  border: 1px solid hsl(var(--primary-foreground) / 0.35);
  color: hsl(var(--primary-foreground));
}
.btn-ondark:hover { background: hsl(var(--primary-foreground) / 0.1); }

/* Base icon points inline-end (right). Mirror it in RTL. */
html[dir='rtl'] .arrow-rtl { transform: scaleX(-1); }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5rem;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
  .header-inner { padding-inline: 2.5rem; }
}

.logo { display: flex; align-items: center; gap: 0.75rem; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-size: 1rem; font-weight: 600; }
.logo-role { font-size: 11px; color: hsl(var(--muted-foreground)); }

.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.nav a:hover { color: hsl(var(--brand)); }

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  padding-inline: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { border-color: hsl(var(--brand)); color: hsl(var(--brand)); }

.header-cta { display: none; }
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-block: 7rem; }
  html[dir='rtl'] .hero-copy { order: 2; }
  html[dir='rtl'] .hero-media { order: 1; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--card) / 0.8);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  box-shadow: 0 1px 2px hsl(162 47% 13% / 0.05);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--brand));
}

.hero-title {
  margin-top: 1.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.4rem; } }

.accent-word { position: relative; color: hsl(var(--brand)); }
.accent-word svg {
  position: absolute;
  bottom: -0.5rem;
  inset-inline-start: 0;
  width: 100%;
  height: 0.625rem;
}

.hero-body {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust { margin-top: 3.5rem; }
.trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}
.trust-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--brand) / 0.1);
  color: hsl(var(--brand));
}

.hero-media { position: relative; }
.hero-glow {
  position: absolute;
  inset: 1.5rem;
  border-radius: 9999px;
  background: hsl(var(--brand) / 0.08);
  filter: blur(40px);
}
.hero-img { position: relative; width: 100%; border-radius: 1rem; height: auto; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.6);
  padding-block: 0.75rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-group { display: flex; gap: 2.5rem; }

.marquee-item {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- section headings ---------- */

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--accent));
}

.section-title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.text-center { text-align: center; }
.title-narrow { max-width: 42rem; }

/* ---------- services ---------- */

.services-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--brand) / 0.4);
  box-shadow: 0 20px 25px -5px hsl(162 47% 13% / 0.08);
}
.card-icon { color: hsl(var(--brand)); }
.card h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; }
.card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.card-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--brand));
}

/* ---------- stats ---------- */

.stats-section { padding-bottom: 6rem; }

.stats {
  border-radius: 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 3rem 1.5rem;
}

.stats-grid { display: grid; gap: 2.5rem; }

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-inline-start: 1px solid hsl(var(--primary-foreground) / 0.2); }
}

.stat { padding-inline: 1rem; text-align: center; }
.stat-icon { margin-inline: auto; color: hsl(var(--accent)); }
.stat-value { margin-top: 1rem; font-size: 2.25rem; font-weight: 700; }
.stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--primary-foreground) / 0.7); }

/* ---------- methodology ---------- */

.method {
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
  padding-block: 6rem;
}

.method-grid { display: grid; align-items: center; gap: 3.5rem; }

@media (min-width: 1024px) { .method-grid { grid-template-columns: 1fr 1fr; } }

.method-title { margin-top: 1rem; font-size: 1.875rem; font-weight: 700; line-height: 1.375; }
@media (min-width: 640px) { .method-title { font-size: 2.25rem; } }

.method-body {
  margin-top: 1.5rem;
  max-width: 36rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.steps { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1rem; }
.step-num {
  margin-top: 0.125rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: hsl(var(--brand) / 0.1);
  color: hsl(var(--brand));
  font-size: 0.75rem;
  font-weight: 700;
}
.step h3 { font-weight: 600; }
.step p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }

.method-media { position: relative; }
.method-img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 20px 25px -5px hsl(162 47% 13% / 0.12);
}

.method-note {
  position: absolute;
  bottom: -1.5rem;
  inset-inline-end: 1.5rem;
  max-width: 17rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: 0 20px 25px -5px hsl(162 47% 13% / 0.12);
}
.method-note-eyebrow { font-size: 0.75rem; color: hsl(var(--brand)); }
.method-note-title { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; line-height: 1.375; }
.method-note ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.method-note li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.method-note li svg { color: hsl(var(--brand)); }

@media (max-width: 640px) {
  .method-note { position: static; max-width: none; margin-top: 1.25rem; }
}

/* ---------- projects ---------- */

.projects-list { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 2rem; }

.project {
  display: grid;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
}

.project figure { height: 14rem; width: 100%; }
.project figure img { height: 100%; width: 100%; object-fit: cover; }

.project-body { padding: 1.75rem; }
.project-tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; color: hsl(var(--accent)); }
.project-body h3 { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 700; }
.project-body p { margin-top: 1rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }

@media (min-width: 1024px) {
  .project { grid-template-columns: 1fr 1fr; }
  .project figure { height: 18rem; }
  .project-body { padding: 2.5rem; }
  .project-reverse figure { order: 2; }
}

/* ---------- CTA ---------- */

.cta-section { padding-bottom: 6rem; }

.cta {
  overflow: hidden;
  border-radius: 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 4rem 1.75rem;
  text-align: center;
}

@media (min-width: 1024px) { .cta { padding-inline: 4rem; } }

.cta h2 {
  margin-inline: auto;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.375;
}
@media (min-width: 640px) { .cta h2 { font-size: 2.25rem; } }

.cta-body {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: hsl(var(--primary-foreground) / 0.75);
}

.cta-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contact-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  font-size: 0.875rem;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary-foreground) / 0.85);
  transition: color 0.2s;
}
.contact-links a:hover { color: hsl(var(--primary-foreground)); }

.cta-region { margin-top: 1.5rem; font-size: 0.75rem; color: hsl(var(--primary-foreground) / 0.6); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid hsl(var(--border)); padding-block: 2.5rem; }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.footer-brand { font-weight: 600; color: hsl(var(--foreground)); }

@media (min-width: 1024px) { .footer-inner { flex-direction: row; } }

/* ---------- scroll reveal (progressive enhancement) ----------
   Content is fully visible when JavaScript is unavailable: the
   .js class is only added by the inline script in <head>.       */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= inner pages, FAQ, breadcrumbs ================= */

.section-tight { padding-block: 4rem; }

/* ---------- breadcrumbs ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: hsl(var(--brand)); }
.breadcrumb span[aria-current] { color: hsl(var(--foreground)); font-weight: 500; }

/* ---------- inner page hero ---------- */

.page-hero { padding-block: 3rem 4rem; }

.page-title {
  margin-top: 1rem;
  max-width: 46rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) { .page-title { font-size: 2.75rem; } }

.page-lede {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

/* ---------- prose blocks ---------- */

.prose { display: flex; flex-direction: column; gap: 3rem; }

.prose-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose-p {
  margin-top: 1.25rem;
  max-width: 46rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
}

.checklist {
  margin-top: 1.5rem;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}
.checklist li svg { margin-top: 0.4rem; color: hsl(var(--brand)); }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: hsl(var(--brand));
  border-bottom: 1px solid hsl(var(--brand) / 0.35);
  padding-bottom: 2px;
}
.inline-link:hover { border-bottom-color: hsl(var(--brand)); }

/* ---------- FAQ (native details, works with JS disabled) ---------- */

.faq {
  margin-top: 2.5rem;
  max-width: 52rem;
  border-top: 1px solid hsl(var(--border));
}

.faq-item { border-bottom: 1px solid hsl(var(--border)); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: hsl(var(--brand)); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--brand));
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

.faq-answer { padding-bottom: 1.5rem; }
.faq-answer p {
  max-width: 46rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
}

/* ---------- linked service cards ---------- */

.card { display: block; color: inherit; }
.card:hover .card-link { gap: 0.75rem; }
.card-link { transition: gap 0.2s; }

.services-index { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .services-index { grid-template-columns: repeat(2, 1fr); } }

.service-card h2 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.service-card p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }

.mini-grid { margin-top: 1.75rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }

.mini-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  font-size: 0.9375rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}
.mini-card:hover { border-color: hsl(var(--brand) / 0.4); transform: translateY(-2px); }
.mini-card span { flex: 1; }
.mini-card > svg:last-child { color: hsl(var(--brand)); }

/* ---------- footer link row ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: hsl(var(--brand)); }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-block: 6rem; }
.notfound .page-title,
.notfound .page-lede { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }
