/* ====================================
   قوافل اتحاد المسار — Premium Gold & White Theme
   v8 — Fully Responsive Edition
   ==================================== */

/* ---- TOKENS ---- */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #9E7A2A;
  --gold-pale: #F5EDD5;
  --white: #FFFFFF;
  --off-white: #FAF8F3;
  --ink: #1A1611;
  --ink-soft: #3D3520;
  --muted: #7A6E57;
  --mutedd: #6B7280;
  --muted-light: #9CA3AF;
  --border: rgba(201, 168, 76, 0.25);
  --shadow-gold: 0 8px 40px rgba(201, 168, 76, 0.18);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --bg: #f2f2ea;
  --bg-soft: #F4F3EE;
  --font-display: 'Playfair Display', 'Cairo', serif;
  --font-body: 'Cairo', sans-serif;

  /* Fluid spacing */
  --section-py: clamp(50px, 8vw, 100px);
  --container-px: clamp(16px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   GLOBAL RESET: FIX HORIZONTAL SCROLL / LEANING ON MOBILE
   ============================================================ */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  position: relative; /* ضروري لاحتواء العناصر المطلقة */
  width: 100%;
}

/* إصلاح هوامش Bootstrap السلبية في الشاشات الصغيرة التي تسبب الميلان */
@media (max-width: 767px) {
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* تأمين الحاويات لمنع مكتبة AOS من دفع الشاشة قبل بدء الحركة */
  .container, .container-fluid {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ---- GRAIN TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  letter-spacing: 0.02em;
}

.topbar-info {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  flex-wrap: wrap;
}

.topbar-info span,
.topbar-info a {
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  white-space: nowrap;
}

.topbar-info a:hover {
  color: var(--gold-light);
}

.topbar-info i {
  color: var(--gold);
  font-size: 0.72rem;
}

.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.topbar-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.main-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 30px rgba(201, 168, 76, 0.08);
  transition: all var(--transition);
  padding: clamp(8px, 1.5vw, 14px) 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-navbar.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink) !important;
  flex-shrink: 0;
}

.navbar-brand img {
  width: clamp(180px, 25vw, 300px);
  height: clamp(36px, 5vw, 50px);
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.01);
  filter: drop-shadow(0 0 8px rgb(186, 181, 158)) drop-shadow(0 0 15px #bbb595);
}

.navbar-nav {
  gap: 2px;
}

.nav-link {
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  font-weight: 600;
  color: var(--ink-soft) !important;
  padding: 8px clamp(8px, 1.2vw, 14px) !important;
  border-radius: 8px;
  position: relative;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 28px);
}

.nav-link:hover {
  color: var(--gold-dark) !important;
}

.nav-link.active {
  color: var(--gold-dark) !important;
}

/* Mobile navbar collapse */
.navbar-collapse {
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav {
    gap: 4px;
    margin-bottom: 16px !important;
  }

  .nav-link {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: rgba(201, 168, 76, 0.08) !important;
  }

  .btn-brand {
    width: 100%;
    text-align: center;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
}

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  color: var(--ink) !important;
  border: none;
  font-weight: 700;
  padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2.5vw, 24px);
  border-radius: 50px;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  /* Touch target */
}

.btn-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

.btn-brand:hover,
.btn-brand:active {
  color: white !important;
}

.btn-brand:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(201, 168, 76, 0.42);
}

.btn-brand:hover::before,
.btn-brand:active::before {
  opacity: 1;
}

.btn-brand span {
  position: relative;
  z-index: 1;
}

