/* =========================================================
   Abdulrahman Build — styles
   الألوان: الأخضر teal #1F6F5C  +  الكريمي #FFFDF8
   ========================================================= */

:root {
  /* الألوان الأساسية */
  --cream:      #FFFDF8;   /* خلفية الموقع */
  --cream-2:    #F6F3EA;   /* خلفية أقسام بديلة */
  --surface:    #FFFFFF;   /* البطاقات */
  --teal:       #1F6F5C;   /* اللون الرئيسي */
  --teal-700:   #155943;   /* أغمق - عند المرور */
  --teal-900:   #0E3D2F;   /* الفوتر */
  --teal-050:   #EAF3EF;   /* لمسة فاتحة جدًا */
  --teal-100:   #D8ECE4;
  --ink:        #16211C;   /* النص الأساسي */
  --muted:      #5B6A63;   /* النص الثانوي */
  --border:     #E8EAE2;
  --border-2:   #DfE4DA;

  --shadow-sm: 0 1px 2px rgba(16,33,28,.05), 0 2px 8px rgba(16,33,28,.04);
  --shadow-md: 0 6px 20px rgba(16,33,28,.07), 0 2px 6px rgba(16,33,28,.05);
  --shadow-lg: 0 24px 60px rgba(16,33,28,.12);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --maxw: 1180px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 118px); }
.center { text-align: center; }

