/**
 * Service (v3) — page-templates/page-service-v3.php.
 *
 * Page sections only. Tokens, hero, headings and the work/insight cards come
 * from v3-base.css; accents, hero tint, offer cards, banner, why rows and
 * cross-links from v3-sections.css; the lead form from v3-form.css.
 * Images never render larger than their file and keep their own ratio.
 */

/* ── Intro ───────────────────────────────────────────────────────────── */
.v3-sintro { padding-block: var(--v3-section); }
.v3-sintro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 128px); align-items: start; }
.acma-v3 .v3-sintro__body { margin-top: clamp(20px, 2vw, 36px); }
.acma-v3 .v3-sintro__title { max-width: 22ch; font-size: var(--v3-title-fs); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: var(--v3-ink); }

/* ── Industries we serve ─────────────────────────────────────────────── */
.v3-sinds { padding-block: var(--v3-section); }
.v3-sinds__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 112px); align-items: start; }
.acma-v3 .v3-sinds__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1vw, 20px); list-style: none; }
/* Wide screens, three or more industries: a six-track grid, three cards a row; when the count is not
   a multiple of three the last two (or four) cards take half a row each, so no card sits alone. */
@media (min-width: 1200px) {
	.acma-v3 .v3-sinds__list:has(> :nth-child(3)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.acma-v3 .v3-sinds__list:has(> :nth-child(3)) > * { grid-column: span 2; }
	.acma-v3 .v3-sinds__list:has(> :nth-child(3)):has(> :last-child:nth-child(3n+2)) > :nth-last-child(-n+2),
	.acma-v3 .v3-sinds__list:has(> :nth-child(3)):has(> :last-child:nth-child(3n+1)) > :nth-last-child(-n+4) { grid-column: span 3; }
}
/* One or two industries: the heading sits above and the cards fill the row (no giant title beside a lone card). */
.v3-sinds__grid:not(:has(.v3-sinds__list > :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
.acma-v3 .v3-sinds__list:not(:has(> :nth-child(3))) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 1200px; }
/* Four industries in three columns would leave one alone: two by two. */
@media (min-width: 640px) { .acma-v3 .v3-sinds__list:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acma-v3 .v3-sinds__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; height: 100%; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--v3-line); color: var(--v3-ink); text-decoration: none; transition: box-shadow .3s, color .25s; }
.acma-v3 .v3-sinds__card:is(:hover, :focus-visible) { box-shadow: 0 0 0 2px var(--accent); color: var(--accent); }
.v3-sinds__media { display: block; width: min(64px, var(--nw, 64px)); aspect-ratio: var(--ar, 1); border-radius: 10px; overflow: hidden; background: var(--v3-surface); }
.acma-v3 .v3-sinds__media img { display: block; width: calc(100% * var(--sx, 1)); max-width: none; height: auto; margin-left: calc(-100% * var(--ml, 0)); margin-top: calc(-100% * var(--mt, 0)); }
.acma-v3 .v3-sinds__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.v3-sinds__go { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); transition: transform .35s var(--v3-ease); }
.v3-sinds__go .v3-arrow { width: 18px; height: 18px; }
.v3-sinds__card:hover .v3-sinds__go { transform: translateX(4px); }

/* ── Technologies we use: a table of chips per family ────────────────── */
.v3-sstack { padding-block: var(--v3-section); }
.v3-sstack__table { margin-top: var(--v3-head-gap); border-top: 3px solid var(--accent); }
.v3-sstack__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 12px clamp(24px, 3vw, 64px); align-items: start; padding-block: clamp(18px, 1.6vw, 28px); border-bottom: 1px solid var(--v3-line); }
.acma-v3 .v3-sstack__label { padding-top: 8px; font-size: clamp(17px, .3vw + 14px, 21px); font-weight: 700; color: var(--v3-ink); }
.acma-v3 .v3-sstack__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.acma-v3 .v3-sstack__chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--v3-surface); font-size: 15px; font-weight: 600; color: var(--v3-ink); text-decoration: none; transition: background-color .25s, color .25s; }
.acma-v3 .v3-sstack__chips a:is(:hover, :focus-visible) { background: var(--accent); color: #fff; }

.v3-svcd .v3-faq__aside .v3-section-head__lead { margin-top: clamp(14px, 1.2vw, 22px); }

/* ── How a project runs ──────────────────────────────────────────────── */
.v3-sflow { padding-block: var(--v3-section) clamp(48px, 5vw, 96px); background: var(--v3-surface); }
.acma-v3 .v3-sflow__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); margin-top: var(--v3-head-gap); }
@media (min-width: 1200px) {
	.acma-v3 .v3-sflow__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Four steps: two rows of two, not three and an orphan. */
}
.v3-sflow__step {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start;
	padding: clamp(20px, 1.6vw, 28px);
	border-radius: clamp(12px, .9vw, 18px);
	background: #fff;
	box-shadow: 0 0 0 1px var(--v3-line);
}
.acma-v3 .v3-sflow__n {
	grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--accent); color: #fff;
	font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.acma-v3 .v3-sflow__title { align-self: center; min-height: 40px; display: flex; align-items: center; font-size: clamp(17px, .3vw + 13.5px, 21px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--v3-ink); }
