/* ================= Global ================= */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: #E9E4E0;
  color: #1B191A;
  line-height: 1.6;
}

/* ================= Navbar ================= */
.navbar {
  width: 100%;
  background-color: rgba(27,25,26,0.9);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.nav-logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links li a,
.nav-links li button {
  color: #E9E4E0;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
}

.nav-links li a:hover,
.nav-links li button:hover {
  color: #943A1F;
  box-shadow: none;
  transform: translateY(0);
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #E9E4E0;
  margin-bottom: 4px;
  border-radius: 3px;
}

/* ================= Hero ================= */
.hero,
.about-hero,
.services-hero,
.projects-hero,
.contact-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero img,
.about-hero img,
.services-hero img,
.projects-hero img,
.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.about-hero::after,
.services-hero::after,
.projects-hero::after,
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-text,
.about-text,
.services-text,
.projects-text,
.contact-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #E9E4E0;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.5s forwards;
  max-width: 90%; /* توسيع النص */
}

.hero-text h1,
.about-text h1,
.services-text h1,
.projects-text h1,
.contact-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text p,
.about-text p,
.services-text p,
.projects-text p,
.contact-text p {
  font-size: 20px;
}

.hero-text .btn-primary {
  margin-top: 25px; /* أنزل الزر */
}
/* ================= Sections Centering ================= */
.about.reveal,
.services.reveal,
.projects.reveal,
.reviews.reveal {
  display: flex;
  flex-direction: column;
  align-items: center; /* محاذاة أفقية للنصوص والمحتوى */
  justify-content: center; /* محاذاة عمودية إذا أردنا */
  text-align: center;
  padding: 60px 20px;
}

.about.reveal h2,
.services.reveal h2,
.projects.reveal h2,
.reviews.reveal h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.about.reveal p,
.services.reveal p,
.projects.reveal p,
.reviews.reveal p {
  font-size: 18px;
  max-width: 800px; /* توسيع النصوص */
  margin: 0 auto 30px; /* مركزية + مسافة تحت */
}

.about.reveal .hero-buttons,
.services.reveal .hero-buttons,
.projects.reveal .hero-buttons,
.reviews.reveal .hero-buttons {
  display: flex;
  justify-content: center; /* وضع الأزرار في منتصف الصفحة */
  gap: 15px;
}

.about.reveal .hero-buttons a,
.services.reveal .hero-buttons a,
.projects.reveal .hero-buttons a,
.reviews.reveal .hero-buttons a {
  margin-top: 10px;
}

/* ================= FadeIn Animation ================= */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* ================= About Section Cards ================= */
.about-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* مركزية الكروت أفقياً */
  gap: 20px;
  max-width: 1000px;
  margin: 50px auto 0 auto; /* مسافة من الهيرو + توسيط */
}

/* الكروت نفسها */
.detail-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(148,58,31,0.2);
  transition: all 0.4s ease;
  flex: 1 1 45%; /* اثنان في الصف */
  max-width: 45%;
  text-align: center;
  opacity: 0;            /* للانيميشن */
  transform: translateY(20px); /* بداية الحركة من أسفل */
}

/* Hover effect للكروت */
.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(148,58,31,0.35),
              0 0 20px rgba(148,58,31,0.25);
}

/* ==== Reveal Animation للكروت ==== */
.detail-card.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

/* ==== Special layout for 3 cards (2 above, 1 below) ==== */
.detail-card:nth-child(3) {
  flex-basis: 100%;
  max-width: 300px;  /* حجم أصغر للبطاقة الثالثة */
  margin: 0 auto;    /* وضعها في منتصف الصف الثاني */
}

/* زر CTA أسفل الكروت في المنتصف */
.cta {
  margin-top: 40px;
  text-align: center;
}

.cta .btn-primary {
  margin: 0 auto;
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-card {
    flex: 1 1 45%; /* صف به كارتين */
    max-width: 45%;
  }

  .detail-card:nth-child(3) {
    max-width: 45%; /* لتصغيرها قليلاً في الشاشات المتوسطة */
  }
}

@media (max-width: 768px) {
  .detail-card {
    flex: 1 1 90%; /* كارت واحد لكل صف */
    max-width: 90%;
    margin: 10px auto;
  }

  .detail-card:nth-child(3) {
    max-width: 90%;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .detail-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* ================= Services Section Cards ================= */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* محاذاة الكروت في المنتصف */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto; /* مركزية المجموعة كلها */
}

/* الكروت نفسها */
.services-cards .service-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(148,58,31,0.2);
  transition: all 0.4s ease;
  flex: 1 1 300px; /* الحجم الأساسي للكارت */
  max-width: 300px;
  text-align: center; /* النصوص في منتصف الكارت */
}

/* Hover effect للكروت */
.services-cards .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(148,58,31,0.35), 0 0 20px rgba(148,58,31,0.25);
}

