/* Services page. Loaded after site.css and theme.css; restyles the svc-* blocks
   to the light layout: white cards, 20px corners, soft shadow, 8px spacing step.
   The markup hooks (ids, svc-* classes) are asserted by website/tests.py. */

.svc-head, .svc-services, .svc-figures {
  /* The accent gradient ends on a darker green than --grad-text so large text keeps 3:1 on white. */
  --svc-accent: linear-gradient(95deg, #0b5fae, #0c9a50);
}

/* ---------- Page head: centred ---------- */
.svc-head { text-align: center; }
.svc-head .breadcrumbs { justify-content: center; }
.svc-head h1 { max-width: 18ch; margin-inline: auto; margin-bottom: 24px; }
.svc-head .lead { max-width: 40rem; margin-inline: auto; }
.svc-head .hero-actions { justify-content: center; margin-top: 32px; }
.svc-accent { background: var(--svc-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (forced-colors: active) { .svc-accent { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; } }

/* ---------- Figures: a row of soft tiles ---------- */
.svc-figures { border-bottom: 0; }
.svc-figures-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: clamp(40px, 5vw, 64px) 0; text-align: center; }
.svc-figures-head h2 { margin-bottom: 8px; color: var(--blue-700); }
.svc-figures-head p { font-size: .95rem; }
.svc-figures-list { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.svc-figures-list a { align-items: center; gap: 8px; padding: 28px 16px; border-radius: var(--card-radius); background: var(--grad-soft); text-align: center; transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.svc-figures-list a:hover { border-color: var(--blue-300); background: var(--grad-soft); color: var(--text); box-shadow: var(--card-shadow); transform: translateY(-2px); }
.svc-figures-list strong { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; background: var(--svc-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.svc-figures-list span { font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
@media (forced-colors: active) { .svc-figures-list strong { background: none; color: LinkText; -webkit-text-fill-color: currentColor; } }

/* ---------- Service cards ---------- */
.svc-flagship, .svc-grid { gap: 24px; }
.svc-flagship { margin-bottom: 24px; }
.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

.svc-card { padding: clamp(24px, 3vw, 32px); }
.svc-card .card-icon { width: 56px; height: 56px; margin-bottom: 24px; border: 1px solid var(--blue-100); border-radius: 16px; background: var(--grad-soft); }
.svc-card .card-icon.green { border-color: var(--green-100); }
.svc-card .card-icon .icon { width: 28px; height: 28px; }
.svc-card h3 { margin-bottom: 8px; font-size: 1.3rem; letter-spacing: -.015em; }
.svc-card .muted { margin-bottom: 24px; }
.svc-card-label { margin: 0 0 12px; }
.svc-card .tick-list { margin-bottom: 24px; font-size: .97rem; }
.svc-card-tools, .svc-card-products { margin-bottom: 24px; }
.svc-card-cta { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.svc-card-cta .link-arrow { display: flex; justify-content: space-between; gap: 16px; }
.svc-card-cta .link-arrow .icon { box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); transition: transform .2s var(--ease), background-color .2s, color .2s; }
.svc-card:is(:hover, :focus-within) .svc-card-cta .link-arrow .icon { background: var(--blue-600); color: #fff; }

/* The two main services: a thin gradient edge and a larger title. */
.svc-card-lg, .svc-card-lg:nth-child(2) { overflow: hidden; background: #fff; }
.svc-card-lg::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.svc-card-lg h3 { font-size: clamp(1.35rem, 1.15rem + .6vw, 1.65rem); }
.svc-card:target { border-color: var(--blue-300); box-shadow: var(--card-shadow-hover), var(--ring); }

/* ---------- Process: numbered cards ---------- */
.svc-steps { gap: 24px; }
.svc-steps li { padding: 28px 24px; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.svc-steps li::before { display: none; }
.svc-step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border: 1px solid var(--blue-100); border-radius: 14px; background: var(--grad-soft); color: var(--blue-700); font-size: 1.05rem; letter-spacing: 0; }
.svc-steps li:nth-child(even) .svc-step-num { border-color: var(--green-100); color: var(--green-700); }
.svc-steps h3 { margin-bottom: 8px; font-size: 1.15rem; }

/* ---------- Sectors: icon tiles beside the heading ---------- */
.svc-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-sector { display: flex; gap: 16px; padding: 20px; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.svc-sector .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 12px; border-radius: 14px; background: var(--blue-50); }
.svc-sector:nth-child(even) .icon { background: var(--green-50); }
@media (max-width: 480px) { .svc-sectors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Reasons: cards ---------- */
.svc-why { gap: 24px; }
.svc-why .feature { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.svc-why .feature .card-icon { width: 48px; height: 48px; }
.svc-why .feature > div { display: flex; flex: 1; flex-direction: column; }
.svc-why .feature h3 { margin-bottom: 8px; font-size: 1.15rem; }
.svc-why .svc-why-link { margin-top: auto; padding-top: 16px; }

/* ---------- Technologies: one card per group ---------- */
.svc-tech { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.svc-tech-row { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.svc-tech dt { gap: 12px; }
.svc-tech dt .icon { box-sizing: content-box; width: 20px; height: 20px; padding: 10px; border-radius: 12px; background: var(--blue-50); }
@media (max-width: 720px) { .svc-tech { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Case study ---------- */
.svc-case-body { padding: clamp(24px, 3vw, 40px); }

/* ---------- Questions: one card per question ---------- */
.svc-faq { display: grid; gap: 12px; border-top: 0; }
.svc-faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.svc-faq-item[open] { border-color: var(--blue-200); box-shadow: var(--card-shadow); }
.svc-faq-item summary { padding: 20px 24px; border-radius: 16px; }
.svc-faq-item summary .icon { box-sizing: content-box; padding: 6px; border-radius: 50%; background: var(--blue-50); }
.svc-faq-item p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Closing call to action ---------- */
.svc-cta { border-radius: 28px; }

@media (prefers-reduced-motion: reduce) {
  .svc-figures-list a, .svc-card-cta .link-arrow .icon, .svc-faq-item { transition: none; }
  .svc-figures-list a:hover { transform: none; }
}
