@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* ========= THEME VARIABLES ========= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* ========= THEME VARIABLES ========= */
:root {
  --bg: #ffffff; /* الخلفية الرئيسية أبيض */
  --text: #0f1724;
  --muted: #475569;
  --primary: #1476f2; /* الأزرق الموحد */
  --primary-50: rgba(20, 118, 242, 0.08);
  --primary-100: rgba(20, 118, 242, 0.16);
  --card: #f7f9fc; /* خلفية الكروت */
  --card-muted: #eef2f7;
  --border: rgba(0, 0, 0, 0.12);
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow: none; /* إلغاء الشادوز */
  --shadow-strong: none;
}

/* ========= DARK THEME ========= */
.dark {
  --bg: #0b1220;
  --text: #e7eefc;
  --muted: #b8c2d9;
  --primary: #7aa8ff;
  --primary-50: rgba(122, 168, 255, 0.08);
  --primary-100: rgba(122, 168, 255, 0.15);
  --nav-grad-start: #0b1220;
  --nav-grad-mid: #0e1628;
  --nav-grad-end: #0b1220;
  --card: #0f1a2e;
  --card-muted: #0c172b;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.1);
  --shadow: none;
  --shadow-strong: none;
}

/* ========= Reset ========= */
* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  transition: none !important; /* إلغاء أي transition */
  animation: none !important; /* إلغاء أي animation */
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  position: relative;
}
/* إلغاء الخلفيات الضوئية */
body::before,
body::after {
  content: none !important;
}

/* زرار أساسي */
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
/* بدون تأثيرات هوفر متحركة */
.btn-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* تأثيرات ترانزيشن عامة (ملغية) */
@media (prefers-reduced-motion: no-preference) {
  body,
  nav,
  header,
  section,
  .card,
  .sdg-card,
  .blog-card,
  .form-card,
  .contact-card,
  .about-card,
  .service-tile,
  .btn-primary,
  .links a,
  .logo span,
  .theme-toggle {
    transition: none !important;
  }
}

/* ========= NAV ========= */
nav {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: #000000; /* ✅ أسود */
  /* border-bottom: 1px solid var(--border-soft); */
  box-shadow: none;
}
.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ==== اللوجو ==== */
.logo {
  font-size: 2rem;
  font-weight: 700;
}
.logo a {
  text-decoration: none;
  color: #fff;
}
.logo span {
  color: #ffffff;
  text-shadow: none;
}
/* ==== روابط الناف ==== */
.links {
  display: flex;
  gap: 32px;
}
.links a {
  position: relative;
  font-size: 1.05rem;
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 400;
}
.links a::before {
  position: absolute;
  content: "";
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #fff;
}
.links a:hover::before,
.links a.active::before {
  width: 100%;
}
.links a:hover,
.links a.active {
  color: #fff;
}

/* زر تغيير الثيم */
.theme-toggle {
  margin-left: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
}
.theme-toggle i {
  color: #fff;
}

/* hamburgerer / cancel */
.hamburger,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 14px;
  display: none;
  font-size: clamp(2.1rem, 0.5rem + 5vw, 2.6rem);
}
.hamburger {
  color: #fff;
}
.cancel {
  color: var(--primary);
}
.cancel:hover {
  color: #000;
}

/* Dropdown (mobile) */
.dropdown {
  z-index: 1100;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: none;
}
.dropdown .links {
  display: grid;
  gap: 0;
  padding: 76px 0 10px;
}
.dropdown .links a {
  display: flex;
  justify-content: center;
  padding: 14px 0;
  color: var(--text);
}

/* =========================================================
   باقي الكود زي ما هو (hero, about, services, contact, footer...)
   ========================================================= */

/* ========= Generic Section ========= */
section {
  width: 100%;
  min-height: 60vh;
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
}

