/* ============================================================
   شركة الندي — طارد حمام
   تصميم عصري بسيط: خلفية فاتحة + أخضر داكن واحد + أخضر الواتساب
   ============================================================ */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #16211d;
  --ink-soft: #5b6661;
  --line: #e7e5e0;
  --brand: #0e5e4a;
  --brand-dark: #0a4536;
  --brand-tint: #eef4f2;
  --wa: #158046;
  --wa-dark: #0f6e3c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(22, 33, 29, 0.07);
  --container: 1140px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* مساحة شريط الموبايل */
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.container.narrow { width: min(820px, 100% - 40px); }

.num { font-weight: 700; letter-spacing: 0.02em; }

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn .ic { flex: none; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(21, 128, 70, 0.28); }
.btn-wa:hover { background: var(--wa-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1ef; }

/* ---------------- الهيدر ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(22, 33, 29, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.15rem; font-weight: 700; }
.logo-text small { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; }

.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--brand); }

.header-cta { margin-inline-start: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-inline-start: auto;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- الهيرو ---------------- */
.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--brand); }

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.cta-row.center { justify-content: center; }

.hero-phone {
  margin-top: 20px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.hero-phone a {
  color: var(--ink);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 1px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-trust .ic { color: var(--brand); }

/* رسم الهيرو */
.visual-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-art { width: 100%; height: auto; }

.visual-chip {
  position: absolute;
  bottom: -18px;
  inset-inline-start: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 94, 74, 0.3);
}

/* ---------------- شريط المميزات ---------------- */
.trust-strip { padding: 34px 0 10px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.trust-item .ic { color: var(--brand); flex: none; margin-top: 3px; }
.trust-item strong { display: block; font-size: 0.97rem; }
.trust-item span { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------------- الأقسام ---------------- */
.section { padding: 76px 0; }

.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 46px; }

.kicker {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.35;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* بطاقات الخدمات */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d8d6d0;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 9px; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }

.cards-note {
  margin-top: 30px;
  font-size: 0.97rem;
  color: var(--ink-soft);
  text-align: center;
}
.cards-note a {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1.5px solid var(--brand);
}

/* لماذا الندي */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-item {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.why-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.why-item h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 0.94rem; color: var(--ink-soft); }

/* خطوات العمل */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.step-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* الأسئلة الشائعة */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.section-alt .faq-item { background: var(--surface); }
.faq-item[open] { border-color: var(--brand); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 20px;
  width: 12px;
  height: 12px;
  border-inline-end: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------------- نداء أخير ---------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 60px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.cta-band > p { color: rgba(255, 255, 255, 0.72); margin-top: 12px; font-size: 1.05rem; }

.cta-number {
  display: inline-block;
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 26px 0 30px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--wa);
  transition: color 0.2s ease;
}
.cta-number:hover { color: #7ee2a8; }

/* ---------------- الفوتر ---------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-contact .num { font-size: 1.15rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------- شريط الموبايل ---------------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; }

/* ---------------- ظهور تدريجي ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ============================================================
   الاستجابة
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: 84px; }

  .nav {
    position: absolute;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(22, 33, 29, 0.08);
    padding: 6px 20px 14px;
    display: none;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 4px;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .lead { font-size: 1.02rem; }

  .cta-row .btn { flex: 1; min-width: 150px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }

  .trust-grid,
  .cards-grid,
  .why-grid,
  .steps { grid-template-columns: 1fr; }

  .cta-band { padding: 46px 22px; border-radius: 22px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .mobile-bar { display: flex; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .hero-trust { flex-direction: column; gap: 10px; }
  .visual-chip { inset-inline-start: 16px; font-size: 0.8rem; }
}
