/* ============================================
   ZAHRAT AL JABAL — Design System & Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #E31E24;
  --red-dark: #B81419;
  --navy: #1B2A4A;
  --navy-light: #2A3F6A;
  --white: #FFFFFF;
  --light: #F5F6FA;
  --gray: #E5E7EB;
  --dark: #1A1A1A;
  --text: #374151;
  --text-light: #6B7280;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 12px 48px rgba(27,42,74,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-body: 'Inter', 'Noto Kufi Arabic', sans-serif;
  --font-heading: 'Outfit', 'Noto Kufi Arabic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.7; overflow-x: hidden; background: var(--white); }

/* RTL */
[dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Inter', sans-serif; }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4,[dir="rtl"] h5,[dir="rtl"] h6 { font-family: 'Noto Kufi Arabic', 'Outfit', sans-serif; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 10px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(27,42,74,0.97); backdrop-filter: blur(12px); padding: 6px 0; box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 80px; width: auto; object-fit: contain; border-radius: 10px; }
.navbar.scrolled .nav-logo img { height: 55px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--red); transition: var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }

.lang-toggle { display: inline-flex; align-items: stretch; background: rgba(255,255,255,0.15); border-radius: 50px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.lang-toggle button { background: transparent; border: none; color: rgba(255,255,255,0.7); padding: 8px 16px; font-size: 0.85rem; cursor: pointer; font-weight: 600; transition: var(--transition); font-family: var(--font-body); line-height: 1; display: flex; align-items: center; justify-content: center; }
.lang-toggle button.active { background: var(--red); color: var(--white); border-radius: 50px; margin: -1px; padding: 9px 17px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--navy); padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,42,74,0.92) 0%, rgba(27,42,74,0.6) 50%, rgba(227,30,36,0.3) 100%); }
.hero-diagonal { position: absolute; top: 0; right: -5%; width: 50%; height: 100%; background: var(--red); clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.12; }
[dir="rtl"] .hero-diagonal { right: auto; left: -5%; clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(227,30,36,0.15); border: 1px solid rgba(227,30,36,0.3); padding: 8px 20px; border-radius: 50px; color: var(--red); font-weight: 600; font-size: 0.85rem; margin-bottom: 24px; backdrop-filter: blur(8px); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: var(--white); margin-bottom: 8px; }
.hero h1 .highlight { color: var(--red); display: inline-block; position: relative; }
.hero h1 .highlight::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 6px; background: var(--red); opacity: 0.3; border-radius: 3px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 560px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); font-family: var(--font-body); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 4px 20px rgba(227,30,36,0.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(227,30,36,0.45); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: var(--red); }
.hero-stat p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== SECTION COMMON ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--light); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header .label { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-header .label::before, .section-header .label::after { content: ''; width: 24px; height: 2px; background: var(--red); }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); }
.about-image::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, rgba(27,42,74,0.5), transparent); border-radius: var(--radius); }
.about-accent { position: absolute; top: -20px; left: -20px; width: 120px; height: 120px; border: 4px solid var(--red); border-radius: var(--radius); z-index: -1; }
[dir="rtl"] .about-accent { left: auto; right: -20px; }
.about-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.about-text .red { color: var(--red); }
.about-text p { color: var(--text); margin-bottom: 20px; font-size: 1.05rem; }
.vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.vm-card { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--gray); background: var(--white); transition: var(--transition); }
.vm-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-4px); }
.vm-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.4rem; }
.vm-card:first-child .icon { background: rgba(227,30,36,0.1); color: var(--red); }
.vm-card:last-child .icon { background: rgba(27,42,74,0.1); color: var(--navy); }
.vm-card h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }
.vm-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-img { height: 220px; overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,42,74,0.6) 0%, transparent 60%); }
.service-card-body { padding: 28px; }
.service-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.service-card-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }
.service-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tag { background: var(--light); padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: var(--navy); border: 1px solid var(--gray); }
.service-card-number { position: absolute; top: 16px; right: 16px; background: var(--red); color: var(--white); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; z-index: 2; }
[dir="rtl"] .service-card-number { right: auto; left: 16px; }

