/*
  Morvane Service Page Shared CSS
  Source: extracted from landing-page service template.
  Usage:
    1. Save this file as: /assets/css/service-page.css
    2. Load it AFTER /assets/tailwind.css:
       <link rel="stylesheet" href="/assets/tailwind.css" />
       <link rel="stylesheet" href="/assets/css/service-page.css" />
    3. Remove the duplicated inline <style> block from each service page after testing.

  Scope:
    Shared only for service pages: hero, process timeline, related article card,
    accessibility helpers, and reduced-motion handling.
*/

section[id],
main[id] {
  scroll-margin-top: 96px;
}

/* Hero */
.mv-service-hero-grid {
  display: grid;
  min-height: 82svh;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.mv-service-hero-text {
  order: 1;
  max-width: 42rem;
  text-align: center;
  justify-self: center;
}

.mv-service-hero-eyebrow {
  color: rgb(71 85 105);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
}

.mv-service-hero-title {
  margin-top: 1rem;
  color: rgb(15 23 42);
  font-size: clamp(2.6rem, 10vw, 3.65rem);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.mv-service-hero-copy {
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-inline: auto;
  color: rgb(51 65 85);
  font-size: 1.08rem;
  line-height: 1.85;
}

.mv-service-hero-copy p + p {
  margin-top: 1rem;
}

.mv-service-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mv-service-hero-note {
  margin-top: 1.25rem;
  color: rgb(100 116 139);
  font-size: 0.95rem;
  line-height: 1.8;
}

.mv-hero-image-card {
  order: 2;
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 219, 254, .20), transparent 46%),
    linear-gradient(135deg, rgb(255 255 255), rgb(248 250 252));
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  aspect-ratio: 3 / 4;
  width: min(100%, 390px);
  min-height: 0;
}

.mv-hero-image-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 1.45rem;
  pointer-events: none;
  z-index: 1;
}

.mv-hero-image-card img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(.96) contrast(1.02);
}

