
/* WordPress-delivered font bindings for the v0 design. */
:root {
  --font-playfair: "Playfair Display";
  --font-figtree: "Figtree";
  --font-amiri: "Amiri";
  --font-plex-arabic: "IBM Plex Sans Arabic";
}
/* ==========================================================================
   Egy Nile Essence — design tokens and base
   Breakpoints (media queries can't read variables):
     desktop ≥1440 · laptop 1280 · tablet-landscape 1024 · split 900
     tablet 768 · large mobile 600 · mobile 430 / 390 / 360
   ========================================================================== */

:root {
  /* Colour */
  --color-primary: #063f32;
  --color-primary-dark: #042e25;
  --color-primary-900: #07513f;
  --color-primary-800: #086247;
  --color-gold: #b07f18;         /* text-safe gold on cream */
  --color-gold-accent: #c99a36;  /* decorative gold */
  --color-gold-light: #e5c774;
  --color-gold-soft: #f4e8c8;
  --color-sand: #ecd49a;
  --color-cream: #f9f5e9;
  --color-background: #f9f5e9;
  --color-ivory: #fffdf7;
  --color-text: #10231f;
  --color-text-muted: #4b5c56;
  --color-border: rgba(7, 81, 63, 0.13);
  --color-border-strong: rgba(7, 81, 63, 0.24);

  /* Typography */
  --font-serif: var(--font-playfair), "Playfair Display", Georgia, serif;
  --font-sans: var(--font-figtree), "Figtree", "Segoe UI", system-ui, sans-serif;
  --text-h2: clamp(32px, 3.3vw, 50px);
  --text-h3: clamp(19px, 1.4vw, 21px);
  --text-lead: clamp(16px, 1.1vw, 18px);
  --text-body: 15px;

  /* Layout & spacing */
  --container-width: 1280px;
  --container-wide: 1680px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --gutter-wide: clamp(20px, 5vw, 96px);
  --section-spacing: clamp(64px, 8vw, 112px);
  --section-spacing-tight: clamp(40px, 5vw, 64px);
  --header-height: 76px;

  /* Shape & depth */
  --radius-button: 9px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(40, 26, 8, 0.04), 0 14px 30px -22px rgba(40, 26, 8, 0.3);
  --shadow-card-hover: 0 2px 4px rgba(40, 26, 8, 0.05), 0 22px 40px -24px rgba(40, 26, 8, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Direction multiplier for directional motion (arrows, slides) */
  --dir: 1;

  /* Aliases consumed by the approved hero stylesheet */
  --green-950: var(--color-primary);
  --green-900: var(--color-primary-900);
  --green-800: var(--color-primary-800);
  --gold: var(--color-gold);
  --gold-accent: var(--color-gold-accent);
  --gold-light: var(--color-gold-light);
  --cream: var(--color-cream);
  --ivory: var(--color-ivory);
  --text-dark: var(--color-text);
  --ene-font-serif: var(--font-serif);
  --ene-font-sans: var(--font-sans);
  --ene-radius: var(--radius-button);
  --ene-ease: var(--ease);
  --ene-shadow: 40, 26, 8;
}

[dir="rtl"] {
  --font-serif: var(--font-amiri), "Amiri", "Noto Naskh Arabic", serif;
  --font-sans: var(--font-plex-arabic), "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --dir: -1;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  background: var(--color-background);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* ==========================================================================
   Egy Nile Essence — approved hero
   Ported unchanged from the approved standalone hero; tokens now live in
   tokens.css, physical sides became logical properties, and an RTL block
   was added at the end.
   ========================================================================== */

.ene-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(640px, 42vw, 820px);
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-family: var(--ene-font-sans);
  background: var(--cream);
}

/* ---------- Background ---------- */
.ene-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ene-home-hero-bg, url("home-v159/hero-egypt-background.jpg"));
  background-size: cover;
  background-position: 50% 42%;
}

.ene-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(250, 246, 234, 0.93) 0%,
      rgba(250, 246, 234, 0.9) 18%,
      rgba(250, 246, 234, 0.78) 30%,
      rgba(250, 246, 234, 0.6) 40%,
      rgba(250, 246, 234, 0.3) 50%,
      rgba(250, 246, 234, 0.1) 58%,
      rgba(250, 246, 234, 0) 66%),
    radial-gradient(ellipse 45% 40% at 18% 88%, rgba(250, 246, 234, 0.55) 0%, rgba(250, 246, 234, 0) 100%);
}

/* ---------- Layout ---------- */
.ene-hero__inner {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: clamp(48px, 5vw, 80px) clamp(20px, 5vw, 96px) clamp(40px, 3.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
}

.ene-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 660px;
  animation: ene-fade-up 700ms var(--ene-ease) both;
}