/* ===== CORE VALUES ===== */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 800px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.value-card { padding: 48px 36px; text-align: center; transition: var(--transition); }
.value-card:nth-child(1) { background: var(--red); color: var(--white); }
.value-card:nth-child(2) { background: var(--navy); color: var(--white); }
.value-card:nth-child(3) { background: var(--navy); color: var(--white); }
.value-card:nth-child(4) { background: var(--red); color: var(--white); }
.value-card:hover { filter: brightness(1.1); transform: scale(1.02); z-index: 1; }
.value-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h4 { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--white); }
.value-card p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }

/* ===== WHY CHOOSE US ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-card { text-align: center; padding: 40px 24px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); transition: var(--transition); }
.why-card:hover { background: rgba(255,255,255,0.12); border-color: var(--red); transform: translateY(-6px); }
.why-card .icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(227,30,36,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--red); border: 2px solid rgba(227,30,36,0.3); }
.why-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.why-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-filters button { padding: 8px 24px; border-radius: 50px; border: 2px solid var(--gray); background: var(--white); color: var(--text); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,42,74,0.85) 0%, transparent 50%); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 24px; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay h4 { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.gallery-item .overlay p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.lightbox.active { display: flex; }
.lightbox img { max-width: 85vw; max-height: 85vh; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { background: var(--red); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy); }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; border: 2px solid var(--gray); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-body); transition: var(--transition); background: var(--light); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(227,30,36,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-card { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: var(--transition); }
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-info-card .icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(227,30,36,0.1); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.contact-info-card a { color: var(--red); font-weight: 500; }
.contact-info-card a:hover { text-decoration: underline; }
.contact-socials { display: flex; gap: 12px; margin-top: 8px; }
.contact-socials a { width: 44px; height: 44px; border-radius: 50%; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--navy); transition: var(--transition); }
.contact-socials a:hover { background: var(--red); color: var(--white); transform: translateY(-3px); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 20px; font-weight: 700; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer ul a:hover { color: var(--red); padding-left: 4px; }
[dir="rtl"] .footer ul a:hover { padding-left: 0; padding-right: 4px; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.85rem; }
.footer-bottom .red { color: var(--red); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); animation: pulse-wa 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); } }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 768px) {
  .nav-logo img { height: 50px; }
  .navbar.scrolled .nav-logo img { height: 40px; }
  .hero { padding-top: 110px; min-height: auto; padding-bottom: 60px; }
  .hero-content { padding-top: 0; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--navy); flex-direction: column; justify-content: center; gap: 24px; padding: 40px; transition: var(--transition); box-shadow: var(--shadow-lg); }
  [dir="rtl"] .nav-links { right: auto; left: -100%; }
  .nav-links.active { right: 0; }
  [dir="rtl"] .nav-links.active { left: 0; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .vm-cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .gallery-filters { gap: 8px; }
  .gallery-filters button { padding: 6px 16px; font-size: 0.8rem; }
}

/* Spark particles for hero */
.spark { position: absolute; width: 3px; height: 3px; background: #FFD700; border-radius: 50%; animation: sparkle 3s infinite; pointer-events: none; z-index: 1; }
@keyframes sparkle { 0% { opacity: 0; transform: translateY(0) scale(0); } 20% { opacity: 1; transform: translateY(-20px) scale(1); } 100% { opacity: 0; transform: translateY(-80px) scale(0); } }
.spark:nth-child(2) { animation-delay: 0.5s; left: 60%; top: 70%; }
.spark:nth-child(3) { animation-delay: 1s; left: 75%; top: 50%; }
.spark:nth-child(4) { animation-delay: 1.5s; left: 40%; top: 80%; }
.spark:nth-child(5) { animation-delay: 2s; left: 85%; top: 60%; }
