/* ==========================================================================
   Solutions — archive and detail
   Reference: system-pages.css lines 20-121
   ========================================================================== */

/* -------------------------------------------------------------------------
   Solutions archive
   ------------------------------------------------------------------------- */

.nesr-solutions-hero {
  padding-block: 34px 78px;
  background: var(--nesr-dark-1);
  color: var(--nesr-white);
}
.nesr-solutions-hero__layout {
  min-height: 610px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 72px;
  margin-block-start: 26px;
}
.nesr-solutions-hero__layout h1 {
  max-width: 650px;
  margin-block: 16px 20px;
  font-size: var(--nesr-fs-hero);
  line-height: 1.14;
  font-weight: 600;
}
.nesr-solutions-hero__layout p {
  max-width: 600px;
  margin-block-end: 30px;
  color: rgba(255, 255, 255, .65);
  font-size: 18px;
}
.nesr-solutions-hero__figure {
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: var(--nesr-radius-panel);
}
.nesr-solutions-hero__figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 14, 13, .58), transparent 48%);
  content: "";
}
.nesr-solutions-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.05);
}

.nesr-solutions-directory { padding-block: 105px; background: var(--nesr-warm-white); }

.nesr-solution-rows { border-top: 1px solid var(--nesr-border); }
.nesr-solution-row {
  min-height: 190px;
  display: grid;
  grid-template-columns: 55px 210px 1fr 46px;
  align-items: center;
  gap: 28px;
  padding-block: 22px;
  border-bottom: 1px solid var(--nesr-border);
  transition: padding-inline 200ms ease, background-color 200ms ease;
}
.nesr-solution-row:hover { padding-inline: 18px; background: var(--nesr-white); }
.nesr-solution-row__number { color: var(--nesr-orange); font-size: 13px; }
.nesr-solution-row__image {
  height: 145px;
  overflow: hidden;
  border-radius: 12px;
}
.nesr-solution-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform 350ms ease;
}
.nesr-solution-row:hover .nesr-solution-row__image img { transform: scale(1.035); }
.nesr-solution-row__copy h3 { font-size: 26px; font-weight: 600; }
.nesr-solution-row__copy p { max-width: 680px; color: var(--nesr-muted); }
.nesr-solution-row__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nesr-border);
  border-radius: 50%;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.nesr-solution-row:hover .nesr-solution-row__arrow {
  border-color: var(--nesr-orange);
  background: var(--nesr-orange);
  color: var(--nesr-ink);
}

/* -------------------------------------------------------------------------
   Solution page — hero
   ------------------------------------------------------------------------- */

.nesr-service-hero {
  position: relative;
  min-height: 710px;
  padding-block: 34px 72px;
  overflow: hidden;
  background: var(--nesr-dark-2);
  color: var(--nesr-white);
}
.nesr-service-hero__bg,
.nesr-service-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nesr-service-hero__bg { object-fit: cover; filter: saturate(.82) contrast(1.05); }
.nesr-service-hero__overlay {
  background:
    linear-gradient(90deg, rgba(15, 14, 13, .18), rgba(15, 14, 13, .38) 47%, rgba(15, 14, 13, .94) 100%),
    linear-gradient(0deg, rgba(15, 14, 13, .58), transparent 50%);
}
.nesr-service-hero > .nesr-container { position: relative; z-index: 2; }
.nesr-service-hero__copy { max-width: 780px; padding-block-start: 118px; }
.nesr-service-hero__copy h1 {
  margin-block: 17px 20px;
  font-size: var(--nesr-fs-hero);
  line-height: 1.14;
  font-weight: 600;
}
.nesr-service-hero__copy p {
  max-width: 670px;
  margin-block-end: 32px;
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  line-height: 1.85;
}

/* -------------------------------------------------------------------------
   Options section
   ------------------------------------------------------------------------- */

.nesr-service-story { padding-block: 104px; background: var(--nesr-warm-white); }
.nesr-service-story__layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  gap: 58px;
}
.nesr-service-story__figure {
  min-height: 550px;
  overflow: hidden;
  border-radius: var(--nesr-radius-panel);
}
.nesr-service-story__figure img {
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
}
.nesr-service-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--nesr-border);
}
.nesr-service-features article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding-block: 26px;
  border-bottom: 1px solid var(--nesr-border);
}
.nesr-service-features article > span { color: var(--nesr-orange); font-size: 12px; }
.nesr-service-features h3 { font-size: 20px; font-weight: 600; }
.nesr-service-features p { margin-block-start: 4px; color: var(--nesr-muted); }

/* -------------------------------------------------------------------------
   Benefits / use cases section
   ------------------------------------------------------------------------- */