/* ---------- Eyebrow ---------- */
.ene-hero__eyebrow {
  margin: 0 0 clamp(14px, 1.3vw, 22px);
  font-size: clamp(13px, 0.88vw, 16px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.ene-hero__eyebrow span {
  margin-inline: 0.3em;
}

/* ---------- Heading ---------- */
.ene-hero__title {
  margin: 0;
  font-family: var(--ene-font-serif);
  font-weight: 700;
  font-size: clamp(64px, 4.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.ene-hero__title span {
  display: block;
}

.ene-hero__title-dark {
  color: var(--text-dark);
}

/* Width forces the target break: "ready for your / market." */
.ene-hero__title-green {
  color: var(--green-950);
  max-width: 7.2em;
}

.ene-hero__rule {
  display: block;
  width: clamp(72px, 5.8vw, 108px);
  height: 3px;
  margin: clamp(18px, 1.6vw, 26px) 0 clamp(18px, 1.5vw, 24px);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-light));
}

/* ---------- Lead ---------- */
.ene-hero__lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(17px, 1.08vw, 20px);
  line-height: 1.55;
  color: var(--text-dark);
  text-wrap: pretty;
}

/* ---------- Buttons (shared site-wide) ---------- */
.ene-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(24px, 2vw, 34px);
}

.ene-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  min-width: clamp(200px, 14vw, 256px);
  padding: 0 clamp(24px, 2vw, 40px);
  border: 1px solid transparent;
  border-radius: var(--ene-radius);
  font-family: var(--ene-font-sans);
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 220ms var(--ene-ease),
    box-shadow 220ms var(--ene-ease),
    background-color 220ms var(--ene-ease),
    border-color 220ms var(--ene-ease),
    color 220ms var(--ene-ease);
}

.ene-btn:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 3px;
}

.ene-btn--primary {
  background: var(--green-950);
  color: var(--ivory);
  box-shadow: 0 8px 18px -10px rgba(6, 63, 50, 0.6);
}

.ene-btn--primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(6, 63, 50, 0.65);
}

.ene-btn__icon {
  flex: none;
  transition: translate 220ms var(--ene-ease);
}

.ene-btn:hover .ene-btn__icon {
  translate: calc(3px * var(--dir)) 0;
}

.ene-btn--secondary {
  background: var(--ivory);
  color: var(--green-950);
  border-color: var(--gold-accent);
}

.ene-btn--secondary:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(16, 35, 31, 0.45);
}

/* ---------- Benefits ---------- */
.ene-benefits {
  list-style: none;
  margin: clamp(32px, 3vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 620px;
}

.ene-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px clamp(8px, 0.9vw, 16px);
  text-align: center;
  border-inline-start: 1px solid rgba(7, 81, 63, 0.2);
}

.ene-benefit:first-child {
  border-inline-start: 0;
}

.ene-benefit__icon {
  width: clamp(34px, 2.3vw, 42px);
  height: clamp(34px, 2.3vw, 42px);
  fill: none;
  stroke: var(--green-900);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ene-benefit__label {
  font-size: clamp(14px, 0.9vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--green-950);
}

/* ==========================================================================
   Product composition — positioned in % of a fixed-ratio stage.
   The stage is a photographic composition, so it keeps LTR geometry in RTL.
   ========================================================================== */
.ene-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: end;
}

.ene-stage {
  position: relative;
  direction: ltr;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1.34 / 1;
  margin: 0;
  animation: ene-fade-in 900ms 150ms var(--ene-ease) both;
}

.ene-stage img {
  display: block;
  max-width: none;
  height: auto;
}

.ene-stage__ledge {
  position: absolute;
  left: -6%;
  bottom: 0;
  width: 110%;
  z-index: 0;
  filter: drop-shadow(4px 10px 12px rgba(var(--ene-shadow), 0.28));
}

.ene-pack {
  position: absolute;
  aspect-ratio: 0.82 / 1;
}

.ene-pack img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(5px 6px 8px rgba(var(--ene-shadow), 0.2));
}

.ene-pack::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 0;
  bottom: -2%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 55% 50%, rgba(var(--ene-shadow), 0.5) 0%, rgba(var(--ene-shadow), 0.18) 50%, rgba(var(--ene-shadow), 0) 75%);
  filter: blur(2px);
}

.ene-pack--carrots { left: 24.5%; bottom: 19%; width: 35%; z-index: 1; }
.ene-pack--broccoli { left: 1%; bottom: 11%; width: 32%; z-index: 2; transform: rotate(-1.5deg); transform-origin: bottom center; }
.ene-pack--grapes { left: 72%; bottom: 12.5%; width: 28%; z-index: 2; transform: rotate(1.5deg); transform-origin: bottom center; }
.ene-pack--figs { left: 51%; bottom: 7%; width: 29%; z-index: 3; }

.ene-prop {
  position: absolute;
  filter: drop-shadow(4px 6px 6px rgba(var(--ene-shadow), 0.28));
}