/* =========================================================
   HERO الجديد (استبدال الهيرو القديم فقط)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(75vh, 92vh, 100vh);
  padding-bottom: 0; /* علشان يبقى Fullscreen نظيف */
  display: flex;
  align-items: center;
  background: url("/static/img/mobile.jpg") center/cover no-repeat; /* الافتراضي موبايل */
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 0;
}
.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  padding: 20px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.hero h1 span {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hero p {
  max-width: 760px;
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.7;
  color: #e9eef6;
  margin-bottom: 20px;
}

/* أيقونات وسوشيال داخل الهيرو (تصميم زجاجي بسيط) */
.hero .social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.hero .social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.hero .social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* أزرار الهيرو */
.btn {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

/* تبديل صور الهيرو حسب المقاس */
@media (min-width: 768px) {
  .hero {
    background-image: url("/static/img/tablet.jpg");
  }
}
@media (min-width: 1024px) {
  .hero {
    background-image: url("/static/img/desktop.jpg");
  }
}

/* موبايل صغير */
@media (max-width: 520px) {
  .hero {
    min-height: 82vh;
  }
  .hero .social-links a {
    width: 40px;
    height: 40px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ====== ملاحظة مهمة:
   الهيرو القديم (.home-section/.main-container/.content/.image) تم إلغاؤه.
   لو في صفحات تانية بتستخدم .content عام، مفيش تعارض لأن الهيرو الجديد بيستخدم .hero-content.
   ======================================================= */

/* ========= ABOUT SECTION ========= */
.home-section {
  padding-bottom: 40px;
} /* لو لسه مستخدمها في صفحات تانية */
.about-wrap {
  background: var(--bg);
  padding: 10px 0px 10px;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}
.about-layout {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.content {
  padding: 10px;
}
.about-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
}
.about-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 8px;
}
.about-layout .content {
  flex: 1.1;
  max-width: 680px;
}
.about-layout .content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
/* صورة about – بدون طفو أو شادوز */
.about-layout .about-photo {
  flex: 0.9;
  display: flex;
  justify-content: center;
}
.about-layout .about-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-soft);
  box-shadow: none;
}

/* ========= SERVICES ========= */
.services-hero {
  width: 100%;
  background: var(--bg);
  text-align: center;
  padding: 10px 40px 10px;
}
.services-hero .services-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.services-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.services-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 18px;
}
.sdg-strip {
  padding: 30px 20px 70px;
  background: var(--bg);
}
.sdg-strip.alt {
  background: var(--bg);
}
.sdg-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sdg-card {
  background: var(--border-soft);
  border-radius: 28px;
  padding: 38px 28px;
  min-height: 360px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  box-shadow: none;
}
/* أيقونة داخل الكارت */
.sdg-card .sdg-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}
.sdg-card .sdg-icon i {
  font-size: 30px;
  color: var(--primary);
}
.sdg-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}
.sdg-card p {
  color: var(--muted);
  line-height: 1.8;
}

/* ===== SERVICES CTA ===== */
.services-cta {
  padding: 20px 20px;
  text-align: center;
  background: var(--bg); /* بدون جراديانت */
  border-top: 3px solid var(--border-soft);
}
.services-cta h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.services-cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ===== ABOUT US PAGE ===== */
.about-section {
  padding: 50px 20px 80px;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.about-card {
  background: var(--card);
  padding: 60px 40px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: none;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}
.about-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.about-heading span {
  color: var(--primary);
}
.about-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 50px;
}
/* VALUES CARDS */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.value-card {
  background: var(--card-muted);
  border-radius: 14px;
  padding: 30px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}
