/* =====================================================================
   Single service pages (2026-11-30)
   Scoped to body.svc-layout. Aligns with the /blogi/ redesign and
   DESIGN.md tokens: Plus Jakarta Sans headings, Inter body, indigo→magenta
   accents, square corners (house style, matches sidebar + buttons).
   Loaded after style.css so it wins over the legacy global rules
   (* { Poppins }, h3 { 1em / 50px / pre-line }, p { .8em }, ...).
   ===================================================================== */

body.svc-layout {
  --svc-ink: #1c1a29;
  --svc-text: #464555;
  --svc-muted: #6b6a7b;
  --svc-primary: #3f40d6;
  --svc-primary-bright: #595cf0;
  --svc-surface: #ffffff;
  --svc-subtle: #f7f8fd;
  --svc-border: #e8eaf5;
  --svc-gradient: linear-gradient(135deg, #595cf0 0%, #8b3ebf 50%, #d93b8e 100%);
  --svc-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --svc-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --svc-gutter: 20px;
  background: var(--svc-surface);
}

@media (min-width: 768px) {
  body.svc-layout { --svc-gutter: 32px; }
}
@media (min-width: 1024px) {
  body.svc-layout { --svc-gutter: 48px; }
}

/* ---------- Shared container ---------- */
.svc-layout .svc-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--svc-gutter);
  padding-right: var(--svc-gutter);
}

/* ---------- Typography reset inside the new sections ---------- */
.svc-layout .svc-hero,
.svc-layout .svc-hero *,
.svc-layout .svc-prose,
.svc-layout .svc-prose * {
  font-family: var(--svc-body);
}

.svc-layout .svc-hero h1,
.svc-layout .svc-prose h1,
.svc-layout .svc-prose h2,
.svc-layout .svc-prose h3,
.svc-layout .svc-prose h4,
.svc-layout .svc-prose h5,
.svc-layout .svc-prose h6 {
  font-family: var(--svc-head);
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  color: var(--svc-ink);
}

/* Headings never get their own <strong> weight on top */
.svc-layout .svc-prose h2 strong,
.svc-layout .svc-prose h3 strong,
.svc-layout .svc-prose h4 strong {
  font-weight: inherit;
  font-family: inherit;
}

/* ---------- Hero ---------- */
.svc-layout .svc-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 48px;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(139, 62, 191, 0.14), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(89, 92, 240, 0.10), transparent 70%),
    linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
}

@media (min-width: 992px) {
  .svc-layout .svc-hero { padding: 220px 0 72px; }
}

.svc-layout .svc-hero .svc-container {
  position: relative;
  z-index: 2;
}

.svc-layout .svc-breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(89, 92, 240, 0.08);
  border: 1px solid rgba(89, 92, 240, 0.16);
  border-radius: 9999px;
  font-family: var(--svc-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--svc-primary);
}

.svc-layout .svc-breadcrumbs a,
.svc-layout .svc-breadcrumbs span {
  font-family: var(--svc-head);
  color: inherit;
  text-decoration: none;
}

.svc-layout .svc-breadcrumbs a:hover { text-decoration: underline; }
.svc-layout .svc-breadcrumbs span[aria-hidden] { opacity: 0.5; }

.svc-layout .svc-hero h1.svc-title {
  max-width: 900px;
  margin: 0 0 16px;
  font-family: "Poppins", var(--svc-head); /* matches the homepage hero title */
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); /* 34px → 56px */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.svc-layout .svc-dot {
  font-family: inherit;
  background: var(--svc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-layout .svc-hero p.svc-lead {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--svc-text);
}

@media (min-width: 768px) {
  .svc-layout .svc-hero p.svc-lead { font-size: 20px; }
}

.svc-layout .svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.svc-layout .svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 0;
  font-family: var(--svc-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.svc-layout .svc-btn--primary {
  background: var(--svc-gradient);
  color: #fff;
  border: 0;
}

.svc-layout .svc-btn--primary:hover,
.svc-layout .svc-btn--primary:focus-visible {
  color: #fff;
  box-shadow: 0 8px 24px rgba(89, 92, 240, 0.35);
}

.svc-layout .svc-btn--secondary {
  background: #fff;
  color: var(--svc-primary);
  border: 1px solid var(--svc-border);
}

.svc-layout .svc-btn--secondary:hover,
.svc-layout .svc-btn--secondary:focus-visible {
  background: var(--svc-subtle);
  border-color: var(--svc-primary-bright);
  color: var(--svc-primary);
}

@media (max-width: 479px) {
  .svc-layout .svc-btn { flex: 1 1 100%; }
}

/* ---------- Body grid (content + sidebar) ---------- */
.svc-layout .svc-body {
  padding: 40px 0 72px;
}

@media (min-width: 992px) {
  .svc-layout .svc-body { padding: 56px 0 96px; }
}

.svc-layout .svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

@media (min-width: 1024px) {
  .svc-layout .svc-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
  }
}

@media (min-width: 1200px) {
  .svc-layout .svc-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; }
}