.btn-outline-brand {
  background: transparent;
  color: var(--gold-dark) !important;
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2.5vw, 24px);
  border-radius: 50px;
  font-size: clamp(0.85rem, 1.2vw, 0.92rem);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-outline-brand:hover {
  background: var(--gold);
  color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-light {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-weight: 700;
  padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2.5vw, 24px);
  border-radius: 50px;
  font-size: clamp(0.85rem, 1.2vw, 0.92rem);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* NAVBAR TOGGLER */
.navbar-toggler {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A84C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: clamp(480px, 80vh, 800px);
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.0);
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.swiper-slide-active .hero-bg {
  transform: scale(1.07);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 10% 35%, rgba(255, 215, 0, 0.10), transparent 42%),
    linear-gradient(115deg, rgba(20, 15, 8, 0.62) 0%, rgba(35, 28, 18, 0.34) 50%, rgba(212, 175, 55, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1,
.hero-content h2,
.hero-content p {
  color: #fff;
}

.hero-content .section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: #eeca66;
  background: rgba(20, 15, 8, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* Text entrance animations */
.swiper-slide-active .section-kicker {
  animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.swiper-slide-active .hero-content h1,
.swiper-slide-active .hero-content h2 {
  animation: heroTextIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.swiper-slide-active .hero-content p {
  animation: heroTextIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.45s;
}

.swiper-slide-active .hero-actions {
  animation: heroTextIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.min-vh-hero {
  height: clamp(480px, 80vh, 800px);
  display: flex;
  align-items: center;
  padding-block: clamp(60px, 10vw, 120px);
}

.hero-content h1,
.hero-content h2 {
  max-width: min(860px, 95%);
  font-size: clamp(1.8rem, 4.5vw, 5rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.hero-content p {
  max-width: min(680px, 95%);
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 36px);
}

/* Swiper pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: background 0.3s ease, width 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--gold-light);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (الشاشات أقل من اللاب توب)
   ============================================================ */
@media (max-width: 990px) {
  .hero-actions {
    display: none !important; /* إخفاء الأزرار لمنع التزاحم */
  }
}




/* ============================================================
   TRUST STRIP / STATS
   ============================================================ */
.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: clamp(-30px, -5vw, -58px);
  padding: 0 0 clamp(20px, 4vw, 40px);
}

.uiverse-card {
  width: 100%;
  min-height: 150px;
  background: #243137;
  position: relative;
  display: grid;
  place-content: center;
  border-radius: 12px;
  overflow: hidden;
  color: #bd9f67;
  text-align: center;
  transition: transform 0.4s ease, border-radius 0.4s ease;
  will-change: transform;
  padding: 24px 16px;
}

.uiverse-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 35%;
  height: 220%;
  background: linear-gradient(120deg, transparent, rgba(189, 159, 103, 0.18), transparent);
  transform: rotate(25deg);
  opacity: 0;
  transition: all 1.2s ease;
}

.uiverse-card:hover::after {
  left: 130%;
  opacity: 1;
}

.uiverse-card strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  display: block;
  font-weight: bold;
  line-height: 1.2;
}

.uiverse-card span {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  opacity: 0.9;
  letter-spacing: 1px;
}

.uiverse-card .border {
  position: absolute;
  inset: 0;
  border: 2px solid #bd9f67;
  opacity: 0;
  transform: rotate(8deg);
  transition: all 0.5s ease-in-out;
}

.uiverse-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-radius: 0;
  z-index: 2;
}

.uiverse-card:hover .border {
  inset: 14px;
  opacity: 1;
  transform: rotate(0deg);
}

.uiverse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(189, 159, 103, 0.18), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

.uiverse-card:hover::before {
  opacity: 1;
}

.uiverse-card .content {
  transition: 0.3s ease;
}

.uiverse-card:hover .content {
  transform: translateY(-2px);
}

.trust-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (توسيط في شاشات الهاتف)
   ============================================================ */
@media (max-width: 767px) {
  .trust-strip {
    width: 100%;
    max-width: 100vw; /* يمنع العنصر من تخطي عرض الشاشة */
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    overflow-x: hidden; /* يخفي أي تسريب قد يسبب الانحراف لليمين */
    padding-left: 15px; /* مسافة أمان من الأطراف */
    padding-right: 15px;
  }

  .uiverse-card {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ============================================================
   GLOBAL SECTION FIX (منع الانحراف والميلان في كل الأقسام)
   ============================================================ */
.section {
  max-width: 100vw; /* إجبار القسم على عدم تخطي عرض شاشة الهاتف أبداً */
  overflow-x: hidden; /* قص أي عنصر فرعي أو حركة (AOS) تحاول الخروج عن الشاشة */
  box-sizing: border-box;
}

.section.bg-soft {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* تحسين شكل العناوين والـ kicker في شاشات الجوال */
@media (max-width: 767px) {
  .section-kicker {
    flex-wrap: wrap; /* يمنع الشريط الجانبي (الخط الذهبي) من دفع النص خارج الشاشة */
  }
  
  h2, h3 {
    word-wrap: break-word; /* يمنع الكلمات الطويلة من كسر التصميم في الجوالات الصغيرة جداً */
    overflow-wrap: break-word;
  }
}

/* ============================================================
   IMAGE STACK
   ============================================================ */
.image-stack {
  position: relative;
  padding-bottom: clamp(20px, 4vw, 40px);
  padding-left: clamp(20px, 4vw, 40px);
}

.image-stack .main-img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition);
}

.image-stack:hover .main-img {
  transform: scale(1.02);
}

.image-stack .floating-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 100px);
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}

.rounded-media {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (لشاشات الهواتف)
   ============================================================ */
@media (max-width: 767px) {
  .section {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden; /* يمنع أي تسريب للعناصر خارج الشاشة */
  }

  .image-stack {
    max-width: 100%;
    box-sizing: border-box;
    /* تأمين إضافي لضمان عدم خروج الصورة العائمة أو مسافات الحشو عن حدود الشاشة */
  }
  
  .image-stack .main-img {
    box-sizing: border-box;
  }
}

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.feature-list.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  color: var(--ink-soft);
}

.feature-list i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES GRID (flip cards)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #44341d;
  padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.services-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-grid .card {
  background: transparent;
  border: none;
  height: clamp(220px, 25vw, 280px);
  perspective: 1200px;
  cursor: pointer;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.services-grid .card:nth-child(3n) {
  border-right: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d; /* دعم متصفحات الهواتف الذكية */
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-grid .card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* دعم متصفحات الهواتف الذكية */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px);
  text-align: center;
}

.card-front {
  background: transparent;
  /* حل مشكلة تداخل النصوص في الهاتف عبر دفع الطبقة للأمام 1px */
  -webkit-transform: translateZ(1px);
  transform: translateZ(1px);
}

.card-front::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  transition: border-color var(--transition);
}

.services-grid .card:hover .card-front::before {
  border-color: rgba(201, 168, 76, 0.5);
}

.card-front p {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  margin: 0;
}

.card-front .card-icon {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.card-back {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%);
  /* دمج الدوران مع دفع الطبقة لمنع ظهور النصوص الخلفية والأمامية معاً */
  -webkit-transform: rotateY(180deg) translateZ(1px);
  transform: rotateY(180deg) translateZ(1px);
  border-radius: 0;
}

.card-back p {
  color: var(--ink);
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  border: 2px solid var(--ink);
  padding: 8px 18px;
  border-radius: 50px;
  transition: all var(--transition);
  min-height: 40px;
}

.card-back a:hover {
  background: var(--ink);
  color: var(--gold-light);
}

/* التجاوب الإضافي للشاشات الصغيرة لحمايتها من التداخل */
@media (max-width: 990px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* تحويل الكروت إلى كرتين في الصف للابتوب الصغير والتابلت */
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr; /* كرت واحد ممتد في الشاشة في الجوال */
  }
}

/* ============================================================
   NEWS CARDS (تم الإصلاح ليتوافق مع الجوال 100%)
   ============================================================ */
.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  /* حل مشكلة الميلان: إجبار الهاتف على معالجة الأبعاد بدقة ومنع الاهتزاز */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0); 
  -webkit-transform: translate3d(0, 0, 0);
}