.ene-prop--carrots { left: 26%; bottom: 20%; width: 20%; z-index: 1; transform: rotate(-4deg); }
.ene-prop--broccoli { left: -4%; bottom: 1%; width: 26%; z-index: 4; }
.ene-prop--figs { left: 33%; bottom: 0; width: 18%; z-index: 4; }
.ene-prop--grapes { left: 79%; bottom: -1%; width: 24%; z-index: 4; }

/* ---------- Motion ---------- */
@keyframes ene-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ene-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ene-hero__content,
  .ene-stage {
    animation: none;
  }
  .ene-btn,
  .ene-btn__icon {
    transition: none;
  }
  .ene-btn:hover,
  .ene-btn:hover .ene-btn__icon {
    transform: none;
    translate: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  .ene-hero__title {
    font-size: clamp(52px, 4.6vw, 66px);
  }
}

@media (min-width: 900px) and (max-width: 1679px) {
  .ene-hero__visual {
    align-self: end;
    justify-content: flex-end;
    margin-inline-end: clamp(-40px, -2vw, -12px);
  }

  .ene-stage {
    width: min(100%, 40vw, 82vh);
    max-width: 660px;
  }
}

@media (max-width: 1199px) {
  .ene-hero {
    min-height: 0;
  }

  .ene-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    padding-block: 56px 40px;
  }

  .ene-hero__bg::after {
    background:
      linear-gradient(90deg,
        rgba(250, 246, 234, 0.94) 0%,
        rgba(250, 246, 234, 0.88) 30%,
        rgba(250, 246, 234, 0.6) 44%,
        rgba(250, 246, 234, 0.2) 56%,
        rgba(250, 246, 234, 0) 66%);
  }

  .ene-hero__title {
    font-size: clamp(42px, 5.2vw, 56px);
  }

  .ene-btn {
    min-width: 0;
    min-height: 54px;
  }

  .ene-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .ene-benefit:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 899px) {
  .ene-hero {
    display: block;
  }

  .ene-hero__bg {
    background-position: 58% 100%;
  }

  .ene-hero__bg::after {
    background: linear-gradient(180deg,
      rgba(250, 246, 234, 0.94) 0%,
      rgba(250, 246, 234, 0.88) 34%,
      rgba(250, 246, 234, 0.45) 50%,
      rgba(250, 246, 234, 0.1) 62%,
      rgba(250, 246, 234, 0.35) 78%,
      rgba(250, 246, 234, 0.92) 90%);
  }

  .ene-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 44px clamp(20px, 5vw, 48px) 32px;
  }

  .ene-hero__content {
    display: contents;
  }

  .ene-hero__eyebrow,
  .ene-hero__title,
  .ene-hero__rule,
  .ene-hero__lead,
  .ene-hero__actions {
    order: 1;
  }

  .ene-hero__visual {
    order: 2;
    width: 100%;
    margin-top: 36px;
    justify-content: center;
  }

  .ene-benefits {
    order: 3;
    max-width: 620px;
    margin-top: 28px;
    row-gap: 22px;
  }

  .ene-hero__title {
    font-size: clamp(40px, 11.5vw, 52px);
    line-height: 1.02;
  }

  .ene-hero__title-green {
    max-width: none;
  }

  .ene-hero__lead {
    font-size: 17px;
    max-width: 620px;
  }

  .ene-hero__actions {
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .ene-btn {
    min-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    gap: 8px;
  }

  .ene-stage {
    max-width: min(100%, 500px);
    margin-inline: auto;
  }
}

@media (max-width: 419px) {
  .ene-hero__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   RTL — mirror the light wash and landscape so copy sits on the cream side.
   ========================================================================== */
[dir="rtl"] .ene-hero__bg {
  transform: scaleX(-1);
}

[dir="rtl"] .ene-hero__eyebrow {
  letter-spacing: 0;
  font-size: clamp(15px, 1vw, 18px);
}

[dir="rtl"] .ene-hero__title {
  line-height: 1.25;
  letter-spacing: 0;
}

[dir="rtl"] .ene-hero__title-green {
  max-width: none;
}

[dir="rtl"] .ene-hero__rule {
  background: linear-gradient(270deg, var(--gold-accent), var(--gold-light));
}

[dir="rtl"] .ene-hero__lead {
  line-height: 1.75;
}
/* ==========================================================================
   Egy Nile Essence — homepage sections
   Plain CSS with BEM-style `ene-` classes and logical properties so it can be
   dropped into the WordPress plugin as-is.
   ========================================================================== */

/* ---------- Primitives ---------- */
.ene-container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ene-container--wide {
  max-width: var(--container-wide);
  padding-inline: var(--gutter-wide);
}

.ene-section {
  position: relative;
  padding-block: var(--section-spacing);
}

.ene-section[data-surface="cream"] {
  background-color: var(--color-cream);
}

/* Two cream sections in a row (e.g. after a hidden section) share one gap. */
.ene-section[data-surface="cream"] + .ene-section[data-surface="cream"] {
  padding-block-start: var(--section-spacing-tight);
}

.ene-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ene-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ene-skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-ivory);
  font-weight: 600;
  text-decoration: none;
}

