@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
  --primary: #1a2e5a;
  --primary-dark: #0f1d3a;
  --secondary: #c9972a;
  --secondary-dark: #a87d20;
  --white: #ffffff;
  --light: #f5f7fa;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --green: #25D366;
  --green-dark: #1DA851;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(26,46,90,0.10);
  --shadow-lg: 0 8px 40px rgba(26,46,90,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: #fff;
  color: #1a2e5a;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
body.admin-bar .site-header { top: 32px; }
.site-header .site-nav a { color: rgba(255,255,255,.88); }
.site-header .site-nav a:hover { color: var(--secondary); }
.site-header .site-logo span { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.site-header .btn-whatsapp { box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo img { height: 60px; width: 60px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-size: 1rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Cairo', sans-serif; font-weight: 700; border: none; cursor: pointer; border-radius: 10px; transition: all .2s; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; padding: 10px 22px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; padding: 10px 22px; }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-whatsapp { background: var(--green); color: #fff; padding: 10px 22px; }
.btn-whatsapp:hover { background: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; padding: 10px 22px; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-lg { font-size: 1.125rem; padding: 14px 32px; border-radius: 12px; }

/* ─── HERO ─────────────────────────────────── */
.hero-section {
  background: var(--primary);
  color: #fff;
  padding: 150px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: row; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: var(--secondary); color: #fff; padding: 6px 18px; border-radius: 999px; font-size: .875rem; font-weight: 700; margin-bottom: 20px; }
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--secondary); }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { flex: 1; }
.hero-image-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.12); position: relative; aspect-ratio: 4/3; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-caption { position: absolute; bottom: 20px; right: 20px; left: 20px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.1rem; font-weight: 700; }
.hero-image-caption svg { color: var(--secondary); flex-shrink: 0; }

/* ─── STATS ─────────────────────────────────── */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 16px; border-left: 1px solid var(--border); }
.stat-item:last-child { border-left: none; }
.stat-icon { color: var(--secondary); margin-bottom: 8px; }
.stat-icon svg { width: 30px; height: 30px; }
.stat-value { font-size: 2.25rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: .875rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ─── SECTION COMMON ─────────────────────────── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-title { font-size: 2.25rem; font-weight: 900; color: var(--primary); margin-bottom: 14px; }
.section-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }

/* ─── SERVICES ─────────────────────────────────── */
.services-section { padding: 80px 0; background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card-img { height: 180px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-body { padding: 24px; }
.service-icon { width: 48px; height: 48px; background: rgba(26,46,90,.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--primary); }
.service-icon svg { width: 24px; height: 24px; }
.service-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.service-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ─── SECTION CTA ─────────────────────────────── */
.section-cta { padding: 32px 0; background: linear-gradient(90deg, rgba(26,46,90,.04), rgba(201,151,42,.08), rgba(26,46,90,.04)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta-inner { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.section-cta-text { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* ─── FEATURES ─────────────────────────────────── */
.features-section { padding: 80px 0; }
.features-inner { display: flex; align-items: center; gap: 64px; }
.features-text { flex: 1; }
.features-title { font-size: 2.25rem; font-weight: 900; color: var(--primary); margin-bottom: 14px; }
.features-desc { font-size: 1.05rem; color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.features-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 14px; background: var(--light); border-radius: 12px; padding: 12px 18px; }
.feature-check { color: var(--secondary); flex-shrink: 0; }
.feature-check svg { width: 22px; height: 22px; }
.feature-text { font-size: 1rem; font-weight: 600; }
.features-images { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features-images img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.features-images img:first-child { aspect-ratio: 4/5; }
.features-images img:last-child { aspect-ratio: 4/5; margin-top: 32px; }

/* ─── COVERAGE ─────────────────────────────────── */
.coverage-section { padding: 72px 0; background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.coverage-section::after { content: ''; position: absolute; left: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.04); }
.coverage-title { font-size: 2.25rem; font-weight: 900; text-align: center; margin-bottom: 12px; }
.coverage-subtitle { text-align: center; color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 1.05rem; }
.coverage-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.coverage-tag { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; backdrop-filter: blur(4px); }

/* ─── GALLERY ─────────────────────────────────── */
.gallery-section { padding: 80px 0; background: var(--light); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.09); }

/* ─── TESTIMONIALS ─────────────────────────────── */
.testimonials-section { padding: 80px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; transition: box-shadow .3s; }
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-quote { position: absolute; top: 16px; left: 20px; font-size: 4rem; color: rgba(201,151,42,.15); font-family: serif; line-height: 1; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--secondary); }
.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-text { font-size: .95rem; color: #374151; line-height: 1.75; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.testimonial-name { font-weight: 800; font-size: 1rem; }
.testimonial-role { font-size: .82rem; color: var(--muted); }

/* ─── FINAL CTA ─────────────────────────────────── */
.final-cta-section { padding: 80px 0; }
.final-cta-box { background: var(--primary); border-radius: 24px; padding: 72px 48px; text-align: center; position: relative; overflow: hidden; }
.final-cta-box::before { content: ''; position: absolute; inset: 0; opacity: .08; background-size: cover; background-position: center; }
.final-cta-title { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.final-cta-desc { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 40px; position: relative; z-index: 1; }
.final-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer { background: var(--light); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-inner { text-align: center; }
.footer-logo { margin: 0 auto 16px; width: 72px; height: 72px; object-fit: contain; }
.footer-name { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.footer-tagline { color: var(--muted); max-width: 420px; margin: 0 auto 28px; font-size: .95rem; line-height: 1.6; }
.footer-contact { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: .95rem; }
.footer-contact span { display: flex; align-items: center; gap: 6px; }
.footer-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; }
.footer-copy { font-size: .82rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--border); }

/* ─── LEFT FIXED CONTACT SIDEBAR ───────────────── */
.floating-contact-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: stretch;
  gap: 0;
  opacity: 1;
  pointer-events: auto;
}
.floating-sidebar-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .6px;
  padding: 14px 9px;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-lg);
}
.floating-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 8px 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.65);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: var(--shadow-lg);
}
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 126px;
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: .95rem;
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.floating-btn:hover { transform: translateX(5px); box-shadow: 0 10px 26px rgba(0,0,0,.20); filter: brightness(1.04); }
.floating-btn-wa { background: var(--green); }
.floating-btn-call { background: var(--primary); }
.floating-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; }
  .hero-title { font-size: 2.5rem; }
  .features-inner { flex-direction: column; }
}
@media (max-width: 768px) {
  body.admin-bar .site-header { top: 46px; }
  .site-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-box { padding: 40px 24px; }
  .final-cta-title { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .footer-contact { flex-direction: column; gap: 12px; }
  .floating-contact-sidebar { top: auto; left: 12px; right: 12px; bottom: 14px; transform: none; justify-content: center; }
  .floating-sidebar-label { display: none; }
  .floating-btns { flex: 1; flex-direction: row; justify-content: center; gap: 10px; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.65); }
  .floating-btn { min-width: 0; flex: 1; justify-content: center; border-radius: 12px; padding: 12px 10px; font-size: .9rem; }
  .site-footer { padding-bottom: 96px; }
}

/* ─── HEADER SECTIONS DRAWER / MOBILE TUNING ───────────────────── */
.header-inner { gap: 16px; }
.site-nav { flex: 1; justify-content: center; }
.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: .92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
}
.header-menu-toggle:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); border-color: rgba(255,255,255,.70); }
.header-menu-toggle svg { width: 21px; height: 21px; flex-shrink: 0; }