.section-head { max-width: 680px; margin-inline: auto; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: var(--teal); background: var(--teal-050);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: normal; line-height: 1.3; max-width: 100%; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(31,111,92,.25); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,111,92,.32); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--teal); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,248,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-name { font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--teal); margin-inline-start: 4px; }
.brand--light .brand-name, .brand--light { color: var(--cream); }
.brand--light .brand-accent { color: #9FE3CF; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .96rem; color: var(--muted); font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--teal-050); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border-2);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
.chip {
  display: inline-block; font-size: .88rem; font-weight: 600; color: var(--teal);
  background: var(--teal-050); border: 1px solid var(--teal-100);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; color: var(--teal); font-weight: 700; }
.hero-stats span { font-size: .9rem; color: var(--muted); }

/* hero visual */
.hero-visual { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.dash-card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg);
}
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.dash-label { display: block; font-size: .85rem; color: var(--muted); }
.dash-value { display: block; font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.badge-up { background: var(--teal-050); color: var(--teal); font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.dash-chart { width: 100%; height: 110px; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; margin-top: 16px; }
.dash-bars span { flex: 1; background: linear-gradient(var(--teal), var(--teal-100)); border-radius: 6px 6px 3px 3px; opacity: .9; }
.dash-bars span:last-child { background: linear-gradient(var(--teal), var(--teal-700)); }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.float-card strong { display: block; font-size: 1rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
.fc-ico { font-size: 1.3rem; }
.float-card--a { top: 8px; inset-inline-start: -10px; }
.float-card--b { bottom: 16px; inset-inline-end: -8px; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.muted-lead { color: var(--muted); margin: 14px 0 26px; font-size: 1.08rem; }

.check-list { display: grid; gap: 14px; margin-bottom: 30px; }
.check-list li { position: relative; padding-inline-start: 38px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F6F5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* graphic: قمع جذب العملاء (بدل الصورة) */
.funnel-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--shadow-lg);
}
.funnel-head { margin-bottom: 22px; }
.fh-title { display: block; font-size: 1.15rem; font-weight: 700; }
.fh-sub { display: block; font-size: .86rem; color: var(--muted); margin-top: 3px; }
.funnel { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.funnel-band {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff; border-radius: 12px; padding: 13px 18px; font-weight: 600;
  box-shadow: 0 5px 14px rgba(16,33,28,.10);
}
.funnel-band span { font-size: .9rem; opacity: .96; white-space: nowrap; }
.funnel-band strong { font-size: 1.02rem; }
.funnel-band.b1 { width: 100%; background: #5AA493; }
.funnel-band.b2 { width: 82%;  background: #3C8975; }
.funnel-band.b3 { width: 64%;  background: var(--teal); }
.funnel-band.b4 { width: 46%;  background: var(--teal-700); justify-content: center; gap: 8px; }

/* ---------- teal sections ---------- */
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2 { color: #fff; }
.section--teal p { color: rgba(255,255,255,.86); }
.section--teal .split-copy p { margin-bottom: 28px; font-size: 1.08rem; }
.split--reverse .split-visual { order: -1; }

.stat-stack { display: grid; gap: 18px; }
.stat-card { background: #fff; border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow-lg); }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); margin: 6px 0; }
.stat-trend { font-size: .85rem; font-weight: 600; }
.stat-trend.up { color: var(--teal); }

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

/* services */
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.service-num { font-size: 2.4rem; font-weight: 700; color: var(--teal-100); display: block; margin-bottom: 8px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); }

/* benefits */
.benefit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px 26px; }
.benefit-ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--teal-050); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); }

/* process steps */
.steps { counter-reset: none; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 32px 28px; position: relative; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); }
.step-card--hot { background: var(--teal); color: #fff; box-shadow: var(--shadow-lg); border-color: transparent; }
.step-card--hot h3 { color: #fff; }
.step-card--hot p { color: rgba(255,255,255,.85); }
.step-card--hot .step-num { background: rgba(255,255,255,.18); color: #fff; }

/* testimonials */
.testimonials { background: var(--cream-2); }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-sm); }
.quote-card p { font-size: 1.1rem; line-height: 1.8; }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.who strong { display: block; }
.who small { color: var(--muted); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-050); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .96rem; }

/* logos */
.logos-section { padding-block: 64px; }
.logos-title { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.logo-mark { font-size: 1.5rem; font-weight: 700; color: #Aeb4ad; letter-spacing: -.02em; filter: grayscale(1); opacity: .8; transition: opacity .2s, color .2s; }
.logo-mark b { color: var(--teal); }
.logo-mark:hover { opacity: 1; color: var(--muted); }

/* value / pricing objection */
.value { background: var(--cream-2); }
.big-sub { font-size: 1.2rem !important; color: var(--ink) !important; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 34px 28px; text-align: center; }
.value-num { font-size: 2.6rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 12px; }
.value-card p { color: var(--muted); }
.value-foot { text-align: center; margin-top: 40px; font-size: 1.2rem; font-weight: 600; color: var(--ink); }

/* cta band */
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 760px; margin-inline: auto; }
.cta-band p { font-size: 1.1rem; margin-top: 16px; max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 34px; }
.cta-mail { color: rgba(255,255,255,.9); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.cta-mail:hover { color: #fff; }

/* faq */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--teal-100); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-icon::before { top: 8px; inset-inline-start: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; inset-inline-start: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: var(--cream); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: rgba(255,253,248,.7); margin: 16px 0 22px; max-width: 360px; font-size: .96rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,253,248,.72); padding: 6px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,253,248,.6); font-size: .88rem;
}

/* ---------- reveal on scroll ----------
   مهم: المحتوى ظاهر افتراضيًا. الإخفاء يصير فقط لو الجافاسكربت اشتغل (html.js)
   عشان لو تعطّل الجافاسكربت لأي سبب، الموقع يظل ظاهر مو فاضي. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy, .split-copy { min-width: 0; }
  .hero-visual { min-height: 320px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split-visual { order: 0; }
  .cards-3, .benefit-list, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  /* القائمة على الجوال */
  .nav.open {
    display: flex; position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 14px; font-size: 1rem; }

  .cards-3, .cards-2, .benefit-list, .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px 28px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* الأزرار الكبيرة بعرض كامل على الجوال — أنظف وما تطلع برّا الشاشة */
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }

  /* بطاقات الهيرو العائمة: أصغر وداخل الحدود تمامًا */
  .float-card { padding: 9px 12px; gap: 8px; }
  .float-card strong { font-size: .88rem; }
  .float-card small { font-size: .72rem; }
  .fc-ico { font-size: 1.1rem; }
  .float-card--a { inset-inline-start: 4px; top: 4px; }
  .float-card--b { inset-inline-end: 4px; bottom: 10px; }

  .footer-bottom { justify-content: center; text-align: center; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .feature-card, .float-card { transition: none; }
}

/* للسماح بظهور القائمة المنبثقة فوق المحتوى */
.header-inner { position: relative; }