.ene-skip:focus {
  top: 12px;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--color-gold-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ene-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .ene-icon--dir {
  transform: scaleX(-1);
}

/* ---------- Eyebrow & heading ---------- */
.ene-eyebrow {
  margin-block-end: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gold);
}

.ene-eyebrow--light { color: var(--color-gold-light); }
.ene-eyebrow--deep { color: var(--color-primary-900); }

[dir="rtl"] .ene-eyebrow {
  font-size: 15px;
  letter-spacing: 0;
}

.ene-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.ene-heading--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.ene-heading__title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  text-wrap: balance;
}

.ene-heading__desc {
  max-width: 620px;
  margin-block-start: 16px;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.ene-heading--light .ene-heading__title { color: var(--color-ivory); }
.ene-heading--light .ene-heading__desc { color: rgba(255, 253, 247, 0.86); }

[dir="rtl"] .ene-heading__title {
  line-height: 1.35;
  letter-spacing: 0;
}

[dir="rtl"] .ene-heading__desc {
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.ene-btn--sm {
  min-width: 0;
  min-height: 44px;
  padding-inline: 18px;
  font-size: 15px;
  gap: 8px;
}

.ene-btn--gold {
  background: var(--color-gold-light);
  color: var(--color-primary);
}

.ene-btn--gold:hover {
  background: #eed691;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.5);
}

.ene-btn--outline-light {
  background: transparent;
  color: var(--color-ivory);
  border-color: rgba(255, 253, 247, 0.5);
}

.ene-btn--outline-light:hover {
  border-color: var(--color-ivory);
  background: rgba(255, 253, 247, 0.08);
  transform: translateY(-2px);
}

.ene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 32px;
}

/* ---------- Icon badge ---------- */
.ene-icon-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  border: 1px solid rgba(201, 154, 54, 0.38);
  color: var(--color-primary);
}

.ene-icon-badge .ene-icon {
  width: 24px;
  height: 24px;
}

.ene-icon-badge--sm {
  width: 46px;
  height: 46px;
}

.ene-icon-badge--sm .ene-icon {
  width: 22px;
  height: 22px;
}

/* ---------- Image fallback ---------- */
.ene-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-primary-900), var(--color-primary));
}

.ene-image-fallback img {
  width: 42%;
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

/* ---------- Card base ---------- */
.ene-card {
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.ene-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.ene-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  text-wrap: balance;
}

.ene-card__text {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

[dir="rtl"] .ene-card__title { line-height: 1.45; }
[dir="rtl"] .ene-card__text { line-height: 1.8; }

/* ==========================================================================
   Header
   ========================================================================== */
.ene-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 245, 233, 0.94);
  border-block-end: 1px solid var(--color-border);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}

.ene-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  min-height: var(--header-height);
}

.ene-header__logo {
  display: inline-flex;
  flex: none;
  border-radius: 4px;
}

.ene-header__logo img {
  display: block;
  width: auto;
  height: 56px;
}

.ene-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.ene-header__nav ul {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
}

.ene-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.ene-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold-accent);
  transform: scaleX(0);
  transition: transform 240ms var(--ease);
}

.ene-nav-link:hover,
.ene-nav-link[aria-current="page"] {
  color: var(--color-primary);
}

.ene-nav-link:hover::after,
.ene-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.ene-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.ene-lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 4px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  background: rgba(255, 253, 247, 0.7);
}

.ene-lang a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}

.ene-lang a[lang="ar"] {
  font-family: var(--font-plex-arabic), "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

.ene-lang a[aria-current="true"] {
  color: var(--color-primary);
}

.ene-lang a:hover {
  color: var(--color-primary);
}

.ene-lang__sep {
  width: 1px;
  height: 16px;
  background: var(--color-border-strong);
}

/* Mobile menu */
.ene-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  background: var(--color-ivory);
  color: var(--color-primary);
  cursor: pointer;
}

.ene-menu-toggle .ene-icon {
  width: 22px;
  height: 22px;
}

