:root {
  --primary: #0F766E;
  --primary-dark: #0B5E57;
  --primary-light: #14A398;
  --secondary: #1E293B;
  --accent-bg: #EAF6F6;
  --neutral: #F7F9FA;
  --white: #FFFFFF;
  --cta: #F2622E;
  --cta-hover: #D94E1E;
  --cta-alt: #FFB020;
  --text: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.10);
  --shadow-lg: 0 12px 48px rgba(15, 118, 110, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { background: var(--primary); scroll-behavior: smooth; scroll-padding-top: var(--nav-height); margin: 0; padding: 0; }

body {
  font-family: var(--font-body); margin: 0; padding: 0;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: var(--font-arabic); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--font-arabic); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--secondary); font-weight: 700; line-height: 1.2; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img, iframe { max-width: 100%; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--neutral); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; }

.text-muted { color: var(--text-light); font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition); border: 2px solid transparent;
  font-family: inherit; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--cta); color: var(--white); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(242, 98, 46, 0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000; background: transparent; transition: background var(--transition), box-shadow var(--transition); }

.navbar-top { background: transparent; top: 0; }
.navbar-top .nav-links a { color: rgba(255,255,255,0.9); }
.navbar-top .nav-links a:hover { color: var(--white); }
.navbar-top .nav-logo { color: var(--white); }

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .nav-logo { color: var(--secondary); }
.navbar.scrolled .hamburger span { background: var(--secondary); }
.navbar.scrolled .nav-logo:hover { color: var(--primary); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--white); text-decoration: none; transition: color var(--transition); }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text); text-decoration: none; position: relative; padding: 4px 0; transition: color var(--transition); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--white); transition: width var(--transition); }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a::after { background: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-btn-single {
  padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; font-weight: 700;
  font-family: inherit; color: var(--white); transition: all var(--transition);
  letter-spacing: 0.5px; min-width: 42px; text-align: center;
}
.lang-btn-single:hover { background: rgba(255,255,255,0.2); }
.navbar.scrolled .lang-btn-single { border-color: var(--border); background: var(--neutral); color: var(--text); }
.navbar.scrolled .lang-btn-single:hover { background: var(--accent-bg); color: var(--primary); }
.nav-cta { padding: 10px 22px; font-size: 0.85rem; display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: all 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 {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px; overflow: hidden;
}
.hero-container { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--primary);
}
.hero-bg::after {
  content: ''; position: absolute;
  top: -1px; left: 0; right: 0; bottom: -1px;
  background: linear-gradient(135deg, rgba(15,118,110,0.92) 0%, rgba(11,94,87,0.88) 50%, rgba(10,77,71,0.85) 100%);
}
.hero-content { flex: 1; max-width: 680px; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; font-size: 0.82rem; color: rgba(255,255,255,0.9); margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.5rem); color: var(--white); margin-bottom: 20px; line-height: 1.1; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 520px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: all var(--transition); cursor: default;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--primary); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }

.about { background: var(--accent-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.about-credentials { font-size: 1rem; color: var(--primary); font-weight: 600; margin-bottom: 20px; }
.about-text { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.about-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--text-light); }

.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition); }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--text-light); font-size: 0.9rem; }

.testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; }
.testimonial-card { background: var(--neutral); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.testimonial-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-style: italic; line-height: 1.7; margin-bottom: 20px; color: var(--text); font-size: 0.95rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.author-name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
.author-location { display: block; font-size: 0.8rem; color: var(--text-light); }
.testimonials-cta { text-align: center; }

.gallery { background: var(--neutral); }
.gallery-carousel { position: relative; display: flex; align-items: center; gap: 16px; max-width: 800px; margin: 0 auto; }
.gallery-track { display: flex; gap: 16px; overflow: hidden; scroll-behavior: smooth; width: 100%; scroll-snap-type: x mandatory; }
.gallery-slide { min-width: calc(50% - 8px); flex-shrink: 0; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); display: block; }
.gallery-slide img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--white); color: var(--secondary); font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gallery-nav:hover { background: var(--white); color: var(--white); border-color: var(--primary); }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.gallery-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
  border: none; cursor: pointer; transition: all var(--transition); padding: 0;
}
.gallery-dot.active { background: var(--white); width: 28px; border-radius: 5px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px; background: none; border: none;
  color: var(--white); font-size: 2rem; cursor: pointer; z-index: 10001; padding: 8px;
  line-height: 1; opacity: 0.7; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  font-size: 2.5rem; cursor: pointer; padding: 12px 16px; border-radius: var(--radius-sm);
  transition: background var(--transition); line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.contact-card { background: var(--neutral); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.contact-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: var(--text); }
.contact-card a { color: var(--primary); font-weight: 500; }
.btn-directions { grid-column: span 2; text-align: center; }
.contact-map-full { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 450px; }

.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  z-index: 999; padding: 8px 12px; gap: 8px;
}
.mobile-cta-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px; border-radius: var(--radius-sm); font-size: 0.72rem;
  font-weight: 600; text-decoration: none; gap: 2px; transition: all var(--transition);
}
.mobile-cta-btn span:first-child { font-size: 1.2rem; }
.mobile-cta-call { background: var(--white); color: var(--white); }
.mobile-cta-book { background: var(--cta); color: var(--white); }

.footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

[dir="rtl"] .navbar { direction: rtl; }
[dir="rtl"] .nav-container { direction: rtl; }
[dir="rtl"] .nav-links { padding-right: 0; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-subtitle { margin-left: 0; margin-right: 0; }
[dir="rtl"] .hero-actions { justify-content: flex-start; flex-direction: row-reverse; }
[dir="rtl"] .section-header { text-align: center; }
[dir="rtl"] .about-content { text-align: right; }
[dir="rtl"] .about-stats { justify-content: flex-end; }
[dir="rtl"] .testimonial-card { text-align: right; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .testimonials-cta { text-align: center; }
[dir="rtl"] .why-card { text-align: right; }
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .footer { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .gallery-carousel { direction: ltr; }
[dir="rtl"] .gallery-nav { transform: scaleX(-1); }
[dir="rtl"] .lightbox-nav { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .lightbox-prev { left: auto; right: 20px; }
[dir="rtl"] .lightbox-next { right: auto; left: 20px; }

@media (max-width: 1024px) {
  .hero-container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map-full { min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  [dir="rtl"] .hero-actions { justify-content: center; }
  [dir="rtl"] .about-stats { justify-content: center; }
  .gallery-slide { min-width: calc(50% - 8px); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 24px; gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .navbar-top .nav-links a { color: var(--text); }
  .navbar-top .nav-links.open { background: var(--white); }
  .hamburger { display: flex; }
  .nav-right .nav-cta { display: none; }
  .mobile-cta { display: flex; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .btn-directions { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  body { padding-bottom: 72px; }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .gallery-slide { min-width: 100%; }
  .gallery-slide img { height: 250px; }
  .gallery-carousel { max-width: 100%; }
  .lightbox { padding: 16px; }
  .lightbox-nav { font-size: 1.8rem; padding: 8px 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .about-img { max-height: 400px; object-fit: cover; }
  [dir="rtl"] .nav-links { text-align: right; }
  [dir="rtl"] .navbar-top .nav-links a { color: var(--text); }
}

@media (max-width: 430px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-badge { font-size: 0.75rem; }
  .about-stats { gap: 20px; flex-wrap: wrap; }
  .stat { align-items: center; text-align: center; }
  .gallery-slide { min-width: 100%; }
  .gallery-slide img { height: 220px; }
  .contact-map-full { min-height: 280px; }
  [dir="rtl"] .hero-actions { flex-direction: column; }
}

@media (min-width: 769px) { .nav-cta { display: inline-flex; } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.service-card, .why-card, .testimonial-card { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }
.service-card:nth-child(7) { animation-delay: 0.35s; }
.service-card:nth-child(8) { animation-delay: 0.4s; }
