/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #663e86;
  --purple-light: #7e54a0;
  --purple-dark:  #4e2d68;
  --purple-pale:  #f3eef8;
  --purple-soft:  #e8ddf2;
  --accent:       #9b6cc4;
  --bg:           #ffffff;
  --bg-2:         #faf8fc;
  --bg-3:         #f3eef8;
  --border:       #e2d8ed;
  --border-dark:  #c9b8de;
  --text:         #1a1a2e;
  --text-muted:   #6b5f7a;
  --text-dim:     #a090b0;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 2px 16px rgba(102,62,134,0.10);
  --shadow-md:    0 4px 32px rgba(102,62,134,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Tajawal', sans-serif;
}
.btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--purple);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--purple);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Tajawal', sans-serif;
}
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-block { width: 100%; text-align: center; padding: 16px; font-size: 17px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(30,10,50,0.88) 40%, rgba(30,10,50,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 650px;
}
.wafi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.wafi-dot {
  width: 7px; height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-company { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 12px; }
.hero-title {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-sub { font-size: 20px; color: #c4a8e8; font-weight: 600; margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.8; }
.hero-stats { display: flex; align-items: center; gap: 24px; margin-top: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 800; color: #c4a8e8; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--purple);
  padding: 14px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.trust-item svg { color: #c4a8e8; flex-shrink: 0; }
.trust-sep { color: rgba(255,255,255,0.25); font-size: 18px; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-purple { background: var(--bg-3); }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--purple); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--text); margin-bottom: 16px; line-height: 1.2;
}
.section-desc { font-size: 16px; color: var(--text-muted); max-width: 620px; margin-bottom: 48px; line-height: 1.8; }

/* ===== STEPS ===== */
.steps { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.step:hover { box-shadow: var(--shadow-md); border-color: var(--purple-light); }
.step-num { font-size: 48px; font-weight: 900; color: var(--purple-soft); line-height: 1; margin-bottom: 16px; }
.step-body h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.step-arrow { color: var(--purple); font-size: 24px; padding-top: 40px; flex-shrink: 0; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; }
.gallery-side { display: flex; flex-direction: column; gap: 12px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; flex: 1; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.gallery-caption {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(30,10,50,0.75));
  color: #fff; font-size: 12px; padding: 20px 12px 10px;
}

/* ===== UNITS ===== */
.units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.unit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.unit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-dark); }
.unit-featured { border-color: var(--purple) !important; border-width: 2px; }
.unit-tag {
  display: inline-block;
  background: var(--bg-3); color: var(--text-muted);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; align-self: flex-start;
}
.unit-tag-purple { background: var(--purple-soft); color: var(--purple); }
.unit-card h3 { font-size: 20px; font-weight: 800; color: var(--text); }
.unit-size { font-size: 14px; color: var(--text-muted); }
.unit-price { font-size: 16px; color: var(--text); }
.unit-price strong { color: var(--purple); font-size: 20px; }
.unit-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.unit-features li { font-size: 14px; color: var(--text-muted); padding-right: 18px; position: relative; }
.unit-features li::before { content: '✓'; position: absolute; right: 0; color: var(--purple); font-weight: 700; }

/* ===== RESIDENTIAL ===== */
.residential { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.residential-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.residential-img img { width: 100%; height: 360px; object-fit: cover; }
.res-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.res-features span {
  background: var(--purple-soft); color: var(--purple);
  font-size: 13px; padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border-dark);
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 2px; max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: 'Tajawal', sans-serif; font-size: 16px; font-weight: 600;
  text-align: right; padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--purple); }
.faq-icon { color: var(--purple); font-size: 22px; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; font-size: 15px; color: var(--text-muted); line-height: 1.8; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

/* ===== FORM ===== */
.form-wrapper {
  max-width: 560px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  direction: rtl;
}
.form-group input:focus, .form-group select:focus { border-color: var(--purple); }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 4px; }
.form-note svg { color: var(--purple); flex-shrink: 0; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 10px 14px; font-size: 14px; text-align: center; }
.form-success { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 0; }
.form-success h3 { font-size: 22px; font-weight: 800; color: var(--text); }
.form-success p { color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { background: var(--text); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-size: 18px; font-weight: 800; color: #c4a8e8; }
.footer-company { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.footer-wafi { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content { max-width: 100%; padding-top: 80px; }
  .hero-title { font-size: 38px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-main img { height: 260px; }
  .gallery-side { flex-direction: row; }
  .gallery-item img { min-height: 90px; }
  .residential { grid-template-columns: 1fr; gap: 32px; }
  .residential-img { order: -1; }
  .form-wrapper { padding: 24px 18px; }
  .trust-inner { gap: 12px; justify-content: flex-start; }
  .trust-sep { display: none; }
  .hero-stats { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== BROCHURE BUTTONS ===== */
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-brochure {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-brochure:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }

.btn-brochure-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--purple-pale);
  color: var(--purple);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700; font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-brochure-lg:hover { background: var(--purple-soft); border-color: var(--purple); transform: translateY(-1px); }

/* ===== LOGOS ===== */
.hero-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-logos-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Footer logos */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }
.footer-logos-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.footer-right { text-align: left; }
.footer-company { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-wafi    { font-size: 12px; color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .hero-logo  { height: 42px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: right; }
}
