/* Service pages (service-*.html), built from one layout */

/* Same tokens as the v3 homepage. Layout: article list, then one article at a time in a readable column. */
:root { --green: #183f29; --paper: #f7f5ef; --stone: #ece8de; --gold: #c8a553; --gold-deep: #85651f; --ink: #16231b; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--display); line-height: 1.04; }
.s-hero { background: var(--forest); color: var(--on-dark); display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 560px; }
.s-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 64px) clamp(48px, 6vw, 80px) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.s-aud { font-size: 0.875rem; color: var(--gold); font-weight: 500; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.s-badge { font-size: 0.75rem; font-weight: 700; color: var(--forest); background: var(--gold); padding: 3px 10px; }
.s-hero h1 { color: var(--on-dark); font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1; max-width: 14ch; }
.s-hero .lede { color: var(--on-dark-muted); font-size: 1.0625rem; max-width: 48ch; }
.s-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.s-photo { position: relative; min-height: 300px; background-size: cover; background-position: center; }
.s-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, rgba(15, 42, 28, 0) 25%); }
.s-proof { background: var(--forest); border-top: 1px solid rgba(200, 165, 83, 0.25); color: var(--on-dark-muted); }
.s-proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.s-proof li { padding: 22px 24px 24px 0; font-size: 0.9rem; }
.s-proof li + li { padding-left: 24px; border-left: 1px solid rgba(200, 165, 83, 0.25); }
.s-proof strong { display: block; color: var(--on-dark); font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.s-sec { padding-block: clamp(64px, 8vw, 112px); }
.s-band { background: var(--stone); }
.s-sec h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 20ch; }
.pains { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-gold); }
.pains li { padding: 26px 28px 6px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pains li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.pains h3 { font-size: 1.45rem; }
.pains p, .steps p, .facts p { color: var(--muted); font-size: 0.9375rem; }
.what { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.what-side { position: sticky; top: 24px; display: grid; gap: 24px; }
.what-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-gold); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-size: 2.4rem; line-height: 0.9; color: var(--gold); }
.steps h3 { font-size: 1.35rem; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule-gold); }
.facts li { padding: 22px 24px 6px 0; display: grid; gap: 8px; align-content: start; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts h3 { font-size: 1.35rem; }
.cmp-scroll { margin-top: 32px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9875rem; }
.cmp th, .cmp td { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule-gold); }
.cmp thead th:last-child { color: var(--gold-deep); }
.cmp tbody th { font-family: var(--display); font-weight: 600; font-size: 1.25rem; width: 22%; }
.cmp td:nth-child(2) { color: var(--muted); }
.cmp td:last-child { color: var(--green); font-weight: 600; }
.risk { margin-top: 32px; padding: 22px 24px; background: var(--paper); border-left: 2px solid var(--gold); font-size: 0.9rem; color: var(--muted); }
.risk strong { color: var(--ink); }
.close { background: var(--forest); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px); }
.close .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 24px 48px; align-items: center; }
.close p { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--on-dark); max-width: 30ch; }
.close small { display: block; margin-top: 14px; font-family: var(--sans); font-size: 0.8125rem; color: var(--on-dark-muted); line-height: 1.6; }
.more-svc { padding-block: 56px; }
.more-svc h2 { font-size: 1.7rem; }
.svc-links { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-links a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--rule); border-top: 2px solid var(--gold); text-decoration: none; color: var(--ink); }
.svc-links a:hover { background: rgba(200, 165, 83, 0.08); }
.svc-links span { font-size: 0.8rem; color: var(--muted); }
.svc-links strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .s-hero h1, .s-hero .lede, .s-actions { animation: rise .8s var(--ease) both; }
  .s-hero .lede { animation-delay: .1s; }
  .s-actions { animation-delay: .2s; }
  @keyframes rise { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 960px) {
  .s-hero, .what, .close .wrap { grid-template-columns: 1fr; }
  .s-hero { min-height: 0; }
  .s-hero-copy { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .s-photo { order: -1; }
  .s-photo::after { background: linear-gradient(0deg, var(--forest) 0%, rgba(15, 42, 28, 0) 35%); }
  .what-side { position: static; }
  .svc-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pains, .facts, .s-proof ul, .svc-links { grid-template-columns: 1fr; }
  .pains li, .pains li + li, .facts li, .facts li + li { padding: 20px 0; border-left: 0; }
  .pains li + li, .facts li + li { border-top: 1px solid var(--rule); }
  .s-proof li, .s-proof li + li { padding: 16px 0; border-left: 0; }
  .s-proof li + li { border-top: 1px solid rgba(200, 165, 83, 0.25); }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100% !important; }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .cmp th, .cmp td { border: 0; padding: 3px 0; }
}

/* Outline button on the dark hero and closing band */
.s-hero .btn-line, .close .btn-line { background: transparent; color: var(--on-dark); border-color: rgba(200, 165, 83, 0.6); }
.s-hero .btn-line:hover, .close .btn-line:hover { background: rgba(200, 165, 83, 0.12); }
