/* =========================================================
   مناحل بن رشيد — Main Stylesheet
   Brand palette extracted from product label.
   ========================================================= */

:root {
  --gold:        #B89968;
  --gold-light:  #D4B585;
  --gold-deep:   #8B6F3F;
  --navy:        #3D4156;
  --navy-deep:   #2C2F40;
  --navy-soft:   #4A4F66;
  --cream:       #F5F2EB;
  --cream-soft:  #FAF8F2;
  --amber:       #C9882A;
  --amber-light: #E8A547;
  --white:       #FFFFFF;
  --text:        #2C2F40;
  --text-soft:   #5C5F70;
  --shadow:      0 14px 40px rgba(45, 47, 64, 0.12);
  --shadow-deep: 0 28px 70px rgba(45, 47, 64, 0.22);
  --shadow-gold: 0 12px 30px rgba(184, 153, 104, 0.35);
  --radius:      18px;
  --radius-sm:   10px;
  --container:   1240px;

  --font-ar-head: 'El Messiri', 'Cairo', sans-serif;
  --font-ar-body: 'Cairo', sans-serif;
  --font-en-head: 'Cormorant Garamond', 'El Messiri', serif;
  --font-en-body: 'Inter', 'Cairo', sans-serif;
}

html[lang="ar"] {
  --font-head: var(--font-ar-head);
  --font-body: var(--font-ar-body);
}
html[lang="en"] {
  --font-head: var(--font-en-head);
  --font-body: var(--font-en-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--white); }

/* =====  Loader  ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 180px; height: auto;
  filter: brightness(0) invert(0.75) sepia(0.4);
  animation: pulse-logo 1.8s ease-in-out infinite;
}

/* =====  Navigation  ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: all 0.4s ease;
  background: rgba(45, 47, 64, 0.0);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: rgba(45, 47, 64, 0.92);
  backdrop-filter: blur(14px);
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--gold-light);
  transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15);
}
.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(360deg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}

/* In-panel close X (only visible on mobile when panel is open) */
.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
  transition: all 0.3s ease;
  z-index: 2;
}
.nav-close:hover { background: var(--gold); color: var(--white); transform: rotate(90deg); }

/* Backdrop behind the open menu */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 22, 32, 0.55);
  backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-backdrop.show { display: block; }
.nav-backdrop.show.fade-in { opacity: 1; }

/* =====  Hero  ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  padding: 120px 28px 80px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(45,47,64,0.65) 70%, rgba(45,47,64,0.9) 100%),
    linear-gradient(180deg, rgba(45,47,64,0.5), rgba(45,47,64,0.85));
  z-index: 1;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url('../images/patterns/honeycomb.svg');
  opacity: 0.08;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 880px;
  margin: 0 auto;
}
.hero-logo {
  width: 220px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)) brightness(1.05);
  animation: float 4s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero-tag {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(245, 242, 235, 0.92);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.35s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(184, 153, 104, 0.5);
  background: linear-gradient(135deg, var(--amber), var(--gold));
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.scroll-arrow {
  width: 18px; height: 28px;
  border: 1.5px solid rgba(245, 242, 235, 0.45);
  border-radius: 12px;
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scroll-tick 2s ease-in-out infinite;
}
/* Hide on short viewports where it overlaps CTAs */
@media (max-height: 760px) { .hero-scroll { display: none; } }

/* Flying bee */
.flying-bee {
  position: absolute;
  z-index: 3;
  width: 60px; height: 50px;
  top: 22%;
  animation: fly-path 22s linear infinite;
}
.flying-bee img { width: 100%; height: 100%; }

/* =====  Drip Dividers  ===== */
.drip-divider {
  width: 100%;
  line-height: 0;
  display: block;
  background: transparent;
  margin-top: -2px;
}
.drip-divider img { width: 100%; height: 70px; display: block; }
.drip-divider.flip img { transform: scaleY(-1); }

/* =====  Generic Section  ===== */
.section {
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.kicker.light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section-title.light { color: var(--cream); }
.section-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-top: 8px;
}
.section-lead.light { color: rgba(245, 242, 235, 0.85); }