.news-card:hover {
  /* تم تعديلها إلى translate3d للحفاظ على استواء زوايا الكارت في الجوال أثناء الحركية */
  transform: translate3d(0, -8px, 0);
  -webkit-transform: translate3d(0, -8px, 0);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border);
}

.news-card img {
  width: 100%;
  height: clamp(160px, 20vw, 220px);
  object-fit: cover;
  transition: transform 0.6s ease;
  flex-shrink: 0;
  /* منع الصورة من تخطي حدود الحاوية الدائرية في بعض متصفحات الهواتف */
  will-change: transform; 
}

.news-card:hover img {
  transform: scale(1.06);
}

.news-card > div {
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box; /* تضمن حساب المساحات الداخلية بدون زيادة حجم الكارت */
}

.news-card time {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card p {
  font-size: clamp(0.82rem, 1.3vw, 0.88rem);
  color: var(--muted);
  flex: 1;
  margin-bottom: 14px;
}

.news-card a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  align-self: flex-start; /* يمنع الزر من التمدد بكامل عرض الكارت */
  text-decoration: none;
}

.news-card a::after {
  content: '←';
  display: inline-block;
  transition: transform var(--transition);
}

.news-card a:hover {
  gap: 10px;
}

/* ============================================================
   تأمين التجاوب للشاشات الصغيرة لمنع انحراف كروت Bootstrap
   ============================================================ */