.ene-mobile-nav {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 8px var(--gutter-wide) 24px;
  background: var(--color-cream);
  border-block-end: 1px solid var(--color-border);
  box-shadow: 0 24px 40px -24px rgba(40, 26, 8, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}

.ene-mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.ene-mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-block-end: 1px solid var(--color-border);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.ene-mobile-nav__link[aria-current="page"] {
  color: var(--color-primary);
}

.ene-mobile-nav .ene-btn {
  width: 100%;
  margin-block-start: 20px;
}

@media (min-width: 1024px) {
  .ene-mobile-nav {
    display: none;
  }
}

@media (max-width: 1023px) {
  .ene-header__nav {
    display: none;
  }

  .ene-header__actions {
    margin-inline-start: auto;
  }

  .ene-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 599px) {
  :root {
    --header-height: 68px;
  }

  .ene-header__logo img {
    height: 48px;
  }

  .ene-header__cta {
    display: none;
  }

  .ene-header__actions {
    gap: 10px;
  }
}

/* ==========================================================================
   Buyer proof points
   ========================================================================== */
.ene-proof {
  padding-block: clamp(40px, 5vw, 72px) var(--section-spacing-tight);
}

.ene-proof__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ene-proof-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: clamp(22px, 2vw, 28px);
}

.ene-proof-card .ene-card__text {
  margin-block-start: -6px;
}

@media (max-width: 1023px) {
  .ene-proof__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .ene-proof__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ene-proof-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    padding: 20px;
  }

  .ene-proof-card .ene-icon-badge {
    grid-row: span 2;
  }

  .ene-proof-card .ene-card__text {
    margin: 0;
  }
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.ene-portfolio {
  isolation: isolate;
  background-image: var(--ene-home-portfolio-bg, url("home-v159/portfolio-backdrop.jpg"));
  background-size: cover;
  background-position: center bottom;
}

.ene-portfolio__list {
  --gap: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1160px;
  margin: clamp(36px, 4vw, 56px) auto 0;
}

.ene-portfolio .ene-category {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-primary);
  box-shadow: var(--shadow-card);
  color: var(--color-ivory);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.ene-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.ene-category:has(.ene-category__cta:focus-visible) {
  outline: 3px solid var(--color-gold-accent);
  outline-offset: 3px;
}

/* Show the complete shared category image above its own text panel. */
.ene-portfolio .ene-category__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-ivory);
}

.ene-portfolio .ene-category__media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 1.4vw, 20px);
  object-fit: contain;
  object-position: center;
}

.ene-portfolio .ene-category:hover .ene-category__media > img {
  transform: none;
}

.ene-portfolio .ene-category::before {
  content: none;
}

.ene-portfolio .ene-category__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  padding: clamp(20px, 1.8vw, 24px);
  background: var(--color-primary);
}

.ene-category__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ivory);
  text-wrap: balance;
}

.ene-category__text {
  font-size: var(--text-body);
  line-height: 1.55;
  color: rgba(255, 253, 247, 0.88);
  text-wrap: pretty;
}

/* Complete localized copy remains readable; optional homepage summaries keep cards concise. */
.ene-portfolio .ene-category__title,
.ene-portfolio .ene-category__text {
  display: block;
  overflow-wrap: anywhere;
}

.ene-portfolio .ene-category__cta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ene-portfolio .ene-category__cta .ene-icon {
  flex-shrink: 0;
}

.ene-portfolio .ene-category__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-block-start: auto;
  padding-block-start: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gold-light);
  text-decoration: none;
}

.ene-category__cta:focus-visible {
  outline: none;
}

.ene-category__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ene-category__cta .ene-icon {
  width: 18px;
  height: 18px;
  transition: translate 220ms var(--ease);
}

.ene-category:hover .ene-category__cta .ene-icon {
  translate: calc(4px * var(--dir)) 0;
}

[dir="rtl"] .ene-category__title { line-height: 1.4; }
[dir="rtl"] .ene-category__text { line-height: 1.75; }

@media (max-width: 1023px) {
  .ene-portfolio__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ene-portfolio__list > li {
    flex: 0 1 calc(50% - var(--gap) / 2);
  }
}

@media (max-width: 767px) {
  .ene-portfolio::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(249, 245, 233, 0.6);
  }
}

@media (max-width: 599px) {
  .ene-portfolio__list > li {
    flex-basis: 100%;
    max-width: 440px;
  }
}

/* ==========================================================================
   Buying brief
   ========================================================================== */
.ene-brief {
  background: var(--color-primary) url("home-v159/green-botanical-texture.jpg") center / cover no-repeat;
  color: var(--color-ivory);
}

.ene-brief__grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.ene-brief__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ene-brief-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(229, 199, 116, 0.35);
  border-radius: var(--radius-card);
  background: var(--color-cream);
  color: var(--color-text);
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, 0.6);
  transition: transform 300ms var(--ease);
}

.ene-brief-card:hover {
  transform: translateY(-3px);
}

.ene-brief-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 4px;
}

.ene-brief-card__number {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold);
}

@media (max-width: 1023px) {
  .ene-brief__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .ene-brief__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ene-brief .ene-btn,
  .ene-final .ene-btn,
  .ene-direction .ene-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Our direction
   ========================================================================== */
.ene-direction {
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 104px);
  background: var(--color-sand);
}

