:root {
  --bg-color: #fff3ee;
  --brand-color: #4b2c2a;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-color);
  color: var(--brand-color);
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* الشريط العلوي */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 243, 238, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(75, 44, 42, 0.1);
}
.logo svg {
  height: 40px;
}
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.hamburger-btn span {
  width: 30px;
  height: 3px;
  background-color: var(--brand-color);
  border-radius: 3px;
  transition: 0.3s;
}

/* القائمة الجانبية */
.sidebar-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-color);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: 0.4s ease-in-out;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
}
.sidebar-overlay.active {
  right: 0;
}
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--brand-color);
  cursor: pointer;
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.sidebar-links a {
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--brand-color);
  font-weight: 500;
  transition: 0.3s;
}
.sidebar-links a:hover {
  padding-right: 15px;
  opacity: 0.7;
}

/* نظام الصفحات المخفية */
.page {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  min-height: 70vh;
}
.page.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* الواجهة الرئيسية */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
      rgba(255, 243, 238, 0.9),
      rgba(255, 243, 238, 0.9)
    ),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80")
      center/cover fixed;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title strong {
  font-weight: 700;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.btn-primary {
  background: var(--brand-color);
  color: var(--bg-color);
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.page-header {
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(75, 44, 42, 0.03);
}
.section-title {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}

/* شبكة العروض والخدمات */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.service-card {
  padding: 2rem;
  border: 1px solid rgba(75, 44, 42, 0.1);
  border-radius: 20px;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(75, 44, 42, 0.05);
}

/* شريط الفلترة */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem 2rem 2rem;
  flex-wrap: wrap;
}
.filter-bar select {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(75, 44, 42, 0.2);
  background: transparent;
  color: var(--brand-color);
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

/* بطاقة العقار */
.property-card {
  border: 1px solid rgba(75, 44, 42, 0.1);
  border-radius: 24px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.property-card:hover {
  transform: scale(1.02);
}
.card-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(75, 44, 42, 0.05);
  margin-bottom: 1rem;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.property-card:hover .card-image {
  transform: scale(1.1);
}
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-color);
  color: var(--brand-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
.card-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  padding: 0 10px;
}
.card-details p {
  font-weight: 300;
  opacity: 0.8;
  font-size: 0.9rem;
  padding: 0 10px;
}

/* تفاصيل العقار الداخلية */
.details-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.details-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.details-gallery img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.details-info {
  display: grid;
  gap: 2rem;
}
.details-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.features-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.feature-item {
  background: rgba(75, 44, 42, 0.05);
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: 500;
}
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.action-buttons .btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  flex: 1;
  min-width: 200px;
  transition: 0.3s;
}
.action-buttons .btn-whatsapp:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.action-buttons .btn-primary {
  flex: 1;
  min-width: 200px;
}

/* النماذج والإحصائيات */
.contact-container,
.about-content,
.faq-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  gap: 2rem;
}
.contact-container {
  grid-template-columns: 1fr 1fr;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(75, 44, 42, 0.2);
  background: transparent;
  color: var(--brand-color);
  outline: none;
  font-family: inherit;
}

.stats-section {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: var(--brand-color);
  color: var(--bg-color);
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.stat-box h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* حركات وتأثيرات */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s all ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* الأزرار العائمة */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--brand-color);
  color: var(--bg-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  animation: bounce 2s infinite;
}
.back-to-top {
  position: fixed;
  bottom: 100px;
  left: 35px;
  background: transparent;
  border: 2px solid var(--brand-color);
  color: var(--brand-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: 0.3s;
  font-size: 1.5rem;
}
.back-to-top:hover {
  background: var(--brand-color);
  color: var(--bg-color);
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

footer {
  border-top: 1px solid rgba(75, 44, 42, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}