.value-card i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.value-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.value-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== BLOG PAGE ===== */
.blog-hero {
  padding: 120px 20px 60px;
  background: var(--bg);
  text-align: center;
}
.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-hero h1 span {
  color: var(--primary);
}
.blog-hero p {
  font-size: 1.2rem;
  color: var(--muted);
}
.blog-section {
  padding: 60px 20px 100px;
  background: var(--bg);
}
.blog-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 25px;
}
.blog-card {
  background: var(--card-muted);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: none;
}
.blog-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
}
.blog-card .read-more {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  padding: 120px 20px 60px;
  background: var(--bg);
  text-align: center;
}
.contact-hero .hero-inner h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.contact-hero .hero-inner h1 span {
  color: var(--primary);
}
.contact-hero .hero-inner p {
  font-size: 1.15rem;
  color: var(--muted);
}
.contact-section {
  background: var(--bg);
  padding: 50px 20px 100px;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 1.9fr;
  align-items: start;
}
/* Info card */
.contact-card {
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 22px;
  color: var(--text);
  box-shadow: none;
}
.contact-card h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 14px;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.contact-list i {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
  margin-top: 3px;
}
.contact-list strong {
  display: block;
  color: var(--text);
}
.contact-list a,
.contact-list span {
  color: var(--muted);
  text-decoration: none;
  word-break: break-word;
}
.map-placeholder {
  margin-top: 8px;
  height: 160px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary), transparent 65%);
  color: var(--primary);
  display: grid;
  place-items: center;
  gap: 8px;
  background: var(--primary-50);
}
/* Form card */
.form-card {
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 26px 22px;
  color: var(--text);
  box-shadow: none;
}
.form-card h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 18px;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: grid;
  gap: 8px;
}
.form-field label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 40%);
}
/* Focus بدون شادو */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: 3px solid var(--primary-50);
  outline-offset: 0;
}

/* ===== Services selectable (Contact) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.service-option {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
}
.service-option:hover {
  border-color: var(--primary);
}
.service-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex: 0 0 auto;
}
.service-option span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  font-size: 1rem;
}
.service-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: linear-gradient(
    180deg,
    var(--card),
    color-mix(in srgb, var(--primary-50), transparent 60%)
  );
  outline: 3px solid var(--primary-50);
  outline-offset: 0;
}
.service-option input[type="checkbox"]:checked + span {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--card-muted);
  padding: 48px 20px;
  color: var(--text);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.97rem;
}
.footer-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-contacts a {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
}
.footer-contacts i {
  color: var(--primary);
  line-height: 1.1;
  margin-top: 2px;
}
.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  font-size: 1.2rem;
  color: var(--primary);
}

/* ===== Responsiveness ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 884px) {
  .links {
    display: none;
  }
  .hamburger,
  .cancel {
    display: block;
  }

  /* صفحات داخلية */
  .about-layout {
    flex-direction: column;
    gap: 30px;
  }
  .about-layout .about-photo img {
    width: 220px;
    height: 220px;
  }
  .about-title {
    font-size: 2rem;
  }
  .services-title {
    font-size: 2.2rem;
  }
  .services-subtitle {
    font-size: 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .sdg-wrap {
    grid-template-columns: 1fr !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Hossam added  */
.hero-description {
  font-size: 1.3rem !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Desktop defaults */
.hamburger {
  display: none;
}
.desktop-links {
  display: flex;
  gap: 18px;
}

/* Mobile menu hidden by default */
.dropdown {
  display: none;
  transform: translateY(-500px);
  transition: transform 200ms ease;
}
.dropdown[aria-hidden="false"] {
  display: block;
  transform: translateY(0);
}

/* Show hamburger & hide desktop links below 900px */
@media (max-width: 900px) {
  .hamburger {
    display: inline-block;
    cursor: pointer;
  }
  .desktop-links {
    display: none;
  }
}

/* Let Font Awesome read our desired display via its CSS var */
.hamburger {
  --fa-display: none;
}
.cancel {
  --fa-display: none;
}

/* Show only on mobile */
@media (max-width: 900px) {
  .hamburger {
    --fa-display: inline-block;
    cursor: pointer;
  }
  .cancel {
    --fa-display: inline-block;
  }
  .desktop-links {
    display: none;
  }
}

/* errors */
/* Error list (works with your errors partial) */
.alert {
  max-width: 560px;
  margin: 16px auto;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.alert-error {
  background: #fff5f5;
  border-color: #f5c2c7;
  color: #842029;
}

.error-list {
  margin: 8px 0 0;
  padding-left: 20px;
}
.error-list li {
  margin: 4px 0;
}

.contact-thanks {
  border: 1px solid #22c55e;
  background: #ecfdf5;
  color: #065f46;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.contact-thanks i {
  color: #16a34a;
}
#single-post .blog-card .blog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
#single-post .blog-card .share {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
#single-post .blog-content p {
  margin: 0 0 1rem;
}

.blog-content {
  white-space: pre-line; /* respects \n as line breaks */
  line-height: 1.7;
}
