/* Homepage styles — extracted from index.html inline <style> blocks. */

/* ---------- SEO-hidden text (screen-reader / bot content) ---------- */
.seo-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Hero slot + gallery container layout ---------- */
#home-hero-slot {
  margin-top: 18px;
  text-align: center;
}

#homeHeroImagesContainer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto 40px;
  max-width: 900px;
}

/* ==========================================================
   Main page styles (hero, layout, typography)
   ========================================================== */

:root {
  --mf-bg-top: #050910;
  --mf-bg-mid: #1b1e27;
  --mf-bg-bottom: #9b6b26;
  --mf-bronze: #94621c;
  --mf-bronze-soft: #b5802e;
  --bronze: #94621c;
  --mf-text-main: #f5f7f8;
  --mf-text-muted: #d0d4da;
  --mf-radius-xl: 24px;
  --mf-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);

  /* Legacy short-name aliases used throughout the file */
  --brand: #94621c;
  --brand2: #f0c87a;
  --ink: #f5f7fa;
  --muted: #c7c9cc;
  --card: rgba(15, 18, 24, 0.6);
  --card2: rgba(22, 26, 34, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --border: rgba(240, 200, 122, 0.45);
}

/* Reset بسيط */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* خلفية الصفحة الرئيسية (نفس صفحة الخدمات 100%) */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: auto;
  background: linear-gradient(
    150deg,
    #06080c 0%,
    #0a0f1a 15%,
    #3a3f46 40%,
    #94621c 70%,
    #f2e8d8 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #f5f7fa;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

@media (max-width: 768px) {
  html,
  body {
    background-attachment: scroll;
  }
}
.mf-logo-wrap {
  margin-top: 12px !important; /* مرفوع أكثر لفوق */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.panel {
  background: var(--card);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  max-width: 720px;
  margin: auto;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand2);
}
.panel-badge {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.mf-logo-img {
  width: 160px;
  max-width: 55vw;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.75));
}

.mf-brand-text {
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--mf-text-main);
}

.mf-brand-text span {
  display: block;
  font-size: 24px;
  letter-spacing: 0.22em;
}

/* السطر: هنا هو اختيارك الصحيح */
.mf-slogan {
  margin-bottom: 42px;
  font-size: 18px;
  text-align: center;
  color: var(--mf-text-muted);
}

/* لمنع السحب العمومي للصفحة باللمس */

/* منع سحب الصفحة لأسفل أو ظهور شريط أبيض */

/* ضمان إن الصفحة تاخد ارتفاع كامل بدون فراغ تحت */
/* ==== Hard-size overrides (responsive) ==== */
html {
  font-size: 16px;
} /* يمنع تصغير الأساس */

/* ==== Responsive polish: title + logo + buttons ==== */

/* تحسينات شاشات صغيرة جداً */
@media (max-width: 380px) {
  .header-title {
    font-size: clamp(1.4rem, 9vw, 2.2rem);
  }
  .logo {
    width: 72vw;
  }
}

/* RTL: خفّف تمدد الحروف بالعربي لتجنّب تمدد مزعج */
:root[dir='rtl'] .header-title {
  letter-spacing: 0.3px;
}

.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}
.sign svg path {
  fill: #fff;
}

.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  transition-duration: 0.3s;
}

.Btn:hover {
  width: 130px;
  border-radius: 40px;
  transition-duration: 0.3s;
  background-color: #b9822e; /* ظل برونزي فاتح */
}

.Btn:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 20px;
}

.Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 10px;
}

.Btn:active {
  transform: translate(2px, 2px);
}

/* ===== Main ===== */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 14px 24px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  min-height: 30vh;
  text-align: center;
}
.logo {
  width: min(200px, 50vw);
  max-width: 90vw;
  height: auto;
  margin-top: 10px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  animation: logoPulse 3.2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 8px 22px rgba(148, 98, 28, 0.45)) brightness(1.08);
  }
}

