/* ===================================================
   ياسر للمبلط بالرياض - النظام البصري الكامل
   Light, Elegant, Professional — RTL Arabic Design
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette — Light VIP: عاجي + ذهب شامبين + كحلي ليلي */
  --color-primary:     #16324a;   /* كحلي ليلي */
  --color-primary-light: #24506f;
  --color-primary-dark:  #0e2233;
  --color-accent:      #b08d57;   /* ذهب شامبين */
  --color-accent-light:#d6bd8c;
  --color-accent-dark: #7d6034;   /* للنصوص الذهبية (تباين AA) */

  --color-bg:          #fbfaf7;   /* عاجي */
  --color-bg-alt:      #f6f3ee;   /* رخام كريمي */
  --color-bg-card:     #ffffff;
  --color-bg-section:  #efeae2;   /* بيج حجري */

  --color-text:        #17202a;
  --color-text-med:    #3d4650;
  --color-text-light:  #5b6570;
  --color-text-muted:  #8a929b;

  --color-border:      #e6dfd3;
  --color-border-light:#f0ebe3;

  /* Typography */
  --font-main:  'Cairo', system-ui, sans-serif;
  --font-alt:   'Cairo', system-ui, sans-serif;

  /* Spacing */
  --section-py:  96px;
  --container-max: 1200px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(14,34,51,0.06);
  --shadow-md:  0 10px 30px rgba(14,34,51,0.08);
  --shadow-lg:  0 24px 60px rgba(14,34,51,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --transition: 0.32s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

/* hidden يجب أن يخفي العنصر دائماً حتى لو كان له display في CSS */
[hidden] { display: none !important; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Padding --- */
.section { padding: var(--section-py) 0; }
.section-alt { background-color: var(--color-bg-alt); }
.section-beige { background-color: var(--color-bg-section); }

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  background: rgba(176,141,87,0.1);
  border: 1px solid rgba(184,154,90,0.25);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ===================================================
   TOP BAR
   =================================================== */
.top-bar {
  background-color: var(--color-primary-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.82rem;
  font-family: var(--font-alt);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.top-bar-info a:hover { color: var(--color-accent-light); }

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-social a {
  color: rgba(255,255,255,0.7);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.top-bar-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(26,78,107,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 26px; height: 26px; fill: #fff; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-med);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-primary);
  background: rgba(26,78,107,0.06);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--color-bg-alt); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-med);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: block;
}

.mobile-menu a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.mobile-menu-cta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,78,107,0.25);
}

.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,78,107,0.32);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.38);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
}

.btn-accent:hover, .btn-accent:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,154,90,0.35);
  color: #fff;
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ===================================================
   SERVICES SECTION
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transition: width 0.4s ease;
  border-radius: 0 var(--radius-lg) 0 0;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--color-border);
}

.service-card:hover::before { width: 100%; }

