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

html { scroll-behavior: smooth; }
body {
  height: 100%;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background-color: #f5f7f0;
  direction: rtl;
  text-align: right;
  color: #000;
}





.hero {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #6C63FF, #4C4AFF);
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero__inner {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


.hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  position: relative;
}

.hero-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.hero-icon-link:hover {
  transform: scale(1.15);
}

.hero-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1); /* يجعلها بيضاء لتتناسب مع الخلفية */
  cursor: pointer;
}


.hero__subtitle {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-top: 10px;
  line-height: 1.4;
}

.hero__image {
  width: 170px;
  height: auto;

}

.hero-call {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -28px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 40px;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 10;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.hero-call:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}



.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: nowrap;
}

.cta-button,
.request-button {
  flex: 1;
  min-width: 140px;
  margin: 0;
  text-align: center;
}



/* ===== FOOTER (full-width) ===== */
.footer {
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  grid-column: 1 / -1;
}


/* ===== FLOATING BUTTONS (على الأطراف) ===== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  pointer-events: none;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform .25s ease, box-shadow .25s ease;
  pointer-events: auto;
}




.hero__text-group {
  z-index: 2;
}







.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 20px;
  display: grid;
  gap: 30px;
}

.main-card {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #000;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-card .window-image {
  width: 250px;
  height: auto;
  margin: 0 auto 20px;
}

.main-card .main-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}


.phone-button {
  background: linear-gradient(135deg, #6C63FF, #4C4AFF);
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: all .25s ease;
  cursor: pointer;
}

.phone-button:hover {
  background: linear-gradient(135deg, #6C63FF, #4C4AFF);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 129, 255, 0.4);
}


.cta-button,
.request-button {
  border: none;
  border-radius: 25px;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all .25s ease;
  margin: 8px 0;
}

.cta-button {
  background: linear-gradient(135deg, #6C63FF, #4C4AFF);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

.request-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.request-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.features-section {
  max-width: 1000px;
  width: 100%;
  margin: 30px auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ddd;
  padding: 40px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}


.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  margin-top: 2px;
}

.check-icon::after {
  content: '✓';
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.feature-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.4;
}

.feature-content p {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  line-height: 1.6;
}


.footer {
  width: 100%;
  background: linear-gradient(135deg, #f5f7f0, #eaeef9);
  border-top: 2px solid #6C63FF;
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
}

.footer p {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer a {
  color: #4C4AFF;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #25D366;
}

.footer a::before {
  content: "• ";
  color: #6C63FF;
}



.floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  background: #25D366;
}

.call-btn {
  background: #fff;
  border: 2px solid #000;
}

.floating-btn svg {
  width: 28px;
  height: 28px;
}

/* حاوية كل زر على حدة */
.fab-wrap { position: fixed; bottom: 22px; z-index: 1000; }
.fab-wrap--right { right: 18px; }
.fab-wrap--left  { left: 18px; }

/* الزر الدائري الأساسي */
.fab {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  will-change: transform;
}
.fab svg { width: 30px; height: 30px; fill: #fff; }

.fab:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.26); }

/* واتساب */
.fab--wa   { background: #25D366; animation: fabPulse 2.6s ease-in-out infinite; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(37,211,102,.35); }
  50%      { box-shadow: 0 14px 34px rgba(37,211,102,.55); }
}

/* اتصال */
.fab--call { background: #FF3B30; } /* أحمر جميل */

/* البالون النصي */
.fab-label{
  position: absolute;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  opacity: 1;                 /* ← ظاهر دائمًا */
  transform: none;            /* ← بلا حركة دخول */
  pointer-events: none;       /* لا يحجب النقر على الزر */
}
/* موضع البالون بالنسبة لكل زر */
.fab-wrap--right .fab-label { right: 76px; }  /* يظهر يسار زر الواتساب */
.fab-wrap--left  .fab-label { left: 76px; }   /* يظهر يمين زر الاتصال */

/* إظهار البالون عند الاقتراب (هوفر/فوكَس) */
.fab:hover .fab-label,
.fab:focus-visible .fab-label {
  opacity: 1;
  transform: translateY(0);
}

/* تحسين الموبايل: تكبير بسيط وتخفيف الظلال */
@media (max-width: 600px) {
  .fab { width: 60px; height: 60px; }
  .fab svg { width: 28px; height: 28px; }
  .fab-label { font-size: 13px; padding: 7px 10px; }
}
.fab-svg { width: 32px; height: 32px; display: block; }

@media (max-width: 600px) { .fab-svg { width: 28px; height: 28px; } 

 .hero {
    position: relative;
    height: 200px;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .hero__title {
    display: block;
    text-align: center;
    font-size: 2rem;
    margin: 0;
  }

  /* ✅ تم تعديل الموضع من inset-inline-end إلى right */
  .hero-icon-link {
    position: absolute;
    top: 14px;
    right: 14px; /* ← هذا هو التعديل المهم */
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    z-index: 3;
    transform: none;
  }

  .hero-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    pointer-events: none;
  }

  .hero__image {
    width: 140px;
    margin-inline: auto;
  }

  .hero__subtitle {
    margin-top: 6px;
    line-height: 1.5;
  }


  .hero-call {
    bottom: -22px;
    padding: 8px 18px;
    font-size: 14px;
    border-width: 2px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    margin-inline: auto;
  }

  .hero {
    height: 200px;
  }

  .main-card {
    max-width: 95%;
    padding: 20px 15px;

  }

  .main-card .window-image {
    width: 150px;
  }

  .main-card .main-title {
    font-size: 20px;
  }

  .cta-button,
  .request-button {
    font-size: 16px;
    padding: 12px 24px;
  }

  .features-section {
    max-width: 95%;
    padding: 20px 15px;
  }

  .feature-content h3 {
    font-size: 14px;
  }

  .feature-content p {
    font-size: 12px;
  }
}


@media (min-width: 1200px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-card {
    grid-column: 1 / 3;
  }
}