/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; direction: rtl; }
body { background: #fff; color: #333; line-height: 1.6; }

/* ===== Utilities ===== */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .75rem 1.5rem; border-radius: .5rem; font-weight: 600; transition: background .2s; }

/* ===== Navbar ===== */
.navbar { background: #000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { color: #fff; font-size: 1.75rem; font-weight: bold; }
.nav-links a { margin-left: 1rem; color: #fff; transition: color .2s; }
.nav-links a:hover { color: #f59e0b; }

                                /* ===== Contact Hero ===== */
.contact-hero {
  position: relative;
  /* خلفية + تعتيم برتقالي شفاف */
  background:
    linear-gradient(rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.2)),
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url('../images/hand.jpeg') center/cover no-repeat;
  padding: 4rem 0;
  height: 550px;
  overflow: hidden;
  color: #fff;
  direction: rtl;
}

.contact-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;              /* سمك الخط */
  background: darkgoldenrod; /* لون ذهبي غامق */
  /* منحني ينحني للأعلى */
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  /* إذا احتجت انحناء أعمق عدّل القيمة الثانية (100%) */
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%; /* يرث ارتفاع القسم */
}

/* ——— Left: single phone ——— */
.phones {
  flex: 1;
  display: flex;
  justify-content: flex-start; /* الصورة جهة اليسار */
}
.phone-side {
  width: 300px;               
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* ——— Right: content ——— */
.hero-content {
  flex: 1;
  padding-left: 2rem;
}
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #000;
}
.hero-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ——— Download Buttons ——— */
.download-buttons {
  display: flex;
  gap: 1rem;
}
.download-buttons .btn {
  background: #ffd166;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.download-buttons .btn:hover {
  background: #f4a261;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-content {
    padding-left: 0;
    margin-top: 2rem;
  }
  .phones {
    justify-content: center;
  }
}