.title-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 0;
  max-width: 200px;
}
.title-deco span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.title-deco img { width: 28px; height: 28px; opacity: 0.85; }
.title-deco.light span { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }

/* =====  Honeycomb background pattern  ===== */
.honeycomb-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../images/patterns/honeycomb.svg');
  background-repeat: repeat;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.honeycomb-pattern.subtle { opacity: 0.05; }

/* =====  About  ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.95;
}
.about-points {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.about-points li {
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(45,47,64,0.06);
  border-inline-start: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-points li:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow);
}
html[dir="ltr"] .about-points li:hover { transform: translateX(6px); }
.about-points strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
}
.about-points span {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.about-image {
  position: relative;
}
.image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 3/4;
}
.image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.image-frame:hover img { transform: scale(1.05); }
.image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45,47,64,0.4));
  z-index: 1;
}
.floating-badge {
  position: absolute;
  bottom: -22px;
  inset-inline-end: -18px;
  width: 130px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.28));
  animation: badge-float 4.5s ease-in-out infinite;
  transform-origin: center;
}
.floating-badge img { width: 100%; height: auto; display: block; }
.footer-badge { width: 150px; margin-top: 22px; }
.footer-badge img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); }

/* =====  Why  ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 153, 104, 0.25);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,153,104,0.0), rgba(184,153,104,0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.why-card:hover::before { opacity: 1; }
.why-num {
  font-family: var(--font-en-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.why-card p {
  color: rgba(245, 242, 235, 0.78);
  line-height: 1.9;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

/* =====  Types  ===== */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.type-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.type-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
}
.type-card.premium {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(184,153,104,0.12), var(--shadow);
}
.type-card.premium:hover {
  box-shadow: 0 0 0 4px rgba(184,153,104,0.2), var(--shadow-deep);
}
.type-ribbon {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: var(--shadow-gold);
}
.type-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.type-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45,47,64,0.5));
}
.type-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.type-card:hover .type-image img { transform: scale(1.08); }
.type-body {
  padding: 26px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.type-body h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}
.type-body p {
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 0.96rem;
  margin-bottom: 18px;
  flex: 1;
}
.type-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.type-tags span {
  font-size: 12px;
  padding: 5px 12px;
  background: rgba(184, 153, 104, 0.12);
  color: var(--gold-deep);
  border-radius: 30px;
  font-weight: 600;
}
.types-cta {
  text-align: center;
  margin-top: 48px;
}