.service-icon {
  width: 58px;
  height: 58px;
  background: rgba(26,78,107,0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: color var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
}

.service-card:hover .service-icon svg { color: #fff; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition);
}

.service-link svg { width: 16px; height: 16px; }

.service-link:hover { gap: 10px; color: var(--color-accent-dark); }

/* ===================================================
   WHY US SECTION
   =================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--color-border-light);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26,78,107,0.15);
  transform: translateY(-3px);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(184,154,90,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent-dark);
}

.why-content h3 {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.why-content p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ===================================================
   COVERAGE AREAS
   =================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.area-chip {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.area-chip svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }

.area-chip:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.area-chip:hover svg { color: rgba(255,255,255,0.8); }

/* ===================================================
   FAQ
   =================================================== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.open { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-main);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-primary); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26,78,107,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-icon svg { width: 18px; height: 18px; color: var(--color-primary); transition: transform var(--transition); }

.faq-item.open .faq-icon { background: var(--color-primary); }
.faq-item.open .faq-icon svg { color: #fff; transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 900px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.91rem;
  color: var(--color-text-med);
  line-height: 1.85;
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #1e5f7a 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(184,154,90,0.2), transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.btn-white:hover, .btn-white:focus {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-white-outline:hover, .btn-white-outline:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  color: #fff;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-mark {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-mark svg { width: 24px; height: 24px; fill: #fff; }

.footer-logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.footer-logo-sub {
  font-size: 0.7rem;
  color: var(--color-accent-light);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-contact-item a svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }

.footer-contact-item a:hover { color: #fff; }

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ===================================================
   FLOATING ACTION BUTTONS (WhatsApp + Call)
   =================================================== */

/* مجموعة الأزرار العائمة */
.float-buttons {
  position: fixed;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}

/* زر واتساب العائم */
.float-whatsapp {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.float-whatsapp svg { width: 28px; height: 28px; fill: #fff; }

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

.float-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wa-pulse 2.2s ease-out infinite;
}

/* زر الاتصال العائم */
.float-call {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(26,78,107,0.40);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.float-call svg { width: 26px; height: 26px; stroke: #fff; fill: none; }

.float-call:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(26,78,107,0.50);
}

.float-call::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(26,78,107,0.25);
  animation: call-pulse 2.5s ease-out infinite;
  animation-delay: 0.4s;
}

/* Tooltip labels */
.float-whatsapp::after,
.float-call::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,30,40,0.88);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.float-whatsapp:hover::after,
.float-call:hover::after {
  opacity: 1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes call-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ===================================================
   PAGE HERO (Service Pages)
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumbs a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--color-accent-light); }
.breadcrumbs svg { width: 14px; height: 14px; }

/* Service Page Content */
.service-content {
  padding: 72px 0;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.service-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  margin-top: 32px;
}

.service-body h2:first-child { margin-top: 0; }

.service-body p {
  font-size: 0.96rem;
  color: var(--color-text-med);
  line-height: 1.85;
  margin-bottom: 14px;
}

.service-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.service-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text-med);
  line-height: 1.7;
}

