/* ===================================================
   vision.css  —  الرؤية  (mobile-first)
=================================================== */

:root {
  --sage:     #6f8f7d;
  --sageDark: #4f6f5f;
  --wrap:     min(680px, 92vw);
}

.page { background: #fff; }

/* ---- Outer wrapper ---- */
.visionPage {
  background: #fff;
}

.visionPage__inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* ---- Page title ---- */
.visionPage__title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin-bottom: 22px;
  line-height: 1.2;
}

/* ---- Images (mobile: full width) ---- */
.visionPage__figure {
  margin: 0 0 22px;
}

.visionPage__img {
  width: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* ---- Intro body text ---- */
.visionPage__body p {
  font-size: 14px;
  color: #3f3f3f;
  line-height: 2.1;
  margin-bottom: 18px;
}

/* ---- Sections ---- */
.visionSection {
  margin-top: 36px;
}

.visionSection__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--sageDark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.visionSection__body p {
  font-size: 14px;
  color: #3f3f3f;
  line-height: 2.1;
  margin-bottom: 18px;
}

/* ===================================================
   Desktop (≥ 860px)
=================================================== */
@media (min-width: 860px) {

  :root {
    --wrap: min(1100px, 92vw);
  }

  .visionPage__inner {
    padding: 52px 0 64px;
    gap: 0;
  }

  .visionPage__title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  /* --- Intro block: image left, text right --- */
  .visionPage__intro {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 52px;
    align-items: center;
    margin-bottom: 56px;
  }

  .visionPage__intro .visionPage__figure {
    margin: 0;
  }

  .visionPage__img {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
  }

  .visionPage__intro .visionPage__body {
    padding-right: 8px;
  }

  .visionPage__body p {
    font-size: 15px;
  }

  /* --- Sections: alternating image/text --- */
  .visionSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 52px;
    row-gap: 0;
    align-items: start;
    margin-top: 0;
    padding: 48px 0;
    border-top: 1px solid #f0ede8;
  }

  /* Section title spans full width above the grid */
  .visionSection__title {
    grid-column: 1 / -1;
    font-size: 24px;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ede8;
  }

  /* Section 1 (ما نعمل): image right, text left */
  .visionSection:nth-of-type(1) .visionPage__figure {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .visionSection:nth-of-type(1) .visionSection__body {
    grid-column: 1;
    grid-row: 2;
  }

  /* Section 2 (رؤية الأعمال): image left, text right */
  .visionSection:nth-of-type(2) .visionPage__figure {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .visionSection:nth-of-type(2) .visionSection__body {
    grid-column: 2;
    grid-row: 2;
  }

  /* Square images in sections */
  .visionSection .visionPage__img {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .visionSection__body p {
    font-size: 15px;
  }
}