.ene-direction__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.ene-direction__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(236, 212, 154, 0.98) 0%,
    rgba(236, 212, 154, 0.94) 30%,
    rgba(236, 212, 154, 0.62) 48%,
    rgba(236, 212, 154, 0) 68%);
}

[dir="rtl"] .ene-direction__bg {
  transform: scaleX(-1);
}

.ene-direction__content {
  max-width: 560px;
}

.ene-direction .ene-heading__desc {
  color: var(--color-text);
}

@media (max-width: 767px) {
  .ene-direction {
    padding-block-end: clamp(220px, 58vw, 320px);
  }

  .ene-direction__bg {
    background-position: 72% bottom;
  }

  .ene-direction__bg::after {
    background: linear-gradient(180deg,
      rgba(236, 212, 154, 0.98) 0%,
      rgba(236, 212, 154, 0.94) 48%,
      rgba(236, 212, 154, 0.5) 64%,
      rgba(236, 212, 154, 0) 80%);
  }
}

/* ==========================================================================
   Enquiry process — horizontal timeline, vertical on small screens
   ========================================================================== */
.ene-process__steps {
  --process-gap: clamp(20px, 2.5vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--process-gap);
  margin-block-start: clamp(40px, 4.5vw, 64px);
}

.ene-process__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: calc((100% - 3 * var(--process-gap)) / 8);
  border-block-start: 1px solid rgba(201, 154, 54, 0.6);
}

.ene-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ene-step__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-block-end: 10px;
  border: 1px solid var(--color-gold-accent);
  border-radius: 50%;
  background: var(--color-ivory);
  box-shadow: 0 0 0 8px var(--color-cream);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.ene-step .ene-card__text {
  max-width: 260px;
}

.ene-process__cta {
  display: flex;
  justify-content: center;
  margin-block-start: clamp(40px, 4vw, 56px);
}

@media (max-width: 899px) {
  .ene-process__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 560px;
    margin-inline: auto;
  }

  .ene-process__steps::before {
    top: 28px;
    bottom: 56px;
    inset-inline: 27.5px auto;
    border-block-start: 0;
    border-inline-start: 1px solid rgba(201, 154, 54, 0.6);
  }

  .ene-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 4px;
    align-items: start;
    padding-block-end: 28px;
    text-align: start;
  }

  .ene-step__marker {
    grid-row: span 2;
    margin: 0;
  }

  .ene-step .ene-card__title {
    padding-block-start: 14px;
  }

  .ene-step .ene-card__text {
    max-width: none;
  }
}

/* ==========================================================================
   International buyers — 50/50 split, image bleeds to the edge
   ========================================================================== */
.ene-buyers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0;
  background: var(--color-ivory);
}

.ene-buyers__media {
  position: relative;
  min-height: clamp(480px, 42vw, 640px);
  overflow: hidden;
  background: var(--color-primary);
}

.ene-buyers__media > img,
.ene-buyers__media > .ene-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.ene-buyers__content {
  align-self: center;
  width: 100%;
  max-width: 680px;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}

.ene-buyers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin-block-start: clamp(28px, 3vw, 40px);
}

.ene-benefit-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.ene-benefit-item__title {
  padding-block-start: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
}

.ene-benefit-item .ene-card__text {
  margin-block-start: 4px;
  font-size: 14.5px;
}

@media (max-width: 899px) {
  .ene-buyers {
    grid-template-columns: minmax(0, 1fr);
  }

  .ene-buyers__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ene-buyers__content {
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 599px) {
  .ene-buyers__media {
    aspect-ratio: 4 / 3;
  }

  .ene-buyers__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   Team
   ========================================================================== */
.ene-team__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-block-start: clamp(36px, 4vw, 56px);
}

.ene-team__list > li {
  display: flex;
  flex: 0 1 290px;
}

.ene-team__list[data-count="1"] > li {
  flex-basis: 720px;
}

.ene-member {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.ene-member__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 247, 0.9) 0 38%, transparent 70%),
    var(--color-gold-soft);
}

.ene-member__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 3px solid var(--color-ivory);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(201, 154, 54, 0.5), 0 14px 26px -16px rgba(6, 63, 50, 0.6);
  font-family: var(--font-playfair), "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.ene-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.ene-member__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px;
}

.ene-member__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 8px;
}

.ene-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-inline: 10px;
  border: 1px solid rgba(201, 154, 54, 0.45);
  border-radius: 6px;
  background: var(--color-gold-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary-900);
}

.ene-member__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.ene-member__role {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-900);
}

.ene-member__dept {
  font-size: 14px;
  color: var(--color-text-muted);
}

.ene-member__bio {
  display: -webkit-box;
  margin-block-start: 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.ene-member__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-block-start: auto;
  padding-inline: 16px;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ivory);
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}

