/* =====================================================
   ROOT VARIABLES – PERFORMANCE & WCAG
   ===================================================== */
:root {
  --primary: #0b63ce;
  --primary-hover: #005fcc;
  --bg-light: #f6f8fb;
  --text-dark: #222;
  --header-height-mobile: 64px;
  --header-height-desktop: 76px;
  --z-header: 100;
}
/* =====================================================
   BASE RESET
   ===================================================== */
 


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


html {
  
  direction: rtl;
  font-size: 16px;
  line-height: 1.5;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* التحكم بحجم العناوين بشكل متجاوب */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.3;
}




body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  
  overflow-x: hidden;
  color: var(--text-dark);
  min-height: 100vh;
}


.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}


.js-enabled .lazy-load {
  visibility: visible;
}

/* =====================================================
   HEADER
   ===================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--primary);
  height: var(--header-height-mobile);
}

.header-container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 16px;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .main-header {
    height: var(--header-height-desktop);
  }
}

.logo img {
  width: 56px;
  height: auto;
  display: block;
}

.navbar {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-toggle {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  background-color: var(--primary);
  transform: translateY(-120%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
}




.mobile-menu ul {
  list-style: none;
  padding: 16px;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

/* Desktop */
@media (min-width: 900px) {
  .header-container {
    height: var(--header-height-desktop);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .navbar {
    display: block;
  }

  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  background-color: var(--bg-light); 
  min-height: calc(100vh - var(--header-height-mobile));
  text-align: center;
}

.hero-section .container {
  max-width: 1200px;
  margin-inline: auto;
}

.hero-section h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-section .intro-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-media {
  aspect-ratio: 1200 / 630;
  margin-bottom: 30px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  display: block;
}
 
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hero-section .button {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.hero-section .button:hover {
  background-color: var(--primary-hover);
}
@media (min-width: 900px) {
  .hero-section {
    min-height: 600px;
  }
}
/* =====================================================
   SERVICES
   ===================================================== */
   .services {
  background-color: var(--bg-light);
  padding: 60px 16px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.service-cards {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
/* بطاقات الخدمات */
.service-cards .card.animate,
.extra-services .card.animate,
.testimonial-cards .card.animate {
  min-height: 300px; /* يحجز مكان البطاقة بالكامل */
}


.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: auto;
}

/* =====================================================
   SAFE FADE (NO CLS)
   ===================================================== */
.animate {
  opacity: 0;
  transform: translateY(12px);
  min-height: 1px; /* يحجز مكان */
  transition: opacity 0.5s, transform 0.5s;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
  
}



@media (prefers-reduced-motion: reduce) {
  .animate,
  .animate.in-view {
    opacity: 1;
    transition: none;
  }
}

/* =====================================================
   GUARANTEE
   ===================================================== */
.guarantee {
  background-color: var(--bg-light);
  padding: 60px 16px;
  text-align: center;
}

.guarantee-text p {
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq {
  background-color: #fff;
  padding: 60px 16px;
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 20px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background-color: var(--primary);
  color: #fff;
  padding: 40px 16px;
  text-align: center;
}

.footer-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* =====================================================
   FLOATING CALL BUTTON
   ===================================================== */
.call-floating {
  position: fixed;
  bottom: 16px;
  inset-inline-end: 16px; /* لليمين في RTL */
  width: 56px;
  height: 56px;
  background-color: #0078ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  font-size: 28px;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.call-floating:hover,
.call-floating:focus {
  background-color: #005fcc;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  outline: none;
}

.call-floating:active {
  transform: scale(0.95);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