body.sections-drawer-open { overflow: hidden; }
.sections-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.sections-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  width: min(340px, 86vw);
  background: rgba(255,255,255,.96);
  color: var(--primary);
  box-shadow: -14px 0 40px rgba(0,0,0,.20);
  transform: translateX(105%);
  transition: transform .28s ease;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.admin-bar .sections-drawer { top: 32px; }
body.sections-drawer-open .sections-drawer-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
body.sections-drawer-open .sections-drawer { transform: translateX(0); }
.sections-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
}
.sections-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--light);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sections-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sections-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--light);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  transition: background .2s, color .2s, transform .2s;
}
.sections-drawer-nav a:hover { background: var(--primary); color: #fff; transform: translateX(-3px); }
.sections-drawer-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sections-drawer-actions .btn {
  justify-content: center;
  padding: 11px 12px;
  font-size: .92rem;
}

@media (max-width: 768px) {
  body.admin-bar .sections-drawer { top: 46px; }
  .header-inner { height: 64px; gap: 8px; padding-inline: 10px; }
  .site-logo img { height: 48px; width: 48px; }
  .header-menu-toggle { height: 36px; padding: 0 9px; font-size: .78rem; border-radius: 10px; gap: 4px; }
  .header-menu-toggle svg { width: 18px; height: 18px; }
  .site-header .header-cta { gap: 6px; }
  .site-header .header-cta .btn-whatsapp {
    padding: 7px 10px;
    min-height: 34px;
    border-radius: 9px;
    gap: 5px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
  }
  .site-header .header-cta .btn-whatsapp svg { width: 15px; height: 15px; }
}

@media (max-width: 480px) {
  .header-inner { padding-inline: 8px; }
  .header-menu-toggle span { display: none; }
  .header-menu-toggle { width: 36px; padding: 0; }
  .site-header .header-cta .btn-whatsapp {
    padding: 7px 9px;
    font-size: .74rem;
    min-height: 32px;
  }
  .site-header .header-cta .btn-whatsapp svg { width: 14px; height: 14px; }
  .sections-drawer { width: min(300px, 88vw); padding: 18px; }
}


/* ─── PHONE RESPONSIVE POLISH v1.5 ────────────────────────────────
   تحسين شامل لشكل الموقع على الهاتف ومنع خروج العناصر خارج الشاشة */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

* { min-width: 0; }

.hero-text,
.hero-image,
.features-text,
.features-images,
.service-card,
.testimonial-card,
.final-cta-box,
.section-cta-inner {
  min-width: 0;
}

@media (max-width: 900px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    background: linear-gradient(180deg, rgba(15, 29, 58, .42), rgba(15, 29, 58, .12));
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .header-inner {
    height: 62px;
    gap: 8px;
  }

  .site-logo {
    flex: 0 0 auto;
    max-width: 132px;
    overflow: hidden;
  }

  .site-logo img {
    width: 46px;
    height: 46px;
  }

  .site-logo span {
    display: block;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem !important;
  }

  .header-menu-toggle {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: .78rem;
  }

  .header-cta {
    flex: 0 0 auto;
    margin-inline-start: auto;
  }

  .site-header .header-cta .btn-whatsapp {
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: .74rem;
    gap: 4px;
    white-space: nowrap;
  }

  .site-header .header-cta .btn-whatsapp svg {
    width: 14px;
    height: 14px;
  }

  .hero-section {
    padding: 102px 0 56px;
    min-height: auto;
  }

  .hero-inner {
    gap: 26px;
    text-align: center;
  }

  .hero-badge {
    font-size: .75rem;
    padding: 5px 13px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
    line-height: 1.28;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: .95rem;
    line-height: 1.85;
    margin-bottom: 24px;
  }

  .hero-btns,
  .final-cta-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-btns .btn,
  .final-cta-btns .btn,
  .section-cta-inner .btn,
  .footer-btns .btn {
    justify-content: center;
    text-align: center;
  }

  .btn-lg {
    min-height: 44px;
    padding: 11px 13px;
    font-size: .9rem;
    border-radius: 11px;
  }

  .hero-image {
    width: 100%;
  }

  .hero-image-wrap {
    aspect-ratio: 16 / 11;
    border-radius: 18px;
  }

  .hero-image-caption {
    right: 12px;
    left: 12px;
    bottom: 12px;
    font-size: .9rem;
    justify-content: center;
  }

  .stats-bar {
    padding: 18px 0;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-item {
    border-left: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 8px;
    background: #fff;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: .78rem;
  }

  .services-section,
  .features-section,
  .gallery-section,
  .testimonials-section,
  .final-cta-section {
    padding: 52px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-title,
  .features-title,
  .coverage-title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.35;
  }

  .section-desc,
  .features-desc,
  .coverage-subtitle,
  .final-cta-desc {
    font-size: .92rem;
    line-height: 1.8;
  }

  .services-grid,
  .testimonials-grid {
    gap: 16px;
  }

  .service-card {
    border-radius: 18px;
  }

  .service-card-img {
    height: 170px;
  }

  .service-card-body {
    padding: 18px;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .service-desc {
    font-size: .86rem;
    line-height: 1.75;
  }

  .section-cta {
    padding: 22px 0;
  }

  .section-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .section-cta-text {
    grid-column: 1 / -1;
    text-align: center;
    font-size: .98rem;
    line-height: 1.6;
  }

  .section-cta-inner .btn {
    min-height: 42px;
    padding: 9px 10px;
    font-size: .86rem;
  }

  .features-inner {
    gap: 28px;
  }

  .features-list {
    gap: 10px;
  }

  .feature-item {
    align-items: flex-start;
    padding: 12px 13px;
    border-radius: 13px;
  }

  .feature-text {
    font-size: .9rem;
    line-height: 1.55;
  }

  .features-images {
    width: 100%;
    gap: 10px;
  }

  .features-images img {
    border-radius: 14px;
  }

  .features-images img:last-child {
    margin-top: 18px;
  }

  .coverage-section {
    padding: 52px 0;
  }

  .coverage-tags {
    gap: 8px;
    justify-content: center;
  }

  .coverage-tag {
    padding: 7px 12px;
    font-size: .8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-item {
    border-radius: 14px;
  }

  .testimonial-card {
    padding: 20px;
    border-radius: 18px;
  }

  .testimonial-quote {
    font-size: 3rem;
  }

  .testimonial-text {
    font-size: .9rem;
    line-height: 1.8;
  }

  .final-cta-box {
    padding: 38px 18px;
    border-radius: 20px;
  }

  .final-cta-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.35;
  }

  .footer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    padding-inline: 0;
  }

  .site-logo {
    max-width: 76px;
  }

  .site-logo img {
    width: 42px;
    height: 42px;
  }

  .header-menu-toggle span {
    display: none;
  }

  .header-menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
  }

  .site-header .header-cta .btn-whatsapp {
    padding: 7px 8px;
    min-height: 32px;
    font-size: .70rem;
  }

  .site-header .header-cta .btn-whatsapp span {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-title br {
    display: none;
  }

  .hero-btns,
  .final-cta-btns {
    grid-template-columns: 1fr;
  }

  .hero-btns .btn,
  .final-cta-btns .btn {
    width: 100%;
  }

  .hero-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-card-img {
    height: 160px;
  }

  .section-cta-inner,
  .footer-btns {
    grid-template-columns: 1fr 1fr;
  }

  .section-cta-inner .btn,
  .footer-btns .btn {
    min-width: 0;
    padding-inline: 8px;
  }

  .final-cta-box {
    padding: 34px 16px;
  }

  .footer-contact {
    align-items: center;
    text-align: center;
  }

  .sections-drawer {
    width: min(310px, 88vw);
    padding: 18px 16px;
  }

  .sections-drawer-nav a {
    min-height: 44px;
    font-size: .93rem;
  }

  .sections-drawer-actions {
    grid-template-columns: 1fr;
  }

  .sections-drawer-actions .btn {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-desc,
  .section-desc,
  .features-desc,
  .coverage-subtitle,
  .final-cta-desc,
  .footer-tagline {
    font-size: .88rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }

  .coverage-tag {
    font-size: .76rem;
    padding: 6px 10px;
  }

  .floating-contact-sidebar {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .floating-btns {
    gap: 8px;
    padding: 7px;
  }

  .floating-btn {
    padding: 10px 8px;
    font-size: .82rem;
    min-height: 42px;
  }

  .floating-btn svg {
    width: 18px;
    height: 18px;
  }

  .site-footer {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-logo img {
    width: 38px;
    height: 38px;
  }

  .header-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header .header-cta .btn-whatsapp span {
    display: none;
  }

  .site-header .header-cta .btn-whatsapp {
    width: 34px;
    justify-content: center;
    padding: 0;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: .72rem;
  }

  .section-cta-inner,
  .footer-btns {
    grid-template-columns: 1fr;
  }
}

/* ─── TOP BAR FINAL LAYOUT: WhatsApp Right / Menu Left / Company Center ─── */
.site-logo-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}
.site-logo-centered .site-company-name {
  display: block;
  color: #fff !important;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-logo-centered .site-logo-img {
  flex: 0 0 auto;
}

/* فتح قائمة الأقسام من الشمال */
.sections-drawer {
  right: auto;
  left: 0;
  box-shadow: 14px 0 40px rgba(0,0,0,.20);
  transform: translateX(-105%);
}
body.sections-drawer-open .sections-drawer { transform: translateX(0); }
.sections-drawer-nav a:hover { transform: translateX(3px); }

@media (max-width: 900px) {
  .site-header .header-inner {
    position: relative;
    justify-content: center;
    min-height: 62px;
    padding-inline: 70px;
  }

  /* زر الواتساب في يمين الشريط العلوي */
  .site-header .header-cta {
    position: absolute;
    right: 14px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3;
  }

  /* زر الشريط الجانبي / الأقسام في شمال الشريط العلوي */
  .site-header .header-menu-toggle {
    position: absolute;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
  .site-header .header-menu-toggle:hover { transform: translateY(-50%); }

  /* اسم الشركة في منتصف الشريط العلوي */
  .site-header .site-logo-centered {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(52vw, 220px);
    max-width: calc(100vw - 160px);
    z-index: 2;
    margin: 0;
  }

  .site-header .site-logo-centered .site-logo-img {
    display: none;
  }

  .site-header .site-logo-centered .site-company-name {
    width: 100%;
    max-width: 100%;
    font-size: clamp(.88rem, 3.8vw, 1.08rem) !important;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-header .header-inner {
    padding-inline: 58px;
  }
  .site-header .header-cta {
    right: 10px;
  }
  .site-header .header-menu-toggle {
    left: 10px;
  }
  .site-header .site-logo-centered {
    width: min(50vw, 180px);
    max-width: calc(100vw - 132px);
  }
  .site-header .site-logo-centered .site-company-name {
    font-size: .86rem !important;
  }
}


/* ─── HEADER LOGO SLOT + FLOATING VISUAL EFFECTS v1.7 ─────────────
   تحويل مكان واتساب في الشريط العلوي إلى مكان لوجو قابل للتغيير من التخصيص */
.header-logo-slot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: 0 14px 35px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.80);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.header-logo-slot::before {
  content: '';
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 90deg, transparent, rgba(201,151,42,.55), transparent 34%, rgba(255,255,255,.45), transparent 65%);
  opacity: .34;
  animation: headerLogoGlow 7s linear infinite;
  z-index: -1;
}
.header-logo-slot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  z-index: -1;
}
.header-logo-slot:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(0,0,0,.20), 0 0 0 4px rgba(201,151,42,.13);
  border-color: rgba(201,151,42,.70);
}
.header-logo-slot img {
  width: 100%;
  height: 100%;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
  padding: 5px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}
.header-logo-placeholder {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30);
}

@keyframes headerLogoGlow {
  to { transform: rotate(360deg); }
}

/* تأثيرات بصرية لأزرار الواتساب والاتصال العائمة */
.floating-btn {
  isolation: isolate;
  transform: translateZ(0);
}
.floating-btn span,
.floating-btn svg {
  position: relative;
  z-index: 2;
}
.floating-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.05) 36%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.05) 64%, transparent 100%);
  transform: translateX(115%);
  animation: floatingButtonShine 3.2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
