/* ===== RESET أساسي ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #f4eedf;
  overflow-x: hidden;
}

/* مهم جداً: شيلنا الهوامش الافتراضية */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* تخصيص الخط عند التحويل للغة العربية */
html[lang="ar"] body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- HERO WITH VIDEO BACKGROUND ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* سواد خفيف فوق الفيديو */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.45);
  z-index: 2;
}

/* المحتوى فوق كل شيء */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* سكوبنا التايبو للـ Hero فقط (بدل ما تخرب كل الـ p بالموقع) */
.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #f4eedf;
}

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 25px;
  color: #e0d8c6;
}

.cta {
  padding: 14px 28px;
  background: #b44b27;
  color: #f4eedf;
  border-radius: 6px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
}

/* ---------- HEADER (DESKTOP) ---------- */
.site-header {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 120px);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: rgba(5, 5, 5, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s ease;
}

body.scrolled .site-header {
  padding: 10px 32px;
  width: calc(100% - 140px);
  background: rgba(5, 5, 5, 0.45);
  border-radius: 28px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 42px;
  display: block;
  transition: filter 0.3s ease;
}

.site-header a,
.site-header a:focus,
.site-header a:active {
  outline: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

/* ---------- NAV LINKS ---------- */
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #f4eedf;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a[href="ar.html"] {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  margin-top: -3px;
}

.nav-cta {
  padding: 9px 20px !important;
  background: #b44b27 !important;
  color: #f4eedf !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(244, 238, 223, 0.28) !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
}

/* ---------- MOBILE MENU BUTTON ---------- */
.mobile-toggle {
  display: none;
  appearance: none;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(244, 238, 223, 0.35);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.mobile-toggle .bar {
  width: 20px;
  height: 2px;
  background: #f4eedf;
  display: block;
  border-radius: 2px;
  transition: 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-toggle .bar1 { top: 11px; }
.mobile-toggle .bar2 { top: 18px; }
.mobile-toggle .bar3 { top: 25px; }

body.nav-open .bar1 {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

body.nav-open .bar2 { opacity: 0; }

body.nav-open .bar3 {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(244, 238, 223, 0.08);
  padding: 40px 20px 26px;
  margin-top: 80px;
  font-size: 0.9rem;
  color: #b9b1a0;
  background: #050505;
}

.site-footer a {
  color: #f4eedf;
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.88rem;
}

.site-footer a:hover { opacity: 1; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4eedf;
  margin-bottom: 10px;
}

.footer-col p { margin: 4px 0; } /* footer فقط */

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 6px; }

.footer-contact-line {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(244, 238, 223, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.footer-contact-main {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-main a { font-size: 0.9rem; }

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(244, 238, 223, 0.10);
  padding-top: 14px;
  font-size: 0.85rem;
  color: #a79f90;
}

.footer-lang a { font-size: 0.85rem; }

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(244, 238, 223, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
}

.footer-social img {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-logo { margin-bottom: 10px; }

.footer-logo-img {
  width: 110px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- SECTIONS (توحيد البادينغ/المسافات) ---------- */
.clients,
.services,
.team,
.packages {
  padding: 80px 40px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* تصحيح الغلط المطبعي القديم ..clients */
 /* (ما في داعي لنكتب ..clients — صار .clients فوق) */

/* Header blocks */
.team-header,
.services-header,
.packages-header {
  text-align: left;
  margin-bottom: 32px;
}

.team-header h2,
.services-header h2,
.packages-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #f4eedf;
}

.team-header p,
.services-header p,
.packages-header p {
  max-width: 520px;
  font-size: 1rem;
  color: #b9b1a0;
  margin: 0; /* مهم: لا auto ولا 25px */
}

/* مهم: أي p داخل الكروت ما ياخد ستايل عام */
.team-card p,
.service-card p,
.package-card p {
  margin: 0;
  max-width: none;
}

/* Clients */
.clients-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px;
  align-items: center;
}

.client-logo-item {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(244, 238, 223, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.client-logo-item img {
  max-width: 100%;
  max-height: 58px;
  filter: grayscale(100%);
}

.client-logo-item:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(244, 238, 223, 0.18);
}

.client-logo-item:hover img { filter: grayscale(0%); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  justify-items: stretch; /* يمنع تمركز غريب */
  align-items: stretch;
}

.team-card {
  width: 100%;
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(244, 238, 223, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.team-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(244, 238, 223, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #f4eedf;
  background: radial-gradient(circle at top left, rgba(180, 75, 39, 0.35), transparent 60%);
}

.team-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4eedf;
}

.team-role {
  font-size: 0.85rem;
  opacity: 0.75;
}

.team-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #d0c7b4;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  justify-items: stretch;
  align-items: stretch;
}

.service-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(180, 75, 39, 0.14), transparent 55%),
              rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(244, 238, 223, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border-color: rgba(180, 75, 39, 0.75);
}

.service-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #f4eedf;
}

.service-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #d0c7b4;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(244, 238, 223, 0.16);
  color: #f4eedf;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  justify-items: stretch;
  align-items: stretch;
}

.package-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(180, 75, 39, 0.18), transparent 55%),
              rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(244, 238, 223, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-name {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.package-price {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f4eedf;
}

.package-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  font-size: 0.96rem;
  color: #d0c7b4;
}

.package-features li { margin-bottom: 6px; }

.package-cta { margin-top: auto; }

.package-cta a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 238, 223, 0.3);
  text-decoration: none;
  font-size: 0.9rem;
  color: #f4eedf;
}

/* Contact */
.contact {
  padding: 90px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #f4eedf;
  text-align: left;
}

.contact p {
  margin: 0 0 28px;
  max-width: 520px;
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(244, 238, 223, 0.18);
  background: rgba(5, 5, 5, 0.85);
  color: #f4eedf;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: #b44b27;
  color: #f4eedf;
  font-size: 0.98rem;
  cursor: pointer;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95rem;
  color: #d0c7b4;
}

.contact-side strong {
  display: block;
  margin-bottom: 6px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.9);
  border: 1px solid rgba(244, 238, 223, 0.12);
}