.svc-layout .svc-aside { min-width: 0; }

/* ---------- Article prose ---------- */
.svc-layout .svc-prose {
  min-width: 0;
  max-width: 760px;
  color: var(--svc-text);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.svc-layout .svc-prose > *:first-child { margin-top: 0; }

.svc-layout .svc-prose p {
  margin: 0 0 1.15em;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--svc-text);
}

/* First paragraph acts as an intro */
.svc-layout .svc-prose > p:first-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--svc-ink);
}

.svc-layout .svc-prose p:empty { display: none; }

.svc-layout .svc-prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.svc-layout .svc-prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.svc-layout .svc-prose h4 {
  margin: 1.6em 0 0.4em;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

@media (min-width: 768px) {
  .svc-layout .svc-prose h2 { font-size: 28px; line-height: 1.28; }
}

.svc-layout .svc-prose strong,
.svc-layout .svc-prose b {
  font-weight: 600;
  color: var(--svc-ink);
}

.svc-layout .svc-prose a {
  color: var(--svc-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.svc-layout .svc-prose a:hover { color: #8b3ebf; }

/* Bullet lists: one clean panel with check marks (replaces the old card grid) */
.svc-layout .svc-prose ul {
  display: block;
  margin: 1.25em 0 1.75em;
  padding: 20px 24px;
  list-style: none;
  background: var(--svc-subtle);
  border: 1px solid var(--svc-border);
  border-left: 3px solid var(--svc-primary-bright);
}

.svc-layout .svc-prose ul > li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 30px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--svc-text);
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}

.svc-layout .svc-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background: var(--svc-gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.svc-layout .svc-prose ul > li:hover { transform: none; box-shadow: none; }

/* Numbered lists: step layout */
.svc-layout .svc-prose ol {
  margin: 1.25em 0 1.75em;
  padding: 0;
  list-style: none;
  counter-reset: svc-step;
}

.svc-layout .svc-prose ol > li {
  position: relative;
  counter-increment: svc-step;
  margin: 0;
  padding: 16px 0 16px 56px;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--svc-text);
  border-top: 1px solid var(--svc-border);
}

.svc-layout .svc-prose ol > li:last-child { border-bottom: 1px solid var(--svc-border); }

.svc-layout .svc-prose ol > li::before {
  content: counter(svc-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--svc-gradient);
  color: #fff;
  font-family: var(--svc-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Images: never wider than the column; floats only where there is room */
.svc-layout .svc-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border: 1px solid var(--svc-border);
}

@media (min-width: 768px) {
  .svc-layout .svc-prose img.alignright {
    float: right;
    max-width: 45%;
    margin: 0.4em 0 1em 28px;
  }
  .svc-layout .svc-prose img.alignleft {
    float: left;
    max-width: 45%;
    margin: 0.4em 28px 1em 0;
  }
}

/* Text, headings and list panels flow beside a floated image instead of
   dropping below it (flow-root keeps list backgrounds from running under it). */
.svc-layout .svc-prose ul,
.svc-layout .svc-prose ol { display: flow-root; }

.svc-layout .svc-prose::after { content: ""; display: table; clear: both; }

.svc-layout .svc-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.svc-layout .svc-prose iframe,
.svc-layout .svc-prose video { max-width: 100%; }

/* ---------- Sidebar: carry the global-reset fixes over from the old selectors ---------- */
.svc-layout .svc-aside .blog-sidebar,
.svc-layout .svc-aside .blog-sidebar *:not(.material-symbols-outlined) {
  font-family: var(--svc-body);
}

.svc-layout .svc-aside .blog-sidebar h3,
.svc-layout .svc-aside .blog-sidebar h4 {
  font-family: var(--svc-head);
  white-space: normal;
  line-height: 1.3;
}

.svc-layout .svc-aside .bg-surface-dark p {
  font-size: 14px;
  line-height: 1.625;
  font-weight: 400;
  color: rgb(198 196 215);
}

.svc-layout .svc-aside .bg-surface-dark p a { color: rgb(225 224 255); }

@media (max-width: 1023px) {
  .svc-layout .svc-aside .blog-sidebar { position: static; }
}

/* ---------- Mobile nav: the absolute navbar has a 200px bottom padding on
   small screens; keep it from swallowing taps on the hero below it ---------- */
@media (max-width: 991px) {
  body.svc-layout nav.navbar { pointer-events: none; }
  body.svc-layout nav.navbar > * { pointer-events: auto; }
}

/* Steps: slightly tighter indent on phones */
@media (max-width: 575px) {
  .svc-layout .svc-prose ol > li { padding-left: 48px; }
  .svc-layout .svc-prose ol > li::before { width: 32px; height: 32px; font-size: 12px; }
  .svc-layout .svc-prose ul { padding: 16px 18px; }
}

/* ---------- Outcome cards (icon_group component) ---------- */
.svc-layout section.component.icon_group {
  padding: 0 var(--svc-gutter) 72px !important;
}

.svc-layout section.component.icon_group .container { max-width: 1280px; padding: 0; }

.svc-layout .icg-card {
  border-radius: 0;
  border: 1px solid var(--svc-border);
  box-shadow: 0 4px 20px rgba(32, 27, 66, 0.04);
}

.svc-layout .icg-card h4 {
  font-family: var(--svc-head);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  white-space: normal;
  color: var(--svc-ink);
}

/* ---------- Contact block (get_in_touch component) ----------
   Site-wide it is a tilted card; on service pages it was clipped on phones.
   Keep the brand gradient, drop the tilt, make it fit any width. */
.svc-layout section.component.get_in_touch {
  padding: 0 var(--svc-gutter) 96px !important;
}

.svc-layout section.component.get_in_touch > .container {
  max-width: 1280px;
  padding: 0;
}

.svc-layout section.component.get_in_touch .inner-content {
  width: 100%;
  margin: 0 !important;
  transform: none;
  border-radius: 0;
  padding: 32px 20px;
  box-shadow: 0 16px 40px rgba(19, 16, 43, 0.12);
}

@media (min-width: 768px) {
  .svc-layout section.component.get_in_touch .inner-content { padding: 48px 40px; }
}
@media (min-width: 1024px) {
  .svc-layout section.component.get_in_touch .inner-content { padding: 64px; }
}

.svc-layout section.component.get_in_touch .inner-content > .row { row-gap: 32px; }

.svc-layout section.component.get_in_touch .inner-content > .row > [class*="col-"] { margin-top: 0 !important; }

.svc-layout section.component.get_in_touch h3 {
  font-family: var(--svc-head);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: normal;
  margin-bottom: 16px;
}

.svc-layout section.component.get_in_touch p {
  font-family: var(--svc-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.svc-layout section.component.get_in_touch p a {
  font-family: var(--svc-body);
  padding: 0 !important;
  margin-left: 4px;
  font-weight: 600;
  text-decoration: underline;
}

.svc-layout section.component.get_in_touch .wpcf7 { width: 100%; }

.svc-layout section.component.get_in_touch form {
  width: 100%;
  padding: 24px;
  border-radius: 0;
}

.svc-layout section.component.get_in_touch .wpcf7 input:not([type="submit"]),
.svc-layout section.component.get_in_touch .wpcf7 textarea {
  width: 100%;
  border-radius: 0;
  font-family: var(--svc-body);
  font-size: 16px; /* >=16px stops iOS zooming into the field */
}

.svc-layout section.component.get_in_touch .wpcf7-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 0 !important;
  font-family: var(--svc-head);
  font-weight: 700;
}

.svc-layout section.component.get_in_touch,
.svc-layout section.component.get_in_touch .inner-content { border-radius: 0 !important; }

.svc-layout section.component.get_in_touch .wpcf7-submit { width: 100% !important; }

/* =====================================================================
   Blog posts (single.php) — additions on top of the shared layout
   ===================================================================== */
.svc-layout .svc-hero--post { padding-bottom: 40px; }

@media (min-width: 992px) {
  .svc-layout .svc-hero--post { padding-bottom: 56px; }
}

.svc-layout .svc-hero--post h1.svc-title {
  max-width: 980px;
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem); /* 30px → 48px: post titles run long */
}

.svc-layout .svc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--svc-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--svc-muted);
}

.svc-layout .svc-meta * { font-family: var(--svc-head); }

.svc-layout .svc-meta__cat {
  padding: 4px 12px;
  background: var(--svc-gradient);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.svc-layout .svc-meta__cat:hover { color: #fff; box-shadow: 0 6px 18px rgba(89, 92, 240, 0.3); }

.svc-layout .svc-main { min-width: 0; max-width: 760px; }

.svc-layout .svc-featured {
  margin: 0 0 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--svc-subtle);
  border: 1px solid var(--svc-border);
}

.svc-layout .svc-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Content that pastes in its own h1 / h5 / h6 */
.svc-layout .svc-prose h1 {
  margin: 2.2em 0 0.6em;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.svc-layout .svc-prose h5,
.svc-layout .svc-prose h6 {
  margin: 1.4em 0 0.4em;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

@media (max-width: 767px) {
  .svc-layout .svc-prose h1 { font-size: 24px; }
}

/* Pasted inline colours/fonts never override the article style */
.svc-layout .svc-prose [style*="color"],
.svc-layout .svc-prose [style*="font-size"],
.svc-layout .svc-prose [style*="font-family"] {
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.svc-layout .svc-prose blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  border-left: 3px solid var(--svc-primary-bright);
  background: var(--svc-subtle);
  color: var(--svc-ink);
  font-size: 18px;
}

.svc-layout .svc-prose blockquote p:last-child { margin-bottom: 0; }

.svc-layout .svc-prose table {
  margin: 1.5em 0;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--svc-border);
}

.svc-layout .svc-prose th,
.svc-layout .svc-prose td {
  padding: 10px 14px;
  border: 1px solid var(--svc-border);
  vertical-align: top;
  min-width: 120px;
}

.svc-layout .svc-prose th { background: var(--svc-subtle); color: var(--svc-ink); font-weight: 600; }

.svc-layout .svc-prose figure { margin: 1.5em 0; max-width: 100%; }
.svc-layout .svc-prose figcaption,
.svc-layout .svc-prose .wp-caption-text { font-size: 14px; color: var(--svc-muted); margin-top: 8px; }
.svc-layout .svc-prose .wp-caption { max-width: 100% !important; }

.svc-layout .svc-prose code {
  padding: 2px 6px;
  background: var(--svc-subtle);
  border: 1px solid var(--svc-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.svc-layout .svc-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--svc-border);
  font-family: var(--svc-head);
  font-size: 13px;
  font-weight: 600;
}

.svc-layout .svc-tags * { font-family: var(--svc-head); }
.svc-layout .svc-tags__label { color: var(--svc-muted); margin-right: 4px; }

.svc-layout .svc-tags a {
  padding: 4px 12px;
  background: rgba(89, 92, 240, 0.08);
  border: 1px solid rgba(89, 92, 240, 0.16);
  color: var(--svc-primary);
  text-decoration: none;
}

.svc-layout .svc-tags a:hover { background: var(--svc-primary); color: #fff; }

.svc-layout .svc-comments { margin-top: 48px; }

/* Icon-font glyphs show their ligature name ("local_fire_department") until the font
   loads; keep that brief flash inside a 1em box so it can't push the layout wider. */
.svc-layout .svc-aside .material-symbols-outlined {
  width: 1em;
  max-width: 1em;
  overflow: hidden;
}