@media (max-width: 767px) {
  .news-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* إلغاء الـ hover المرتد في الجوال لأنه يسبب انحراف الكارت عند اللمس بالإصبع */
    transform: none !important; 
  }
  
  .news-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }
}

/* ============================================================
   VIDEO FRAME
   ============================================================ */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--border);
  position: relative;
  width: 100%;
}

.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
  pointer-events: none;
}

.video-frame:hover::before {
  opacity: 0.6;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  inset: 0;
}



/* ============================================================
   ABOUT INTRO RESPONSIVE FIX
   ============================================================ */

/* 1. تأمين القسم بالكامل لمنع تسريب الأنيميشن (AOS) خارج الشاشة */
.section.mesh-bg {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

/* 2. ضبط الوسام العائم في الهواتف لمنعه من دفع الشاشة */
@media (max-width: 767px) {
  .float-badge {
    /* كسر التنسيق الداخلي (-18px) وإدخال الوسام داخل حدود الصورة */
    right: 10px !important; 
    bottom: -10px !important;
    /* تصغير حجم الوسام قليلاً ليتناسب مع شاشة الجوال */
    padding: 12px 16px !important;
  }
  
  .float-badge > div {
    font-size: 1.4rem !important;
  }

  /* 3. منع الـ Grid الخاص بـ Bootstrap من التسبب بمساحات فارغة مسببة للميلان */
  .mesh-bg .row.g-5 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  
  .mesh-bg .col-lg-6 {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}



/* ============================================================
   VALUE CARDS
   ============================================================ */
.value-card {
  text-align: center;
  padding: clamp(24px, 3.5vw, 40px) clamp(16px, 2.5vw, 28px);
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card i {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
  transition: transform var(--transition);
}

.value-card:hover i {
  transform: scale(1.15) rotate(5deg);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--muted);
  font-size: clamp(0.82rem, 1.3vw, 0.9rem);
}

/* ============================================================
   WHY CARDS
   ============================================================ */
.why-card {
  padding: clamp(20px, 3.5vw, 36px) clamp(14px, 2.5vw, 24px);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  height: 100%;
}

.why-card:hover {
  background: var(--ink);
  border-color: var(--gold-dark);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-card i {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
  transition: transform var(--transition);
}

.why-card:hover i {
  transform: scale(1.2);
}

.why-card h3 {
  transition: color var(--transition);
}

.why-card:hover h3 {
  color: var(--gold-light);
}

.why-card p {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.3vw, 0.88rem);
  transition: color var(--transition);
}

.why-card:hover p {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   WIDE SERVICE (services page)
   ============================================================ */
.wide-service {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  transition: all var(--transition);
  height: 100%;
}

.wide-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.wide-service img {
  width: clamp(120px, 18vw, 180px);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.6s ease;
}

.wide-service:hover img {
  transform: scale(1.08);
}

.wide-service>div {
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.wide-service i {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.wide-service h3 {
  margin-bottom: 8px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.wide-service p {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.3vw, 0.88rem);
  margin-bottom: 10px;
}

.wide-service ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wide-service ul li {
  font-size: clamp(0.75rem, 1.2vw, 0.83rem);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wide-service ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 280px);
  gap: clamp(8px, 1.5vw, 14px);
}

.gallery-grid a:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid a:nth-child(5) {
  grid-column: span 2;
}

.gallery-grid a {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid a:hover {
  transform: scale(1.02);
  outline-color: rgba(201, 168, 76, 0.5);
  z-index: 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-grid a:hover img {
  transform: scale(1.1);
}

.gallery-grid a::before {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(232, 201, 106, 1);
  opacity: 0;
  z-index: 3;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 4, 0) 40%, rgba(10, 8, 4, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-grid a:hover::after {
  opacity: 1;
}

.gallery-grid a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: var(--white);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 600;
  transform: translateY(4px);
  opacity: 0;
  transition: var(--transition);
  z-index: 4;
  pointer-events: none;
}

.gallery-grid a:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(10, 8, 4, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

#gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lb-img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

#lb-close,
#lb-prev,
#lb-next {
  position: absolute;
  background: rgba(201, 168, 76, 0.15);
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

#lb-close {
  top: 20px;
  left: 20px;
}

#lb-prev {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lb-next {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lb-close:hover,
#lb-prev:hover,
#lb-next:hover {
  background: rgba(201, 168, 76, 0.3);
  border-color: var(--gold);
}

#lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 14px;
  border-radius: 50px;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 30px;

}

/* الصورة */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* ✅ بدل center 30% */
  z-index: 0;
  /* ✅ موجب */
}


@media (max-width: 768px) {
  .page-hero {
    background-attachment: scroll;
  }

  /* Fix iOS parallax bug */
}

/* طبقة التعتيم */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}


.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}



/* حتى يبقى المحتوى فوق التعتيم */
/* المحتوى */
.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.967);
  font-size: clamp(0.8rem, 1.3vw, 0.88rem);
}

