/* ============================================================
   شركة التنفيذ — صفحة طلب خدمة
   تصميم متجاوب لجميع الشاشات (موبايل / تابلت / ديسكتوب)
   مُحسّن للأداء وسرعة التحميل (PageSpeed)
   ============================================================ */

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

:root {
  --primary: #1e5fbf;
  --primary-dark: #164a96;
  --primary-light: #3b7ed8;
  --primary-soft: #e8f0fc;
  --accent: #f7c948;
  --whatsapp: #25d366;
  --text-dark: #1a2238;
  --text-muted: #5a6378;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e5e9f0;
  --shadow-sm: 0 2px 8px rgba(30, 95, 191, 0.08);
  --shadow-md: 0 6px 24px rgba(30, 95, 191, 0.12);
  --shadow-lg: 0 12px 40px rgba(30, 95, 191, 0.18);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.header-container {
  max-width: 1280px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: inline-block; padding: 8px 12px;
  font-size: 14.5px; font-weight: 600; color: var(--text-dark);
  border-radius: 8px; transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a.active-page { background: var(--primary); color: #fff; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 9px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.header-cta svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; background: var(--primary-soft); color: var(--primary);
  border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 48px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.page-hero p { font-size: clamp(15px, 2vw, 18px); opacity: 0.95; max-width: 720px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   ORDER FORM WRAPPER
   ============================================================ */
.order-wrapper { padding: 0 0 48px; margin-top: -32px; }

/* ============================================================
   REQUEST FORM (.anfz-req prefix to avoid theme conflicts)
   ============================================================ */
.anfz-req * { box-sizing: border-box; }
.anfz-req {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: inherit;
  color: var(--text-dark);
}
.anfz-req-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 28px 24px; text-align: center;
}
.anfz-req-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  padding: 6px 14px; border-radius: 30px; font-size: 13px;
  font-weight: 600; margin-bottom: 12px;
}
.anfz-req-badge svg { width: 14px; height: 14px; }
.anfz-req-header h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 6px; color: #fff; }
.anfz-req-header p { font-size: 14px; opacity: 0.95; margin: 0; }

.anfz-req-body { padding: 28px 24px; }

.anfz-req-row {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
.anfz-req-row.single { grid-template-columns: 1fr; }

.anfz-req-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.anfz-req-label {
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 6px;
}
.anfz-req-label svg { width: 16px; height: 16px; color: var(--primary); }
.anfz-req-label .opt { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.anfz-req-input,
.anfz-req-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.anfz-req-input:focus,
.anfz-req-textarea:focus {
  outline: 0; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,95,191,.12);
}
.anfz-req-textarea { resize: vertical; min-height: 90px; }
.anfz-req-input.invalid,
.anfz-req-textarea.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.anfz-req-error {
  font-size: 12px; color: #dc2626; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

.anfz-req-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.anfz-req-chip {
  padding: 8px 14px; border-radius: 30px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-dark); cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.anfz-req-chip:hover { border-color: var(--primary-light); color: var(--primary); }
.anfz-req-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(30,95,191,.25);
}

.anfz-req-loc-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.anfz-req-iconbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--primary-soft);
  color: var(--primary); font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap;
}
.anfz-req-iconbtn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.anfz-req-iconbtn svg { width: 15px; height: 15px; }

.anfz-req-submit {
  width: 100%; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff; font-family: inherit; font-size: 17px; font-weight: 800;
  border: 0; cursor: pointer;
  box-shadow: 0 8px 22px rgba(37,211,102,.35);
  transition: transform .15s, box-shadow .15s;
}
.anfz-req-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.45); }
.anfz-req-submit svg { width: 22px; height: 22px; }

.anfz-req-success {
  margin-top: 14px; padding: 12px 16px;
  background: #ecfdf5; border: 1.5px solid #10b981;
  border-radius: 10px; color: #065f46; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.anfz-req-success svg { width: 18px; height: 18px; flex-shrink: 0; }

.anfz-req-help {
  margin-top: 8px; padding: 10px 12px;
  background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px;
  font-size: 12px; color: #78350f; line-height: 1.6;
}

@media (max-width: 640px) {
  .anfz-req-row { grid-template-columns: 1fr; }
  .anfz-req-body { padding: 22px 16px; }
  .anfz-req-header { padding: 22px 16px; }
  .anfz-req-loc-bar { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.why-section { padding: 64px 0; background: var(--bg-white); }
.why-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.why-eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 30px; font-size: 13px; font-weight: 700;
}
.section-title {
  text-align: center; font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800; color: var(--text-dark);
  margin-bottom: 14px; position: relative; padding-bottom: 16px;
}
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--accent); border-radius: 2px;
}
.why-sub { font-size: 15.5px; color: var(--text-muted); line-height: 1.85; margin-top: 10px; }
.why-sub strong { color: var(--primary); font-weight: 800; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; margin-top: 8px;
}
.feature-card {
  background: var(--bg-light); padding: 28px 22px; border-radius: 14px;
  text-align: center; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.feature-card p strong { color: var(--primary); font-weight: 700; }

/* Trust bar */
.trust-bar {
  margin-top: 44px; padding: 26px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  box-shadow: var(--shadow-md);
}
.trust-item { text-align: center; color: #fff; }
.trust-num {
  font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--accent);
  line-height: 1.1; margin-bottom: 4px;
}
.trust-label { font-size: 13.5px; font-weight: 600; opacity: .95; }

@media (max-width: 640px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 22px 16px; }
}

/* ============================================================
   FOOTER (نفس التصميم السابق)
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a2c52 100%);
  color: #d8dde8; padding-top: 56px; margin-top: 0;
}
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 16px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
}
.footer-col { min-width: 0; }
.footer-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 18px; position: relative; padding-bottom: 10px;
}
.footer-title::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 40px; height: 3px; background: var(--accent); border-radius: 2px;
}
.footer-about { font-size: 14px; line-height: 1.8; color: #b8c0d2; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255, 255, 255, 0.1); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--accent); color: var(--text-dark); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a {
  color: #b8c0d2; font-size: 14px;
  transition: color .2s, padding-right .2s;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent); padding-right: 6px; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #b8c0d2;
}
.footer-contact .icon {
  color: var(--accent); margin-top: 2px; flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-contact .icon svg { width: 16px; height: 16px; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  background: rgba(0, 0, 0, 0.25); padding: 16px 0;
  text-align: center; font-size: 13px; color: #9ba4b8;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-buttons {
  position: fixed; bottom: 20px; left: 16px; z-index: 99;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 50px; color: #fff;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.float-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.float-btn.whatsapp { background: var(--whatsapp); }
.float-btn.call { background: var(--primary); }
.float-btn svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav a { padding: 8px 10px; font-size: 13.5px; }
  .header-cta { padding: 8px 12px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; order: 2; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #fff; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 600px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; border-radius: 8px; text-align: right; }
}
@media (max-width: 768px) {
  .page-hero { padding: 36px 0 48px; }
  .order-wrapper { padding: 0 0 36px; margin-top: -28px; }
  .why-section { padding: 44px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-title::after { right: 50%; transform: translateX(50%); }
  .footer-social, .footer-contact li { justify-content: center; }
  .footer-contact li { justify-content: center; text-align: right; }
  .floating-buttons { bottom: 12px; left: 12px; }
  .float-btn span { display: none; }
  .float-btn { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
}
@media (max-width: 480px) {
  .header-container { padding: 8px 12px; gap: 8px; }
  .logo-img { height: 42px; max-width: 130px; }
  .container { padding: 0 12px; }
}