.floating-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--pulse-color, rgba(255,255,255,.30));
  animation: floatingButtonPulse 2.4s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}
.floating-btn-wa {
  --pulse-color: rgba(37,211,102,.42);
  background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.30), transparent 24%), linear-gradient(135deg, #2be477, var(--green-dark));
}
.floating-btn-call {
  --pulse-color: rgba(26,46,90,.36);
  background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.26), transparent 25%), linear-gradient(135deg, #29487e, var(--primary-dark));
}
.floating-btn svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.22));
  animation: floatingIconBeat 1.9s ease-in-out infinite;
}
.floating-btn-call svg { animation-delay: .35s; }
.floating-btn:hover svg { animation-duration: .9s; }

@keyframes floatingButtonShine {
  0%, 56% { transform: translateX(115%); }
  78%, 100% { transform: translateX(-115%); }
}
@keyframes floatingButtonPulse {
  0% { box-shadow: 0 0 0 0 var(--pulse-color, rgba(255,255,255,.30)); opacity: 1; }
  70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); opacity: .9; }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); opacity: 1; }
}
@keyframes floatingIconBeat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.12) rotate(-4deg); }
  65% { transform: scale(1.03) rotate(3deg); }
}

@media (max-width: 900px) {
  .site-header .header-inner {
    padding-inline: 70px;
  }
  /* مكان اللوجو على يمين الشريط العلوي بدل زر الواتساب */
  .site-header .header-logo-slot {
    position: absolute;
    right: 14px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 15px;
    z-index: 3;
  }
  .site-header .header-logo-slot:hover {
    transform: translateY(-50%) scale(1.03);
  }
  .site-header .header-logo-slot::after { border-radius: 13px; }
  .site-header .header-logo-slot img {
    max-width: 40px;
    max-height: 40px;
    padding: 4px;
  }
  .site-header .header-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.08rem;
  }
  .site-header .header-cta { display: none !important; }
}

@media (max-width: 420px) {
  .site-header .header-inner {
    padding-inline: 58px;
  }
  .site-header .header-logo-slot {
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .site-header .header-logo-slot img {
    max-width: 37px;
    max-height: 37px;
  }
  .site-header .header-logo-placeholder {
    width: 33px;
    height: 33px;
    border-radius: 11px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-logo-slot::before,
  .floating-btn::before,
  .floating-btn::after,
  .floating-btn svg {
    animation: none !important;
  }
}
