/* =========================================================
   SERVICES — Full styling restart
   Goal: clean + professional + unique (editorial), NO boxes,
         NO sticky/janky panels, strong alignment + uniformity.
   Depends on variables + layout helpers from style.css.
   ========================================================= */

:root {
  --svc-ink: rgba(26, 26, 26, 0.86);
  --svc-muted: rgba(26, 26, 26, 0.66);
  --svc-faint: rgba(26, 26, 26, 0.12);

  --svc-rail: rgba(197, 165, 114, 0.68); /* gold rail */
  --svc-rail-soft: rgba(197, 165, 114, 0.28);
}

/* Keep watermark behind everything */
.services-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.075;
  background: url("images/logo-simplified.png") no-repeat 55% 35% / 520px;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* ---------------- HERO ---------------- */

.services-hero {
  padding: 4.25rem 0 3.25rem;
  background: var(--bg);
}

.services-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center; /* ✅ vertical centring for hero */
}

.services-hero-title {
  margin: 0.2rem 0 1rem;
  font-size: clamp(1.9rem, 1.2vw + 1.2rem, 2.55rem);
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 30ch;
}

.services-hero-copy .section-lead {
  max-width: 68ch;
  color: var(--svc-ink);
}

/* Right column: “editorial rail” (not a box) */
.services-hero-highlights {
  margin-top: 0; /* ✅ allow grid centring to do its job */
  width: 100%;
}

.services-hero-highlights .services-subtitle {
  margin-top: 0;
}

.services-hero-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.85rem;
  color: var(--svc-ink);
}

.services-hero-highlights li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.65;
}

.services-hero-highlights li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  opacity: 0.95;
}

/* ---------------- SECTION RHYTHM ---------------- */

.services-block {
  padding: 4rem 0;
  position: relative;
}

/* alternating soft sections without “cards” */
.services-block:nth-of-type(even) {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* subtle divider inside blocks for structure */
.services-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--svc-faint), transparent);
  pointer-events: none;
}

/* consistent split grid */
.services-split,
.services-seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center; /* ✅ vertically centre right vs left */
}

/* typography uniformity */
.services-text p,
.services-text .section-lead {
  max-width: 70ch;
  color: var(--svc-ink);
}

.services-text .section-title {
  margin: 0.3rem 0 0.9rem;
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.8rem);
  letter-spacing: -0.01em;
}

.services-subtitle {
  margin: 1.2rem 0 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.58);
  position: relative;
  display: inline-block;
  padding-bottom: 0.55rem;
}

/* signature “hairline” underline */
.services-subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(to right, rgba(197, 165, 114, 0.95), rgba(197, 165, 114, 0));
  border-radius: 999px;
}

/* ---------------- RIGHT COLUMN (NO sticky, NO boxes) ---------------- */

.services-panel,
.services-seo-signals {
  position: static; /* kill sticky / jitter */
  padding-left: 1.35rem;
  border-left: 2px solid var(--svc-rail-soft);
}

.services-panel-title {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.58);
}

/* ---------------- LISTS (clean, aligned, not boxed) ---------------- */

.services-list,
.services-seo-list,
.services-steps-simple {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.services-list li,
.services-seo-list li,
.services-steps-simple li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.65;
  color: var(--svc-ink);
}

.services-list li::before,
.services-seo-list li::before,
.services-steps-simple li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--gold);
  opacity: 0.95;
}

/* keep code chips subtle */
.services-list code {
  font-size: 0.92em;
  background: rgba(197, 165, 114, 0.1);
  border: 1px solid rgba(197, 165, 114, 0.2);
  padding: 0.08rem 0.35rem;
  border-radius: 8px;
}

/* ---------------- PROCESS (numbered timeline, uniform) ---------------- */

.services-steps {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  counter-reset: svcstep;
  display: grid;
  gap: 0.85rem;
}

.services-steps li {
  counter-increment: svcstep;
  position: relative;
  padding-left: 2.25rem;
  line-height: 1.7;
  color: var(--svc-ink);
}

.services-steps li::before {
  content: counter(svcstep);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 165, 114, 0.75);
  color: rgba(26, 26, 26, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.services-steps li strong {
  color: rgba(26, 26, 26, 0.92);
}

/* small supporting note text */
.services-panel-note,
.services-seo-note {
  margin: 1rem 0 0;
  color: rgba(26, 26, 26, 0.7);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------------- PORTAL SECTION (clean centred, fix intro paragraph) ---------------- */

.services-portal-inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  place-items: center;
  text-align: center;
}

.services-portal-copy {
  width: 100%;
  max-width: 78ch;
  margin: 0 auto;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

/* Centre the small “kicker” hairline for this section only */
.services-portal-copy .services-subtitle {
  display: inline-block;
}

.services-portal-copy .services-subtitle::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ✅ The intro paragraph: centred, readable, NOT weird line breaks */
.services-portal-copy .section-lead {
  max-width: 72ch; /* tweak this if you want wider/narrower */
  margin: 1.1rem auto 0;
  line-height: 1.75;
  color: var(--svc-ink);
}

/* Bullets: keep them centred as a group (uniform + tidy) */
.services-portal-copy ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto 0;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.services-portal-copy li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: center;
  color: var(--svc-ink);
  line-height: 1.7;
  max-width: 68ch;
}

.services-portal-copy li::before {
  content: "•";
  color: var(--gold);
  opacity: 0.95;
  line-height: 1.6;
}

/* Closing line stays centred and slightly separated */
.services-portal-copy p:last-of-type {
  margin-top: 1.6rem;
  color: rgba(26, 26, 26, 0.8);
}

.services-link-note {
  margin-top: 1rem;
  color: rgba(26, 26, 26, 0.72);
  text-align: center;
}

.services-link-note a {
  border-bottom: 1px solid rgba(197, 165, 114, 0.55);
  padding-bottom: 0.05rem;
}

.services-link-note a:hover {
  border-bottom-color: rgba(197, 165, 114, 0.95);
}
/* FAQ: make the right panel scroll alongside the questions */
.services-faq .services-split {
  align-items: flex-start;
}

.services-faq .services-faq-panel {
  position: sticky;
  top: 110px; /* adjust if your header overlaps */
}

/* On smaller screens, sticky panels can feel awkward — disable */
@media (max-width: 900px) {
  .services-faq .services-faq-panel {
    position: static;
    top: auto;
  }
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 980px) {
  .services-hero-inner {
    grid-template-columns: 1fr;
  }

  .services-split,
  .services-seo-layout {
    grid-template-columns: 1fr;
  }

  /* convert side rails into top separators on mobile */
  .services-hero-highlights,
  .services-panel,
  .services-seo-signals {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-soft);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .services-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .services-block {
    padding: 3.25rem 0;
  }

  .services-subtitle::after {
    width: 110px;
  }
}