@media (min-width: 640px) {
  .mv-service-hero-title {
    font-size: clamp(4rem, 9vw, 5.35rem);
  }

  .mv-service-hero-copy {
    font-size: 1.18rem;
  }

  .mv-service-hero-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mv-hero-image-card {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .mv-hero-image-card img {
    min-height: 0;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .mv-service-hero-grid {
    min-height: auto;
    padding: 3.5rem 0 4rem;
    gap: 2.75rem;
  }

  .mv-service-hero-text {
    max-width: 44rem;
    text-align: center;
    justify-self: center;
  }

  .mv-service-hero-title {
    font-size: clamp(4rem, 8.8vw, 5.15rem);
  }

  .mv-hero-image-card {
    width: min(100%, 360px);
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .mv-service-hero-grid {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 4rem;
    padding: 3.5rem 0;
    direction: ltr;
  }

  .mv-service-hero-text {
    order: 2;
    direction: rtl;
    text-align: right;
    justify-self: end;
  }

  .mv-service-hero-title {
    font-size: clamp(3.75rem, 5vw, 4.75rem);
  }

  .mv-service-hero-copy {
    margin-inline: 0;
    font-size: 1.22rem;
    line-height: 1.85;
  }

  .mv-service-hero-actions {
    justify-content: flex-start;
  }

  .mv-hero-image-card {
    order: 1;
    justify-self: start;
  }
}

/* Service process */
.mv-service-process {
  position: relative;
}

.mv-service-process-header {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.mv-service-process-shell {
  position: relative;
  margin-top: 4rem;
}

.mv-service-process-steps {
  --mv-rail-x: 2.25rem;
  position: relative;
  display: grid;
  gap: 5rem;
}

.mv-service-process-steps::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  right: var(--mv-rail-x);
  width: 1px;
  transform: translateX(50%);
  background: rgb(226 232 240);
  border-radius: 999px;
  pointer-events: none;
}

.mv-service-process-progress {
  position: absolute;
  top: 1.75rem;
  right: var(--mv-rail-x);
  width: 2px;
  height: 0;
  transform: translateX(50%);
  border-radius: 999px;
  background: rgb(15 23 42);
  pointer-events: none;
  transition: height .18s linear;
  z-index: 1;
}

.mv-service-process-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4.5rem minmax(210px, .82fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  opacity: .68;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.mv-service-process-step.is-active,
.mv-service-process-step.is-passed {
  opacity: 1;
  transform: translateY(0);
}

.mv-service-process-number {
  align-self: start;
  justify-self: center;
  position: sticky;
  top: 7rem;
  z-index: 3;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  color: rgb(15 23 42);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.mv-service-process-step.is-active .mv-service-process-number,
.mv-service-process-step.is-passed .mv-service-process-number {
  border-color: rgb(15 23 42);
  background: rgb(15 23 42);
  color: #fff;
  transform: scale(1.04);
}

.mv-service-process-visual {
  min-height: 240px;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(226, 232, 240, .92), transparent 32%),
    linear-gradient(135deg, rgb(255 255 255), rgb(248 250 252));
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.mv-service-process-visual svg {
  width: min(170px, 70%);
  height: auto;
  color: rgb(15 23 42);
  opacity: .92;
}

.mv-service-process-content {
  min-height: 240px;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
  padding: 1.65rem;
}

.mv-service-process-step.is-active .mv-service-process-visual,
.mv-service-process-step.is-active .mv-service-process-content {
  border-color: rgb(203 213 225);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
}

.mv-service-process-content h3 {
  color: rgb(15 23 42);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mv-service-process-lead {
  margin-top: .85rem;
  color: rgb(15 23 42);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 600;
}

.mv-service-process-text {
  margin-top: .65rem;
  color: rgb(51 65 85);
  font-size: 1rem;
  line-height: 1.9;
}

@media (min-width: 1024px) {
  .mv-service-process-step,
  .mv-service-process-step:nth-child(odd),
  .mv-service-process-step:nth-child(even) {
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(210px, .82fr);
  }

  .mv-service-process-number {
    order: 1;
  }

  .mv-service-process-content {
    order: 2;
  }

  .mv-service-process-visual {
    order: 3;
  }
}

@media (max-width: 900px) {
  .mv-service-process-steps {
    --mv-rail-x: 1.75rem;
    gap: 3rem;
  }

  .mv-service-process-step,
  .mv-service-process-step:nth-child(even) {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .mv-service-process-number {
    grid-row: 1 / span 2;
    order: 1;
    position: sticky;
    top: 6rem;
  }

  .mv-service-process-content {
    grid-column: 2;
    order: 2;
    min-height: auto;
  }

  .mv-service-process-visual {
    grid-column: 2;
    order: 3;
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .mv-service-process-header {
    text-align: right;
  }

  .mv-service-process-shell {
    margin-top: 2.75rem;
  }

  .mv-service-process-steps {
    --mv-rail-x: 1.375rem;
    gap: 2.75rem;
  }

  .mv-service-process-step,
  .mv-service-process-step:nth-child(even) {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
  }

  .mv-service-process-number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: .78rem;
  }

  .mv-service-process-visual {
    min-height: 150px;
    border-radius: 1.35rem;
  }

  .mv-service-process-content {
    border-radius: 1.35rem;
    padding: 1.15rem;
  }

  .mv-service-process-content h3 {
    font-size: 1.25rem;
  }
}

/* Related article */
.mv-service-article-section {
  position: relative;
  background: #ffffff;
  padding: 4rem 0 6rem;
  overflow: hidden;
}

.mv-service-article-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  overflow: visible;
}

.mv-service-article-card {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  transform-origin: center;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    border-color .28s cubic-bezier(.2,.8,.2,1),
    opacity .2s ease;
}

.mv-service-article-card:hover,
.mv-service-article-card:focus-within {
  z-index: 80;
  transform: translateY(-22px) scale(1.14);
  border-color: rgba(148, 163, 184, 0.95);
  box-shadow: 0 38px 110px rgba(15, 23, 42, 0.24);
}

.mv-service-article-card-link {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  outline: none;
}

.mv-service-article-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 219, 254, 0.22), transparent 45%),
    #f1f5f9;
}

.mv-service-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: saturate(.92) contrast(1.02);
  transition:
    transform .5s cubic-bezier(.2,.8,.2,1),
    filter .5s cubic-bezier(.2,.8,.2,1);
}

.mv-service-article-card:hover .mv-service-article-image,
.mv-service-article-card:focus-within .mv-service-article-image {
  transform: scale(1.16);
  filter: saturate(1) contrast(1.04);
}

.mv-service-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.mv-service-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .75rem;
}

.mv-service-article-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px;
  background: #f8fafc;
  padding: .38rem .68rem;
  color: rgb(51 65 85);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.mv-service-article-date {
  color: rgb(100 116 139);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.mv-service-article-title {
  margin: 0;
  color: rgb(15 23 42);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.mv-service-article-text {
  margin: .75rem 0 0;
  color: rgb(51 65 85);
  font-size: .94rem;
  line-height: 1.65;
}

.mv-service-article-read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  color: rgb(15 23 42);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.mv-service-article-card:hover .mv-service-article-read-more,
.mv-service-article-card:focus-within .mv-service-article-read-more {
  transform: translateX(-2px);
}

@media (min-width: 720px) {
  .mv-service-article-grid {
    grid-template-columns: minmax(0, 26rem);
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .mv-service-article-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 720px) {
  .mv-service-article-card:hover,
  .mv-service-article-card:focus-within {
    transform: translateY(-8px) scale(1.045);
  }
}

/* Accessibility */
.mv-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;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.35);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
