/* service-page.css — shared layout for the long-form service and guide pages
 * (the epoxy, polyaspartic, one-day and patio/pool-deck service pages, and the six homeowner
 * guides: crack repair, epoxy vs. polyaspartic, paint vs. coating, moisture barriers, floor prep
 * and floor care).
 * Loaded after style.css; uses its tokens (--color-navy, --color-volt, --color-wolf).
 *
 * style.css is a dark theme (headings and body text default to near-white), so every light
 * section below sets its own text colours. Don't remove those: a heading without one renders
 * white on white.
 *
 * Type scale: seven sizes and nothing else. label 12px caps · caption 15px · body 18px ·
 * lead/question 20px · h3 24px · h2 36px (and the stat numbers) · h1 48px. Phones step each
 * one down in the mobile block at the end. Don't add a size: pick one of these.
 *
 * --svc-ink is the brand gold darkened for small text on light backgrounds: #A08A41 is only
 * 3.4:1 on white, #74642F is 5.8:1 on white and 5.6:1 on #F8FAFC. */

:root {
  --svc-label: 0.75rem;
  --svc-caption: 0.9375rem;
  --svc-body: 1.125rem;
  --svc-lead: 1.25rem;
  --svc-h3: 1.5rem;
  --svc-h2: 2.25rem;
  --svc-h1: 3rem;
  --svc-ink: #74642F;
  --svc-text: #334155;
  --svc-muted: #475569;
  --svc-caption-color: #59677C;
  --svc-line: #E2E8F0;
  --svc-alt-bg: #F8FAFC;
}

/* ── Hero ──────────────────────────────────────────── */
.svc-hero {
  background-color: var(--color-navy);
  color: #E2E8F0;
  padding: 2rem 0 4rem;
}

.svc-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--svc-caption);
  margin: 0 0 2.5rem;
  padding: 0;
  color: #A7B0BC;
}

.svc-breadcrumb li + li::before {
  content: '›';
  margin-right: 0.4rem;
}

.svc-breadcrumb a {
  color: #A7B0BC;
}

.svc-breadcrumb a:hover {
  color: var(--color-volt);
}

