/* ══════════════════════════════════════════════════════════════════════════
   The service pages: services/ and the four pages under it.

   Loaded after fern.css, whose tokens, header, pills, kickers, reveals
   and footer they share; this file only adds what these pages have that
   the homepage doesn't. Same two rules as fern.css: the resting style is
   the finished state, and drawn things use the 1.5px ink line.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero: copy beside the page's illustration, on sage ─────────────── */

.svc-hero {
  padding: clamp(8rem, 6rem + 5vw, 10rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--sage-100); border-bottom: var(--line);
}
.svc-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
@media (max-width: 860px) { .svc-hero-inner { grid-template-columns: 1fr; } }
.svc-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); letter-spacing: -0.045em; }
.svc-hero .lede { margin-bottom: 1.75rem; }
.svc-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* The illustration sits on its own artboard, the dotted canvas used
   across the homepage, with the bright note as a hard shadow. */
.svc-hero-art {
  margin: 0; padding: clamp(0.75rem, 0.5rem + 1.5vw, 1.5rem);
  background-color: var(--oat-50);
  background-image: radial-gradient(circle, rgba(31, 38, 22, 0.16) 1.2px, transparent 1.6px);
  background-size: 22px 22px; background-position: 11px 11px;
  border: var(--line); border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--go);
}
.svc-hero-art img { width: 100%; }
@media (max-width: 860px) { .svc-hero-art { max-width: 32rem; } }

.crumbs { margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li { font-size: var(--text-xs); color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--olive-600); }
.crumbs a { color: var(--ink-muted); }
.crumbs a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ── The intro: a few paragraphs of plain prose, for people and for
   search engines, under the hero. ──────────────────────────────────── */

.svc-intro { padding-block: var(--section-y); background: var(--oat-50); border-bottom: var(--line); }
.svc-intro h2 { margin-bottom: 1.5rem; max-width: 40rem; }
.svc-intro p { max-width: 42rem; font-size: var(--text-lede); color: var(--ink-muted); }

/* ── What you get ───────────────────────────────────────────────────── */

.svc-gets-wrap { padding-block: var(--section-y); background: var(--oat-100); }
.svc-gets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
@media (max-width: 960px) { .svc-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-gets { grid-template-columns: 1fr; } }
.svc-gets li {
  padding: 1.25rem 1.25rem 1.375rem;
  background: var(--oat-50); border: var(--line); border-radius: var(--radius); box-shadow: 0 2px 0 var(--ink);
}
.svc-gets h3 { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.svc-gets h3::before {
  content: "✓"; display: grid; place-items: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--go); border: var(--line); font-size: 0.875rem; font-weight: 700;
}
.svc-gets p { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); }

/* ── How it goes, beside "a good fit if" ────────────────────────────── */

.svc-steps-wrap { padding-block: var(--section-y); background: var(--oat-50); border-block: var(--line); }
.svc-split {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start;
}
@media (max-width: 860px) { .svc-split { grid-template-columns: 1fr; } }
.svc-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; }
.svc-steps li {
  position: relative; counter-increment: step;
  padding: 0 0 1.5rem 4rem; min-height: 3.5rem;
}
.svc-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--sage-200); border: var(--line); border-radius: 10px; box-shadow: 0 2px 0 var(--ink);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
}
/* The thread joining one step to the next. */
.svc-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.375rem - 0.75px); top: 3rem; bottom: 0.25rem;
  border-left: 1.5px dashed var(--olive-500);
}
.svc-steps h3 { margin-bottom: 0.25rem; padding-top: 0.5rem; }
.svc-steps p { margin: 0; color: var(--ink-muted); }

.svc-fit {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--go); border: var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--ink);
  rotate: 1deg;
}
.svc-fit h2 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; }
.svc-fit ul { list-style: none; margin: 0; padding: 0; }
.svc-fit li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; font-size: var(--text-sm); }
.svc-fit li:last-child { margin-bottom: 0; }
.svc-fit li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }
@media (max-width: 860px) { .svc-fit { rotate: none; } }

/* ── Questions: native <details>, so they open with JS off ──────────── */

.svc-faq-wrap { padding-block: var(--section-y); background: var(--oat-100); }
.faqs { margin-top: 1.5rem; border-top: var(--line); }
.faq { border-bottom: var(--line); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 1.125rem 3rem 1.125rem 0;
  font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--olive-700); }
.faq-plus {
  position: absolute; right: 0.25rem; top: 50%; width: 1.75rem; height: 1.75rem; margin-top: -0.875rem;
  border: var(--line); border-radius: 50%; background: var(--oat-50);
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 1.5px;
  margin: -0.75px 0 0 -0.375rem; background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus { background: var(--go); }
.faq[open] .faq-plus::after { transform: rotate(0deg); }
.faq p { margin: 0 0 1.25rem; max-width: 42rem; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .faq-plus::before, .faq-plus::after { transition: none; } }

/* ── Service cards: the hub's four, and "the rest of the job" ───────── */

.svc-related { padding-block: var(--section-y); background: var(--sage-100); border-top: var(--line); }
.svc-related--hub { border-top: 0; }
.svc-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.svc-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .svc-cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-cards, .svc-cards--3 { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: 0 0 1.25rem; overflow: hidden;
  background: var(--oat-50); border: var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--ink); }
