/* ============================================================
   نژوا — بخش‌های عکسمحور (Image-rich components)
   Technology + Culture + Premium
   ============================================================ */

/* Feature card with media header */
.fcard-media {
  position: relative;
  height: 190px;
  margin: -30px -26px 24px;
  overflow: hidden;
  background: var(--surface-2);
}

.fcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .fcard-media img {
  transform: scale(1.08);
}

.fcard-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.32), transparent 55%);
  pointer-events: none;
}

.fcard-media .fcard-tag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--r-full);
}

/* Split sections (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media.tall {
  aspect-ratio: 4 / 5;
}

.split-media.wide {
  aspect-ratio: 16 / 10.5;
}

.split-media .sm-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}

.split-copy .eyebrow {
  margin-bottom: 14px;
}

.split-copy h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.split-copy p {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.split-copy .check-list {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-copy .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}

.split-copy .check-list li svg {
  color: var(--violet-600);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Media tile (mission/values etc.) */
.tile-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 150px;
  margin: -22px -22px 18px;
  position: relative;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover .tile-media img {
  transform: scale(1.08);
}

/* Mosaic gallery */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.mosaic-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mosaic-item:hover img {
  transform: scale(1.07);
}

.mosaic-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 16px 14px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.72), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.mosaic-item:hover .cap {
  opacity: 1;
}

.mosaic-item.span2 {
  grid-column: span 2;
}

.mosaic-item.row2 {
  grid-row: span 2;
}

/* Full-width image band */
.img-band {
  position: relative;
  height: clamp(320px, 48vw, 460px);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.img-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.6), rgba(27, 23, 48, 0.12) 55%, rgba(27, 23, 48, 0.28));
}

.img-band .ib-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 720px;
}

.img-band .ib-caption h2 {
  font-size: clamp(24px, 3.8vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.img-band .ib-caption p {
  font-size: 15.5px;
  opacity: 0.94;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Role card media header */
.role-media {
  position: relative;
  height: 220px;
  margin: -38px -32px 26px;
  overflow: hidden;
  background: var(--surface-2);
}

.role-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.role-card:hover .role-media img {
  transform: scale(1.07);
}

.role-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.4), transparent 60%);
}

.role-media .rm-tag {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--violet-700);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: var(--r-full);
}

/* Horizontal photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.photo-strip .ps-item {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-strip .ps-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-strip .ps-item:hover img {
  transform: scale(1.08);
}

/* Story card with image background */
.story-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: #fff;
  min-height: 340px;
}

.story-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card .story-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.78), rgba(27, 23, 48, 0.08) 65%);
}

.story-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.story-card p {
  font-size: 14px;
  opacity: 0.92;
  max-width: 460px;
}

/* Phone stories avatars */
.phone-story .ps-ring span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Gallery for inner pages */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gal-grid .gal-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gal-grid .gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-grid .gal-item:hover img {
  transform: scale(1.07);
}

.gal-grid .gal-item .g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 14px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.68), transparent);
}

/* Section heading over image */
.section-head-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  padding: 76px 30px;
  text-align: center;
  margin-bottom: 48px;
}

.section-head-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 23, 48, 0.72), rgba(27, 23, 48, 0.35));
}

.section-head-img > * {
  position: relative;
  z-index: 2;
}

.section-head-img .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.section-head-img h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.section-head-img p {
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
}

/* Split media collage (two stacked images) */
.split-media.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  aspect-ratio: auto;
  background: var(--surface);
}

.split-media.collage img {
  border-radius: 14px;
}

.split-media.collage img:first-child {
  grid-row: span 2;
}

/* ---------- Image-rich responsive ---------- */
@media (max-width: 1080px) {
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .split-media.tall {
    aspect-ratio: 4 / 4.2;
  }

  .mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }

  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .gal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .fcard-media {
    height: 160px;
    margin: -24px -20px 20px;
  }

  .role-media {
    height: 180px;
    margin: -26px -20px 20px;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .mosaic-item.span2 {
    grid-column: span 1;
  }

  .mosaic-item.row2 {
    grid-row: span 1;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .img-band {
    height: 300px;
  }

  .split-media.collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .split-media.collage img:first-child {
    grid-row: auto;
  }

  .gal-grid {
    grid-template-columns: 1fr;
  }

  .section-head-img {
    padding: 52px 20px;
  }

  .story-card {
    min-height: 280px;
  }
}