.contact-card-main { flex: 1; }

.contact-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #f4eedf;
}

.contact-card-text {
  margin: 0;
  font-size: 0.9rem;
  color: #d0c7b4;
}

.contact-card-text a {
  color: #f4eedf;
  text-decoration: none;
}

.contact-card-text a:hover { text-decoration: underline; }

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(244, 238, 223, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.65);
  font-size: 1.2rem;
}

.contact-card--whatsapp .contact-card-icon {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.4);
}

.contact-whatsapp-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: 0.25s ease;
}

.contact-whatsapp-btn:hover { background: #1ebe5d; }

.wa-icon { width: 18px; height: 18px; }
.wa-icon-small { width: 22px; height: 22px; }

/* Dropdowns */
.dropdown { position: relative; }

.dropdown > .drop-btn {
  cursor: pointer;
  display: inline-block;
  padding: 10px 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  padding: 10px 0;
  min-width: 180px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  white-space: nowrap;
}

.dropdown-menu a:hover { background: #333; }

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Reveal animation */
.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: none;
}

/* ===== MOBILE LAYOUT (≤ 768px) ===== */
@media (max-width: 768px) {
  .site-header {
    top: 12px;
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(5, 5, 5, 0.32);
  }

  body.scrolled .site-header {
    top: 6px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 6px 14px;
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  }

  .site-header .logo img { height: 30px; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    width: 100%;
    background: rgba(5, 5, 5, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(244, 238, 223, 0.18);
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    display: none;
  }

  body.nav-open .nav-links { display: flex; }

  .nav-links a {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero {
    height: 100vh;
    padding-top: 70px;
  }

  .hero-overlay { padding: 0 18px; }
  .hero-overlay h1 { font-size: 2rem; }
  .hero-overlay p { font-size: 1rem; max-width: 90%; }

  .cta { font-size: 0.95rem; padding: 12px 22px; }

  .services, .clients, .packages, .team { padding: 64px 20px 32px; }
  .contact { padding: 70px 20px 50px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ===== MAP SECTION ===== */
.full-map-section {
  width: 100%;
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
}

.office-map {
  width: 100%;
  max-width: 1100px;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== زر واتساب العائم ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}