.ene-member__email:hover {
  background: var(--color-primary-800);
}

.ene-member__email .ene-icon {
  width: 18px;
  height: 18px;
}

.ene-member__bio + .ene-member__email {
  margin-block-start: 18px;
}

/* A single member becomes a wider feature card instead of a lonely tile. */
.ene-team__list[data-count="1"] .ene-member {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

.ene-team__list[data-count="1"] .ene-member__portrait {
  height: 100%;
}

.ene-team__list[data-count="1"] .ene-member__avatar {
  width: 150px;
  height: 150px;
  font-size: 46px;
}

.ene-team__list[data-count="1"] .ene-member__body {
  padding: clamp(24px, 3vw, 36px);
}

.ene-team__cta {
  display: flex;
  justify-content: center;
  margin-block-start: clamp(36px, 4vw, 48px);
}

[dir="rtl"] .ene-member__name { line-height: 1.4; }
[dir="rtl"] .ene-badge { letter-spacing: 0; font-size: 13px; }

@media (max-width: 599px) {
  .ene-team__list > li {
    flex-basis: 100%;
    max-width: 420px;
  }

  .ene-team__list[data-count="1"] .ene-member {
    display: flex;
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.ene-final {
  padding-block: clamp(56px, 6vw, 84px);
  background: var(--color-primary-dark) url("home-v159/green-botanical-texture.jpg") center / cover no-repeat;
  color: var(--color-ivory);
}

.ene-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.ene-final__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-ivory);
  text-wrap: balance;
}

.ene-final__text {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: rgba(255, 253, 247, 0.86);
  text-wrap: pretty;
}

.ene-final .ene-actions {
  margin-block-start: 24px;
}

[dir="rtl"] .ene-final__title { line-height: 1.4; }
[dir="rtl"] .ene-final__text { line-height: 1.8; }

@media (max-width: 899px) {
  .ene-final__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ene-footer {
  padding-block-start: clamp(48px, 5vw, 72px);
  background: var(--color-ivory);
  border-block-start: 1px solid var(--color-border);
}

.ene-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 3vw, 48px);
}

.ene-footer .ene-footer__grid > nav {
  display: block !important;
}

.ene-footer .ene-footer__grid > nav .ene-footer__links--menu {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

[dir="rtl"] .ene-footer .ene-footer__grid > nav .ene-footer__links--menu {
  align-items: flex-end;
}

.ene-footer__links--menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: clamp(24px, 3vw, 48px);
}

/* The footer is outside #ene-main; give its Arabic columns their own RTL scope. */
.ene-footer[dir="rtl"] .ene-footer__grid > nav {
  direction: rtl;
  text-align: start;
}
.ene-footer[dir="rtl"] .ene-footer__grid > nav .ene-footer__links--menu {
  align-items: flex-start !important;
  padding: 0;
  margin: 0;
  text-align: start;
}
.ene-footer[dir="rtl"] .ene-footer__title {
  text-align: start;
  letter-spacing: 0;
  text-transform: none;
}

.ene-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ene-footer__contacts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ene-footer__contact-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

[dir="rtl"] .ene-footer__contacts a {
  text-align: end;
}

.ene-footer__contacts a {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 200ms var(--ease);
}

.ene-footer__contacts a:hover {
  color: var(--color-primary);
}

.ene-footer__brand img {
  display: block;
  width: auto;
  height: 68px;
}

.ene-footer__desc {
  max-width: 340px;
  margin-block-start: 16px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.ene-footer__title {
  margin-block-end: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

[dir="rtl"] .ene-footer__title {
  font-size: 15px;
  letter-spacing: 0;
}

.ene-footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ene-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: var(--text-body);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.ene-footer__links a:hover {
  color: var(--color-primary);
}

.ene-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block-start: clamp(40px, 4vw, 56px);
  padding-block: 22px;
  border-block-start: 1px solid var(--color-border);
}

.ene-footer__copy {
  font-size: 14px;
  color: var(--color-text-muted);
}

.ene-footer__statement {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.ene-footer__statement::before {
  content: "";
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold-accent);
}

[dir="rtl"] .ene-footer__statement {
  font-size: 14px;
  letter-spacing: 0;
}

@media (max-width: 1023px) {
  .ene-footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .ene-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .ene-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Scroll reveal (only when JS is available)
   ========================================================================== */
.ene-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease) var(--reveal-delay, 0ms),
    transform 700ms var(--ease) var(--reveal-delay, 0ms);
}

.ene-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ene-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ene-card,
  .ene-category,
  .ene-portfolio .ene-category,
  .ene-brief-card,
  .ene-category__media > img {
    transition: none;
  }

  .ene-card:hover,
  .ene-category:hover,
  .ene-brief-card:hover,
  .ene-category:hover .ene-category__media > img {
    transform: none;
  }
}

