/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --teal: #0d6e8a;
  --teal-dark: #095a72;
  --teal-light: #e0f4f8;
  --rose: #e74c8b;
  --rose-soft: rgba(231,76,139,0.1);
  --gold: #f59e0b;
  --white: #ffffff;
  --bg: #f7fafc;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --border: #e2e8f0;
  --font: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --font-en: "Inter", "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --header-h: 74px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* English font override */
body.lang-en,
body.lang-en .btn,
body.lang-en .nav-link,
body.lang-en .mobile-nav-link {
  font-family: var(--font-en);
}

/* ===========================
   LANGUAGE BUTTON
=========================== */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
  flex-shrink: 0;
  font-family: var(--font);
  letter-spacing: 0.02em;
}
.lang-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}
.lang-btn .lang-flag { font-size: 1rem; }

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow var(--transition), background var(--transition);
  padding: 0.65rem 1.5rem;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(13,110,138,0.35);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(13,110,138,0.5); transform: translateY(-1px); }

.btn--hero-primary {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}
.btn--hero-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(0,0,0,0.2); }

.btn--hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}
.btn--hero-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

.btn--map {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand-logo { border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-name { display: block; font-size: 1.2rem; font-weight: 800; color: var(--teal); line-height: 1.2; }
.brand-sub { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: auto; }
.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--teal); background: var(--teal-light); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 10px;
  margin-inline-start: auto;
}
.menu-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--text); border-radius: 2px; margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav-link {
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--teal); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #062e3d 0%, #0d6e8a 50%, #0e8577 100%);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(231,76,139,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: floatParticle 8s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { width:80px; height:80px; top:10%; left:5%; animation-delay:0s; }
.hero-particles span:nth-child(2) { width:50px; height:50px; top:60%; left:8%; animation-delay:2s; }
.hero-particles span:nth-child(3) { width:120px; height:120px; top:30%; left:15%; animation-delay:4s; }
.hero-particles span:nth-child(4) { width:40px; height:40px; top:80%; left:20%; animation-delay:1s; }
.hero-particles span:nth-child(5) { width:70px; height:70px; top:20%; left:35%; animation-delay:3s; }
.hero-particles span:nth-child(6) { width:30px; height:30px; top:70%; left:40%; animation-delay:5s; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-30px) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 4rem 2rem 4rem 3rem;
  color: var(--white);
  max-width: 600px;
  margin-inline-start: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-title-accent {
  background: linear-gradient(90deg, #7dd3e8, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.hero-stat-label { font-size: 0.78rem; opacity: 0.8; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

.hero-image-side {
  position: relative; z-index: 2;
  padding: 3rem 3rem 3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  object-fit: cover;
  height: 480px;
}

.hero-card {
  position: absolute;
  bottom: 4rem;
  right: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  color: var(--text);
}
.hero-card strong { display: block; font-weight: 700; }
.hero-card small { color: var(--text-muted); font-size: 0.78rem; }
.hero-card-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ===========================
   SECTIONS COMMON
=========================== */
.section { padding: 5rem 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.section-label.light { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.section-title--center { text-align: center; }
.text-accent { color: var(--teal); }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   ABOUT
=========================== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 460px;
}
.about-badge {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-md);
  font-weight: 700; font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.about-badge-icon { font-size: 1.3rem; }

.about-copy .section-label { margin-bottom: 0.75rem; }
.about-copy .section-title { text-align: right; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; line-height: 1.75; }
.about-copy p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.75; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light);
  border-radius: 12px;
  color: var(--teal);
}
.feature-icon svg { width: 22px; height: 22px; }
.about-feature strong { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.about-feature span { font-size: 0.82rem; color: var(--text-muted); }

/* ===========================
   SPECIALTIES
=========================== */
.specialties { background: var(--white); }
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.spec-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.spec-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--clr, var(--teal));
  border-radius: 0 var(--radius) var(--radius) 0;
  transform: scaleY(0);
  transition: transform var(--transition);
}
.spec-card:hover::before { transform: scaleY(1); }
.spec-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.spec-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--clr, var(--teal)) 12%, white);
  color: var(--clr, var(--teal));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: background var(--transition);
}
.spec-card:hover .spec-icon-wrap { background: color-mix(in srgb, var(--clr, var(--teal)) 18%, white); }
.spec-icon-wrap svg { width: 28px; height: 28px; }

.spec-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.spec-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ===========================
   WHY US
=========================== */
.why-us {
  background: linear-gradient(145deg, #062e3d 0%, var(--teal) 60%, #0e8577 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative; z-index: 1;
}
.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-4px); }
.why-icon {
  width: 58px; height: 58px;
  margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background var(--transition);
}
.why-card:hover .why-icon { background: rgba(255,255,255,0.25); }
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; }

/* ===========================
   CONTACT
=========================== */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-icon { font-size: 1.75rem; flex-shrink: 0; }
.contact-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--teal); margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.contact-phone {
  display: inline-block;
  font-size: 1rem; font-weight: 700;
  color: var(--teal);
  border-bottom: 2px solid var(--teal-light);
  transition: border-color var(--transition), color var(--transition);
}
.contact-phone:hover { color: var(--teal-dark); border-color: var(--teal); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  border: 3px solid var(--white);
  outline: 1px solid var(--border);
}
.map-wrap iframe { height: 100%; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: linear-gradient(160deg, #0f1e27 0%, #1a2e3d 100%);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { border-radius: 12px; margin-bottom: 0.85rem; }
.footer-tagline { font-size: 0.9rem; opacity: 0.75; line-height: 1.65; }
.footer-links h4 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.footer-links a {
  display: block; padding: 0.3rem 0;
  font-size: 0.9rem; opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.footer-links a:hover { opacity: 1; color: #7dd3e8; }
.footer-bottom {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ===========================
   ANIMATIONS ON SCROLL
=========================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { margin: 0; padding: 5rem 1.5rem 2rem; text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-side { display: none; }
  .hero-wave { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-copy .section-title { text-align: center; }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .section { padding: 3.5rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 300px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .specialties-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { width: 60px; height: 1px; }
}