/* =====  Gallery (Hives)  ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-rows: 220px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(45,47,64,0.1);
  transition: all 0.4s ease;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,153,104,0.0), rgba(45,47,64,0.55));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:not(.gallery-video)::before {
  content: '🔍';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px; height: 50px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  opacity: 0;
  transition: all 0.35s ease;
}
.gallery-item:hover::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.gallery-video { background: var(--navy); }
.gallery-video video {
  object-fit: cover;
}

/* =====  Quality / Lab  ===== */
.lab-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 56px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 153, 104, 0.18);
  border-radius: var(--radius);
}
.lab-block:last-child { margin-bottom: 0; }
.lab-block.reverse { grid-template-columns: 1fr 1.15fr; }
.lab-block.reverse .lab-info { order: 2; }
.lab-block.reverse .cert     { order: 1; }
.lab-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(184, 153, 104, 0.18);
  color: var(--gold-light);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.lab-info h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.lab-info > p {
  color: rgba(245, 242, 235, 0.82);
  line-height: 1.95;
  margin-bottom: 26px;
  font-size: 1rem;
}
.lab-link {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  background: rgba(184, 153, 104, 0.18);
  color: var(--gold-light);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.lab-link:hover { background: var(--gold); color: var(--white); }

/* =====  Videos section  ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(184, 153, 104, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border-color: var(--gold);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.lab-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lab-spec {
  padding: 18px 20px;
  background: rgba(184, 153, 104, 0.1);
  border: 1px solid rgba(184, 153, 104, 0.3);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.lab-spec:hover {
  background: rgba(184, 153, 104, 0.18);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.spec-label {
  display: block;
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.spec-value {
  display: block;
  font-family: var(--font-en-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
}
.spec-note {
  display: block;
  font-size: 12px;
  color: rgba(245, 242, 235, 0.6);
}

.lab-certs {
  display: grid;
  gap: 18px;
}
.cert {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  background: var(--white);
  cursor: pointer;
  transition: all 0.4s ease;
}
.cert:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.cert img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.cert-tag {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  background: rgba(45, 47, 64, 0.92);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* =====  Stats  ===== */
.stats {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/patterns/honeycomb.svg');
  background-size: 80px;
  opacity: 0.12;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.stat { padding: 12px; }
.stat-num {
  font-family: var(--font-en-head);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  display: inline-block;
}
.stat-plus, .stat-suffix {
  display: inline-block;
  font-family: var(--font-en-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  margin-inline-start: 4px;
}
.stat p {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

/* =====  Products  ===== */
.products-showcase {
  display: grid;
  gap: 36px;
}
.products-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.products-hero img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}
.products-hero:hover img { transform: scale(1.03); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45,47,64,0.1);
  transition: all 0.35s ease;
}
.product-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-item:hover img { transform: scale(1.08); }

/* =====  Benefits  ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.benefit {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 153, 104, 0.2);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
}
.benefit:hover {
  background: rgba(184, 153, 104, 0.1);
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.benefit-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-radius: 50%;
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.benefit-icon svg { width: 36px; height: 36px; }
.benefit h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 10px;
  font-weight: 600;
}
.benefit p {
  color: rgba(245, 242, 235, 0.75);
  font-size: 0.96rem;
  line-height: 1.85;
}
.benefits-note {
  text-align: center;
  margin-top: 36px;
  color: rgba(245, 242, 235, 0.55);
  font-size: 13px;
  font-style: italic;
}

/* =====  Contact  ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 4px solid var(--gold);
  cursor: pointer;
}
.contact-card:not(.info-card):hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
}
.contact-icon {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
}
.whatsapp-card .contact-icon { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 28px rgba(37,211,102,0.4); }
.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}
.contact-card p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.contact-btn {
  margin-top: auto;
  padding: 10px 24px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.whatsapp-card .contact-btn { background: #25D366; }
.contact-card:hover .contact-btn { transform: scale(1.05); background: var(--gold); color: var(--white); }
.whatsapp-card:hover .contact-btn { background: #128C7E; }
.contact-tag {
  margin-top: auto;
  padding: 6px 18px;
  background: rgba(184,153,104,0.15);
  color: var(--gold-deep);
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
}

/* =====  Footer  ===== */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 70px 0 28px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/patterns/honeycomb.svg');
  background-size: 100px;
  opacity: 0.05;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}
.footer-brand img {
  height: 100px;
  margin-bottom: 18px;
  filter: brightness(1.05);
}
.footer-brand p {
  color: rgba(245, 242, 235, 0.7);
  line-height: 1.85;
  max-width: 380px;
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-links a, .footer-contact a, .footer-contact p {
  display: block;
  padding: 5px 0;
  color: rgba(245, 242, 235, 0.75);
  transition: color 0.3s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(184, 153, 104, 0.2);
  padding-top: 24px;
  text-align: center;
  color: rgba(245, 242, 235, 0.5);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

/* =====  Floating WhatsApp  ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
  z-index: 90;
  transition: all 0.35s ease;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(-8deg); }
.whatsapp-float .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: ping 2s ease-out infinite;
}

/* =====  Lightbox  ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 42, 0.96);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
}
.lightbox.active { display: flex; animation: fade-in 0.3s ease; }
.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.lb-close { top: 24px; inset-inline-end: 24px; font-size: 32px; }
.lb-prev { top: 50%; inset-inline-start: 24px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 24px; transform: translateY(-50%); }
html[dir="rtl"] .lb-prev { transform: translateY(-50%) scaleX(-1); }
html[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--gold);
  transform: scale(1.1);
}
html[dir="rtl"] .lb-prev:hover { transform: scale(1.1) scaleX(-1); }
html[dir="rtl"] .lb-next:hover { transform: scale(1.1) scaleX(-1); }
.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* =====  Scripture (Quran & Sunnah)  ===== */
.scripture {
  background:
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
  position: relative;
}
.scripture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/patterns/honeycomb.svg');
  background-size: 140px;
  opacity: 0.06;
  pointer-events: none;
}

.quran-card {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 50px 50px 44px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  position: relative;
  text-align: center;
  border-top: 6px solid var(--gold);
  overflow: hidden;
}
.quran-card::before, .quran-card::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(184,153,104,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.quran-card::before { top: -80px; left: -80px; }
.quran-card::after  { bottom: -80px; right: -80px; }

.quran-arabic {
  font-family: 'Amiri Quran', 'Amiri', 'KFGQPC Uthmanic Script HAFS', serif;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 2.5;
  color: var(--navy-deep);
  margin-bottom: 26px;
  font-weight: 400;
  text-align: center;
  position: relative;
  z-index: 1;
  /* Subtle visual weight without changing the glyphs */
  letter-spacing: 0.4px;
}
.quran-source {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--white);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold);
}

/* Show "translation of meaning" notice only in English mode */
.translation-note {
  display: none;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.hadith-note {
  text-align: center;
  margin: 28px auto 0;
  max-width: 720px;
}
html[lang="en"] .translation-note { display: block; }

/* Phone numbers — bdi keeps '+968 9984 3182' in LTR order without changing
   the surrounding text alignment (parent stays RTL-aligned in Arabic mode) */
.phone-num bdi { unicode-bidi: isolate; direction: ltr; }

.hadith-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.hadith-card {
  padding: 36px 28px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border-inline-start: 4px solid var(--gold);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hadith-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}
.hadith-mark {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(184, 153, 104, 0.15);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.hadith-quote {
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 2;
  color: var(--navy-deep);
  margin-bottom: 18px;
  font-weight: 500;
}
.hadith-source {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-top: 14px;
  border-top: 1px dashed rgba(184, 153, 104, 0.4);
  font-weight: 600;
}

.scholars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.scholar-card {
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.35s ease;
}
.scholar-card:hover { transform: translateY(-6px); }
.scholar-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  inset-inline-end: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
}
.scholar-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.scholar-book {
  font-size: 0.88rem;
  color: rgba(245, 242, 235, 0.6);
  margin-bottom: 16px;
}
.scholar-quote {
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 2;
  color: rgba(245, 242, 235, 0.95);
  position: relative;
  z-index: 1;
}

/* =====  Regions  ===== */
.regions { background: var(--cream-soft); }
.region-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 21/9;
  max-height: 460px;
}
.region-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.region-banner:hover img { transform: scale(1.04); }
.region-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,47,64,0.85) 0%, rgba(45,47,64,0.35) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  color: var(--cream);
  max-width: 60%;
}
html[dir="ltr"] .region-banner-overlay { max-width: 60%; }
.region-banner-overlay h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.region-banner-overlay p {
  color: rgba(245, 242, 235, 0.92);
  font-size: 1rem;
  line-height: 1.85;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.region-card {
  padding: 26px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(45,47,64,0.07);
  position: relative;
  border-top: 4px solid var(--gold);
  transition: all 0.35s ease;
}
.region-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--amber);
}
.region-card h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.region-card h4::before {
  content: '📍';
  font-size: 1.1rem;
  filter: grayscale(0.4);
}
.region-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.region-type {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(184, 153, 104, 0.13);
  color: var(--gold-deep);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

/* =====  Why feature block (sidr tree)  ===== */
.why-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 153, 104, 0.2);
  border-radius: var(--radius);
}
.why-feature-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-deep);
}
.why-feature-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.why-feature:hover .why-feature-image img { transform: scale(1.06); }
.why-feature-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}
.why-feature-text p {
  color: rgba(245, 242, 235, 0.85);
  line-height: 2;
  font-size: 1.02rem;
}
