*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--t-d1);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

:root {
  /* ═══ الألوان ═══ */
  --dark:        #08172E;
  --dark-2:      #0D1F3C;
  --mid:         #1A4080;
  --mid-2:       #0F2B52;
  --mid-light:   #2E6AB0;
  --gold:        #E8A020;
  --gold-dark:   #C48010;
  --gold-light:  #FEF3D0;
  --gold-pale:   #FFFBEF;
  --green:       #25D366;
  --green-dark:  #128C4A;
  --white:       #FFFFFF;
  --off-white:   #F5F8FF;
  --gray:        #EEF2F8;
  --gray-mid:    #D5E0EE;

  /* ═══ النص — القاعدة الذهبية ═══ */
  /* فوق خلفية داكنة: أبيض دايماً */
  --t-w1: #FFFFFF;
  --t-w2: rgba(255,255,255,0.82);
  --t-w3: rgba(255,255,255,0.55);
  --t-w4: rgba(255,255,255,0.30);

  /* فوق خلفية فاتحة: كحلي دايماً */
  --t-d1: #08172E;
  --t-d2: #3D5A80;
  --t-d3: #7A8FA6;
  --t-d4: #B0BFCC;

  /* ═══ الخط ═══ */
  --font: 'Cairo', sans-serif;

  /* ═══ الحجوم ═══ */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* ═══ الظلال ═══ */
  --shadow-sm:  0 2px 8px  rgba(8,23,46,0.07);
  --shadow-md:  0 6px 24px rgba(8,23,46,0.10);
  --shadow-lg:  0 12px 48px rgba(8,23,46,0.14);
  --shadow-xl:  0 24px 72px rgba(8,23,46,0.18);
  --shadow-gold:0 8px 32px  rgba(232,160,32,0.35);

  /* ═══ الـ Transitions ═══ */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:     0.15s;
  --t-base:     0.25s;
  --t-slow:     0.45s;
  --t-xslow:    0.65s;

  /* ═══ الـ Z-index ═══ */
  --z-base:    1;
  --z-above:   10;
  --z-float:   9997;
  --z-header:  9998;
  --z-callbar: 9999;
  --z-modal:   10000;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t-base) var(--ease),
    transform   var(--t-base) var(--ease-spring),
    box-shadow  var(--t-base) var(--ease),
    color       var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Ripple effect على كل زر */
.btn::after {
  content: '';
  position: absolute;
  inset: 50%;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}

.btn:active::after {
  transform: translate(-50%,-50%) scale(3);
  opacity: 0;
  transition: 0s;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: #F5C040;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.btn-gold:active { transform: translateY(-1px); }

.btn-wa {
  background: var(--green);
  color: #FFFFFF;
}
.btn-wa:hover {
  background: #22C55E;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.40);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-mid);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  transform: translateY(-3px);
}

.btn-lg  { padding: 15px 32px; font-size: 16px; }
.btn-sm  { padding: 8px  18px; font-size: 13px; }

/* صور */
.img-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,var(--mid-2),var(--mid));
}
.img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--t-slow) var(--ease);
}
.img-box:hover img { transform: scale(1.05); }

/* نسب الصور */
.r-hero      { aspect-ratio: 21/9; }
.r-wide      { aspect-ratio: 16/7; }
.r-card      { aspect-ratio: 4/3;  }
.r-square    { aspect-ratio: 1/1;  }
.r-portrait  { aspect-ratio: 3/4;  }
.r-team      { aspect-ratio: 1/1; border-radius: 50% !important; }

/* ═══════════════════════════════════════
   Header & Call Bar Styles (From index.html)
   ═══════════════════════════════════════ */
.call-bar {
  position: relative;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  height: 40px;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.call-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
}

.call-bar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.call-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
  height: 100%;
}

.call-bar-link.gold:hover {
  color: var(--gold);
}

.call-bar-link.green {
  color: var(--green);
}

.call-bar-link.green:hover {
  color: #4ADE80;
}

.call-bar-icon {
  font-size: 17px;
  animation: ring 4s ease-in-out infinite;
}

@keyframes ring {
  0%, 80%, 100% { transform: rotate(0); }
  83% { transform: rotate(-14deg); }
  87% { transform: rotate(14deg); }
  91% { transform: rotate(-8deg); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 30px rgba(8, 23, 46, 0.04);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #F5C040 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--sh-gold);
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  display: block;
  line-height: 1;
}

.brand-sub {
  font-size: 11px;
  color: #4A6580;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--t-d2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mid);
  background: var(--off-white);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.header-phone:hover {
  background: var(--gold);
  color: var(--dark);
  transform: scale(1.03);
}

.header-phone-num {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.header-phone:hover .header-phone-num {
  color: var(--dark);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--off-white);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 120px;
  z-index: 850;
  background: var(--dark);
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 32px 24px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--t-w2);
  font-size: 20px;
  font-weight: 800;
}

.mobile-nav-link:hover {
  color: var(--gold);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
