/* ════════════════════════════════════════════════
   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;
  /* Soft dark fade at the top + bottom edges so a full-bleed image section
     blends into the next one instead of meeting it with a hard line. Tone-
     agnostic (works over the maroon/teal/sepia variants). Renders above the
     negative-z photo/overlay but below the positive-z content. */
  box-shadow:
    inset 0  120px 90px -70px rgba(12, 7, 10, 0.9),
    inset 0 -120px 90px -70px rgba(12, 7, 10, 0.92);
}

/* 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 — dark scrim under the text (RTL leading edge = right),
   deepened so the copy reads clearly over busy photos while the photo stays
   visible on the trailing (left) side. */
.feature__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to left,
    rgba(58, 14, 26, 0.92) 0%,
    rgba(58, 14, 26, 0.78) 40%,
    rgba(58, 14, 26, 0.35) 70%,
    transparent 100%
  );
  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;
  /* Lift the copy off any photo, even the busiest, for reliable legibility */
  text-shadow: 0 2px 16px rgba(8, 5, 8, 0.55);
}
.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;
  text-shadow: 0 1px 10px rgba(8, 5, 8, 0.5);
}

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

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

/* Soft dark vignette behind just the stats. The overlay gradient fades to
   transparent on this (trailing) side so the photo shows through — but that
   leaves the gold numerals sitting over bright areas of the portrait (e.g. the
   white thobe) with poor contrast. This localized scrim gives the numbers a
   consistent darker ground on wide screens without hiding the photo around
   them. Soft-edged (radial + no hard border) so it reads as light grading,
   not a card. */
.feature__stats-col::before {
  content: '';
  position: absolute;
  inset: -36px -48px;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(18, 7, 12, 0.62) 0%,
    rgba(18, 7, 12, 0.42) 50%,
    rgba(18, 7, 12, 0.14) 78%,
    transparent 100%
  );
  pointer-events: none;
}

/* Extra crispness: a dark halo on the numerals + labels so their edges stay
   defined even where the scrim is thinnest. */
.feature .stat__num,
.feature .stat__num-prefix,
.feature .stat__num-suffix {
  text-shadow: 0 2px 16px rgba(6, 3, 6, 0.75), 0 0 3px rgba(6, 3, 6, 0.55);
}
.feature .stat__label {
  text-shadow: 0 1px 10px rgba(6, 3, 6, 0.7);
}

/* Tone variants */
.feature--maroon {
  background: var(--maroon);
}
.feature--teal .feature__overlay {
  background: linear-gradient(
    to left,
    rgba(27, 38, 34, 0.92) 0%,
    rgba(27, 38, 34, 0.78) 40%,
    rgba(27, 38, 34, 0.35) 70%,
    transparent 100%
  );
}
.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; }
}
