@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --gold: #b28a47;
  --gold-hover: #967035;
  --bg-beige: #f9f6f0;
  --text-dark: #2c2c2c;
  --text-gray: #666;
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  direction: rtl;
  line-height: 1.6;
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
  display: block;
}

/* Utilities */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 40px 0; }
.bg-beige { background-color: var(--bg-beige); }

/* Buttons */
.btn-gold {
  display: block;
  width: 100%;
  background-color: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 800;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-gold:hover { background-color: var(--gold-hover); }

/* Decorative Titles */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.section-title::before, .section-title::after {
  content: '';
  height: 2px;
  background-color: var(--gold);
  width: 50px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-top: -20px;
  margin-bottom: 30px;
  font-weight: 700;
}

/* 1. Top Bar & Header */
.top-bar {
  background-color: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background-color: var(--white);
  border-bottom: 1px solid #eee;
}
.main-logo {
  height: 60px; /* يمكن تكبيره أو تصغيره حسب الحاجة */
  max-width: 100%;
  object-fit: contain;
}

/* 2. Hero Section Carousel */
.hero-carousel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
}
.carousel-track {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
  touch-action: pan-y;
  z-index: 1;
}
.carousel-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.2);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.2);
}
.hero-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 400px;
  box-shadow: var(--shadow);
  text-align: right;
  z-index: 2;
  position: relative;
}
.hero-card h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}
.hero-card p {
  color: var(--text-gray);
  margin-bottom: 15px;
  font-weight: 500;
}
.hero-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* 3. Features Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.feature-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
}
.feature-card h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--text-gray); }

/* 4. Testimonials */
.testimonials {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.testimonials::-webkit-scrollbar { display: none; }
.testi-card {
  min-width: 250px;
  background: var(--white);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  width: 50px;
  height: 50px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.testi-text h4 { font-size: 1rem; color: var(--gold); }
.testi-text p { font-size: 0.9rem; font-weight: 700; margin-top: 5px; }

/* Forms */
.form-container {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.form-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }
.form-group label { width: 100px; font-weight: 700; }
.form-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}
.form-group input:focus { outline: 1px solid var(--gold); border-color: var(--gold); }

/* 6 & 7. Details / Split Images */
.split-images {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.split-img-box {
  flex: 1;
  position: relative;
}
.img-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}
.text-paragraph {
  text-align: center;
  font-weight: 700;
  color: var(--text-gray);
  line-height: 1.8;
  margin-top: 20px;
}

.wide-image-box {
  position: relative;
  margin-top: 30px;
}
.info-boxes {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-box {
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 8. 2x2 Grid Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.value-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.value-card h4 { color: var(--gold); margin-bottom: 5px; }
.value-card p { font-size: 0.85rem; color: var(--text-gray); }

/* 9. Experience Gallery */
.gallery-3 {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.gallery-3 img { flex: 1; object-fit: cover; height: 150px; }

/* Footer */
footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: right;
}
.footer-col h5 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 5px; color: #ccc; }

@media (max-width: 600px) {
  .hero-carousel { 
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: auto;
  }
  .carousel-track {
    position: relative;
    height: 400px; /* ارتفاع ثابت للصور في الهاتف */
  }
  .carousel-dots {
    bottom: auto;
    top: 360px; /* موقع النقاط فوق الصور */
  }
  .hero-card { 
    max-width: 100%; 
    text-align: center; 
    margin: 0;
    border-radius: 0;
    box-shadow: none; /* إزالة الظل لتندمج كقسم عادي أسفل الصور */
    padding: 30px 20px;
  }
  .form-group { flex-direction: column; align-items: stretch; gap: 5px; }
  .form-group label { width: auto; }
  .info-boxes { right: 10px; }
  .values-grid { grid-template-columns: 1fr; }
}
