/* --- الإعدادات الأساسية --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-charcoal: #141414;
  --gold: #c2a673;
  --gold-hover: #a88c58;
  --text-light: #f5f5f5;
  --text-muted: #8c8c8c;
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- الخصائص المنطقية والهيكل --- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 5%;
}

.section-padding {
  padding-block: 100px;
}

/* --- الأزرار --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.btn-solid {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-solid:hover {
  background: var(--gold-hover);
}

/* --- الهيدر والقائمة --- */
header {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  z-index: 100;
  padding-block: 25px;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding-block: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

/* زر الجوال */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* --- حركات الظهور (Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- الرئيسية: Hero --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?q=80&w=1600') center/cover;
  opacity: 0.3;
  transform: scale(1.05);
  animation: heroScale 10s ease-out forwards;
}

@keyframes heroScale {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  margin-block-end: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-block-end: 40px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* --- المميزات --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  padding: 40px;
  background: var(--bg-charcoal);
  border-inline-start: 2px solid transparent;
  transition: var(--transition);
}

.feature-item:hover {
  border-inline-start-color: var(--gold);
  transform: translateX(-5px);
}

.feature-number {
  font-size: 2rem;
  color: var(--gold);
  margin-block-end: 15px;
  font-weight: 700;
  opacity: 0.5;
}

/* --- الخدمات (الرئيسية والصفحة) --- */
.services-list {
  display: grid;
  gap: 20px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: var(--bg-charcoal);
  transition: var(--transition);
}

.service-card:hover {
  background: #1a1a1a;
  transform: scale(1.01);
}

.service-info h3 {
  margin-block-end: 5px;
}

.service-meta {
  color: var(--gold);
  font-size: 1.1rem;
}

/* فلاتر صفحة الخدمات */
.service-filters {
  display: flex;
  gap: 15px;
  margin-block-end: 40px;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  color: var(--gold);
}

/* --- المعرض (Editorial Style) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- قسم قبل / بعد --- */
.ba-section {
  background: var(--bg-charcoal);
}

.ba-wrapper {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
}

.ba-img {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  width: 50%;
  z-index: 2;
  border-inline-end: 2px solid var(--gold);
}

.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 40px;
  margin-inline-start: -20px;
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-slider-circle {
  width: 30px;
  height: 30px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: bold;
}

/* --- الآراء (Slider) --- */
.testimonials {
  text-align: center;
}

.testi-slide {
  display: none;
  animation: fadeEffect 0.8s;
}

.testi-slide.active {
  display: block;
}

@keyframes fadeEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testi-text {
  font-size: 1.5rem;
  font-style: italic;
  margin-block-end: 20px;
}

/* --- التواصل --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info div {
  margin-block-end: 30px;
}

.contact-info h4 {
  color: var(--gold);
  margin-block-end: 10px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-block-end: 20px;
  background: var(--bg-charcoal);
  border: 1px solid #333;
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

#form-message {
  display: none;
  color: var(--gold);
  margin-block-start: 15px;
}

/* --- واتساب الطافي --- */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  inset-inline-end: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

/* --- ريسبونسيف --- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* يتم فتحها بـ JS */
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    background: var(--bg-charcoal);
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 { font-size: 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}