.breadcrumb-item a:hover {
  color: var(--gold-light);
}

.breadcrumb-item.active {
  color: var(--gold-light);
  font-size: clamp(0.8rem, 1.3vw, 0.88rem);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}


.page-hero {
  overflow: hidden;
}

.page-hero h1 {
  animation: fadeSlideUp 0.9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 0.1s;
}

.page-hero .breadcrumb {
  animation: fadeSlideUp 0.9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 0.28s;
}

.page-hero::after {
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg,
      transparent 0%,
      rgba(201, 168, 76, 0.8) 40%,
      rgba(232, 201, 106, 1) 50%,
      rgba(201, 168, 76, 0.8) 60%,
      transparent 100%);
}


@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 20px);
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  background: white;
  box-shadow: var(--shadow-gold);
  transform: translateX(-4px);
}

.contact-info-card>i {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 600;
}

.contact-info-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info-card a {
  color: var(--ink);
  transition: color var(--transition);
}

.contact-info-card a:hover {
  color: var(--gold-dark);
}

/* Contact Form */
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: clamp(10px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
  border: 1.5px solid #DDD8CC;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 0.92rem);
  color: var(--ink);
  background: white;
  transition: all var(--transition);
  outline: none;
  width: 100%;
  min-height: 44px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gold-dark);
  text-align: center;
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
  height: clamp(280px, 40vw, 420px);
  position: relative;
}

.map-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: sepia(20%) contrast(1.05);
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px) scale(1.1);
}

.social-links.dark a {
  border-color: var(--border);
  color: var(--muted);
}

.social-links.dark a:hover {
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 76, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 168, 76, 0.332), transparent 35%),
    linear-gradient(135deg, #0b0b0b 0%, #6e4f4f 40%, #16110a 100%);

  color: rgba(255, 255, 255, 0.72);
  padding: 90px 0 0;
  border-top: 1px solid rgba(201, 168, 76, 0.352);
}

/* الخط الذهبي العلوي */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(201, 168, 76, 0.2),
      var(--gold),
      rgba(201, 168, 76, 0.2),
      transparent);
}

/* إضاءة ذهبية */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(223, 186, 84, 0.653), transparent 25%);
  pointer-events: none;
}

/* توزيع الأعمدة */
.footer .row {
  row-gap: 50px;
}

/* الشعار */
/* .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-brand span {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg,
      #fff,
      var(--gold-light),
      var(--gold-dark));

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} */


/* العناوين */
.footer h3 {
  position: relative;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 14px;
  letter-spacing: 0.5px;
}