/* الصور داخل الكارت أصغر من حجم الكارت */
.services-cards .service-card img {
  width: 80%;  /* الصورة أصغر من عرض الكارت */
  height: auto;
  border-radius: 15px;
  margin: 0 auto 15px auto; /* توسيط الصورة داخل الكارت */
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect على الصورة */
.services-cards .service-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(148,58,31,0.25);
}

/* الزر أسفل الكروت في المنتصف */
.services-cards button {
  margin: 30px auto 0 auto;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-cards .service-card {
    flex: 1 1 45%; /* صف به كارتين */
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .services-cards .service-card {
    flex: 1 1 90%; /* كارت واحد لكل صف */
    max-width: 90%;
    margin: 0 auto;
  }
}
/* ================= Projects / Agents ================= */
.projects-agents {
  margin-top: 60px; /* مسافة بين hero و first project */
}

/* Cover يبقى كما هو */
.agent-cover-luxury {
  position: relative;
  height: 250px; /* حجم أقل من السابق */
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 20px;
}

.agent-cover-luxury img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.agent-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.75));
}

.agent-cover-content {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #E9E4E0;
  text-shadow: 0 0 10px #943A1F;
}

.agent-cover-content h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.agent-cover-content span {
  font-size: 14px;
}

/* وصف كل project */
.agent-description {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 16px;
  color: #1B191A;
  line-height: 1.6;
}/* ================= Luxury Grid (Projects Images - Store Style) ================= */
.luxury-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 صور لكل صف */
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto; /* توسيط الصور والمسافة من cover */
  justify-items: center; /* مركز الصور داخل الخانات */
  align-items: center;
}

.luxury-grid img {
  width: 90%;          /* يشغل معظم المساحة داخل كل خانة */
  height: 180px;       /* ارتفاع ثابت متناسب مع 90% العرض */
  object-fit: cover;   /* تغطية كاملة للخانة بدون تشويه */
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.luxury-grid img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(148,58,31,0.35),
              0 0 20px rgba(148,58,31,0.25);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .luxury-grid {
    grid-template-columns: repeat(2, 1fr); /* صفين لكل صف */
  }

  .luxury-grid img {
    height: 160px; /* تصغير النسخة المتوسطة */
  }
}

@media (max-width: 768px) {
  .luxury-grid {
    grid-template-columns: 1fr; /* صف واحد لكل صف */
  }

  .luxury-grid img {
    width: 80%;
    height: 140px;
  }
}
/* ================= Contact Form ================= */
.contact-form {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.contact-form .form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(148,58,31,0.2);
  transition: all 0.4s ease;
}

.contact-form .form-container:hover {
  box-shadow: 0 10px 25px rgba(148,58,31,0.35),
              0 0 20px rgba(148,58,31,0.25);
}

.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-weight: 700;
  color: #1B191A; /* داكن */
  margin-bottom: 8px;
  font-size: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(148,58,31,0.35),

}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 12px #943A1F;
  border-color: #943A1F;
}
/* ================= Email Contact ================= */
.email-contact {
  margin-top: 30px;
  padding: 30px 25px;
  background-color: #E9E4E0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(148,58,31,0.25);
}

.email-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background-color: #943A1F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.email-contact p {
  font-size: 16px;
  color: #1B191A;
  margin-bottom: 12px;
  line-height: 1.8;
}

.email-contact a {
  font-size: 18px;
  font-weight: 700;
  color: #943A1F;
  text-decoration: none;
  transition: all 0.3s ease;
}

.email-contact a:hover {
  color: #1B191A;
  text-decoration: underline;
}

/* ===== Email Icon Mobile Fix Final ===== */
@media (max-width: 768px) {
  .email-icon {
    width: 35px !important;
    height: 35px !important;
    background-color: #943A1F !important; /* نفس الديسكتوب */
    padding: 0 !important;
    margin: 0 auto 10px !important;
  }

  .email-icon svg {
    width: 16px !important;
    height: 16px !important;
    fill: #ffffff !important; /* نفس الديسكتوب */
  }
}

@media (max-width: 480px) {
  .email-icon {
    width: 30px !important;
    height: 30px !important;
    background-color: #943A1F !important;
    padding: 0 !important;
    margin: 0 auto 8px !important;
  }

  .email-icon svg {
    width: 14px !important;
    height: 14px !important;
    fill: #ffffff !important;
  }
}

/* ================= Buttons ================= */
.btn-primary {
  background-color: #943A1F;
  color: #E9E4E0;
  margin: 20px auto 0 auto;
  padding: 12px 40px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 0 20px #943A1F;
  transform: translateY(-2px);
}

/* ================= Footer ================= */
.footer {
  background-color: rgba(27,25,26,0.9);
  text-align: center;
  padding: 40px 20px;
  position: relative; /* يبقى أسفل الصفحة */
  margin-top: 50px;   /* مسافة فوق الفوتر */
  z-index: 9999;      /* تأكد أنه أعلى من أي عنصر آخر */
}

.footer p {
  color: #E9E4E0;
  position: relative; /* يضمن ظهوره فوق أي overlays */
  z-index: 10000;     /* أعلى من الفوتر نفسه */
  margin: 0;
  opacity: 1 !important;
}
/* ================= Responsive ================= */