.service-body ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-med);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.sidebar-card ul li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.sidebar-card ul li a:hover {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.sidebar-card ul li a.active {
  color: var(--color-primary);
  background: rgba(26,78,107,0.07);
  font-weight: 700;
}

/* ===================================================
   404 PAGE
   =================================================== */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.page-404-inner h1 {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.page-404-inner p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ===================================================
   ANIMATIONS
   =================================================== */
/* المحتوى ظاهر افتراضياً (مهم لجوجل)، والإخفاء يتم فقط لو الـJS شغال */
.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }
.fade-up-d5 { transition-delay: 0.5s; }
.fade-up-d6 { transition-delay: 0.6s; }

/* ===================================================
   RESPONSIVE - TABLET
   =================================================== */
@media (max-width: 1024px) {
  :root { --section-py: 70px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .service-content-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

/* ===================================================
   RESPONSIVE - MOBILE
   =================================================== */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .container { padding: 0 16px; }

  /* Header */
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-buttons { gap: 10px; }

  /* Sections */
  .section-header { margin-bottom: 36px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Portfolio */

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Areas */
  .areas-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-desc { max-width: 100%; }

  /* Top bar */
  .top-bar .container { flex-direction: column; gap: 8px; }

  /* Buttons */
  .btn-lg { padding: 14px 24px; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 400px) {
  .areas-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ===================================================
   VIP POLISH + SEO CONTENT BLOCKS
   =================================================== */
::selection { background: rgba(176,141,87,0.25); color: var(--color-primary-dark); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }


section[id] { scroll-margin-top: 84px; }


/* ظهور الصور عند الوصول لها (الكلاس pre يضيفه الـJS فقط ويزيله عند الظهور) */
@media (prefers-reduced-motion: no-preference) {
  .gal-item, .service-figure { transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out), scale 0.6s var(--ease-out); }
  .gal-item.pre, .service-figure.pre { opacity: 0; translate: 0 28px; scale: 0.97; }
}

/* صفحات الخدمات */
.page-hero {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(214,189,140,0.22), transparent 60%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 72px 0 64px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .hero-buttons { justify-content: center; margin: 26px 0 0; }

.service-figure {
  margin: 8px 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-section);
}
.service-figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-figure figcaption {
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 10px 16px;
  background: #fff;
}

.service-body p.service-lead {
  font-size: 1.05rem;
  color: var(--color-text);
  border-right: 3px solid var(--color-accent);
  padding-right: 16px;
}

.service-body ol.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.service-body ol.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 14px 58px 14px 16px;
  font-size: 0.93rem;
  color: var(--color-text-med);
  line-height: 1.8;
}
.service-body ol.steps li::before {
  content: counter(step);
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-body ol.steps li strong { color: var(--color-primary-dark); }

.service-body ul.areas-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 20px;
}
.service-body ul.areas-inline li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.service-body ul.areas-inline li::before { display: none; }

.service-body .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.service-body .faq-list { margin-top: 0; }

.updated-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 32px; }

@media (max-width: 768px) {
  .service-body .cta-row .btn { width: 100%; }
}

/* ===================================================
   VVIP LAYER — خط فاخر، رخام، ذهب، حركة ثلاثية وثنائية الأبعاد
   كل الحركة اختيارية: تعمل فقط مع prefers-reduced-motion: no-preference
   =================================================== */
:root {
  --font-display: 'Alexandria', 'Cairo', system-ui, sans-serif;
  --gold-grad: linear-gradient(120deg, #8a6a3a 0%, #c9a96e 28%, #f1dfb4 50%, #c9a96e 72%, #8a6a3a 100%);
  --marble: url("../images/marble-texture.webp");
}

h1, h2, h3, .section-title, .logo-name, .footer-logo-name, .cta-inner h2, .page-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0;
}
.section-title { font-weight: 700; }

/* خلفيات رخامية خفيفة */
.section-alt, .section-beige, .service-content { background-image: var(--marble); background-size: 512px 512px; }

/* شريط تقدم التمرير الذهبي (Scroll-driven, بدون JS) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold-grad);
  transform-origin: right center;
  transform: scaleX(0);
  z-index: 1100;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* أزرار فاخرة: لمعة ذهبية تمر على الزر */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(120%);
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn::after { transition: transform 0.7s var(--ease-out); }
  .btn:hover::after { transform: translateX(-120%); }
}
.btn-accent { background: var(--gold-grad); background-size: 200% 100%; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light)); }


/* ===== شريط الخدمات المتحرك (Marquee) ===== */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 18px 0;
  border-block: 1px solid rgba(201,169,110,0.35);
}
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-inline-end: 40px; flex-shrink: 0; }
.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  white-space: nowrap;
}
.marquee-group span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent-light);
}
.marquee-group b { width: 10px; height: 10px; rotate: 45deg; background: var(--color-accent); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-rtl 38s linear infinite; }
  .marquee.paused .marquee-track { animation-play-state: paused; }
}
@keyframes marquee-rtl { to { translate: 50% 0; } }
.marquee-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: var(--color-primary-dark);
  color: #fff;
  cursor: pointer;
  font: 700 0.75rem var(--font-main);
}
@media (prefers-reduced-motion: reduce) { .marquee-toggle { display: none; } }

/* ===== كشف العناوين كلمة كلمة ===== */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.08em; margin-block: -0.08em; }
.split-word > span { display: inline-block; }