/* WordPress 1.5.10 integration boundary: homepage only. */
body.ene-home-v159 {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
}
body.ene-home-v159 #ene-main {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.ene-home-v159 .ene-home-v159-shell {
  width: 100%;
  overflow: clip;
}
body.ene-home-v159 .ene-stage img,
body.ene-home-v159 .ene-category__media img,
body.ene-home-v159 .ene-buyers__media img,
body.ene-home-v159 .ene-member__avatar img {
  margin: 0;
}
body.ene-home-v159 .ene-hero__bg {
  background-image: var(--ene-home-hero-bg, url("home-v159/hero-egypt-background.jpg"));
}
body.ene-home-v159 .ene-portfolio {
  background-image: var(--ene-home-portfolio-bg, url("home-v159/portfolio-backdrop.jpg"));
}
body.ene-home-v159 .ene-direction__bg {
  background-image: var(--ene-home-direction-bg, url("home-v159/direction-nile-landscape.jpg"));
}
body.ene-home-v159 .ene-stage__ledge,
body.ene-home-v159 .ene-prop {
  pointer-events: none;
  user-select: none;
}
body.ene-home-v159 .ene-stage__ledge { content-visibility: auto; }
body.ene-home-v159 .ene-portfolio .ene-category__media .ene-home-category-fallback {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
body.ene-home-v159 .ene-stage .ene-home-pack-fallback { object-fit: contain; }
body.ene-home-v159 .ene-stage img[loading="lazy"] { content-visibility: auto; }
body.ene-home-v159 .ene-stage img[fetchpriority="high"] { content-visibility: visible; }

body.ene-home-v159 #wpadminbar { z-index: 100000; }

body.admin-bar.ene-home-v159 .ene-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar.ene-home-v159 .ene-header { top: 46px; }
}


/* ==========================================================================
   WordPress 1.5.10 compatibility fixes
   - Isolate the v0 Home presentation from legacy .ene-core/.ene-team rules.
   - Restore the exact v0 font stack inside the WordPress shell, including RTL.
   - Make the single-member Team feature card robust at normal browser zoom.
   ========================================================================== */

/* The legacy core stylesheet makes .ene-team itself a 4-column grid. On the
   v0 homepage .ene-team is a full-width section, so neutralize that older rule
   only inside the new homepage boundary. */
body.ene-home-v159 #ene-main.ene-core .ene-team {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  border-top: 0;
}

/* Legacy .ene-core uses Arial/Tahoma. The approved v0 design uses Figtree for
   Latin UI/body copy and IBM Plex Sans Arabic for Arabic UI/body copy. */
body.ene-home-v159 #ene-main.ene-core {
  font-family: var(--font-sans);
}

body.ene-home-v159.ene-rtl,
html[lang^="ar"] body.ene-home-v159 {
  --font-serif: var(--font-amiri), "Amiri", "Noto Naskh Arabic", serif;
  --font-sans: var(--font-plex-arabic), "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ene-font-serif: var(--font-serif);
  --ene-font-sans: var(--font-sans);
  --dir: -1;
  font-family: var(--font-sans);
}

body.ene-home-v159 #ene-main.ene-core[dir="rtl"] {
  font-family: var(--font-sans);
}

/* core.css contains a higher-specificity Tahoma rule for RTL h1/h2/h3.
   Re-assert the v0 serif typography on the headings that are serif in v0. */
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-hero__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-heading__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-card__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-category__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-member__name,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-final__title {
  font-family: var(--font-serif);
}

/* These h3/h2 labels are sans-serif in the v0 design and must not inherit the
   legacy RTL heading font. */
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-benefit-item__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-footer__title,
body.ene-home-v159 #ene-main.ene-core[dir="rtl"] .ene-sr-only {
  font-family: var(--font-sans);
}

/* Robust Team layout. The card may shrink with the viewport, but never into a
   narrow portrait-only strip. This keeps the dynamic one-member state useful
   while retaining the approved desktop feature-card treatment. */
body.ene-home-v159 .ene-team__list[data-count="1"] > li {
  flex: 1 1 720px;
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member {
  min-width: 0;
}

body.ene-home-v159 .ene-member__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  body.ene-home-v159 .ene-team__list[data-count="1"] > li {
    flex-basis: 100%;
    max-width: 520px;
  }

  body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member {
    display: flex;
    flex-direction: column;
  }

  body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member__portrait {
    min-height: 220px;
    height: auto;
  }

  body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member__avatar {
    width: 128px;
    height: 128px;
    font-size: 40px;
  }

  body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member__body {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  body.ene-home-v159 .ene-team__list[data-count="1"] > li {
    max-width: 100%;
  }

  body.ene-home-v159 .ene-team__list[data-count="1"] .ene-member__portrait {
    min-height: 190px;
    padding: 24px;
  }
}