/* Language */
.lang {
  position: relative;
  justify-self: end;
}
.lang-toggle {
  border: 1px solid var(--bronze);
  color: var(--bronze);
  background: rgba(14, 14, 14, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: 0.25s;
}
.lang-toggle:hover {
  background: var(--bronze);
  color: #fff;
}
.lang-list {
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  display: none;
  z-index: 1200;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(148, 98, 28, 0.55);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
}
.lang-list.show {
  display: block;
}
.lang-list li button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #f3f5f8;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}
.lang-list li button:hover {
  background: rgba(148, 98, 28, 0.25);
}

.intro {
  font-family: 'Cormorant Garamond', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  color: #d9d9d9;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
  margin: 16px 0 8px;
  text-align: center;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(520px, 92%);
  justify-items: center;
}
.actions .btn {
  color: var(--bronze);
  background: rgba(14, 14, 14, 0.7);
  padding: 12px 28px;
  border-radius: 10px;
  border: 1px solid var(--bronze);
  text-decoration: none;
  font-weight: 700;
  width: 100%;
  text-align: center;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  transition: 0.25s;
}
.actions .btn:hover {
  background: var(--bronze);
  color: #fff;
  transform: translateY(-2px);
}

/* على الشاشات الأوسع: زوّج الأزرار بصفّين */
@media (min-width: 768px) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  padding: 18px 12px;
  text-align: center;
}
footer p {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  color: #f5d8a0;
  text-shadow: 0 0 8px rgba(148, 98, 28, 0.3);
  transition: 0.4s;
}
footer p:hover {
  color: #ffe1a8;
  text-shadow:
    0 0 12px rgba(240, 200, 122, 0.75),
    0 0 24px rgba(240, 200, 122, 0.5);
  transform: scale(1.04);
}

/* قناع بسيط يغطي أي وميض أبيض بأسفل الشاشة أثناء السحب */
.edge-mask {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(10, 15, 26, 0.85) 80%,
    rgba(10, 15, 26, 1) 100%
  );
}

/* ==========================================================
   Sidebar, scrolling state, account dropdown, language menu
   ========================================================== */

/* شبكة الأزرار — زر واحد بكل سطر */
.home-links {
  display: grid;
  grid-template-columns: 1fr; /* عمود واحد */
  gap: 14px;
  width: min(420px, 90vw); /* أصغر وأرقى */
  margin: 1px auto 10px;
  justify-items: stretch;
  align-items: stretch;
}

/* 🔥 ستايل Black & Gold حصري */
.home-links a {
  display: grid;
  place-items: center;

  min-height: 54px;
  padding: 12px 16px;

  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid #c8a86a;
  border-radius: 14px;

  font-family: 'Cormorant Garamond', serif;
  font-optical-sizing: auto;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;

  width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Hover */
.home-links a:hover {
  background: linear-gradient(135deg, #d9b878 0%, #9c7a3c 100%);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Active */
.home-links a:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* شاشات صغيرة جداً */
@media (max-width: 360px) {
  .home-links {
    width: 92vw;
  }
  .home-links a {
    font-size: 15px;
    min-height: 48px;
  }
}

body {
  background-image:
    linear-gradient(
      to bottom,
      rgba(10, 15, 26, 0) 0%,
      rgba(10, 15, 26, 0.06) 86%,
      rgba(10, 15, 26, 0.12) 100%
    ),
    linear-gradient(150deg, #06080c 0%, #0a0f1a 15%, #3a3f46 40%, #94621c 70%, #f2e8d8 100%);
  background-attachment: scroll, fixed; /* ظلّ خفيف متحرك + خلفية ثابتة */
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    center bottom,
    center;
}

/* ==========================================================
   Toast notifications
   ========================================================== */
.mofe-toast-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  font-family: inherit;
}
.mofe-toast {
  min-width: 260px;
  max-width: 90vw;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1f2a, #0b0f16);
  border: 1px solid #b88a3b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: auto;
}
.mofe-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mofe-toast-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}
.mofe-toast-content {
  flex: 1;
}
.mofe-toast-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.mofe-toast-text {
  font-size: 13px;
  opacity: 0.9;
}
.mofe-toast-close {
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 6px;
}

/* ==========================================================
   Hero image + gallery layout
   ========================================================== */
/* صورة الهيرو الديناميكية */
#homeHeroImage {
  display: block;
  max-width: 80%;
  max-height: 320px;
  height: auto;
  margin: 24px auto 16px;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 98, 28, 0.6);
}

/* نص الهيرو + كابشن الصور – كبسولة برونزية موحّدة */
.hero-tagline {
  display: inline-block;
  max-width: 90%;
  margin: 18px auto 40px;
  padding: 10px 20px;
  text-align: center;

  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: 600;
  color: #fffaf0;

  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.11), rgba(0, 0, 0, 0.65));
  border-radius: 999px;
  border: 1px solid rgba(148, 98, 28, 0.8);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(148, 98, 28, 0.55);
}

/* نسخة أخف شوي لكابشن المعرض (مسافات أقل) */
.hero-tagline--gallery {
  margin: 16px auto 26px;
  max-width: 85%;
  font-size: clamp(13px, 2vw, 16px);
}
