/* ════════════════════════════════════════════════
   06 — FEATURE SECTION (the alwaleed-style anchor)
   Full-bleed photo BG + headline + body + stats + CTA
   ════════════════════════════════════════════════ */

.feature {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0;
}

/* Background image */
.feature__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.feature__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.8s ease-out;
}
.feature.in-view .feature__bg img { transform: scale(1); }

/* Gradient overlay — gives text contrast on RTL leading edge */
.feature__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--feature-grad);
  pointer-events: none;
}

/* Maroon overall tint for cohesion */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(82, 22, 36, 0.18);
  pointer-events: none;
}

/* Subtle film grain */
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Content column */
.feature__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 80px;
  align-items: center;
}

/* Body column (always on the leading edge in RTL = right side) */
.feature__body-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-gold);
}

.feature__headline {
  font-family: var(--font-arabic);
  font-weight: 400;
  font-size: var(--fs-headline);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-block: 8px 12px;
}
.feature__headline em {
  font-family: var(--font-serif);
  /* No italic — Arabic doesn't have a true italic counterpart and the font
     file only ships upright glyphs, so font-style: italic would render as
     synthetic italic (browser-skewed) which distorts the calligraphic
     strokes. Emphasis comes from color + weight only. */
  font-style: normal;
  font-weight: 500;
  color: var(--olive-gold);
}

.feature__body {
  font-family: var(--font-arabic);
  font-size: var(--fs-body-lg);
  line-height: 1.85;
  color: var(--text-cream);
  font-weight: 300;
  max-width: 520px;
}

.feature__cta-wrap { margin-top: 16px; }

/* Stats column */
.feature__stats-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

/* Tone variants */
.feature--maroon {
  background: var(--maroon);
}
.feature--teal .feature__overlay { background: var(--teal-grad); }
.feature--teal::before { background: rgba(43, 58, 53, 0.4); }
.feature--sepia .feature__bg img { filter: sepia(0.25) contrast(1.04) saturate(0.85); }
.feature--sepia::before { background: rgba(89, 60, 36, 0.18); }

/* Cinematic mask reveal on enter */
.feature.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease-out;
}
.feature.fade-in.in-view { opacity: 1; }

@media (max-width: 1024px) {
  .feature__content { grid-template-columns: 1fr; gap: 56px; }
  .feature__stats-col { flex-direction: row; gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .feature { min-height: 80vh; padding: 80px 0; }
  .feature__content { padding: 0 24px; gap: 40px; }
  .feature__overlay { background: linear-gradient(to top, rgba(58,14,26,0.95) 0%, rgba(58,14,26,0.7) 50%, rgba(58,14,26,0.4) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .feature__bg img { transition: none; transform: none; }
  .feature.in-view .feature__bg img { transform: none; }
}