/* ===== بطاقات الخدمات: إضاءة تتبع الماوس + حدود ذهبية ===== */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(201,169,110,0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover { border-color: rgba(176,141,87,0.45); }
.service-card::before { background: var(--gold-grad); height: 3px; }
.service-card:hover .service-icon { background: var(--gold-grad); }
.service-icon { background: linear-gradient(135deg, rgba(22,50,74,0.06), rgba(176,141,87,0.12)); }
.why-icon { background: linear-gradient(135deg, rgba(176,141,87,0.18), rgba(176,141,87,0.05)); }

/* المناطق */
.area-chip:hover { background: var(--color-primary-dark); border-color: var(--color-accent); }

/* CTA: ضوء ذهبي يتحرك على خلفية ليلية */
.cta-section { background: radial-gradient(900px 400px at 20% 0%, rgba(201,169,110,0.28), transparent 60%), linear-gradient(135deg, #0b1b29, var(--color-primary) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .cta-section::before { animation: aurora 12s ease-in-out infinite alternate; width: 520px; height: 520px; }
}
@keyframes aurora { to { translate: 60vw 120px; } }

/* ===== صندوق الإجابة المختصرة (AEO) ===== */
.answer-box {
  background: linear-gradient(135deg, #fff, var(--color-bg-alt));
  border: 1px solid var(--color-border);
  border-right: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 auto 28px;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}
.answer-box h2, .answer-box h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--color-primary-dark); }
.answer-box p { margin: 0; font-size: 0.97rem; line-height: 1.9; color: var(--color-text); }
.answer-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 0.9rem; }
.answer-box dt { font-weight: 800; color: var(--color-primary-dark); }
.answer-box dd { margin: 0; color: var(--color-text-med); }

/* صفحات الخدمات: شبكة بلاط ذهبية متحركة في الخلفية */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(201,169,110,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero::before { animation: grid-drift 6s linear infinite; }
}
@keyframes grid-drift {
  from { transform: perspective(600px) rotateX(58deg) translateY(0); }
  to   { transform: perspective(600px) rotateX(58deg) translateY(64px); }
}

/* ===== المؤشر المخصص (أجهزة الماوس فقط) ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor-dot { width: 6px; height: 6px; background: var(--color-accent); }
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(176,141,87,0.7);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(201,169,110,0.12); border-color: var(--color-accent); }

/* ===== Lightbox (dialog أصلي) ===== */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  overflow: visible;
  color: #fff;
}
dialog.lightbox:modal { overscroll-behavior: contain; }
dialog.lightbox::backdrop {
  background: rgba(8,18,28,0.92);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.lightbox[open] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open] { animation: lb-in 0.45s var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; scale: 0.94; } }
.lightbox figure { margin: 0; position: relative; }
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 14px; }
.lightbox-count { display: block; text-align: center; color: var(--color-accent-light); font-size: 0.8rem; margin-top: 4px; font-weight: 700; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 2;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-accent); color: #fff; }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-close { top: -18px; left: -18px; }
.lightbox-nav { top: 40%; }
.lightbox-nav.prev { right: -23px; }
.lightbox-nav.next { left: -23px; }
@media (max-width: 768px) {
  .lightbox-close { top: -54px; left: 0; }
  .lightbox-nav { top: auto; bottom: -62px; }
  .lightbox-nav.prev { right: calc(50% - 56px); }
  .lightbox-nav.next { left: calc(50% - 56px); }
}

/* تمرير Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* تقليل الحركة: نعرض الحالة النهائية مباشرة */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-up { opacity: 1; transform: none; transition: none; }
  .float-whatsapp::before, .float-call::before { animation: none; }
}

/* ===================================================
   PERFORMANCE: منع تعارض CSS transitions مع GSAP
   (transition: all على عناصر يحركها GSAP يسبب تقطيع أثناء التمرير)
   =================================================== */
.js .service-card,
.js .why-card,
.js .gal-item,
.js .svc-card,
.js .region { transition-property: box-shadow, border-color, background-color, opacity, translate, scale; }
.area-chip { transition-property: background-color, color, border-color, box-shadow; }
.svc-card img, .cta-x > picture img { will-change: transform; }
/* الأقسام البعيدة لا تُرسم حتى تقترب من الشاشة */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 520px; }