/* خط ذهبي أسفل العنوان */
.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45px;
  height: 2px;
  border-radius: 50px;

  background: linear-gradient(90deg,
      var(--gold-dark),
      var(--gold-light));

  box-shadow: 0 0 14px rgba(201, 168, 76, 0.45);
}

/* الروابط */
.footer a {
  text-decoration: none;
}

.footer .col-6 a,
.footer .col-lg-2 a {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;

  color: rgba(255, 255, 255, 0.58);

  margin-bottom: 14px;
  transition: 0.35s ease;
  padding-right: 0;
}

/* السهم */
.footer .col-6 a::before,
.footer .col-lg-2 a::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.6rem;

  margin-left: 10px;

  opacity: 0;
  transform: translateX(8px);
  transition: 0.35s ease;
}

/* الهوفر */
.footer .col-6 a:hover,
.footer .col-lg-2 a:hover {
  color: var(--gold-light);
  transform: translateX(-6px);
}

.footer .col-6 a:hover::before,
.footer .col-lg-2 a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* بيانات التواصل */
.footer .col-lg-4 p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer .col-lg-4 p i {
  color: var(--gold);
  margin-top: 5px;
  font-size: 0.95rem;
}

/* السوشيال */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-links a {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  position: relative;

  color: rgba(255, 255, 255, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(8px);

  transition: 0.4s ease;
}

/* تأثير hover فاخر */
.social-links a:hover {
  transform: translateY(-8px) scale(1.08);

  color: #111;

  background: linear-gradient(135deg,
      var(--gold-light),
      var(--gold-dark));

  border-color: transparent;

  box-shadow:
    0 10px 25px rgba(201, 168, 76, 0.35),
    0 0 18px rgba(201, 168, 76, 0.25);
}

/* الجزء السفلي */
.footer-bottom {
  margin-top: 70px;
  padding: 26px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  color: rgba(255, 255, 255, 0.4);

  font-size: 0.85rem;
}

/* موبايل */
@media (max-width: 768px) {

  .footer {
    text-align: center;
    padding-top: 70px;
  }

  .footer h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-brand {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer .col-lg-4 p {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer .col-6 a,
  .footer .col-lg-2 a {
    width: 100%;
    justify-content: center;
  }
}






.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: -50px;
  /* رفع الشعار للأعلى */
  margin-bottom: -50px;
}

.footer-logo img {
  max-width: 250px;
  /* تصغير بسيط */
  width: 100%;
  height: auto;

  transition: all 0.3s ease;
}



/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 24px);
  bottom: clamp(16px, 3vw, 24px);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 15, 8, 0.75);
  color: #f3d27a;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 9998;
}

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

.back-to-top:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-3px);
}

.whatsapp-float {
  position: fixed;
  bottom: clamp(16px, 3vw, 28px);
  left: clamp(16px, 3vw, 28px);
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  z-index: 9997;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-4px);
  background: #20ba58;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
}

/* ============================================================
   PAGE LOAD OVERLAY
   ============================================================ */