.nesr-service-use { padding-block: 94px; background: var(--nesr-stone); }
.nesr-service-use > .nesr-container {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
}
.nesr-service-use__copy h2 {
  margin-block-start: 12px;
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  line-height: 1.25;
  font-weight: 600;
}
.nesr-service-use__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--nesr-border);
  background: var(--nesr-border);
}
.nesr-service-use__grid article {
  min-height: 270px;
  display: grid;
  grid-template-rows: 48px minmax(64px, auto) 1fr;
  align-items: start;
  padding: 30px;
  background: var(--nesr-warm-white);
}
.nesr-service-use__grid h3 {
  align-self: end;
  margin-block: 18px 6px;
  font-size: 21px;
  font-weight: 600;
}
.nesr-service-use__grid p { color: var(--nesr-muted); font-size: 14px; }

/* Sinks: two columns instead of three. */
.nesr-service-use__grid--2 { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------------- */

.nesr-service-gallery { padding-block: 105px; }
.nesr-editorial-gallery {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: repeat(2, 260px);
  gap: 18px;
}
.nesr-editorial-gallery figure {
  overflow: hidden;
  border-radius: var(--nesr-radius-card);
}
.nesr-editorial-gallery figure:first-child { grid-row: 1 / 3; }
.nesr-editorial-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
  transition: transform 360ms ease;
}
.nesr-editorial-gallery figure:hover img { transform: scale(1.025); }

/* -------------------------------------------------------------------------
   Getting-started steps
   ------------------------------------------------------------------------- */

.nesr-service-process {
  padding-block: 94px;
  background: var(--nesr-dark-1);
  color: var(--nesr-white);
}
.nesr-service-process h2 {
  margin-block-start: 12px;
  font-size: clamp(2.3rem, 3.6vw, 3.2rem);
  line-height: 1.25;
  font-weight: 600;
}
.nesr-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block-start: 40px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.nesr-process-steps article {
  min-height: 250px;
  padding: 28px;
  border-inline-end: 1px solid rgba(255, 255, 255, .15);
}
.nesr-process-steps article:last-child { border-inline-end: 0; }
.nesr-process-steps article > span { color: var(--nesr-orange); font-size: 13px; }
.nesr-process-steps h3 { margin-block: 70px 8px; font-size: 22px; font-weight: 600; }
.nesr-process-steps p { color: rgba(255, 255, 255, .55); font-size: 14px; }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

/* The FAQ block moved to the shared module — assets/css/faq.css. */


/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .nesr-solution-row { grid-template-columns: 45px 180px 1fr 44px; gap: 20px; }
  .nesr-service-use > .nesr-container { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nesr-solutions-hero__layout { grid-template-columns: 1fr; min-height: auto; gap: 36px; }
  .nesr-solutions-hero__figure { height: 480px; }
  .nesr-solutions-directory { padding-block: 80px; }
  .nesr-solution-row { grid-template-columns: 42px 150px 1fr 42px; }
  .nesr-service-hero { min-height: 650px; }
  .nesr-service-hero__copy { padding-block-start: 100px; }
  .nesr-service-story__layout { grid-template-columns: 1fr; }
  .nesr-service-story__figure,
  .nesr-service-story__figure img { min-height: 480px; }
}

@media (max-width: 640px) {
  .nesr-solutions-hero { padding-block: 22px 54px; }
  .nesr-solutions-hero__layout { margin-block-start: 18px; }
  /* No h1 override — the lower bound of --nesr-fs-hero already lands here. */
  .nesr-solutions-hero__layout p,
  .nesr-service-hero__copy p { font-size: 15px; }
  .nesr-solutions-hero__figure { height: 330px; }

  .nesr-solution-row {
    min-height: auto;
    grid-template-columns: 34px 1fr 38px;
    gap: 12px;
    padding-block: 16px;
  }
  .nesr-solution-row__image { grid-column: 2 / 4; width: 100%; height: 210px; order: 2; }
  .nesr-solution-row__copy { grid-column: 2 / 4; }
  .nesr-solution-row__copy h3 { font-size: 21px; }
  .nesr-solution-row__copy p { font-size: 14px; }
  .nesr-solution-row__arrow { grid-column: 3; grid-row: 1; }

  .nesr-service-hero { min-height: 690px; padding-block: 22px 48px; }
  .nesr-service-hero__overlay {
    background: linear-gradient(0deg, rgba(15, 14, 13, .9), rgba(15, 14, 13, .35));
  }
  .nesr-service-hero__copy { padding-block-start: 160px; }
  .nesr-service-hero__copy .nesr-button-group { display: grid; grid-template-columns: 1fr; }

  .nesr-service-story,
  .nesr-service-gallery,
  .nesr-service-story__layout { gap: 30px; }
  .nesr-service-story__figure,
  .nesr-service-story__figure img { min-height: 330px; }
  .nesr-service-use { padding-block: 70px; }
  .nesr-service-use__grid,
  .nesr-service-use__grid--2 { grid-template-columns: 1fr; }
  .nesr-service-use__grid article { min-height: 210px; }
  .nesr-service-use__copy h2,
  .nesr-service-process h2,

  .nesr-editorial-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 270px);
  }
  .nesr-editorial-gallery figure:first-child { grid-row: auto; }

  .nesr-process-steps { grid-template-columns: 1fr; }
  .nesr-process-steps article {
    min-height: 180px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
  .nesr-process-steps h3 { margin-block: 42px 6px; }
}
