/* ====== ROOT COLORS & BASE ====== */
:root {
  --bg:#FAFAF7;
  --bg2:#F5F3EF;
  --text:#222;
  --muted:#555;
  --orange:#FF914D;
  --orange2:#FFA86E;
  --shadow:0 10px 28px rgba(255,145,77,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* ====== NAVBAR ====== */
.nav {
  width: 100vw;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== BRAND (LOGO + TEXT) ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
  color: #111; /* أسود */
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
/* ====== LINKS ====== */
.menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.menu a:hover {
  color: var(--orange);
}

/* ====== CTA BUTTON ====== */
.btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid var(--orange);
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ====== MOBILE NAVBAR (Sidebar) ====== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  background: none;
  border: none;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 70%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right .4s ease;
  z-index: 200;
}
.sidebar.active { right: 0; }
.sidebar a {
  color: #333;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar a:hover {
  color: var(--orange);
}

/* ====== Overlay for sidebar ====== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: .4s ease;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}
/* ===== FOOTER ===== */
.footer {
  background: #fff2e9;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  padding: 25px 0;
  width: 100%;
  position: relative;
}
.footer p { color: #333; font-size: 15px; }
.social-left {
  position: absolute;
  left: 40px;
  bottom: 20px;
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: 0.3s;
}
.social-icon.ig i { color: #e1306c; }
.social-icon.fb i { color: #1877f2; }
.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 6px 12px rgba(255,145,77,0.4);
}
/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(255, 145, 77, 0.2);
  padding: 30px;
}

.shadow {
  box-shadow: 0 10px 25px rgba(255, 145, 77, 0.25);
}

.section-title.small {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text);
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid .full {
  grid-column: 1 / -1;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: inherit;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.contact input:focus,
.contact textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.15);
}

.contact button.btn.primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}
.contact button.btn.primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
}

/* ===== MAP SECTION ===== */
/*.map.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 16px 16px 0 0;
}
*/
.contact-meta {
  padding: 16px 20px;
  background: #fffaf5;
  border-top: 1px solid rgba(255,145,77,0.15);
  text-align: center;
  font-size: 15px;
  color: #333;
  border-radius: 0 0 16px 16px;
}

/* ====== RESPONSIVE (MOBILE FIX) ====== */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* إصلاح الحاويات حتى لا تطلع برا الشاشة */
  .container, .nav-row, .footer, .contact, .about-box {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ===== NAVBAR ===== */
  .nav-row {
    padding: 10px 18px;
  }

  .menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #333;
    background: none;
    border: none;
    z-index: 300;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: 55px;
    height: 55px;
  }

  .brand-name {
    font-size: 20px;
    font-weight: 800;
  }

  .brand-sub {
    font-size: 12px;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.3s ease-in-out;
    z-index: 250;
  }

  .sidebar.active {
    right: 0;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
    z-index: 200;
  }

  /* ===== CONTACT SECTION ===== */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .map.card iframe {
    height: 260px;
  }

  /* ===== FOOTER FIX ===== */
  .footer {
    text-align: center;
    padding: 25px 10px 60px;
  }

  .social-left {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 12px;
    left: 0;
    bottom: 0;
  }

  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .sidebar {
    width: 85%;
  }

  .footer p {
    font-size: 14px;
  }
}
/* ====== Mobile Navbar Toggle (Active Style) ====== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.05);
  z-index: 999;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu a:hover {
  background: #fff2e9;
  color: var(--orange);
}

.mobile-menu.show {
  display: flex;
}
/* ===== CONTACT SECTION (Refined Minimal Style) ===== */
#contact {
  padding: 80px 20px;
  border-top: 2px solid rgba(255,145,77,0.3); /* 🔸 يفصل عن الكلاينتس */
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* ===== FORM CARD ===== */
.card {
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 25px 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,145,77,0.25);
}

.section-title.small {
  font-size: 22px;
  margin-bottom: 15px;
  color: #222;
  text-align: left;
}

/* ===== FORM INPUTS ===== */
.contact input,
.contact textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,145,77,0.15);
}

.contact button.btn.primary {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact button.btn.primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
}

/* ===== MAP BOX ===== 
.map.card {
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.map.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,145,77,0.25);
}

.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
}
*/
.contact-meta {
  text-align: center;
  padding: 12px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  #contact {
    padding: 60px 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .map iframe {
    height: 240px;
  }

  .card {
    padding: 10px;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  text-align: center;
  z-index: 10;
}

.mobile-menu.active {
  display: flex;
  animation: slideDown 0.35s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.lang-switch {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
}

.lang-btn i {
  color: #ff914d;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 9999;
}

.lang-menu li {
  list-style: none;
}

.lang-menu a {
  display: block;
  padding: 8px 14px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.lang-menu a:hover {
  background: #ff914d;
  color: #fff;
}

/* إظهار القائمة عند الضغط */
.lang-switch.active .lang-menu {
  display: block;
}
/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: linear-gradient(180deg, #fff8f2, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  text-align: center;
  animation: fadeIn 1.2s ease;
}

.loader-logo {
  width: 140px;
  height: auto;
  border-radius: 16px;
  animation: pulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,145,77,0.3));
}

.loader-text {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #ff914d;
  letter-spacing: 0.8px;
  animation: slideUp 1s ease forwards;
}

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hide after load ===== */
.loaded #loading-screen {
  opacity: 0;
  visibility: hidden;
}
/* تقليل ارتفاع الكارد وتقليل الحشوات */
.contact .card {
  max-width: 600px;       /* تصغير العرض */
  padding: 30px 30px;      /* تقليل الـ padding */
  border-radius: 18px;
}

/* تقليل المسافات بين العناصر */
.contact .card form {
  gap: 10px;
}

/* تقليل ارتفاع تكس أريا */
.contact .card textarea {
  min-height: 1px;        /* كانت 140 — تم تقليلها */
}

/* تصغير الكابتچا قليلاً */
.contact .card .g-recaptcha {
  transform: scale(0.88);
  margin: 6px 0 8px;
}

/* زر الإرسال — تصغير */
.contact .card .btn.primary {
  padding: 8px 18px;
  font-size: 14px;
}