/* Service detail template — shared by every service-detail page.
   Only page content (text, images) changes between services. Spacing, title sizes, buttons,
   process, check badges and FAQ toggles come from the shared tokens/components in style.css. */
.service-detail-inner { padding-inline: var(--inner); }

/* 1. Hero: image layer + copy + keyword box */
.service-hero { position: relative; height: 549px; overflow: hidden; color: white; background: var(--navy-dark); }
.service-hero-media { position: absolute; inset: 0 0 0 auto; width: 64%; }
.service-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 38%; }
.service-hero-media.is-mirrored img { transform: scaleX(-1); }
.service-hero-media::after { content: ''; position: absolute; inset: 0 0 0 -2px; background: linear-gradient(90deg, #002333 0%, rgb(0 35 51 / 88%) 18%, rgb(0 31 47 / 35%) 45%, rgb(0 31 47 / 10%) 70%, rgb(0 31 47 / 18%)); }
.service-hero-inner { position: relative; z-index: 1; height: 100%; padding-top: 58px; }
.service-breadcrumb { display: flex; flex-wrap: wrap; gap: 11px; color: #bce8ee; font-size: 16px; margin-bottom: 27px; }
.service-breadcrumb a { color: #83e5ed; }
.service-hero .eyebrow { color: #83e5ed; font-size: 18px; margin-bottom: 14px; }
.service-hero h1 { font-size: 60px; line-height: 1.05; font-weight: 750; letter-spacing: -.03em; }
.service-hero-subtitle { color: #f1f6f9; font-size: 23px; line-height: 1.4; margin-top: 16px; }
.service-hero-text { color: #e1eaf0; font-size: 18.5px; line-height: 1.58; max-width: 625px; margin-top: 22px; }
.service-hero .hero-actions { gap: 26px; margin-top: 30px; }
.service-hero .button { font-size: 17px; padding-inline: 30px; }
.service-hero .button-outline { gap: 18px; }
.service-hero .button-outline .icon { color: var(--cyan); }
.service-hero-keywords, .service-media-keywords { position: absolute; padding: 26px 27px 22px; border: 1px solid #057c92; border-radius: 10px; color: white; background: rgb(0 23 36 / 78%); text-transform: uppercase; letter-spacing: .13em; font-size: 19px; line-height: 1.72; font-weight: 550; }
.service-hero-keywords::before, .service-media-keywords::before { content: ''; position: absolute; width: 40px; height: 2px; top: -1px; left: 26px; background: var(--teal); }
/* Hero statements sit on the content edge (right: var(--inner)) and 36px above the hero bottom on every page. */
.service-hero-keywords { right: var(--inner); bottom: 36px; }

/* 2. Benefits strip */
.service-benefits { background: var(--surface); border-bottom: 1px solid #e3edf2; }
.service-benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: var(--space-strip); }
.service-benefits-grid > div { position: relative; text-align: center; padding-inline: 12px; }
/* Dividers are drawn outside the flow so they never offset the column content. */
.service-benefits-grid > div + div::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid #d8e5ec; }
.service-benefits .icon { width: 54px; height: 54px; color: var(--navy); stroke-width: 2; margin-bottom: 16px; }
.service-benefits h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
.service-benefits p { font-size: 18px; margin-top: 7px; }
/* Shared rows (icon / title / text) across the items of a row: a title that wraps onto two lines
   (often in French) no longer pushes its text below the others. Used by service pages,
   Quality & Methodology and Contact. */
@supports (grid-template-rows: subgrid) {
  .service-benefits-grid > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-items: start; align-content: start; }
}

/* 3–4. Split sections (overview, equipment): media + copy.
   Overview + equipment form one pair on the same background: 32px each side of the join. */
.service-overview, .service-equipment { background: var(--surface); }
.service-overview { padding-block: var(--space-section); }
.service-overview:has(+ .service-equipment) { padding-bottom: 32px; }
.service-equipment { padding-block: 32px var(--space-section); }
.service-split { display: grid; grid-template-columns: 662px 1fr; gap: 58px; align-items: center; }
.service-split.is-reversed { grid-template-columns: 1fr 662px; }
.service-split.is-reversed .service-split-media { order: 2; }
.service-split-media { position: relative; margin: 0; height: 590px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.service-split-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.service-split-media > img.is-muted { filter: saturate(.35) contrast(1.05); }
.service-split-copy h2 { font-size: var(--h2); line-height: 1.14; letter-spacing: -.03em; }
.service-split-copy > p:not(.eyebrow) { font-size: 17.5px; line-height: 1.6; margin: 16px 0 20px; max-width: 610px; }
.service-split-copy .check-list { font-size: 17.5px; gap: 11px; margin-bottom: 24px; }
.service-split-copy .check-list li { --check: 26px; }
/* Overlays on photos share one inset from the photo edges. */
.service-float-card { position: absolute; left: 24px; bottom: 24px; width: 430px; max-width: calc(100% - 48px); display: flex; gap: 22px; align-items: flex-start; padding: 26px 26px 24px 28px; background: white; border-radius: 8px; box-shadow: 0 10px 30px rgb(0 20 32 / 18%); }
.service-float-check { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cyan); font-size: 24px; font-weight: 700; margin-top: 6px; }
.service-float-card strong { display: block; color: var(--text); font-size: 19px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 10px; }
.service-float-card > span:last-child { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.service-media-keywords { right: 24px; bottom: 24px; font-size: 17px; }

/* 5. Process: reuses .method/.steps (geometry lives in style.css) */

/* 6. Advantages (dark photo panel) + FAQ card */
.service-advantages-faq { display: grid; grid-template-columns: 56% 44%; background: var(--surface); }
.service-advantages { --defer-bg: url('../images/home/home-automotive-sector.webp'); position: relative; min-height: 524px; display: flex; align-items: center; color: white; background: linear-gradient(90deg, rgb(0 25 39 / 95%) 0%, rgb(0 25 39 / 82%) 48%, rgb(0 25 39 / 58%) 78%, rgb(0 25 39 / 30%) 100%), var(--bg-img, none) 70% 45% / cover; /* M15: deeper mid stops keep long (FR) benefit lines >= 4.5:1 over the bright headlight */ background-color: var(--navy-dark); }
.service-advantages-inner { padding: var(--space-section) 40px var(--space-section) var(--edge); }
.service-advantages .eyebrow { color: #3fd0de; }
.service-advantages h2 { font-size: var(--h2); line-height: 1.14; letter-spacing: -.03em; margin-bottom: 30px; }
.service-advantages .check-list { color: #eaf2f6; font-size: 19px; gap: 19px; margin: 0; }
.service-advantages .check-list li { --check: 32px; --check-bg: var(--cyan); }
.service-faq { display: flex; align-items: center; padding: var(--space-strip) var(--edge) var(--space-strip) 54px; }
.service-faq-card { width: 100%; background: white; border: 1px solid #e7eff4; border-radius: 10px; box-shadow: var(--shadow); padding: 32px 32px 26px; }
.service-faq-title { color: var(--teal-ink); font-size: 17px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.service-faq-item { padding: 20px 0; border-bottom: 1px solid #d5e2e9; }
.service-faq-item:last-child { border-bottom: 0; padding-bottom: 6px; }
.service-faq-item h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17.5px; letter-spacing: -.02em; line-height: 1.35; }

/* 8. Related services: reuses .service-card */
.related-services { background: var(--surface); padding-block: var(--space-section); border-top: 1px solid #e3edf2; }
.related-services-grid { margin-top: 32px; gap: 26px; }
.related-services .service-photo { height: 110px; }
.related-services .service-content { padding: 44px 26px 24px; }
.related-services .service-icon { left: 26px; top: -30px; padding: 10px; border-radius: 7px; box-shadow: 0 5px 12px rgb(7 47 68 / 6%); }
.related-services .service-icon .icon { width: 36px; height: 36px; }
.related-services .service-content h3 { font-size: 20px; }
.related-services .service-content p { font-size: 16px; margin: 10px 0 20px; }

/* 7. Final CTA: reuses .project-cta */
.service-cta { border-top: 0; }

.service-detail-page .footer-column a[aria-current] { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1350px) and (min-width: 1101px) {
  .service-split, .service-split.is-reversed { grid-template-columns: 1fr 1fr; gap: 48px; }
  .service-benefits h2 { font-size: 19px; }
  .service-benefits p { font-size: 16px; }
  .related-services .service-content { padding-inline: 22px; }
  .related-services .service-icon { left: 22px; }
  .related-services .service-content h3 { font-size: 18px; }
  .related-services .service-content p { font-size: 15px; }
}
@media (max-width: 1100px) {
  .service-hero { height: 540px; }
  .service-hero-media { width: 75%; }
  .service-hero-media::after { background: linear-gradient(90deg, #002333 0%, rgb(0 35 51 / 92%) 25%, rgb(0 31 47 / 55%) 55%, rgb(0 31 47 / 20%)); }
  .service-hero h1 { font-size: 50px; }
  .service-hero-subtitle { font-size: 20px; }
  .service-hero-text { font-size: 17px; max-width: 520px; }
  .service-hero .button { padding-inline: 22px; font-size: 15px; gap: 15px; }
  .service-hero-keywords { font-size: 15px; padding: 18px 20px; }
  .service-benefits h2 { font-size: 17px; }
  .service-benefits p { font-size: 14px; }
  .service-benefits .icon { width: 44px; height: 44px; }
  .service-split, .service-split.is-reversed { grid-template-columns: 1fr 1fr; gap: 34px; }
  .service-split-media { height: 480px; }
  .service-split-copy h2 br { display: none; }
  .service-split-copy > p:not(.eyebrow), .service-split-copy .check-list { font-size: 15.5px; }
  .service-float-card { width: auto; left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 18px; gap: 15px; }
  .service-float-check { width: 40px; height: 40px; font-size: 19px; }
  .service-float-card strong { font-size: 16px; }
  .service-float-card > span:last-child { font-size: 14px; }
  .service-media-keywords { font-size: 14px; padding: 16px 18px; right: 16px; bottom: 16px; }
  .service-advantages-faq { grid-template-columns: 1fr 1fr; }
  .service-advantages-inner { padding-right: 28px; }
  .service-advantages h2 br { display: none; }
  .service-advantages .check-list { font-size: 16px; gap: 15px; }
  .service-advantages .check-list li { --check: 27px; }
  .service-faq { padding: 28px; }
  .service-faq-card { padding: 26px 22px 18px; }
  .service-faq-item h3 { font-size: 15px; }
  .related-services .service-photo { height: auto; aspect-ratio: 2.4 / 1; }
  .related-services .service-content p br { display: none; }
}
@media (max-width: 760px) {
  .service-split, .service-split.is-reversed { grid-template-columns: 1fr; gap: 30px; }
  .service-split.is-reversed .service-split-media { order: 0; }
  .service-split-media { height: auto; aspect-ratio: 4 / 3.4; }
  .service-advantages-faq { grid-template-columns: 1fr; }
  .service-advantages { min-height: 0; }
  .service-advantages-inner { padding-right: var(--edge); }
  .service-faq { padding: var(--space-section) var(--edge); }
}
@media (max-width: 640px) {
  .service-hero { height: auto; min-height: 700px; }
  .service-hero-media { width: 100%; }
  .service-hero-media img { object-position: 30% center; }
  .service-hero-media::after { background: linear-gradient(90deg, rgb(0 27 43 / 94%), rgb(0 27 43 / 62%)); }
  .service-hero-inner { padding-top: 28px; padding-bottom: 196px; }
  .service-breadcrumb { font-size: 13px; gap: 8px; margin-bottom: 26px; }
  .service-hero .eyebrow { font-size: 13px; }
  .service-hero h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.1; }
  .service-hero-subtitle { font-size: 18px; }
  .service-hero-subtitle br { display: none; }
  .service-hero-text { font-size: 16px; line-height: 1.55; margin-top: 18px; }
  .service-hero .hero-actions { flex-wrap: wrap; gap: 13px; margin-top: 25px; }
  .service-hero .button { font-size: 13px; min-height: 49px; padding-inline: 19px; }
  .service-hero-keywords { font-size: 12px; bottom: 26px; padding: 15px 20px; }
  .service-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .service-benefits-grid > div:nth-child(3)::before { display: none; }
  .service-benefits h2 { font-size: 16px; }
  .service-benefits .icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .service-overview:has(+ .service-equipment) { padding-bottom: 24px; }
  .service-equipment { padding-top: 24px; }
  .service-split-media { aspect-ratio: 1 / 1.05; }
  .service-split-copy h2 { line-height: 1.2; }
  .service-split-copy .check-list li { --check: 24px; }
  .service-float-card strong br { display: none; }
  .service-advantages h2 { margin-bottom: 24px; }
  .service-faq-card { padding: 24px 18px 14px; }
  .service-faq-title { font-size: 14px; }
  .service-faq-item { padding-block: 16px; }
  .service-faq-item h3 { font-size: 14px; gap: 12px; }
  .service-faq-item h3 > span { --faq-toggle: 24px; --faq-bar: 10px; }
  .related-services .service-content { padding: 42px 25px 22px; }
  .related-services .service-icon { left: 25px; }
}