.svc-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.svc-eyebrow {
  display: inline-block;
  font-size: var(--svc-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-volt);
  border-left: 3px solid var(--color-volt);
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.svc-hero h1 {
  color: #FFFFFF;
  font-size: var(--svc-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.svc-lead {
  font-size: var(--svc-lead);
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Links in the hero lead: readable on navy */
.svc-hero a:not(.btn) {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--color-volt);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.svc-hero a:not(.btn):hover {
  color: var(--color-volt);
}

.svc-hero .svc-breadcrumb a {
  text-decoration: none;
  color: #A7B0BC;
}

.svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.svc-btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.svc-btn-ghost:hover {
  border-color: var(--color-volt);
  color: var(--color-volt);
}

.svc-hero-media {
  margin: 0;
}

.svc-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.svc-hero-media figcaption {
  font-size: var(--svc-caption);
  color: #A7B0BC;
  margin-top: 0.6rem;
}

/* ── Facts strip ────────────────────────────────────── */
.svc-facts {
  background: #F1F5F9;
  border-bottom: 1px solid var(--svc-line);
  padding: 1.5rem 0;
}

.svc-facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
}

.svc-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  font-size: var(--svc-body);
  color: var(--color-navy);
  line-height: 1.4;
}

.svc-facts li::before {
  content: '✓';
  color: var(--color-volt-text);
  background: var(--color-volt);
  border-radius: 50%;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--svc-label);
  font-weight: 900;
}

/* ── Sections and the type scale ───────────────────── */
.svc-section {
  padding: 4.5rem 0;
  background: #FFFFFF;
  font-size: var(--svc-body);
}

.svc-section.alt {
  background: var(--svc-alt-bg);
}

.svc-section h2,
.svc-section h3,
.svc-section h4 {
  color: var(--color-navy);
}

.svc-section h2 {
  font-size: var(--svc-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.svc-section h3 {
  font-size: var(--svc-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.svc-section p,
.svc-section li {
  line-height: 1.7;
  color: var(--svc-text);
  text-wrap: pretty;
}

.svc-section strong {
  color: var(--color-navy);
}

/* <small> notes stay on the scale (the browser's "smaller" lands on 14.2px on phones) */
.svc-section small {
  font-size: var(--svc-caption);
}

/* No one-word last lines: headings balance, paragraphs and captions avoid orphans. */
.svc-hero h1,
.svc-section h2,
.svc-section h3,
.svc-cta h2,
.svc-faq summary,
.svc-tiles strong {
  text-wrap: balance;
}

.svc-lead,
.svc-cta p,
.svc-hero figcaption,
.svc-section figcaption {
  text-wrap: pretty;
}

.svc-section .svc-kicker,
.svc-kicker {
  display: block;
  font-size: var(--svc-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-ink);
  margin-bottom: 0.85rem;
}

/* Section intro: title on the left, the lead on the right (desktop). */
.svc-intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.svc-intro p {
  color: var(--svc-muted);
}

.svc-intro p + p {
  margin-top: 0.85rem;
}

.svc-prose {
  max-width: 760px;
}

.svc-prose p + p {
  margin-top: 1rem;
}

.svc-section a:not(.btn) {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-volt);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.svc-section a:not(.btn):hover {
  color: var(--svc-ink);
}

/* Phone numbers never break across lines */
.svc-section a[href^="tel:"],
.svc-hero a[href^="tel:"],
.svc-cta a[href^="tel:"] {
  white-space: nowrap;
}

/* ── Answer block: text + photos ───────────────────── */
.svc-answer {
  max-width: 820px;
}

.svc-answer h2 {
  margin-bottom: 1rem;
}

.svc-answer p + p,
.svc-answer-text p + p {
  margin-top: 1rem;
}

.svc-answer-text > h2 + p {
  color: #1E293B;
}

.svc-answer-text h2:not(:first-child) {
  font-size: var(--svc-h3);
  margin-top: 2rem;
}

.svc-answer.has-media {
  max-width: none;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.svc-answer-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0;
}

.svc-answer-media figure {
  margin: 0;
  position: relative;
}

.svc-answer-media figure:first-child {
  grid-column: 1 / -1;
}

.svc-answer-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.svc-answer-media figcaption {
  font-size: var(--svc-caption);
  color: var(--svc-caption-color);
  margin-top: 0.5rem;
}

/* Big-number strip under an answer or an intro */
.svc-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}

.svc-intro + .svc-stats {
  margin-top: 0;
}

.svc-stats + p {
  margin-top: 1.5rem;
}

.svc-stats li {
  border-left: 3px solid var(--color-volt);
  padding-left: 1rem;
  line-height: 1.3;
}

.svc-stats strong {
  display: block;
  font-size: var(--svc-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.svc-stats span {
  font-size: var(--svc-caption);
  line-height: 1.4;
  color: var(--svc-muted);
}

/* ── Numbered steps: a timeline with a photo per step ── */
.svc-steps {
  list-style: none;
  counter-reset: svc-step;
  display: grid;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.svc-steps > li {
  counter-increment: svc-step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--svc-line);
  align-items: start;
}

.svc-steps > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.svc-steps > li::before {
  content: counter(svc-step, decimal-leading-zero);
  font-weight: 800;
  font-size: var(--svc-body);
  color: var(--color-volt-text);
  background: var(--color-volt);
  border-radius: 10px;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-steps > li > div {
  max-width: 640px;
}

.svc-steps p + p {
  margin-top: 0.6rem;
}

.svc-note {
  margin-top: 1.5rem;
  max-width: 900px;
}

.svc-section .svc-note {
  color: var(--svc-muted);
}

/* Steps beside a photo stack (a plain step list on the left, two photos on the right) */
.steps-split {
  display: grid;
  gap: 2rem;
}

.steps-photos {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.steps-photos figure {
  margin: 0;
}

.steps-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.steps-photos figcaption {
  font-size: var(--svc-caption);
  color: var(--svc-caption-color);
  margin-top: 0.45rem;
}

/* ── Cards, with an optional photo header ──────────── */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.svc-card {
  background: #FFFFFF;
  border: 1px solid var(--svc-line);
  border-radius: 14px;
  padding: 1.75rem;
  overflow: hidden;
}

.svc-section:not(.alt) .svc-card {
  background: var(--svc-alt-bg);
}

.svc-card > img {
  display: block;
  width: calc(100% + 3.5rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.4rem;
}

.svc-card p + p {
  margin-top: 0.75rem;
}

.svc-section .svc-card-label,
.svc-card-label {
  display: block;
  font-size: var(--svc-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--svc-ink);
  margin-bottom: 0.5rem;
}

/* ── Two-sided panel (good fit / not a fit, covered / not covered) ──
 * One rounded panel, a navy half and a light half, numbered lines, no check marks,
 * no red/green. The first half is always the dark one, whatever its class. */
.svc-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  max-width: none;
  border-radius: 18px;
  overflow: hidden;
}

.svc-split > div {
  padding: 2.5rem 2.75rem 2.75rem;
  background: #F1F5F9;
}

.svc-section.alt .svc-split > div {
  background: #FFFFFF;
}

.svc-split > div:first-child,
.svc-section.alt .svc-split > div:first-child {
  background: var(--color-navy);
}

.svc-section .svc-split > div:first-child h3 {
  color: #FFFFFF;
}

.svc-section .svc-split > div:first-child p,
.svc-section .svc-split > div:first-child li {
  color: #CBD5E1;
}

.svc-section .svc-split > div:first-child strong {
  color: #FFFFFF;
}

.svc-split h3 {
  margin-bottom: 0.5rem;
}

.svc-split ul {
  list-style: none;
  counter-reset: svc-split;
  margin: 1.25rem 0 0;
  padding: 0;
}

.svc-split li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.svc-split li::before {
  counter-increment: svc-split;
  content: counter(svc-split, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-size: var(--svc-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--svc-ink);
}

.svc-split > div:first-child li::before {
  color: var(--color-volt);
}

.svc-split > div:first-child li {
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* Links in the navy half: white with the gold underline, like the hero */
.svc-section .svc-split > div:first-child a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--color-volt);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.svc-section .svc-split > div:first-child a:hover {
  color: var(--color-volt);
}

/* ── Feature row: text beside a photo ──────────────── */
.svc-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.svc-feature figure {
  margin: 0;
}

.svc-feature img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.svc-feature figcaption {
  font-size: var(--svc-caption);
  color: var(--svc-caption-color);
  margin-top: 0.5rem;
}

.svc-feature .svc-intro {
  margin-bottom: 0;
}

/* ── Question grid: numbered cards, no photos ──────── */
.svc-qgrid {
  list-style: none;
  counter-reset: svc-q;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.svc-section .svc-qgrid > li {
  counter-increment: svc-q;
  background: var(--svc-alt-bg);
  border: 1px solid var(--svc-line);
  border-radius: 14px;
  padding: 1.75rem 2rem 1.9rem;
}

.svc-section.alt .svc-qgrid > li {
  background: #FFFFFF;
}

.svc-qgrid > li::before {
  content: counter(svc-q, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--color-volt);
  color: var(--color-volt-text);
  font-size: var(--svc-caption);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* ── Numbered list with hairlines (outside the two-sided panel) ── */
.svc-numlist {
  list-style: none;
  counter-reset: svc-num;
  margin: 1.5rem 0 0;
  padding: 0;
}

.svc-section .svc-numlist > li {
  counter-increment: svc-num;
  position: relative;
  padding: 1rem 0 1rem 2.75rem;
  border-top: 1px solid var(--svc-line);
}

.svc-numlist > li::before {
  content: counter(svc-num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-size: var(--svc-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--svc-ink);
}

/* ── FAQ: questions beside a sticky photo + call card ── */
.svc-faq-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.svc-faq {
  max-width: 860px;
}

.svc-faq details {
  background: #FFFFFF;
  border: 1px solid var(--svc-line);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.svc-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 3rem 1.2rem 1.4rem;
  font-weight: 700;
  font-size: var(--svc-lead);
  color: var(--color-navy);
  position: relative;
  line-height: 1.4;
}

.svc-faq summary::-webkit-details-marker {
  display: none;
}

.svc-faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--svc-ink);
}

.svc-faq details[open] summary::after {
  content: '–';
}

.svc-faq summary:focus-visible {
  outline: 2px solid var(--color-volt);
  outline-offset: 2px;
}

.svc-section .svc-faq details > p {
  padding: 0 1.4rem 1.3rem;
  color: var(--svc-muted);
}

.svc-faq-aside {
  position: sticky;
  top: 9rem;
}

.svc-faq-aside figure {
  margin: 0;
}

.svc-faq-aside img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.svc-faq-aside figcaption {
  font-size: var(--svc-caption);
  color: var(--svc-caption-color);
  margin-top: 0.5rem;
}

.svc-aside-card {
  background: var(--color-navy);
  color: #E2E8F0;
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1.25rem;
}

.svc-section .svc-aside-card h3 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.svc-section .svc-aside-card p {
  color: #CBD5E1;
  margin-bottom: 1.25rem;
}

.svc-section .svc-aside-card a:not(.btn) {
  color: #FFFFFF;
}

/* ── Image tiles linking to other pages ────────────── */
.svc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.svc-section .svc-tiles a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-navy);
  background: #FFFFFF;
  border: 1px solid var(--svc-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.svc-section .svc-tiles a:hover {
  transform: translateY(-3px);
  border-color: var(--color-volt);
  box-shadow: 0 12px 28px rgba(11, 27, 43, 0.1);
  color: var(--color-navy);
}

.svc-tiles img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--svc-line);
}

.svc-tiles a > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
}

.svc-tiles strong {
  display: block;
  font-size: var(--svc-h3);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.svc-tiles span {
  display: block;
  color: var(--svc-muted);
  line-height: 1.6;
}

.svc-tiles em {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-style: normal;
  font-weight: 700;
  font-size: var(--svc-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc-ink);
}

/* ── Closing CTA, plain or over a photo ────────────── */
.svc-cta {
  background: var(--color-navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.svc-cta.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 27, 43, 0.86), rgba(11, 27, 43, 0.86));
}

.svc-cta .container {
  position: relative;
}

.svc-cta h2 {
  color: #FFFFFF;
  font-size: var(--svc-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.svc-cta p {
  color: #CBD5E1;
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: var(--svc-lead);
  line-height: 1.6;
}

.svc-cta .svc-hero-actions {
  justify-content: center;
}

/* ── Comparison tables ─────────────────────────────── */
.svc-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.svc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--svc-caption);
  line-height: 1.5;
  background: #FFFFFF;
}

.svc-table th,
.svc-table td {
  border: 1px solid #D9E0E8;
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  color: var(--svc-text);
}

.svc-table thead th {
  background: #F1F5F9;
  color: var(--color-navy);
  font-weight: 700;
}

.svc-table tbody th {
  color: var(--color-navy);
  font-weight: 700;
  background: #FFFFFF;
}

.svc-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: var(--svc-caption);
  color: var(--svc-caption-color);
  padding-top: 0.6rem;
}

.svc-prose ul:not(.svc-stats),
.svc-prose ol {
  margin: 0.75rem 0 0 1.1rem;
  line-height: 1.8;
}

.svc-prose li + li {
  margin-top: 0.35rem;
}

.svc-prose ul + p,
.svc-prose ol + p {
  margin-top: 1rem;
}

.svc-prose h3 {
  margin-top: 2rem;
}

/* ── Desktop ────────────────────────────────────────── */
@media (min-width: 900px) {
  .svc-hero {
    padding: 2.5rem 0 5rem;
  }

  .svc-hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }

  .svc-section {
    padding: 5.5rem 0;
  }

  .svc-intro {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1rem 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
  }

  .svc-intro:not(.stack) > h2 {
    margin-bottom: 0;
  }

  .svc-intro:not(.stack) > .svc-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .svc-intro > p + p {
    grid-column: 2;
  }

  .svc-intro.stack {
    display: block;
    max-width: 760px;
  }

  .svc-intro:not(:has(> p)) {
    display: block;
    max-width: 900px;
  }

  .svc-intro:not(.stack):not(:has(> p)) > .svc-kicker {
    margin-bottom: 0.85rem;
  }

  .svc-answer.has-media {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
    align-items: center;
  }

  .svc-steps > li {
    column-gap: 2rem;
  }

  .steps-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
    align-items: start;
  }

  .steps-split .svc-steps > li > div {
    max-width: none;
  }

  .steps-photos {
    position: sticky;
    top: 9rem;
  }

  .svc-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .svc-feature.reverse > figure {
    order: -1;
  }

  .svc-cards.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-qgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-qgrid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .svc-faq-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3.5rem;
  }

  .svc-faq-grid .svc-faq {
    max-width: none;
  }
}

@media (max-width: 899px) {
  .svc-faq-aside {
    position: static;
  }

  .steps-split {
    gap: 0.5rem;
  }

  .steps-photos {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .steps-photos figcaption {
    display: none;
  }

  .steps-photos figure:nth-child(n+3) {
    display: none;
  }
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --svc-caption: 0.875rem;
    --svc-body: 1.0625rem;
    --svc-lead: 1.125rem;
    --svc-h3: 1.35rem;
    --svc-h2: 1.75rem;
    --svc-h1: 2.25rem;
  }

  .svc-section {
    padding: 3.25rem 0;
  }

  /* Steps keep the number beside the text: a smaller badge, no row of its own */
  .svc-steps > li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem 0.9rem;
    padding: 1.5rem 0;
  }

  .svc-steps > li::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--svc-caption);
    border-radius: 8px;
  }

  /* Two-sided panel: room for the list text */
  .svc-split > div {
    padding: 1.75rem 1.25rem 2rem;
  }

  .svc-split li {
    padding-left: 2.25rem;
  }

  /* Stats: one per row, the number beside its label */
  .svc-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .svc-stats li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }

  .svc-stats strong {
    flex: 0 0 auto;
    font-size: var(--svc-h3);
    margin-bottom: 0;
  }

  .svc-section .svc-qgrid > li {
    padding: 1.5rem 1.25rem 1.6rem;
  }

  /* Opt-in: a table with class "stack" becomes one card per row on phones.
     Every td needs data-label="<column name>"; the row's th is the card title. */
  .svc-table.stack,
  .svc-table.stack tbody,
  .svc-table.stack tr,
  .svc-table.stack th,
  .svc-table.stack td {
    display: block;
  }

  .svc-table.stack {
    background: none;
  }

  .svc-table.stack thead {
    display: none;
  }

  .svc-table.stack tbody {
    display: grid;
    gap: 0.75rem;
  }

  .svc-table.stack caption {
    display: block;
    padding: 0 0 0.75rem;
  }

  .svc-table.stack tr {
    background: #FFFFFF;
    border: 1px solid var(--svc-line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
  }

  .svc-table.stack tbody th {
    border: 0;
    padding: 0 0 0.35rem;
    font-size: var(--svc-body);
  }

  .svc-table.stack td {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    border: 0;
    padding: 0.3rem 0;
  }

  .svc-table.stack td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-navy);
  }

  .svc-hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .svc-card > img {
    width: calc(100% + 3.5rem);
  }
}