/* ===== 1024px ===== */
@media (max-width: 1024px) {

  .hero-text h1 { font-size: 40px; }
  .hero-text p { font-size: 18px; }

  .detail-card,
  .service-card,
  .about-card,
  .services-card {
    max-width: 45%;
  }

  .luxury-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 768px ===== */
@media (max-width: 768px) {

  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 16px; }

  .about-cards,
  .services-cards {
    flex-direction: column;
    align-items: center;
  }

  .detail-card,
  .service-card,
  .about-card,
  .services-card {
    max-width: 80%;
  }

  .luxury-grid {
    grid-template-columns: 1fr;
  }



  .nav-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 14px; }

  .detail-card,
  .service-card,
  .about-card,
  .services-card {
    max-width: 90%;
  }
}
/* ================= Text Reveal Animation ================= */
.reveal-text {
  opacity: 0;
  transform: translateY(20px); /* يبدأ من أسفل قليلاً */
  transition: all 0.8s ease-out;
}

.reveal-text.active
 {
  opacity: 1;
  transform: translateY(0); /* يظهر في مكانه */
}
.reveal-image {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-image.active {
  opacity: 1;
  transform: translateY(0);
}
/* ================= Contact Icons ================= */
.icon {
  width: 22px;
  height: 22px;
  fill: #943A1F;
  vertical-align: middle;
  margin-left: 6px;
}

/* Links */
.contact-link {
  display: block;
  color: #1B191A;
  text-decoration: none;
  font-weight: 600;
  margin: 5px 0;
}

.contact-link:hover {
  color: #943A1F;
}

/* ================= Contact Location Centered ================= */
.contact-location {
  display: flex;
  justify-content: center; /* مركزية أفقية */
  align-items: center;     /* مركزية عمودية */
  min-height: 70vh;        /* ارتفاع القسم ليظهر في منتصف الشاشة */
  padding: 40px 20px;
  flex-direction: column;  /* ترتيب العمود: كارت ثم خريطة */
  gap: 30px;               /* مسافة بين الكارت والخريطة */
}

.contact-location .location-wrapper {
  display: flex;
  flex-direction: column; /* ترتيب الكروت عمودياً */
  align-items: center;    /* توسيط أفقياً */
  justify-content: center;
  gap: 20px;              /* مسافة بين الكارتين */
}

.contact-location .info-card {
  max-width: 350px;
  width: 100%;
  height: 150px;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 25px;
  border-radius: 20px;
  background-color: #943A1F;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-location .info-card h3 {
  display: flex;
  align-items: center;
  justify-content: center; /* النص + أيقونة في الوسط */
  gap: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-location .info-card p {
  margin: 0;
  font-size: 16px;
}

.contact-location .contact-map {
  width: 100%;
  max-width: 600px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-location .contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}/* ===== Hero Slider ===== */
.brand-hero {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.brand-hero .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.brand-hero .hero-slide.active {
  opacity: 1;
}

.brand-hero .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Brand Content ===== */
.brand-content {
  text-align: center;
  max-width: 900px;
  margin: 80px auto 0 auto; /* مسافة من الهيرو */
  opacity: 0;
  transform: translateY(100px); /* يبدأ من أسفل */
  transition: all 1s ease-out;
}

.brand-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mockup Header ===== */
.mockup-header {
  text-align: center;
  margin-bottom: 40px; /* مسافة بين العنوان والشبكة */
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.mockup-header h2,
.mockup-header h3 {
  margin: 10px 0; /* مسافة بين العنوان الفرعي والرئيسي */
}

.mockup-header.active {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Mockups Grid ===== */
.mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.mockup-box {
  background: #E9E4E0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(148,58,31,0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 300px;
}

.mockup-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mockup-box span {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: #1B191A;
}

.mockup-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(148,58,31,0.35),
              0 0 20px rgba(148,58,31,0.25);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .mockups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-box img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .mockups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-box img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .mockups-grid {
    grid-template-columns: 1fr;
  }
  .mockup-box img {
    height: 160px;
  }
}

/* ===== Reveal Animation عند التمرير ===== */
.brand-content,
.mockup-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.brand-content.active,
.mockup-header.active {
  opacity: 1;
  transform: translateY(0);
}
/* ================= Navbar Mobile ================= */
@media (max-width: 900px){

  .hamburger{
    display:flex;
  }

  .nav-links{
    position:absolute;
    top:100%;
    right:0;
    width:100%;
    background:rgba(27,25,26,0.95);
    backdrop-filter:blur(10px);
    flex-direction:column;
    align-items:center;
    gap:18px;
    padding:25px 0;
    display:none;
    border-bottom:1px solid rgba(150,150,150,.3);
  }

  .nav-links.active{
    display:flex;
  }

  .nav-links li a{
    color: #E9E4E0;
    font-size:18px;
    text-shadow: 0 0 10px rgba(148,58,31,0.8);
  }

  .nav-links li a[data-ar="أبدا معنا"]{
    width:80%;
    text-align:center;
  }
}