.acma-v3 .v3-sflow__text { grid-column: 2; font-size: 15px; line-height: 1.6; color: var(--v3-text); }

/* "Show all steps": native <details>, works without script. */
.v3-sflow__more { margin-top: clamp(12px, 1.2vw, 20px); }
.v3-sflow__more > .v3-sflow__list { margin-top: 0; }
.acma-v3 .v3-sflow__more > summary {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 20px 12px 22px;
	border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--v3-line);
	font-size: 16px; font-weight: 700; color: var(--v3-ink); cursor: pointer; list-style: none;
	transition: box-shadow .3s, color .3s;
}
.acma-v3 .v3-sflow__more > summary::-webkit-details-marker { display: none; }
.acma-v3 .v3-sflow__more > summary:is(:hover, :focus-visible) { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.v3-sflow__hide, .v3-sflow__more[open] .v3-sflow__show { display: none; }
.v3-sflow__more[open] .v3-sflow__hide { display: inline; }
.v3-sflow__plus { position: relative; width: 14px; height: 14px; }
.v3-sflow__plus::before, .v3-sflow__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--v3-ease-io); }
.v3-sflow__plus::after { transform: rotate(90deg); }
.v3-sflow__more[open] .v3-sflow__plus::after { transform: rotate(0deg); }
.v3-sflow__more[open] > .v3-sflow__list { margin-top: clamp(12px, 1.2vw, 20px); animation: v3-rise .5s var(--v3-ease) both; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.acma-v3 .v3-sflow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
	.v3-sinds__grid { grid-template-columns: minmax(0, 1fr); }
	.v3-sintro__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
	.v3-sstack__row { grid-template-columns: minmax(0, 1fr); }
	.acma-v3 .v3-sstack__label { padding-top: 0; }
	.acma-v3 .v3-sflow__list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
	/* Mobile pass 2026-11-19: the steps as a compact timeline (number on a spine, no card). */
	.v3-sflow__step, .acma-v3.v3-svcd .v3-sflow__step { padding: 0 0 22px; border-radius: 0; background: none; box-shadow: none; }
	.v3-sflow__step::before { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--v3-line); }
	.v3-svcd .v3-sflow__step::before { background: rgba(255, 255, 255, .4); }
	.v3-sflow__more:not([open]) .v3-sflow__step:last-child::before, .v3-sflow__more .v3-sflow__step:last-child::before { content: none; }
	.v3-sflow__more { margin-top: 0; }
	.acma-v3 .v3-sflow__more[open] > .v3-sflow__list { margin-top: 0; }
	.acma-v3 .v3-sflow__title { min-height: 40px; font-size: 18px; }
	.acma-v3 .v3-why__list.v3-swipe-sm .v3-why__n { grid-row: auto; }
	.acma-v3 .v3-why__list.v3-swipe-sm .v3-why__text { grid-column: 1 / -1; }
	.v3-why__grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.v3-sflow__more[open] > .v3-sflow__list { animation: none; }
}
html:is(.translated-ltr, .translated-rtl) .acma-v3 :is(.v3-sintro__title, .v3-sflow__title) { line-height: 1.6; letter-spacing: normal; }

/* ════════════════════════════════════════════════════════════════════════
   Service page flavour (same approach as the technology, industry and
   solution templates): tinted cards, a solid colour band for the process,
   a navy call-to-action box inside that band.
   ════════════════════════════════════════════════════════════════════════ */

/* How a project runs: on a solid band in the page colour. */
.v3-svcd .v3-sflow { background: var(--accent); color: #fff; padding-bottom: var(--v3-head-gap); }
.acma-v3.v3-svcd .v3-sflow .v3-section-head__lead { color: rgba(255, 255, 255, .88); }
.v3-svcd .v3-sflow__step { background: rgba(0, 0, 0, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.acma-v3.v3-svcd .v3-sflow__n { background: #fff; color: var(--accent); }
.acma-v3.v3-svcd .v3-sflow__title { color: #fff; }
.acma-v3.v3-svcd .v3-sflow__text { color: rgba(255, 255, 255, .85); }
.acma-v3.v3-svcd .v3-sflow__more > summary { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.acma-v3.v3-svcd .v3-sflow__more > summary:is(:hover, :focus-visible) { background: #fff; color: var(--accent); box-shadow: none; }

/* The banner continues the band, as a navy box (the CTA tone stays teal on its button). */
.v3-svcd .v3-banner { padding-top: var(--v3-section); background: var(--accent); }
.v3-svcd .v3-sflow.has-banner { padding-bottom: 0; }
.v3-svcd .v3-sflow .v3-banner { margin-top: var(--v3-head-gap); padding-top: 0; background: none; }
.v3-svcd .v3-banner__in { background: var(--v3-navy); }
.acma-v3.v3-svcd .v3-banner .v3-btn--solid { background: var(--v3-teal); border-color: var(--v3-teal); color: #fff; }
.acma-v3.v3-svcd .v3-banner .v3-btn--solid::before { background: color-mix(in srgb, var(--v3-teal) 83%, #000); }
.acma-v3.v3-svcd .v3-banner .v3-btn--solid:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--v3-teal) 83%, #000); }
