/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0e6b5c;
  --primary-dark: #0a5548;
  --primary-light: #e6f4f1;
  --accent: #d98e2b;
  --accent-dark: #b8731d;
  --text: #1c2a2f;
  --text-muted: #5b6b70;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --border: #e2eae7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(14, 107, 92, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 107, 92, 0.14);
  --font: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: 'Cairo', var(--font); line-height: 1.4; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  min-height: 46px;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-xl { padding: 18px 40px; font-size: 1.15rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; min-height: 38px; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 12px; font-size: 1.3rem; font-family: 'Cairo', sans-serif;
}
.logo-text { font-size: 1.1rem; }
.logo-text strong { color: var(--primary); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-call { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a2f28;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,38,32,0.92) 0%, rgba(6,38,32,0.72) 55%, rgba(6,38,32,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 0;
  max-width: 680px;
  margin-inline: start;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-lead { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 28px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,0.88); font-size: 0.9rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-muted); font-size: 1.02rem; margin-top: 8px; }

/* ========== INTRO ========== */
.intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.intro-text p { margin-bottom: 16px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.95; }
.intro-side { display: grid; gap: 16px; }
.side-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  border-inline-start: 4px solid var(--primary);
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--primary-dark); }
.side-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ========== SERVICE CARDS ========== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-icon {
  font-size: 1.9rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--primary-light);
  border-radius: 14px;
  margin-bottom: 4px;
}
.service-card h3 { font-size: 1.08rem; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); flex-grow: 0; }
.service-card ul { display: grid; gap: 4px; margin: 4px 0 6px; }
.service-card ul li { font-size: 0.82rem; color: var(--text-muted); padding-inline-start: 16px; position: relative; }
.service-card ul li::before { content: '•'; color: var(--primary); position: absolute; inset-inline-start: 0; font-weight: 900; }
.card-link { font-weight: 700; font-size: 0.85rem; margin-top: auto; }
.service-card .btn { margin-top: 6px; align-self: flex-start; }

/* ========== DETAIL SECTIONS ========== */
.detail-head { margin-bottom: 24px; }
.detail-body { max-width: 900px; }
.detail-body p { color: var(--text-muted); margin-bottom: 14px; font-size: 1.02rem; line-height: 1.95; }
.detail-body h3 {
  margin: 26px 0 8px;
  color: var(--primary-dark);
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--accent);
  font-size: 1.12rem;
}
.detail-cta {
  margin-top: 30px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.detail-cta p { margin: 0; font-weight: 600; color: var(--text); }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.88rem; color: var(--text-muted); }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -14px; inset-inline-start: 50%;
  transform: translateX(50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}
.step-icon { font-size: 1.6rem; margin-bottom: 6px; }
.step h3 { font-size: 0.95rem; margin-bottom: 4px; }
.step p { font-size: 0.82rem; color: var(--text-muted); }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #ddd;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; inset-inline: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 30px 16px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 18px; inset-inline-end: 22px;
  background: rgba(255,255,255,0.15); color: #fff;
  border: none; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ========== FAQ ========== */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-inline-end: 48px;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s;
}
.faq-item[open] summary { background: var(--primary-light); color: var(--primary-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ========== CONTACT CTA ========== */
.contact-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.cta-box { text-align: center; color: #fff; padding: 30px 0; }
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1.05rem; }
.cta-box .btn-primary { background: var(--accent); border-color: var(--accent); }
.cta-box .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cta-note { margin-top: 18px; font-size: 0.95rem; }
.cta-note strong { color: #fff; background: rgba(255,255,255,0.15); padding: 2px 10px; border-radius: 6px; }

/* ========== FOOTER ========== */
.site-footer { background: #0d2b26; color: rgba(255,255,255,0.82); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text strong { color: var(--accent); }
.footer-about p { font-size: 0.92rem; margin-top: 14px; line-height: 1.9; }
.footer-phone { font-weight: 700; }
.footer-phone a { color: var(--accent); }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-links ul { display: grid; gap: 6px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-design p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-design p strong { color: #fff; display: block; margin-bottom: 4px; }
.footer-design a { color: var(--accent); }
.footer-design .btn { margin-top: 10px; color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-design .btn:hover { background: #fff; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: 8px; font-size: 1rem; }
  .btn-call { padding: 8px 14px; font-size: 0.85rem; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 60px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-points { flex-direction: column; gap: 8px; }
  .detail-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .detail-cta .btn { width: 100%; }
  .btn-xl { padding: 16px 24px; font-size: 1rem; width: 100%; }
  .faq-item summary { font-size: 0.95rem; padding: 16px 18px; padding-inline-end: 44px; }
  .faq-item p { padding: 0 18px 16px; font-size: 0.9rem; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ========== FLOATING ACTION BUTTONS ========== */
.floating-actions {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px; /* يسار الشاشة في RTL */
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.fab:active {
  transform: scale(0.96);
}

.fab svg {
  display: block;
  pointer-events: none;
}

/* زر الاتصال - أخضر داكن */
.fab-call {
  background: linear-gradient(135deg, #0e6b5c 0%, #0a5548 100%);
  animation: fabPulse 2.4s infinite;
}

/* زر الواتساب - أخضر واتساب */
.fab-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: fabPulse 2.4s infinite 0.6s;
}

/* زر أعلى الصفحة - رمادي/برتقالي */
.fab-top {
  background: linear-gradient(135deg, #d98e2b 0%, #b8731d 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  animation: none;
}

.fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* نبضة خفيفة للفت الانتباه */
@keyframes fabPulse {
  0% {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 14px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* تسمية تظهر عند التمرير (للشاشات الكبيرة) */
.fab-label {
  position: absolute;
  inset-inline-start: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #0d2b26;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.fab-label::before {
  content: '';
  position: absolute;
  inset-inline-end: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-inline-end-color: #0d2b26;
}

.fab:hover .fab-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .floating-actions {
    bottom: 16px;
    inset-inline-start: 14px;
    gap: 10px;
  }
  .fab {
    width: 52px;
    height: 52px;
  }
  .fab svg { width: 24px; height: 24px; }
  .fab-label { display: none; }
}

@media (max-width: 420px) {
  .fab {
    width: 48px;
    height: 48px;
  }
  .fab svg { width: 22px; height: 22px; }
}

/* تقليل الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
  .fab-call, .fab-whatsapp { animation: none; }
  .fab { transition: none; }
}