/* ==========================================================================
   service.css — layout and components for service pages
   Consequence Consulting / Action & Consequence AB

   Load AFTER article.css, which supplies the colour tokens, the main nav,
   the footer, the breadcrumb, .motion-btn and the related-article cards:

     <link rel="stylesheet" href="article.css" />
     <link rel="stylesheet" href="service.css" />

   Content is visible by default. Only elements that carry .fu are animated,
   and only once the inline guard in <head> has armed the reveal.
   ========================================================================== */

.svc-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------- hero */
.svc-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 0 88px;
  border-bottom: 1px solid var(--border);
}

.svc-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 760px; height: 520px;
  background: radial-gradient(ellipse, rgba(0,200,170,0.10), transparent 68%);
  pointer-events: none;
}

.svc-hero-grid {
  display: flex;
  align-items: center;
  gap: 64px;
}

.svc-hero-text { flex: 1 1 0; min-width: 0; }

.svc-hero-figure {
  flex: 0 0 min(42%, 480px);
  margin: 0;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.svc-hero-figure[hidden] { display: none; }

.svc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-hero-img[hidden] { display: none; }

.svc-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 26px;
  color: var(--text-primary);
}

.svc-sub {
  font-size: 19px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 38px;
}

.svc-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.svc-trust {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------ sections */
.svc-section {
  position: relative;
  padding: 104px 0;
  border-bottom: 1px solid var(--border);
}

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

.svc-head { max-width: 760px; margin-bottom: 44px; }

.svc-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.svc-h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 48px 0 8px;
}

.svc-prose p {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 720px;
}

.svc-prose p:last-child { margin-bottom: 0; }
.svc-prose strong { color: var(--text-primary); font-weight: 500; }

.svc-prose p.svc-callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 26px;
  margin: 36px 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

.svc-prose p.svc-note,
.svc-final p.svc-note,
.svc-note {
  font-weight: 400;
  line-height: 1.6;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* outbound link treatment, same as the homepage */
.ext-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  transition: border-color 0.25s, color 0.25s;
}

.ext-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.ext-link svg {
  width: 9px; height: 9px;
  margin-left: 4px;
  stroke: currentColor;
  fill: none;
}

/* ---------------------------------------------------------- pain points */
.svc-prose p.svc-pain-lead {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 40px 0 18px;
}

.svc-pains {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 36px;
  padding: 0;
}

.svc-pains li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 18px 54px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
}

.svc-pains li::before {
  content: '\00d7';
  position: absolute;
  left: 21px; top: 13px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- steps */
.svc-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0 40px;
  padding: 0;
}

.svc-steps li {
  counter-increment: step;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
}

.svc-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.svc-steps h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.svc-steps p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
}

/* ------------------------------------------------------------ benefits */
.svc-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
}

.svc-benefit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.svc-benefit h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.svc-benefit p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
}

/* ---------------------------------------------------------------- case */
.svc-case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.svc-metrics {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 30px 14px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.svc-metrics-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.svc-metrics ul { list-style: none; margin: 0; padding: 0; }

.svc-metrics li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.svc-metrics li:last-child { border-bottom: none; margin-bottom: 0; }

.svc-metrics strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.svc-quote {
  margin: 36px 0 14px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 720px;
}

.svc-quote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.svc-quote cite {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- fit */
.svc-fit {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  max-width: 720px;
}

.svc-fit li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--border);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
}

.svc-fit li:first-child { border-top: 1px solid var(--border); }

.svc-fit li::before {
  content: '';
  position: absolute;
  left: 4px; top: 22px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- faq */
.svc-faq {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.svc-faq details { border-bottom: 1px solid var(--border); }

.svc-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
}

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

.svc-faq summary h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

.svc-faq summary::after {
  content: '';
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 11px no-repeat;
  transition: transform 0.25s ease;
}

.svc-faq details[open] summary::after { transform: rotate(45deg); }

.svc-faq-a { padding: 0 0 30px; max-width: 720px; }

.svc-faq-a p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 16px;
}

.svc-faq-a p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------- related + CTA */
.svc-page .related-section { background: var(--bg); }

.svc-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0 128px;
  background: var(--bg-card);
}

.svc-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 420px;
  background: radial-gradient(ellipse, rgba(0,200,170,0.07), transparent 66%);
  pointer-events: none;
}

.svc-final .svc-container { max-width: 820px; }

.svc-final .svc-h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 30px; }

.svc-final p {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 auto 20px;
  max-width: 640px;
}

.svc-final .svc-actions { justify-content: center; margin-top: 36px; }

.svc-final .svc-note { margin-top: 20px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .svc-hero-grid { flex-direction: column; align-items: stretch; gap: 44px; }
  .svc-hero-figure { flex: none; width: 100%; max-width: 640px; }
  .svc-case-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-metrics { position: static; }
}

@media (max-width: 768px) {
  .svc-hero { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .svc-section { padding: 76px 0; }
  .svc-final { padding: 88px 0 96px; }
  .svc-pains, .svc-steps { grid-template-columns: 1fr; }
  .svc-sub { font-size: 17.5px; }
  .svc-actions .motion-btn { width: 100%; }
  .svc-actions .svc-link { width: 100%; justify-content: center; }
  .svc-faq summary h3 { font-size: 16.5px; }
}

/* secondary, ghost-style call to action */
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.svc-link:hover { border-color: var(--border-accent); color: var(--accent); }
.svc-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
