/* ============================================================
   صانعي التميز — Main Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96B;
  --gold-dark:   #9A7928;
  --black:       #0D0D0D;
  --black-2:     #1a1a1a;
  --black-3:     #252525;
  --white:       #F5F5F5;
  --white-2:     #e0e0e0;
  --gray:        #888888;
  --font-main:   'Cairo', sans-serif;
  --font-sub:    'Tajawal', sans-serif;
  --transition:  0.35s ease;
  --radius:      12px;
  --shadow-gold: 0 4px 30px rgba(201,168,76,0.25);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
p  { font-family: var(--font-sub); color: var(--white-2); line-height: 1.9; }

/* ── Gold Accent Text ── */
.text-gold { color: var(--gold); }
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Titles ── */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title .subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 1rem;
}
.section-title h2 { color: var(--white); margin-bottom: 1rem; }
.section-title p  { max-width: 600px; margin: 0 auto; color: var(--gray); }
.title-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-main);
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.5s;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(201,168,76,0.45);
  color: var(--black);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-main);
  padding: 13px 30px;
  min-height: 48px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ── Navbar ── */
.navbar-custom {
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 16px 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-custom.scrolled {
  padding: 10px 0;
  background: rgba(13,13,13,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar-custom .navbar-brand img { height: 56px; }
.navbar-custom .nav-link {
  color: var(--white-2) !important;
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--gold) !important;
  background: rgba(201,168,76,0.1);
}
.navbar-custom .navbar-toggler {
  border-color: var(--gold);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 8px;
}
.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.25);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201,168,76,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--black-2);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    border: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  margin-right: 8px;
  text-align: center;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--black) !important; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.85) 0%,
    rgba(13,13,13,0.7) 50%,
    rgba(154,121,40,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero .hero-desc { font-size: 1.15rem; color: var(--white-2); max-width: 600px; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat .lbl { font-size: 0.8rem; color: var(--white-2); margin-top: 4px; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.25rem; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 40px rgba(37,211,102,0.7); }
}

/* ── Cards ── */
.service-card {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  transition: 0.4s ease;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(201,168,76,0.35); box-shadow: var(--shadow-gold); }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--black); }
.service-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ── Stats Counter ── */
.stats-section {
  background: linear-gradient(135deg, var(--black-2), var(--black-3));
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 5rem 0;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-item .counter {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-item .counter-suffix { font-size: 2rem; }
.stat-item .stat-label { color: var(--white-2); font-size: 1rem; font-weight: 600; margin-top: 0.5rem; }
.stat-item .stat-desc  { color: var(--gray); font-size: 0.85rem; }

/* ── Project Cards ── */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay .badge-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.project-overlay h4 { color: var(--white); font-size: 1.1rem; }
.project-overlay p  { color: var(--white-2); font-size: 0.85rem; }

/* ── Why Us ── */
.why-us-section { padding: 6rem 0; }
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.why-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--black);
}
.why-item h4 { color: var(--white); margin-bottom: 4px; font-size: 1.1rem; }
.why-item p  { color: var(--gray); font-size: 0.9rem; margin: 0; }
.why-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-gold);
}
.why-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  pointer-events: none;
}

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 0; background: var(--black-2); }
.testimonial-card {
  background: var(--black-3);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); }
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial-card p   { color: var(--white-2); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author   { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--black);
  font-size: 1.1rem;
}
.author-name { color: var(--white); font-weight: 700; font-size: 0.95rem; }
.author-role { color: var(--gold); font-size: 0.8rem; }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ── CTA Section ── */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--black-3) 0%, rgba(154,121,40,0.15) 50%, var(--black-3) 100%);
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-section h2  { color: var(--white); margin-bottom: 1rem; }
.cta-section p   { color: var(--gray); margin-bottom: 2rem; max-width: 550px; margin-inline: auto; }

/* ── Contact Form ── */
.contact-section { padding: 6rem 0; }
.contact-card {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 20px;
  padding: 2.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-item .icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-item h6 { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-item p  { color: var(--white-2); font-size: 0.95rem; margin: 0; }
.form-control-custom {
  background: var(--black-3) !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  min-height: 48px;
  font-family: var(--font-main) !important;
  transition: var(--transition) !important;
}
.form-control-custom:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
}
.form-control-custom::placeholder { color: var(--gray) !important; opacity: 0.7; }
.form-label { color: var(--white-2); font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.map-placeholder {
  background: var(--black-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--gray);
  margin-top: 2rem;
}
.map-placeholder i { font-size: 2.5rem; color: var(--gold); }

/* ── Footer ── */
.footer {
  background: var(--black-2);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 4rem 0 0;
}
.footer-logo img  { height: 60px; margin-bottom: 1rem; }
.footer-about p   { color: var(--gray); font-size: 0.9rem; line-height: 1.8; }
.footer-title     { color: var(--gold); font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: 8px; border-bottom: 1px solid rgba(201,168,76,0.2); }
.footer-links li  { margin-bottom: 8px; }
.footer-links a   { color: var(--gray); font-size: 0.9rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); padding-right: 6px; }
.footer-links a::before { content: '›'; color: var(--gold); }
.social-links     { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.social-link {
  width: 40px; height: 40px;
  background: var(--black-3);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--black); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  margin-top: 3rem;
  text-align: center;
}
.footer-bottom p { color: var(--gray); font-size: 0.85rem; margin: 0; }

/* ── Page Hero Banner ── */
.page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--black-3), var(--black-2));
  border-bottom: 1px solid rgba(201,168,76,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.page-hero h1 { position: relative; }
.page-hero .breadcrumb { justify-content: center; background: transparent; padding: 0; margin-top: 1rem; }
.page-hero .breadcrumb-item a    { color: var(--gold); }
.page-hero .breadcrumb-item.active { color: var(--gray); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: var(--gray); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(40px);  transition: 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(-40px); transition: 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Utility Sections ── */
section { padding: 5.5rem 0; }
.bg-dark-2 { background: var(--black-2); }
.gold-border-top { border-top: 3px solid var(--gold); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  section { padding: 4rem 0; }
  .hero   { min-height: 85vh; }
  .hero-stats { gap: 1.25rem; }
  .stat-item .counter { font-size: 2.5rem; }
}
@media (max-width: 767.98px) {
  /* Prevent horizontal animation shift on mobile */
  .reveal-left, .reveal-right { transform: translateY(30px); }
  .reveal-left.visible, .reveal-right.visible { transform: translateY(0); }
  
  section { padding: 3.5rem 0; }
  .hero   { min-height: 100vh; text-align: center; }
  .hero-badge { margin-inline: auto; display: inline-flex; }
  .hero .hero-desc { margin-inline: auto; }
  .hero .d-flex { justify-content: center; flex-direction: column; width: 100%; align-items: center; }
  .btn-gold, .btn-outline-gold { width: 100%; max-width: 320px; }
  .hero-stats  { gap: 1.5rem; justify-content: center; }
  .hero-stat .num { font-size: 1.75rem; }
  .whatsapp-float { bottom: 1.5rem; left: 1rem; width: 50px; height: 50px; font-size: 1.4rem; }
  .contact-card { padding: 1.5rem; }
  .stat-item .counter { font-size: 2.2rem; }
  .service-card { padding: 1.5rem; }
}
@media (max-width: 430px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
  section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 2rem; }
  .footer { padding-top: 3rem; }
  .nav-cta { width: 100%; margin-right: 0; }
  .btn-gold, .btn-outline-gold { max-width: 100%; }
}

/* Global Logo Styles */
.navbar-logo {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}