.page-load-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-load-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo span {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.loader-bar {
  width: clamp(150px, 30vw, 200px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: loadBar 1.2s ease forwards;
}

@keyframes loadBar {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ============================================================
   AOS
   ============================================================ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ============================================================
   METRIC CARD (hero trust strip legacy)
   ============================================================ */
.metric-card {
  text-align: center;
  padding: clamp(18px, 3vw, 28px) 20px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.5);
}

.metric-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   TICKER MARQUEE
   ============================================================ */
.ticker-wrap {
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-size: clamp(0.72rem, 1.2vw, 0.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-track .sep {
  color: var(--gold-dark);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   RESPONSIVE — PROFESSIONAL MEDIA QUERIES
   ============================================================ */

/* ── 1400px — XL ── */
@media (max-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── 1200px — LG ── */
@media (max-width: 1200px) {
  .services-grid {
    padding: clamp(24px, 4vw, 48px) clamp(12px, 3vw, 32px);
  }

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

  .gallery-grid a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-grid a:nth-child(5) {
    grid-column: span 1;
  }
}

/* ── 992px — MD ── */
@media (max-width: 992px) {
  .section {
    padding: clamp(40px, 7vw, 70px) 0;
  }

  /* Navbar */
  .cursor-glow {
    display: none;
  }

  /* Hero */
  .hero-swiper {
    height: clamp(420px, 70vh, 640px);
  }

  .min-vh-hero {
    height: clamp(420px, 70vh, 640px);
    padding-block: clamp(60px, 10vw, 100px);
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .card:nth-child(3n) {
    border-right: 1px solid rgba(201, 168, 76, 0.12);
  }

  .services-grid .card:nth-child(2n) {
    border-right: none;
  }

  /* Wide service stack vertical */
  .wide-service {
    flex-direction: column;
  }

  .wide-service img {
    width: 100%;
    height: clamp(160px, 25vw, 200px);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(160px, 22vw, 220px);
  }

  .gallery-grid a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-grid a:nth-child(5) {
    grid-column: span 2;
  }
}

/* ── 768px — SM ── */
@media (max-width: 768px) {

  /* Hero */
  .hero-swiper {
    height: clamp(380px, 65vh, 560px);
  }

  .min-vh-hero {
    height: clamp(380px, 65vh, 560px);
    padding-block: 60px 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
   
    justify-content: center;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .services-grid .card {
    border-right: none;
  }

  /* Image stack */
  .image-stack {
    padding-bottom: 16px;
    padding-left: 16px;
  }

  .image-stack .floating-img {
    width: 72px;
    height: 72px;
  }

  /* Trust strip */
  .trust-strip {
    margin-top: 0;
  }

  /* Feature list */
  .feature-list.two-columns {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(140px, 35vw, 200px);
  }

  .gallery-grid a:nth-child(1) {
    grid-column: span 2;
  }

  .gallery-grid a:nth-child(5) {
    grid-column: span 1;
  }

  /* Page hero fixed -> scroll (fix iOS bug) */
  .page-hero {
    background-attachment: scroll;
  }
}

/* ── 576px — XS ── */
@media (max-width: 576px) {

  /* Topbar hide on mobile (already hidden with d-none d-lg-block, but just in case) */
  .topbar {
    display: none !important;
  }

  /* Hero */
  .hero-swiper {
    height: clamp(340px, 100vw, 500px);
  }

  .min-vh-hero {
    height: clamp(340px, 100vw, 500px);
    padding-block: 50px 30px;
  }

  /* Gallery — single col */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(130px, 40vw, 180px);
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  /* Contact */
  .contact-info-card {
    flex-direction: column;
    gap: 10px;
  }

  /* Lightbox controls */
  #lb-prev,
  #lb-next {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  /* Wide service */
  .wide-service {
    flex-direction: column;
  }

  /* General */
  .section {
    padding: clamp(32px, 6vw, 50px) 0;
  }
}

/* ── Extra small (360px) ── */
@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .navbar-brand img {
    width: 140px;
  }
}

/* ============================================================
   MOBILE PERFORMANCE — Reduce heavy animations
   ============================================================ */
@media (max-width: 768px) {

  /* Disable heavy animations on mobile */
  .uiverse-card {
    animation: none;
  }

  .uiverse-card::after {
    transition-duration: 0.8s;
  }

  /* Simpler hover states for touch */
  .news-card:hover {
    transform: translateY(-4px);
  }

  .value-card:hover {
    transform: translateY(-3px);
  }

  .why-card:hover {
    transform: translateY(-4px);
  }

  .wide-service:hover {
    transform: translateY(-3px);
  }

  /* Disable floatImg on mobile */
  .image-stack .floating-img {
    animation: none;
  }

  /* Reduce transition durations for smoother feel */
  .gallery-grid img {
    transition-duration: 0.4s;
  }

  .services-grid .card-inner {
    transition-duration: 0.5s;
  }

  /* Scroll progress visibility */
  #scroll-progress {
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CONTAINER RESPONSIVE
   ============================================================ */
.container {
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ============================================================
   UTILITY
   ============================================================ */
.count-up {
  transition: all 0.1s;
}

/* No horizontal overflow ever */
* {
  max-width: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Touch-friendly min-sizes */
button,
[role="button"],
.btn {
  min-height: 44px;
  cursor: pointer;
}

input,
select,
textarea {
  font-size: max(16px, 1em);
  /* Prevent iOS zoom */
}