.svc-card img { width: 100%; padding: 0.75rem; background: var(--oat-100); border-bottom: var(--line); }
.svc-card h2, .svc-card h3 { margin: 1.125rem 1.25rem 0.5rem; font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; }
.svc-card h2 a, .svc-card h3 a { color: var(--ink); text-decoration: none; }
/* The whole card is the link. */
.svc-card h2 a::after, .svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card a:focus-visible { outline: none; }
.svc-card:has(a:focus-visible) { outline: 3px solid var(--olive-500); outline-offset: 3px; }
.svc-card p { margin: 0 1.25rem 0.75rem; color: var(--ink-muted); font-size: var(--text-sm); }
.svc-card ul { list-style: none; margin: 0 1.25rem 1rem; padding: 0; }
.svc-card li { position: relative; padding-left: 1.25rem; font-size: var(--text-xs); font-weight: 500; line-height: 1.9; }
.svc-card li::before { content: "✓"; position: absolute; left: 0; color: var(--olive-500); font-weight: 700; }
.svc-card-more {
  margin: auto 1.25rem 0; font-size: var(--text-sm); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) { .svc-card { transition: none; } .svc-card:hover { transform: none; } }

/* ── The hub's thread: SEO through all four stages ──────────────────── */

.svc-thread {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  position: relative;
}
.svc-thread::before {
  content: ""; position: absolute; left: 1rem; right: 1rem; top: 1.375rem;
  border-top: 1.5px dashed var(--olive-500);
}
.svc-thread li { position: relative; padding-top: 3.5rem; }
.svc-thread li::before {
  content: ""; position: absolute; left: 0; top: 0.625rem; width: 1.5rem; height: 1.5rem;
  background: var(--go); border: var(--line); border-radius: 50%; box-shadow: 0 2px 0 var(--ink);
}
.svc-thread b { display: block; margin-bottom: 0.25rem; font-size: var(--text-h3); }
.svc-thread span { color: var(--ink-muted); font-size: var(--text-sm); }
@media (max-width: 760px) {
  .svc-thread { grid-template-columns: 1fr; gap: 0; }
  .svc-thread::before { left: 0.75rem; right: auto; top: 1rem; bottom: 1rem; border-top: 0; border-left: 1.5px dashed var(--olive-500); }
  .svc-thread li { padding: 0.5rem 0 1.25rem 2.75rem; }
  .svc-thread li::before { top: 0.5rem; }
}

/* ── The way in ─────────────────────────────────────────────────────── */

.svc-cta { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--olive-900); color: var(--on-dark); }
.svc-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.svc-cta h2 { max-width: 30rem; }
.svc-cta p { max-width: 34rem; color: var(--on-dark-muted); }
.svc-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* A second, quieter row of links in the footer: the four services. */
.footer-services { padding-block: 0 1.5rem; }
.footer-services .footer-links a { font-weight: 400; color: var(--ink-muted); }
.footer-links a[aria-current="page"] { color: var(--olive-600); }

/* ── Options side by side: the two editors, and hosting ─────────────── */

.svc-options { padding-block: var(--section-y); background: var(--sage-100); border-bottom: var(--line); }
.svc-option-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
@media (max-width: 960px) { .svc-option-list { grid-template-columns: 1fr; max-width: 40rem; } }
.svc-option {
  display: flex; flex-direction: column;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--oat-50); border: var(--line); border-radius: var(--radius-lg); box-shadow: 0 2px 0 var(--ink);
}
.svc-option:last-child { background: var(--go); }
.svc-option-tag {
  align-self: flex-start; margin-bottom: 0.75rem; padding: 0.125rem 0.625rem;
  border: var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font-brand); font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.svc-option h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.625rem; }
.svc-option p { color: var(--ink-muted); font-size: var(--text-sm); }
.svc-option:last-child p { color: var(--ink); }
.svc-option ul { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1.5px dashed rgba(31, 38, 22, 0.35); }
.svc-option li { position: relative; padding-left: 1.375rem; font-size: var(--text-sm); font-weight: 500; line-height: 1.9; }
.svc-option li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--olive-600); }
.svc-option:last-child li::before { color: var(--ink); }
.svc-option-more { margin: 1rem 0 0; font-size: var(--text-sm); }

/* "Or just send me a message" under the closing call to action. */
.svc-cta-note { flex-basis: 100%; margin: 0.25rem 0 0; font-size: var(--text-sm); }
.svc-cta-note a { color: var(--go); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