/* ===== Contact Info ===== */
.contact-info { text-align: center; padding: 2rem 0; }
.contact-info p { margin-bottom: .5rem; }
.social-links a { margin: 0 .5rem; font-size: 1.5rem; color: #555; transition: color .2s; }
.social-links a:hover { color: #f59e0b; }

/* ===== Features ===== */
.features-section { background: #111; padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 2rem; }
.feature-item {position: relative;z-index: 1;overflow: hidden; background: #1f1f1f; padding: 1.5rem; box-shadow: 0 2px 6px rgba(0,0,0,0.05);color: #f1f1f1; }
.feature-item::before {
  content: "";
  position: absolute;
  top: 27%;
  left: 20%;               /* بدل right */
  width: 130%;
  height: 150%;
  background: url('../images/logo-light.jpeg') center/contain no-repeat;
  opacity: 0.05;
  transform: translate(-50%, -50%) rotate(0deg);  /* ناقص 50% ليعود للمركز */
  pointer-events: none;
  z-index: 0;              /* خلف المحتوى */
}
.icon-wrapper {
  top: 1rem;
  left: 1rem;                   /* لو كانت RTL اجعلها right:1rem */
  width: 3rem;
  height: 3rem;
  background: #ffd166;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #111;
  z-index: 2;
}
.feature-item h3 {margin-top: 3rem; margin-bottom: .75rem; font-size: 1.25rem; position: relative; }
.feature-item h3::after {
  content: ":";
  margin-left: .25rem;          /* مساحة قبل النقطتين */
}
.feature-item p {
  font-size: .95rem;
  line-height: 1.5;
  color: #ccc;
}
.phones-single .phones-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  object-fit: cover;
}

/* ===== Shopping Experience ===== */
.shopping-experience { position: relative; background: #111; color: #fff; padding: 5rem 0; overflow: hidden; }
.overlay-shape { content: ""; position: absolute; width: 800px; height: 800px; background: #222; border-radius: 50%; top: 50%; left: -400px; transform: translateY(-50%); }
.shop-container { position: relative; z-index: 1; display: flex; align-items: center; }
.shop-content { flex: 1; padding-left: 2rem; }
.shop-content h2 { font-size: 2rem; margin-bottom: 1rem; display: inline-block; background: #f59e0b; padding: .5rem 1rem; border-radius: .25rem; color: #000; }
.features-list { list-style: none; }
.features-list li { position: relative; padding-right: 1.5rem; margin-bottom: 1rem; }
.features-list li::before { content:""; position:absolute; width: .7rem; height: .7rem; background: #f59e0b; border-radius:50%; right:0; top:.4rem; }

/* ===== CTA Download ===== */

.cta-top {
  position: relative;
  background-color: #ffd166;
  padding: 4rem 0;
  border-bottom-left-radius : 120% 62px;
  border-bottom-right-radius: 120% 62px;
  z-index: 2;
}
.cta-top h2 {font-size: 2rem;margin-bottom: 1rem;color: #000;}
.cta-top p {color: #333;max-width: 700px;margin: 0.5rem auto 0;line-height: 1.6;}
.cta-bottom {
  position: relative;
  background-color: #febe2c;
  margin-top: -62px;     
  padding: 6rem 0 3rem;
  z-index: 1;
}
.buttons-container {display: flex;justify-content: center;gap: 2rem;}
.btn-store {
  position: relative;
  background: #ffd166;
  color: #000;
  padding: 1.5rem 2rem 1rem;      /* مسافة أعلى أكبر لعرض الـ label */
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-store:hover {
  background: #fec53b;
}
.btn-store .btn-label {
  position: absolute;
  top: 0.5rem;
  right: 1rem;                    /* لأن الصفحة RTL */
  font-size: 0.8rem;
  font-weight: 400;
  color: #000;
}
.btn-store i {
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== Contact Form ===== */
.contact-form { background: #f9fafb; padding: 4rem 0; }
.form-wrapper { max-width: 600px; margin: 0 auto; display: grid; gap: 1rem; }
.form-wrapper label { font-weight: 500; }
.form-wrapper input,
.form-wrapper textarea { width: 100%; padding: .75rem; border: 1px solid #d1d5db; border-radius: .375rem; }
.btn-submit { background: #000; color: #fff; border: none; padding: .75rem; border-radius: .375rem; cursor: pointer; transition: opacity .2s; }
.btn-submit:hover { opacity: .8; }

/* ===== Categories Section ===== */
.categories-section {
  padding: 4rem 0;
  background: #111;         
  color: #f1f1f1;
  direction: rtl;
}


.categories-header h2 {
  display: inline-block;
  background: #febe2c;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  color: #000;
  font-size: 1.75rem;
}
.categories-header p {
  max-width: 600px;
  line-height: 1.6;
  color: #ccc;
}


.categories-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}


.categories-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.phone-col {
  flex: 0 0 auto;
}
.phone-col img {
  display: block;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


.category-item {
  background: #1f1f1f;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.category-item .icon {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-item .icon img {
  width: 70%;
  height: auto;
}
.category-item .text h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  color: #fff;
}
.category-item .text p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: #ccc;
}

/* ===== Promo Section ===== */
.promo-section {
  position: relative;
  background: linear-gradient(to bottom right, #ffd166 0%, #f59e0b 100%);
  padding: 3rem 2rem;
  direction: rtl;
  color: #111;
}
.promo-section .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* يسار */
.promo-left {
  order: 6 ;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.logo-img {
  width: 100px;
  margin-bottom: 1rem;
  position: absolute;
  top: 1rem;
  left: 5rem;
  width: 100px;
  z-index: 10;
}
.bottom-phones {
  margin-top: auto;
  display: flex;
  gap: 1rem;
}
.bottom-phones img {
  width: 326px;
  height: 391px;
  margin-top: 131px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* الوسط */
.promo-center {
  flex: 1;
  order: 5;
  text-align: center;
}
.promo-center h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.promo-center h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.promo-center h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.promo-center .download-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.download-buttons .btn {
  background: #000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.download-buttons .btn:hover {
  background: #333;
}

/* يمين */
.promo-right {
  order: 3;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.main-phone-img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ===== Contact Section ===== */
.contact-section {
  background: #111;
  padding: 4rem 0;
  direction: rtl;
}
.contact-container {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 2rem;
}

/* — الصورة على اليسار — */
.contact-image {
  flex: 1;
}
.contact-image img {
  position: relative;
  margin-top: 81px;
  left: -42px;
  width: 91%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* — المحتوى على اليمين — */
.contact-content {
  flex: 1;
  color: #fff;
}
.contact-content h2 {
  display: inline-block;
  background: #ffd166;
  color: #000;
  padding: .5rem 1rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-content .intro {
  margin-bottom: 2rem;
  color: #ccc;
  line-height: 1.6;
}

/* — النموذج — */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.row.two-cols {
  display: flex;
  gap: 1rem;
}
.row.two-cols input {
  flex: 1;
}
.row input,
.row textarea {
  width: 100%;
  background: #2b2b2b;
  border: none;
  border-radius: .5rem;
  padding: .75rem 1rem;
  color: #eee;
  font-size: 1rem;
  resize: vertical;
}
.row input::placeholder,
.row textarea::placeholder {
  color: #777;
}

/* — زر الإرسال — */
.btn-submit {
  align-self: flex-end;
  background: #ffd166;
  color: #000;
  border: none;
  padding: .75rem 2rem;
  font-size: 1rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover {
  background: #f4a261;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  .row.two-cols {
    flex-direction: column;
  }
  .btn-submit {
    align-self: center;
  }
}


/* ===== Footer Section ===== */
.footer-section {
  position: relative;
  background: linear-gradient(to bottom, #ffd166 0%, #f59e0b 100%);
  padding: 4rem 2rem;
  color: #111;
  direction: ltr;
  overflow: hidden;
}
/* شفافية الشعار الكبير بالخلف */
.footer-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: url('../images/logo.jpeg') center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* Grid ثلاثي الأعمدة */
.footer-grid {
  display: flex;
  gap: 2rem;
}
.footer-col {
  direction: rtl;
  flex: 1;
}

/* — Titles — */
.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* — Download Buttons — */
.download-buttons-f {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.download-buttons-f .btn {
  flex-direction: column;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #f59e0b;
  color: #111;
  width: 97px;
  height: 50px;
  border-radius: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background .2s;
}
.download-buttons-f .btn:hover {
  background: #f0f0f0;
}
/* النص الصغير */
.btn-small {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  margin-bottom: .25rem;
  margin-top: -9px;
}
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: x-small;
  margin: -13px;
}

/* — QR Codes — */
.qr-codes {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.qr-codes img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #fff;
  padding: .25rem;
  border-radius: .25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* — Direct Download Button — */
.direct-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background .2s;
}
.direct-download:hover {
  background: #333;
}

/* — Contact Center — */
.footer-center p {
  margin: .5rem 0;
  line-height: 1.6;
}

/* — Right Column — */
.footer-logo {
  width: 80px;
  margin-bottom: 1rem;
}
.social-text {
  margin: .5rem 0;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  transition: background .2s;
}
.social-links a:hover {
  background: #333;
}

/* — Legal — */
.footer-legal {
  margin-top: 2rem;
}
.footer-legal a {
  color: #111;
  text-decoration: underline;
  margin-bottom: .5rem;
  display: inline-block;
}
.footer-legal p {
  margin: .25rem 0 0;
  font-size: .9rem;
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-section::before {
    display: none;
  }
  .download-buttons { justify-content: center; }
  .qr-codes { justify-content: center; }
  .social-links { justify-content: center; }
}


/* ===== Responsive ===== */
@media(max-width:992px) {
  .hero-container,
  .shop-container { flex-direction: column-reverse; text-align:center; }
  .hero-content, .shop-content { padding: 0; margin-top:2rem; }
}
@media (max-width: 600px) {
  .icon-wrapper { top: .75rem; left: .75rem; width: 2.5rem; height: 2.5rem; }
  .feature-item { padding: 1.5rem 1rem 1rem; }
}
@media (max-width: 768px) {
  .cta-top {
    border-bottom-left-radius : 100% 40px;
    border-bottom-right-radius: 100% 40px;
    padding: 3rem 0;
  }
  .cta-bottom {
    margin-top: -40px;
    padding: 4rem 0 2rem;
  }
}
@media (max-width: 992px) {
  .categories-content {
    flex-direction: column;
  }
  .phone-col {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 992px) {
  .promo-section .container {
    flex-direction: column;
    text-align: center;
  }
  .promo-left, .promo-image-right {
    width: 100%;
  }
  .logo-img, .bottom-img {
    margin: 0 auto;
  }
  .side-img {
    margin: 1rem auto;
    height: auto;
    width: 80%;
  }
}
